For MacOS and WSL (Windows Subsystem)
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
rustc --version
cargo --version
- Compile
- Run the file
rustc test.rs
./test
Create a source folder and configuration file
cargo init
Run the code
cargo run
or just building
cargo build
cargo build --release
- What is a trait?