Skip to content

Latest commit

 

History

History
62 lines (44 loc) · 2.4 KB

README.md

File metadata and controls

62 lines (44 loc) · 2.4 KB

LEARN RUST WITH ME

  • This repo contains all my exercise files for my rust basics so feel free to join me on my rust learning journey.

rust muscot

Rust installation.

  • I used this video as a guide to install Rust on windows. You can follow the documentation as well.
  • To start a new rust project run. cargo new <project-name> rustup - version manager rustc - compiler ( rustc filename.rs compiles to filename.exe then run ./filname in the terminal). rustup - packakage manager

Extensions to install

  • rust (rls) by rust-lang for linting
  • better TOML by bung... for toml syntax highlighting.

Folder structure

  • Cargo.toml - is pretty much like package.json for node.
  • src is where you write all your rust code.

Important commands

  • To compile and run the cargo project use. cargo run

  • To build the project. cargo build

  • If your building for production. add the --release flag.

  • To go through documentation. cargo doc --open

  • To update crates cargo update

  • Oh btw rust files cant start with a number as a name so 1print.rs wont work.

Summaries From Rust Book.

Contents (More Specific)