fn save(contents: String) {
    // write it all out to our src/gen.rs file, included by lib
    let out_dir = env::var("OUT_DIR").unwrap();
    let mut dest_path = PathBuf::from(&out_dir);
    dest_path.push("vf_gen.rs");
    let mut f = File::create(&dest_path).unwrap();
    f.write_all(contents.as_bytes()).unwrap();
}
/// Given a dump of generated code, save it to the output dir
Given a dump of generated code, save it to the output dir
Given a dump of generated code save it to the output dir
fn save(contents: String) {
    // write it all out to our src/gen.rs file, included by lib
    let out_dir = env::var("OUT_DIR").unwrap();
    let mut dest_path = PathBuf::from(&out_dir);
    dest_path.push("vf_gen.rs");
    let mut f = File::create(&dest_path).unwrap();
    f.write_all(contents.as_bytes()).unwrap();
}
fn save ( contents : String ) { // write it all out to our src/gen.rs file, included by lib let out_dir = env :: var ( " " ) . unwrap ( ) ; let mut dest_path = PathBuf :: from ( & out_dir ) ; dest_path . push ( " " ) ; let mut f = File :: create ( & dest_path ) . unwrap ( ) ; f . write_all ( contents . as_bytes ( ) ) . unwrap ( ) ; }
Given a dump of generated code, save it to the output dir
Given a dump of generated code save it to the output dir
contents
String
contents
String