All Projects โ†’ rust-lang โ†’ Rustlings

rust-lang / Rustlings

Licence: mit
๐Ÿฆ€ Small exercises to get you used to reading and writing Rust code!

Programming Languages

rust
11053 projects
shell
77523 projects
powershell
5483 projects

Projects that are alternatives of or similar to Rustlings

Emojiscreen
EmojiScreen is a listing of movies, TV shows and musicals depicted through emojis.
Stars: โœญ 140 (-99.32%)
Mutual labels:  beginner-friendly
Hacktoberfest
Opportunity to start open source and PR experience
Stars: โœญ 171 (-99.17%)
Mutual labels:  beginner-friendly
Tech Interview Preparation
A one stop solution to ace your next coding interview ๐Ÿ‘จโ€๐Ÿ’ป
Stars: โœญ 188 (-99.09%)
Mutual labels:  beginner-friendly
Script
Making it easy to write shell-like scripts in Go
Stars: โœญ 1,946 (-90.58%)
Mutual labels:  beginner-friendly
Hacktoberfest 2k18 Katas
Game has ended :: Little challenges to up your Hacktoberfest game!
Stars: โœญ 160 (-99.23%)
Mutual labels:  beginner-friendly
Learn Elm Architecture In Javascript
๐Ÿฆ„ Learn how to build web apps using the Elm Architecture in "vanilla" JavaScript (step-by-step TDD tutorial)!
Stars: โœญ 173 (-99.16%)
Mutual labels:  beginner-friendly
Minimalist Portfolio
A simple minimalist one page portfolio. Link:
Stars: โœญ 136 (-99.34%)
Mutual labels:  beginner-friendly
Awesome Jetpack Compose Android Apps
๐Ÿ‘“ A curated list of awesome Jetpack Compose android apps by open-source contributors.
Stars: โœญ 207 (-99%)
Mutual labels:  beginner-friendly
Using Zend Framework 3 Book
A free and reader-friendly book on Zend Framework 3
Stars: โœญ 160 (-99.23%)
Mutual labels:  beginner-friendly
Hacktoberfest
Make your first PR! ~ A beginner-friendly repository made specifically for open source beginners. Add your profile, a blog or any program under any language (it can be anything from a hello-world program to a complex data structure algorithm) or update the existing one. Just make sure to add the file under the correct directory. Happy hacking!
Stars: โœญ 191 (-99.08%)
Mutual labels:  beginner-friendly
Mindfulness At The Computer
Helps you stay mindful of your breathing while using your computer
Stars: โœญ 143 (-99.31%)
Mutual labels:  beginner-friendly
Creative Computing Society.github.io
This is the Hacktoberfest first contribution website of CCS
Stars: โœญ 158 (-99.24%)
Mutual labels:  beginner-friendly
Potigol
Linguagem Potigol - Linguagem de programaรงรฃo funcional moderna para iniciantes - A Functional Programming Language for Beginners
Stars: โœญ 179 (-99.13%)
Mutual labels:  beginner-friendly
Ltecleanerfoss
The last Android cleaner you'll ever need!
Stars: โœญ 141 (-99.32%)
Mutual labels:  beginner-friendly
Instascrape
Powerful and flexible Instagram scraping library for Python, providing easy-to-use and expressive tools for accessing data programmatically
Stars: โœญ 202 (-99.02%)
Mutual labels:  beginner-friendly
Hacktoberfest2018
A repository for HacktoberFest 2018.
Stars: โœญ 139 (-99.33%)
Mutual labels:  beginner-friendly
Gankor
gank ur life, zhihu ur timeใ€‚้€‚ๅˆๅˆๅญฆ่€…็š„็ปƒๆ‰‹้กน็›ฎ
Stars: โœญ 171 (-99.17%)
Mutual labels:  beginner-friendly
Hacktoberfest2020
List of beginner-friendly | first-timers-only | up-for-grabs issues (repositories) for Hacktoberfest 2020 | Submit 4 PRs to earn a T-shirt
Stars: โœญ 248 (-98.8%)
Mutual labels:  beginner-friendly
Pokeapi
The Pokรฉmon API
Stars: โœญ 2,695 (-86.96%)
Mutual labels:  beginner-friendly
Todos Api
๐Ÿป ๐Ÿพ @scotch-io tutorial "Build a RESTful JSON API with Rails 5" codebase.
Stars: โœญ 188 (-99.09%)
Mutual labels:  beginner-friendly

All Contributors

rustlings ๐Ÿฆ€โค๏ธ

Greetings and welcome to rustlings. This project contains small exercises to get you used to reading and writing Rust code. This includes reading and responding to compiler messages!

...looking for the old, web-based version of Rustlings? Try here

Alternatively, for a first-time Rust learner, there are several other resources:

  • The Book - The most comprehensive resource for learning Rust, but a bit theoretical sometimes. You will be using this along with Rustlings!
  • Rust By Example - Learn Rust by solving little exercises! It's almost like rustlings, but online

Getting Started

Note: If you're on MacOS, make sure you've installed Xcode and its developer tools by typing xcode-select --install.

