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

nordisk/korp-map

crates/korp-map-build-thing/src/lib.rs

//! **korp-map's build thing** — the recipe as code (the source), from which
//! `.nornir/build-variants.toml` is EMITTED (a description).
//!
//! * [`recipe`] — `KorpMapBuildThing`, the `impl BuildThing`: what this repo
//!   actually builds.
//! * [`emit`] — this repo's header, and the three calls into the one emitter
//!   (`nornir_build_thing::emit`).
//!
//! # The rule this crate exists for
//!
//! dwarves `.nornir/build-thing-code-is-source-design.md` (2026-08-27): the CODE
//! is the source and the toml is emitted from it, one-directional, never read
//! back as authority. A hand-written recipe is a declaration nothing can check —
//! and the two ways that goes wrong were both MEASURED on gunnar's file in one
//! day: two whole groups present in the toml and absent from the code, with the
//! parity test green over the loss for four pin generations; and the same file
//! refused outright by an older reader over one additive key. Neither is
//! possible here: there is one declaration, the file is its projection, and the
//! emitter refuses bytes that do not read back EQUAL through the one loader.

pub mod emit;
pub mod recipe;

pub use emit::{EMITTED_HEADER, emitted_toml, write_emitted};
pub use recipe::{CONTENT_HASH, KRATE, KorpMapBuildThing};

nornir_build_thing::export_build_thing!(KorpMapBuildThing);

pub use nornir_build_thing::contract::{Coordinate, PaneKind, RECEIPT_SECTION, Receipt};
pub use nornir_build_thing::plugin::BuildThing;
pub use nornir_build_thing::variant::BuildVariantSet;