Daily Shaarli

All links of one day in a single page.

January 27, 2025

Script Unstable Features - The Cargo Book

The current nightly preview to run rust file as scripts.

alias cargo-script='cargo +nightly -Zscript -q' is my new friend.

The usual command is cargo +nightly -Zscript file.rs

The tracking issue is full of insights: https://github.com/rust-lang/cargo/issues/12207