You will need to have Rust installed. You can get it by visiting https://rustup.rs. This'll also install Cargo, Rust's package/project manager.

MacOS/Linux

Just run:

curl -L https://git.io/install-rustlings | bash
# Or if you want it to be installed to a different path:
curl -L https://git.io/install-rustlings | bash -s mypath/

This will install Rustlings and give you access to the rustlings command. Run it to get started!

Windows

In PowerShell (Run as Administrator), set ExecutionPolicy to RemoteSigned:

Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser

Then, you can run:

Start-BitsTransfer -Source https://git.io/JTL5v -Destination $env:TMP/install_rustlings.ps1; Unblock-File $env:TMP/install_rustlings.ps1; Invoke-Expression $env:TMP/install_rustlings.ps1

To install Rustlings. Same as on MacOS/Linux, you will have access to the rustlings command after it.

When you get a permission denied message then you have to exclude the directory where you placed the rustlings in your virus-scanner

Browser:

Run on Repl.it

Open in Gitpod

Manually

Basically: Clone the repository at the latest tag, run cargo install.

# find out the latest version at https://github.com/rust-lang/rustlings/releases/latest (on edit 4.6.0)
git clone -b 4.6.0 --depth 1 https://github.com/rust-lang/rustlings
cd rustlings
cargo install --force --path .

If there are installation errors, ensure that your toolchain is up to date. For the latest, run:

rustup update

Then, same as above, run rustlings to get started.

Doing exercises

The exercises are sorted by topic and can be found in the subdirectory rustlings/exercises/<topic>. For every topic there is an additional README file with some resources to get you started on the topic. We really recommend that you have a look at them before you start.

The task is simple. Most exercises contain an error that keeps them from compiling, and it's up to you to fix it! Some exercises are also run as tests, but rustlings handles them all the same. To run the exercises in the recommended order, execute:

rustlings watch

This will try to verify the completion of every exercise in a predetermined order (what we think is best for newcomers). It will also rerun automatically every time you change a file in the exercises/ directory. If you want to only run it once, you can use:

rustlings verify

This will do the same as watch, but it'll quit after running.

In case you want to go by your own order, or want to only verify a single exercise, you can run:

rustlings run myExercise1

Or simply use the following command to run the next unsolved exercise in the course:

rustlings run next

In case you get stuck, you can run the following command to get a hint for your exercise:

rustlings hint myExercise1

You can also get the hint for the next unsolved exercise with the following command:

rustlings hint next

To check your progress, you can run the following command:

rustlings list

Testing yourself

After every couple of sections, there will be a quiz that'll test your knowledge on a bunch of sections at once. These quizzes are found in exercises/quizN.rs.

Continuing On

Once you've completed Rustlings, put your new knowledge to good use! Continue practicing your Rust skills by building your own projects, contributing to Rustlings, or finding other open-source projects to contribute to.

Uninstalling Rustlings

If you want to remove Rustlings from your system, there's two steps. First, you'll need to remove the exercises folder that the install script created for you:

rm -rf rustlings # or your custom folder name, if you chose and or renamed it

Second, since Rustlings got installed via cargo install, it's only reasonable to assume that you can also remove it using Cargo, and exactly that is the case. Run cargo uninstall to remove the rustlings binary:

cargo uninstall rustlings

Now you should be done!

Completion

Rustlings isn't done; there are a couple of sections that are very experimental and don't have proper documentation. These include:

  • Errors (exercises/errors/)
  • Option (exercises/option/)
  • Result (exercises/result/)
  • Move Semantics (could still be improved, exercises/move_semantics/)

Additionally, we could use exercises on a couple of topics:

  • Structs
  • Better ownership stuff
  • impl
  • ??? probably more

If you are interested in improving or adding new ones, please feel free to contribute! Read on for more information :)

Contributing

See CONTRIBUTING.md.

Contributors โœจ

Thanks goes to these wonderful people (emoji key):


Carol (Nichols || Goulding)

๐Ÿ’ป ๐Ÿ–‹

QuietMisdreavus

๐Ÿ’ป ๐Ÿ–‹

Robert M Lugg

๐Ÿ–‹

Hynek Schlawack

๐Ÿ’ป

Katharina Fey

๐Ÿ’ป

lukabavdaz

๐Ÿ’ป ๐Ÿ–‹

Erik Vesteraas

๐Ÿ’ป

delet0r

๐Ÿ’ป

Shaun Bennett

๐Ÿ’ป

Andrew Bagshaw

๐Ÿ’ป

Kyle Isom

๐Ÿ’ป

Colin Pitrat

๐Ÿ’ป

Zac Anger

๐Ÿ’ป

Matthias Geier

๐Ÿ’ป

Chris Pearce

๐Ÿ’ป

Yvan Sraka

๐Ÿ’ป

Denys Smirnov

๐Ÿ’ป

eddyp

๐Ÿ’ป

Brian Kung

๐Ÿ’ป ๐Ÿ–‹

Russell

๐Ÿ’ป

Dan Wilhelm

๐Ÿ“–

Jesse

๐Ÿ’ป ๐Ÿ–‹

Fredrik Jambrรฉn

๐Ÿ’ป

Pete McFarlane

๐Ÿ–‹

nkanderson

๐Ÿ’ป ๐Ÿ–‹

Ajax M

๐Ÿ“–

Dylan Nugent

๐Ÿ–‹

vyaslav

๐Ÿ’ป ๐Ÿ–‹

George

๐Ÿ’ป

Thomas Holloway

๐Ÿ’ป ๐Ÿ–‹

Jubilee

๐Ÿ’ป

WofWca

๐Ÿ’ป

Roberto Vidal

๐Ÿ’ป ๐Ÿ“– ๐Ÿค” ๐Ÿšง

Jens

๐Ÿ“–

Rahat Ahmed

๐Ÿ“–

Abdou Seck

๐Ÿ’ป ๐Ÿ–‹ ๐Ÿ‘€

Katie

๐Ÿ’ป

Socrates

๐Ÿ“–

gnodarse

๐Ÿ–‹

Harrison Metzger

๐Ÿ’ป

Torben Jonas

๐Ÿ’ป ๐Ÿ–‹

Paul Bissex

๐Ÿ“–

Steven Mann

๐Ÿ’ป ๐Ÿ–‹

Mario Reder

๐Ÿ’ป ๐Ÿ–‹

skim

๐Ÿ’ป

Sanjay K

๐Ÿ’ป ๐Ÿ–‹

Rohan Jain

๐Ÿ’ป

Said Aspen

๐Ÿ’ป ๐Ÿ–‹

Ufuk Celebi

๐Ÿ’ป

lebedevsergey

๐Ÿ“–

Aleksei Trifonov

๐Ÿ–‹

Darren Meehan

๐Ÿ–‹

Jihchi Lee

๐Ÿ–‹

Christofer Bertonha

๐Ÿ–‹

Vivek Bharath Akupatni

๐Ÿ’ป โš ๏ธ

Dรญdac Sementรฉ Fernรกndez

๐Ÿ’ป ๐Ÿ–‹

Rob Story

๐Ÿ’ป

Siobhan Jacobson

๐Ÿ’ป

Evan Carroll

๐Ÿ–‹

Jawaad Mahmood

๐Ÿ–‹

Gaurang Tandon

๐Ÿ–‹

Stefan Kupresak

๐Ÿ–‹

Greg Leonard

๐Ÿ–‹

Ryan McQuen

๐Ÿ’ป

Annika

๐Ÿ‘€

Axel Viala

๐Ÿ’ป

Mohammed Sazid Al Rashid

๐Ÿ–‹ ๐Ÿ’ป

Caleb Webber

๐Ÿšง

Peter N

๐Ÿšง

seancad

๐Ÿšง

Will Hayworth

๐Ÿ–‹

Christian Zeller

๐Ÿ–‹

Jean-Francois Chevrette

๐Ÿ–‹ ๐Ÿ’ป

John Baber-Lucero

๐Ÿ–‹

Tal

๐Ÿ–‹

apogeeoak

๐Ÿ–‹ ๐Ÿ’ป

Larry Garfield

๐Ÿ–‹

circumspect

๐Ÿ–‹

Cyrus Wyett

๐Ÿ–‹

cadolphs

๐Ÿ’ป

Pascal H.

๐Ÿ–‹

Rod Elias

๐Ÿ–‹

Matt Lebl

๐Ÿ’ป

Ignacio Le Fluk

๐Ÿ–‹

Taylor Yu

๐Ÿ’ป ๐Ÿ–‹

Patrick Hintermayer

๐Ÿ’ป

Pete Pavlovski

๐Ÿ–‹

k12ish

๐Ÿ–‹

Shao Yang Hong

๐Ÿ–‹

Brandon Macer

๐Ÿ–‹

Stoian Dan

๐Ÿ–‹

Pi Delport

๐Ÿ–‹

Sateesh

๐Ÿ’ป ๐Ÿ–‹

ZC

๐Ÿ–‹

hyperparabolic

๐Ÿ’ป

arlecchino

๐Ÿ“–

Richthofen

๐Ÿ’ป

Ivan Nerazumov

๐Ÿ“–

lauralindzey

๐Ÿ“–

Rakshit Sinha

๐Ÿ–‹

Damian

๐Ÿ–‹

Ben Armstead

๐Ÿ’ป

anuk909

๐Ÿ–‹ ๐Ÿ’ป

granddaifuku

๐Ÿ–‹

Weilet

๐Ÿ–‹

LIU JIE

๐Ÿ–‹

Antoine Bรผsch

๐Ÿ’ป

frogtd

๐Ÿ–‹

Zhenghao Lu

๐Ÿ–‹

Fredrik Enestad

๐Ÿ–‹

xuesong

๐Ÿ–‹

Michael Walsh

๐Ÿ’ป

alirezaghey

๐Ÿ–‹

Franklin van Nes

๐Ÿ’ป

This project follows the all-contributors specification. Contributions of any kind welcome!

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].