Skip to content

Learn rust basics and toolchains in Linux env

Notifications You must be signed in to change notification settings

AnandJyrm/learn-rust

Repository files navigation

learn-rust

Learn rust basics and some toolchains. Steps are Linux specific.

Content

Basics

  1. hello-world
  2. macros
  3. types
  4. callback
  5. proc_macros

Tools

  1. coverage
  2. sanitizer

Setup

Installs Rust locally at learn-rust/bin

git clone [email protected]:AnandJyrm/learn-rust.git
cd learn-rust
./install_rust.sh
source RUSTENV

Execute in RUSTENV

Direct rustc usage:

rustc hello.rs -o a.out
./a.out

Cargo usage:

cargo new hello
cd hello
cargo run

Warning

  • bin folder and its contents are part of .gitignore. This will contain the rust installation files.
  • To reset the repo, use git clean -Xfd.
  • git clean -xfd will reset the rust installation.

About

Learn rust basics and toolchains in Linux env

Topics

Resources

Stars

Watchers

Forks