Skip to content

My repo for learn rust by following official documentation

Notifications You must be signed in to change notification settings

infinitedim/learn-rust-following-docs

Repository files navigation

Learn Rust Following Docs

My repository for learning rust programming language following official documentation

Installation

  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)

Run this repo in your computer

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

Commit

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

My Learning resource

License

This repo is unlicensed, please see official Rust License

Contributing

Contributions are always welcome!

See contributing.md for ways to get started.

Please adhere to this project's code of conduct.

About

My repo for learn rust by following official documentation

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages