Examples
Run config-driven simulations and Rust example binaries.
Days supports two “example styles”:
- Config-driven simulations (
configs/*.toml) run via the CLI (cargo run -- <config>). - Rust examples (
examples/*.rs) run viacargo run --example <name>.
Config examples
Run a config from the repo root:
RUST_LOG=info cargo run -- configs/simple.tomlMeasure wall-clock time without logs:
time cargo run -- configs/simple.tomlDCQCN example (requires dcqcn and typically l2_pfc):
RUST_LOG=info cargo run --features dcqcn,l2_pfc -- configs/dcqcn_simple.tomlRust examples
List available example binaries:
ls examplesRun one:
RUST_LOG=info cargo run --example basicThe repo currently includes examples such as basic, switch, wire, tcp, and ecn (names match the .rs filenames in examples/).