facett-core 0.1.18

facett — visual kernel: render a node/edge Scene into egui (wgpu fast path to come)
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! **The registry JSON generator** — the machine-readable export of the compiled
//! [`facett_core::errcode::REGISTRY`], consumed by the **Python/Streamlit demo** so
//! both demos render the SAME catalog from the SAME source of truth (LAW #2: a
//! facett change lands in facett-demo AND facett-demo-python, in lockstep).
//!
//! ```sh
//! cargo run -p facett-core --bin errcode_registry_json > py/facett_demo_python/errcodes.json
//! ```
//!
//! `facett-core/tests/registry_md_fresh.rs` FAILS if the committed json drifts.

fn main() {
    let v = facett_core::errcode::registry_json();
    println!("{}", serde_json::to_string_pretty(&v).expect("registry json serialises"));
}