Run A Single File As A Script With Rust
#!/usr/bin/env cargo +nightly -Zscript
```cargo
rand = "0.8.5"
```
use *;
Output:
Random number: 230
Notes
-
The original version of the code had to have the code block lines prepended with
//!
. -
I'm removing those unnecessary
//!
comments from my site as I run across them
-- end of line --