use super::style;
use anyhow::Result;
pub fn print_version() -> Result<()> {
println!(
"{} {}",
style::flame("burn"),
style::accent(env!("CARGO_PKG_VERSION"))
);
println!("{}", style::muted("features:"));
for (name, on) in [
("wasm", cfg!(feature = "wasm")),
("native", cfg!(feature = "native")),
("adaptive", cfg!(feature = "adaptive")),
("thrust", cfg!(feature = "thrust")),
("flow", cfg!(feature = "flow")),
("host-http", cfg!(feature = "host-http")),
] {
if on {
println!(" {}", style::ok(name));
} else {
println!(" {} {}", style::muted("ยท"), style::muted(name));
}
}
Ok(())
}