usestd::fs::File;usestd::io::prelude::*;fnmain()->std::io::Result<()>{// Read the source from a file.
letmut src =String::new();File::open("test.pvt")?.read_to_string(&mut src)?;// Compile it
let binary =pivot::compile(src);// Write it to a file.
File::create("out.wasm")?.write_all(&binary)?;Ok(())}