My repository for learning rust programming language following official documentation
-
Install Rust in your system
-
Install in 64bit Windows
-
Install in 32bit Windows
-
Install in WSL/Mac/Linux
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
- Test Rust and cargo in cli
// Test rustc compiler
rustc --version
// Test cargo package manager
cargo --version
- If installation successful version will be printed on your terminal / command line like this
// rustc
rustc 1.70.0 (90c541806 2023-05-31)
// cargo
cargo 1.70.0 (ec8a8a0ca 2023-04-25)
Clone the project
// use https
git clone https://github.com/infinitedim/learn-rust-following-docs
// use ssh
git clone git@github.com:infinitedim/learn-rust-following-docs.git
Go to the project directory
cd learn-rust-following-docs
Run hello world
// compile
rustc main.rs
// execute file
./main
how to commit your changes
- Fork and clone this project, see how to clone this project above
- Create new branch
git branch feat/your-features-branch
- Checkout to your features branch
git checkout feat/your-features-branch
- Make a changes
- Add your changes
git add .
- Commit your changes
git commit -m "feat: your messege here"
- push your changes
git push origin your-features-branch
- Open pull request
- and done, wait until me approve your changes
This repo is unlicensed, please see official Rust License
Contributions are always welcome!
See contributing.md
for ways to get started.
Please adhere to this project's code of conduct
.