1 2 3 4 5 6 7 8 9 10 11 12 13 14
#!/usr/bin/env rust-script //! Dependencies can be specified in the script file itself as follows: //! //! ```cargo //! [dependencies] //! rand = "0.8.0" //! ``` use rand::prelude::*; fn main() { let x: u64 = random(); println!("A random number: {}", x); }