Workshop Pages: https://knox-networks.github.io/rust-workshop/
- Go ⃕ Rust patterns
- Javascript ⃕ Rust patterns
- VSCode rust-analyzer
- Install Rust Toolchain
- The Rust Book
- Learn Rust
- Rust Playground
- cheats.rs
- rust-concurrency
dbg!()
macro for more accurateprintln!
let a = 2;
let b = dbg!(a * 2) + 1;
// ^-- prints: [src/main.rs:2] a * 2 = 4
assert_eq!(b, 5);
$ cargo test -- --nocapture
#[test]
fn test() {
println!("If `cargo test --` gets the `--nocapture` flag, \
then I will print to stdout");
}