sudo apt-get update
sudo apt install build-essential
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
cargo new shell
cd shell/src/
mkdir bin
mv main.rs bin/cmd.rs
fn main() {
for arg in std::env::args() {
println!("{arg}");
}
}
cargo run --bin cmd a b c