//! Our estimators against published architectures: for each quantity the //! published figure, ours, the delta and why they differ. //! //! ```text //! cargo run --release --example published_architectures --features full # columns //! cargo run --release --example published_architectures --features full -- --markdown # the page's rows //! cargo run --release --example published_architectures --features full -- --guards # ours, for the guards //! ``` //! //! The page is `docs/published-architectures.md`, and a test in the crate holds //! its rows to this output. The published figures are in //! `tests/data/published_figures.tsv`; `--guards` prints ours, to four //! digits, for each row that does not agree, which is its line's guard there. use wai_quantum::published_architectures::{guards, markdown, report, tally, text}; fn main() -> Result<(), String> { let sections = report()?; if std::env::args().any(|a| a == "--markdown") { print!("{}", markdown(§ions)); } else if std::env::args().any(|a| a == "--guards") { print!("{}", guards(§ions)); } else { print!("{}", text(§ions)); let counts: Vec = tally(§ions).iter().map(|(c, n)| format!("{} {n}", c.name())).collect(); println!("rows by class: {}", counts.join(", ")); } Ok(()) }