crates/nornir-pages/Cargo.toml
[package]
name = "nornir-pages"
version = "0.1.0"
edition = "2021"
# GUARDRAIL: consumed ONLY by `publish = false` xtask crates via path+version
# sibling deps — never goes to crates.io.
publish = false
description = "The ONE parameterized gh-pages demo/deploy FLOW for the nordisk constellation — the ~230-LOC block four repos' xtasks (nornir/holger/dwarves/facett) grew near-byte-identically: build the caller's declared wasm row IN the pinned toolchain image (nornir-build-thing container_road: cargo + its wasm-bindgen stage), write the cache-busted static `index.html` (`?v=<short_rev>` on the JS/wasm so a redeploy never serves stale) + the pages host's `.domains`/`.nojekyll`, then publish `dist/` to an orphan `pages` branch (throwaway worktree, single squashed commit, force-push). All divergence captured by `PagesConfig`'s 11 knobs (demo_crate, canvas_id, state_export, title, description, pages_url/host/branch, remote_env, commit_label, extra_build_args). Builds on `nornir-xtask-support`; keeps shelling `git` for the orphan-worktree publish (nornir-git's in-process gix has no force-push-branch primitive)."
license = "MIT OR Apache-2.0"
repository = "https://git.gunnar.rs/nordisk/edda"
keywords = ["xtask", "wasm-bindgen", "static-pages", "deploy", "wasm"]
categories = ["development-tools::build-utils", "wasm"]
exclude = ["/.nornir/"]
[features]
default = []
# `testmatrix` — emit the render surfaces' health (index.html carries the cache-bust
# + every interpolated knob) into the nornir test-matrix. OFF BY DEFAULT.
testmatrix = ["dep:nornir-testmatrix", "nornir-testmatrix/testmatrix"]
[dependencies]
# The generic xtask primitives (which/run/copy_dir/target_dir/ensure_wasm_*/…) +
# the boxed Send+Sync `Result` alias re-exported here. Path+version sibling.
nornir-xtask-support = { version = "0.1", path = "../nornir-xtask-support" }
# Introspection-marker emitter — only compiled with `testmatrix`.
nornir-testmatrix = { version = "0.2.7", path = "../nornir-testmatrix", default-features = false, optional = true }
# The pure-gix git leaf. The pages publish builds its squashed orphan `pages`
# commit in-process via `gitops::commit_dir_as_orphan_branch` (LAW: git ops go
# through nornir-git, never the CLI); only the network force-push still shells
# `git` (gix 0.84 has no send-pack). Path+version sibling.
nornir-git = { version = "0.2.0", path = "../nornir-git" }
# The container road (2026-09-30): `demo_wasm` builds the caller's DECLARED wasm row in
# the pinned `[build.toolchain]` image — `container_road::{Road, build_row}`, the forge's
# argv plus the bindgen stage in the same image — instead of host cargo + host
# wasm-bindgen. `cargo-container` pulls draupnir's OCI leg; `wasm-stage` pulls only
# `nornir-xtask-support`, already linked here.
nornir-build-thing = { version = "0.2.0", path = "../nornir-build-thing", default-features = false, features = ["cargo-container", "wasm-stage"] }