// Writes to the file 'src/utils/version_constants.rs' for use
// in outputing the version dynamically.
Writes to the file 'src/utils/version_constants.rs' for use
in outputing the version dynamically.
Writes to the file ' src / utils / version_constants . rs ' for use in outputing the version dynamically .
fn write_variables(revision:&str) {
    let out_dir = "src/utils/";
    let dest_path = Path::new(&out_dir).join("version_constants.rs");
    let mut f = File::create(&dest_path).unwrap();
    let s = format!("pub const VERSION: &'static str = env!(\"CARGO_PKG_VERSION\");\npub const REVISION: &'static str = \"{}\";\n", revision);
    if let Err(e) = f.write_all(s.as_bytes()) {
       panic!("Error creating version_constants.rs: {}", e);
    };
}
fn write_variables ( revision : & str ) { let out_dir = " " ; let dest_path = Path :: new ( & out_dir ) . join ( " " ) ; let mut f = File :: create ( & dest_path ) . unwrap ( ) ; let s = format ! ( " \" \" \n \" \" \n " revision ) ; if let Err ( e ) = f . write_all ( s . as_bytes ( ) ) { panic ! ( " " e ) ; } ; }
Writes to the file 'src/utils/version_constants.rs' for use
in outputing the version dynamically.
Writes to the file ' src / utils / version_constants . rs ' for use in outputing the version dynamically .
revision
&str