Run A Single File As A Script With Rust
Code
#!/usr/bin/env cargo +nightly -Zscript
```cargo
rand = "0.8.5"
```
use *;
Results
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