- add the process boundary for the core CLI: explicit MARQDO_BIN/--marqdo-bin only (never PATH), argv-only invocation of check ENTRY --emit, bounded timeout, private temp artifact, exit checks and absolute-path sanitisation - deserialize every Analysis record with closed serde shapes and validate semantic invariants that JSON Schema cannot express: identities, source digests, UTF-8 spans, unit tree/order/mode ancestry, anchors, functions and signatures, references states, calls, resources, diagnostics and budgets - validate statement/expression trees structurally with depth and span checks - convert accepted modules into DocumentFacts, preserving honest upstream reference states and one node per Exec unit/function - merge modules across entry contexts only when identity and source agree, otherwise report knowledge.analysis_context_conflict - add the real rc.4 Analysis positive fixture (with provenance and regeneration script), tamper negative tests and optional real-binary integration tests
35 lines
839 B
TOML
35 lines
839 B
TOML
[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"
|
|
unicode-normalization = "=0.1.26"
|
|
|
|
[profile.release]
|
|
codegen-units = 1
|
|
lto = "thin"
|