Chapter 1: Getting Started
Creating a Project with Cargo
- TOML - tom’s obvious, minimal lang
Building and Running a Cargo Project
- cargo new, cargo build, cargo run
- Cargo also provides a command called cargo check.
- This command quickly checks your code to make sure it compiles
- but doesn’t produce an executable
- Why would you not want an executable? Often, cargo check is much
- faster than cargo build because it skips the step of producing one
- https://doc.rust-lang.org/cargo
Appendix A: Keywords
Keywords Currently in Use
Keywords Reserved for Future Use
Raw Identifiers
Appendix B: Operators and Symbols
Operators
Non-operator Symbols
Appendix C: Derivable Traits
Debug for Programmer Output
PartialEq and Eq for Equality Comparisons
PartialOrd and Ord for Ordering Comparisons
Clone and Copy for Duplicating Values
Hash for Mapping a Value to a Value of Fixed Size
Default for Default Values
Fix Your Code with rustfix
More Lints with Clippy
IDE Integration Using rust-analyzer