chore: bootstrap marqdo-knowledge crate, CLI surface and architecture docs

- pin Rust 2021 / MSRV 1.89 and exact dependency versions
- add typed model vocabulary (UTF-8 spans, canonical JSON-array node keys,
  node/edge/state enums, digest helpers) with unit tests
- add deterministic diagnostics and unified error/exit semantics (0/1/2)
- add the three-command clap surface with strict argument validation
- record the single-derived-artifact decision, architecture overview and
  current public contract; STATUS lists real evidence only
This commit is contained in:
marqdo-knowledge committed 2026-11-25 22:24:51 +08:00
1 parent fbca63b972
commit 430f950631
19 files changed
+2945

No files matched your search

+35
View File
@@ -0,0 +1,35 @@
[package]
name = "marqdo-knowledge"
version = "0.1.0"
edition = "2021"
rust-version = "1.89"
license = "Apache-2.0"
description = "Deterministic, offline knowledge compiler for Markdown and Marqdo documents"
repository = "https://github.com/cflmy/marqdo-knowledge"
publish = false
[lib]
name = "marqdo_knowledge"
path = "src/lib.rs"
[[bin]]
name = "marqdo-knowledge"
path = "src/main.rs"
[dependencies]
clap = { version = "=4.6.9", features = ["derive", "env"] }
comrak = { version = "=1.0.0", default-features = false }
glob = "=0.3.4"
hex = "=0.4.3"
rusqlite = { version = "=0.37.0", features = ["bundled"] }
serde = { version = "=1.0.229", features = ["derive"] }
serde_json = "=1.0.154"
serde_yaml = "=0.9.34"
sha2 = "=0.10.9"
tempfile = "=3.27.0"
thiserror = "=2.0.21"
unicode-normalization = "=0.1.26"
[profile.release]
codegen-units = 1
lto = "thin"