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(); }