Your browser sucks, JavaScript disabled! Gunnar's console needs JavaScript and WebAssembly. Git over SSH on port 2222 does not.

nordisk/facett

facett-manual/Cargo.toml

[package]
name = "facett-manual"
description = "facett — embedded Manual pane: a searchable, sidebar-navigated Markdown documentation viewer (reuses facett-markdown's renderer). The per-app doc set is embedded by the HOST (rust_embed) and handed in as data; this crate is the shared UI + search core so dwarves, korp, … ship ONE manual pane, not three copies."
version.workspace = true
edition.workspace = true
license.workspace = true
repository.workspace = true

[features]
default = ["dejavu"]
# L4: functional-status emitter passthrough (see facett-core). No-op in release.
testmatrix = ["facett-core/testmatrix", "facett-markdown/testmatrix"]
# The docview airgap font (see facett-docview's `dejavu`): ON by default; the wasm
# wrapper turns it off so the bundle reuses egui's own face instead of adding 760 KB.
dejavu = ["facett-docview/dejavu"]

[dependencies]
facett-core = { path = "../facett-core", version = "0.3.0" }
# L5: REUSE facett-markdown's renderer (the exact Preview-lane markdown → egui path)
# rather than hand-rolling a second markdown renderer for the manual.
facett-markdown = { path = "../facett-markdown", version = "0.2.0" }
# The TYPESET (SVG) variant delegates to facett-docview's pure-Rust resvg engine
# (sidebar, zoom, continuous/paged, search) rather than re-implementing a page
# viewer. This is a hard dep (not feature-gated) so the merged Manual pane always
# ships both variants — the manual is embedded regardless of the host's docview.
facett-docview = { path = "../facett-docview", version = "0.2.0", default-features = false }
egui = { workspace = true }
serde = { version = "1", features = ["derive"] }
serde_json = { workspace = true }

[dev-dependencies]
# CPU render-proof (AccessKit tree) via the kittest harness — the robot scenario
# renders the real `ManualPane::ui` and asserts continuous mode paints ≥2 docs in one
# frame, that a sidebar click moves the scroll target, and that paged mode is unchanged.
# Same egui/kittest version pin every other facett robot leaf uses (facett-about, …).
egui_kittest = { version = "0.36" }