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

nordisk/holger

holger-build-thing/src/lib.rs

//! # holger's build thing, as the forge loads it
//!
//! **A shim with no logic.** The declaration — variants, the container and
//! installer rows, the set rules, the emitter — is [`holger_recipe`], re-exported
//! here so a caller needs one name. What cannot live there is the plugin ABI
//! export: `export_build_thing!` emits the `bt_*` symbols under
//! `cfg(target_arch = "wasm32")`, and they must come out of a `cdylib`, which is
//! also what dwarves demands of a crate named `<repo>-build-thing`.
//!
//! Nothing depends on this crate, on purpose: a `cdylib` lib gets no
//! `--extra-filename`, so two units of it overwrite one rlib (cargo#6313,
//! measured in holger as an E0460 on 2026-09-16). Consumers depend on
//! `holger-recipe`.

pub use holger_recipe::*;

// The wasm32 plugin ABI over the re-exported `HolgerBuildThing` — one type, one
// definition, so the wasm module and the native doors cannot answer differently.
nornir_build_thing::export_build_thing!(HolgerBuildThing);