nemicosm/hidl/src/bin/demo.rs

10 lines
230 B
Rust
Raw Normal View History

2022-01-15 22:16:52 +00:00
use std::fs;
fn main() {
let root = hidl::spec::spec();
debug2::dbg!(&root);
let yaml_str = serde_yaml::to_string(&root).unwrap();
eprintln!("{}", yaml_str);
fs::write("spec-demo.yaml", &yaml_str).unwrap();
}