Learn rust basics and some toolchains. Steps are Linux specific.
Installs Rust locally at learn-rust/bin
git clone [email protected]:AnandJyrm/learn-rust.git
cd learn-rust
./install_rust.sh
source RUSTENV
Direct rustc usage:
rustc hello.rs -o a.out
./a.out
Cargo usage:
cargo new hello
cd hello
cargo run
- 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.