Skip to main content

Crate linkmarks_core

Crate linkmarks_core 

Source
Expand description

§linkmarks-core

Domain model, traits, URL canonicalization, and local dedupe for LinkMarks. This crate has no I/O beyond pure parsing helpers — all filesystem, network, and database concerns live in the bridges and the CLI.

See:

  • modelBookmark, SourceRef, Collection, Tag
  • traitsBookmarkSource, BookmarkSink
  • canonical — URL canonicalization rules
  • dedupe — local deterministic dedupe by canonical URL
  • errors — error types
  • parser — shared parsing helpers
  • paths — XDG-aware filesystem paths
  • migrator — forward-only SQLite migrator
  • store — SQLite-backed bookmark store
  • config — TOML config loader

Re-exports§

pub use canonical::canonicalize;
pub use canonical::CanonicalizeError;
pub use canonical_config::CanonicalConfig;
pub use config as config_loader;
pub use dedupe::dedupe;
pub use dedupe::ConflictRecord;
pub use dedupe::DedupeReport;
pub use errors::CoreError;
pub use migrator::Migration;
pub use migrator::MAX_SUPPORTED_VERSION;
pub use model::Bookmark;
pub use model::BookmarkId;
pub use model::Collection;
pub use model::CollectionId;
pub use model::SourceKind;
pub use model::SourceRef;
pub use model::Tag;
pub use store::Store;
pub use traits::BookmarkSink;
pub use traits::BookmarkSource;
pub use traits::Page;
pub use traits::WriteReport;

Modules§

canonical
URL canonicalization for LinkMarks.
canonical_config
Per-domain canonicalization rules.
config
TOML config loader for LinkMarks.
dedupe
Local deterministic dedupe by canonical URL.
errors
Error types for linkmarks-core.
migrator
Forward-only SQLite migrator for the LinkMarks store.
model
Domain model for LinkMarks.
parser
Shared parsing helpers used by bridges.
paths
XDG-aware filesystem paths for LinkMarks.
storage
SQLite store initialization with WAL and contention hardening.
store
SQLite-backed bookmark store.
traits
Source/sink traits.

Constants§

VERSION
Library version (re-exported from Cargo.toml).