kolynzb / rust-tutor

Trying to learn rust here. Feel free to go through my notes . lets get rusty

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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)

About

Trying to learn rust here. Feel free to go through my notes . lets get rusty


Languages

Language:Rust 100.0%