algorithmia 2.1.3

Client for calling algorithms and managing data hosted on the Algorithmia marketplace
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
extern crate rustc_version;

use std::fs::File;
use std::io::Write;

fn main() {
    // Write it to version.rs
    let mut f = File::create("src/version.rs").unwrap();
    write!(f,
r#"
pub static RUSTC_VERSION: &'static str = "{rustc_version}";
"#,
        rustc_version = rustc_version::version(),
    ).unwrap();
}