repositories / smith
smith
There are many coding harnesses - but this one is fast
owned by admin
smith-bench/src/bin/help-surface.rs
Raw//! Actual Smith short-help surface reporter (`SMH-SPEC-SPEC0001`).
//!
//! `cargo x perf` invokes this executable outside Callgrind.
#![deny(unsafe_code)]
fn main() {
match smith_cli::short_help_surface() {
Ok(surface) => println!(
"commands={} arguments={} rendered_bytes={}",
surface.command_nodes, surface.argument_placements, surface.rendered_bytes
),
Err(error) => {
eprintln!("cannot collect Smith short-help surface: {error}");
std::process::exit(1);
}
}
}