- migrate crate to RFC-0002 §5.3 Reader layout: src/protocol/{analysis_v2,
trace_v2,tool_v1}.rs, src/reader/{source,markdown,model,assemble,render,
assets}.rs, src/config.rs; lib.rs is the composition root; delete app/project/
semantic/trace/document/presentation/source_map/render/assets top-level files
- split presentation into model (types) and assemble (merge/stale/DocumentService)
- merge controlled project root/path boundary and UTF-8 byte spans into
reader/source.rs; move view.json config to config.rs
- replace GET /api/document with read-only GET /api/documents (documents list +
current outline/function/analysis summary) and add contract tests
- reading UI: drop variable/memory placeholder actions, keep one explicit
unsupported explanation, add simple dark theme toggle over the single token
layer; assert via rendering test
- reorganize tests into Cargo [[test]] suites tests/contract and
tests/integration; record docs/evidence/PR-02
- unit 41 + contract 41 + integration 33 all pass; clippy clean
41 lines
957 B
TOML
41 lines
957 B
TOML
[package]
|
|
name = "marqdo-view"
|
|
version = "0.2.0"
|
|
edition = "2021"
|
|
rust-version = "1.85"
|
|
license = "MIT OR Apache-2.0"
|
|
description = "Marqdo View: read .mq.md documents as documents, with optional verified Analysis v2 and Trace v2"
|
|
repository = "https://github.com/cflmy/marqdo-view"
|
|
readme = "README.md"
|
|
keywords = ["marqdo", "markdown", "reader", "executable-document"]
|
|
categories = ["command-line-utilities", "documentation"]
|
|
|
|
[[bin]]
|
|
name = "marqdo-view"
|
|
path = "src/main.rs"
|
|
|
|
[[test]]
|
|
name = "contract"
|
|
path = "tests/contract/main.rs"
|
|
|
|
[[test]]
|
|
name = "integration"
|
|
path = "tests/integration/main.rs"
|
|
|
|
[dependencies]
|
|
clap = { version = "4.5", features = ["derive"] }
|
|
serde = { version = "1", features = ["derive"] }
|
|
serde_json = "1"
|
|
sha2 = "0.10"
|
|
comrak = { version = "=1.0.0", default-features = false }
|
|
semver = "1"
|
|
tiny_http = "0.12"
|
|
|
|
[target.'cfg(unix)'.dependencies]
|
|
libc = "0.2"
|
|
|
|
[profile.release]
|
|
lto = "thin"
|
|
codegen-units = 1
|
|
strip = "symbols"
|