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 RUSTENVDirect rustc usage:
rustc hello.rs -o a.out
./a.outCargo 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 -xfdwill reset the rust installation.