Just working through all the examples from the Rustlang book. Also contains notes and all that to make it easier to review later...
- To compile a plain .rs file, you can use
rustc
. This acts very similar to gcc, so you can typerustc main.rs
Cargo is the package manager. You can use the following commands:
cargo build
- build a development versioncargo build --release
- build release versioncargo run
- build and runcargo new <app_name> -- bin
- create a new binary (project)cargo doc --open
- search and open up the documentation