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

nordisk/gunnar-ui

crates/gunnar-ui-build-thing/src/lib.rs

//! # gunnar-ui's build thing, as the forge loads it
//!
//! **A shim with no logic.** The declaration — every variant, the feature
//! universe, the set rules and the emitter — is [`gunnar_ui_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).
//! Consumers — `xtask` — depend on `gunnar-ui-recipe`.

pub use gunnar_ui_recipe::*;

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