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

nordisk/monetize

crates/monetize-build-thing/Cargo.toml

# monetize's **build thing** — the build space, declared in Rust.
#
# Model: variant -> features -> settings/sub-settings -> typ.
#
# The code is the source. `MonetizeBuildThing` in `src/lib.rs` is the only
# declaration of what monetize builds; `.nornir/build-variants.toml` is EMITTED
# from it (`cargo run --manifest-path crates/monetize-build-thing/Cargo.toml -- emit`)
# and never read back as authority.
#
# Two deliveries (the `suites` axis): ORIGINAL — the open program, no commercial
# plugin — and COMMERCIAL — the same program, whose product guests are signed in the
# private `monetize-impl` checkout and fed at runtime. No edge names a private checkout
# and no private source reaches this repo.
#
# The name and crate-type are a contract with dwarves
# (`dwarves/crates/dwarves/src/build_thing/code.rs`): a package called
# `<repo>-build-thing` whose `[lib] crate-type` contains `cdylib`.
#
# Its own workspace, deliberately: the root lock must not grow
# nornir-build-thing's closure for a crate that only DESCRIBES the build.
[package]
name = "monetize-build-thing"
version = "0.1.0"
edition = "2021"
description = "monetize's build thing: the ONE box's program (monetize-admin, musl) and its medium, the operator console, in the ORIGINAL and COMMERCIAL deliveries (no plugin edge: the product guests arrive at runtime), declared in Rust, with the emission of .nornir/build-variants.toml (code -> toml, one way)."
license = "AGPL-3.0-only"
publish = false

[workspace]

[lib]
name = "monetize_build_thing"
crate-type = ["cdylib", "rlib"]

[[bin]]
name = "monetize-build-thing"
path = "src/main.rs"

[dependencies]
# Declaration types, `plugin::BuildThing`, `export_build_thing!`, the one
# emitter. `default-features = false` so it builds for wasm32.
nornir-build-thing = { version = "0.2.0", path = "../../../edda/crates/nornir-build-thing", default-features = false }
anyhow = "1"

[dev-dependencies]
nornir-build-thing = { version = "0.2.0", path = "../../../edda/crates/nornir-build-thing", features = ["plugin-host"] }