Skip to content

learnrusttogether/exercises

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

71 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Learn Rust Together 🦀 🦑 🦐 🍤

Build Status

The project helps to share your Rust code for review via pull requests. Complete exercises and get feedback from the community.

Background Requirements

Exercises List

Exercises have three difficulty levels:

Easy Medium Hard
🦐 🦑 🦀

Available:

Getting Started

Fork a Repo

Fork Tutorial

Clone a Repo

$ git clone https://github.com/learnrusttogether/exercises.git

Go to Repo

$ cd exercises

Unlock Necessary Tests

Open the tests source file which is located in the ./exercises/tests directory and remove the #[ignore] flag from the necessary tests and get the tests to pass.

use hello_world::*;

#[test]
#[ignore] // <- remove
fn test_hello_world() {
    assert_eq!("Hello, World!", hello());
}

Complete the Exercise

pub fn hello() -> &'static str {
    "Goodbye, World!"
}

->

pub fn hello() -> &'static str {
    "Hello, World!"
}

Run Tests from Repo Root

Your current path: ~/exersices/

$ make test

Push Changes

$ git add .

$ git commit -m "hello-world"

$ git push

Create New Pull Request

Pull Request Tutorial

Getting Updates

$ make update

If you have an alert Please enter a commit message to explain why this merge is necessary, especially if it merges an updated upstream into a topic branch. read this tutorial.

Contributing a New Exercise

[Soon...]

Community

You can ask a question in our Telegram chat or the issues section.