The project helps to share your Rust code for review via pull requests. Complete exercises and get feedback from the community.
- Complete The Rust Programming Language for Beginners course or read The Rust Programming Language.
- Enthusiasm and a willingness to take your Rust Programming skills to the next level.
Exercises have three difficulty levels:
Easy | Medium | Hard |
---|---|---|
🦐 | 🦑 | 🦀 |
- hello-world 🍤
- factorial 🦐
- fibonacci-sequence 🦐
- leap 🦐
$ git clone https://github.com/learnrusttogether/exercises.git
$ cd exercises
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());
}
pub fn hello() -> &'static str {
"Goodbye, World!"
}
->
pub fn hello() -> &'static str {
"Hello, World!"
}
Your current path: ~/exersices/
$ make test
$ git add .
$ git commit -m "hello-world"
$ git push
$ 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.
[Soon...]
You can ask a question in our Telegram chat or the issues section.