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

nordisk/knut

crates/knut-popsim/Cargo.toml

[package]
name = "knut-popsim"
description = "Canonical pure-Rust generator for the synthetic Swedish 11-million-person population graph (12-label graph DB). No FalkorDB/Arrow/network/filesystem deps — compiles for wasm32 — so any viewer (knut-popviz, the facett demo) can reuse one model."
version.workspace = true
edition.workspace = true
authors.workspace = true
license = "MIT OR Apache-2.0"
repository.workspace = true
keywords = ["graph", "simulation", "population", "synthetic-data", "wasm"]
categories = ["simulation", "data-structures", "wasm"]

[lib]
name = "knut_popsim"
path = "src/lib.rs"

[features]
default = []
# Derive serde on the public model so consumers can (de)serialize a PopGraph.
serde = ["dep:serde"]
# `testmatrix` — emit the population generator's health (`simulate` outcome)
# into the nornir test-matrix via `functional_status`. OFF BY DEFAULT: a
# compiled-out `#[inline]` no-op with no nornir dep, so the default build stays
# dependency-light and wasm-clean.
testmatrix = ["dep:nornir-testmatrix", "nornir-testmatrix/testmatrix"]

[dependencies]
# Optional only — the whole point of this crate is to stay dependency-light and
# wasm-clean. NO falkordb / arrow / tonic / reqwest / tokio.
serde = { workspace = true, optional = true }
# Introspection-marker emitter — only compiled with `testmatrix` (pure std +
# serde, so it doesn't compromise the default wasm-clean build).
nornir-testmatrix = { version = "0.2", default-features = false, optional = true }

[dev-dependencies]
# Only used by the (serde-feature-gated) roundtrip test.
serde_json = { workspace = true }