10 lines
230 B
Rust
10 lines
230 B
Rust
|
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();
|
||
|
}
|