- Rust
- Cargo
cargo run
will compile it in atarget
folder for development (non optimized) then execute the binary fromtarget/debug
folder
or
cargo run --release
will compile it in atarget
folder for production (optimized) then execute the binary fromtarget/release
folder
You can choose to only build the project without running it by execute:
cargo build
will compile it in atarget
folder for development (non optimized)
or
cargo build --release
will compile it in atarget
folder for production (optimized)
You can then run the binary by either use cargo run
or cargo run --release
from the project root,
or just execute it by calling it. Example for running the optimized binary
you can just call ./target/release/questions_answers
- Website: https://www.rust-lang.org/
- The Book: https://doc.rust-lang.org/book/
- The Reference (more details than the book): https://doc.rust-lang.org/reference/index.html
- Documentation: https://doc.rust-lang.org/cargo/index.html