/rust-playground

Rust playgound

Primary LanguageRust

Rust Playround

based on: https://doc.rust-lang.org/book/

Notes

  • rust-analyzer can be added by doing rustup component add rust-analyzer
  • cargo new hello_cargo generates a new project hello_cargo with a hello world in it
  • cargo new --vcs=git my_project does the same but addes .git and .gitignore to your project
  • cargo check makes sure the project compiles (like a ts typecheck?)
  • cargo build makes a debug versin, but if we add the --release flag, it generates the optimized (prod) version