rfast 1.0.0

Run Rust files like scripts — instant caching, inline dependencies, zero boilerplate
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/env run-cargo-script
//! ```cargo
//! [dependencies]
//! time = "0.1.25"
//! colored = "2.0"
//! ```

extern crate time;
use colored::*;

fn main() {
    println!("{}", "Hello from cargo-script code block!".blue());
    println!("Current time: {}", time::now().rfc822z());
}