diff --git a/LICENSE-MIT b/LICENSE similarity index 100% rename from LICENSE-MIT rename to LICENSE diff --git a/Readme.md b/Readme.md index ef91f90..0532b91 100644 --- a/Readme.md +++ b/Readme.md @@ -1,8 +1,21 @@ -# Rust By Practice +
+ +
+ English + | + δΈ­ζ–‡ +
+

Practice Rust with challenging examples, exercises and projects

+
+ +
+ +[![Stars Count](https://img.shields.io/github/stars/sunface/rust-by-practice?style=flat)](https://github.com/sunface/rust-by-practice/stargazers) [![Forks Count](https://img.shields.io/github/forks/sunface/rust-by-practice.svg?style=flat)](https://github.com/naaive/orange/network/members) +[![LICENSE](https://img.shields.io/badge/license-mit-green?style=flat)](https://github.com/sunface/rust-by-practice/blob/master/LICENSE) +
This book was designed for easily diving into and get skilled with Rust, and it's very easy to use: All you need to do is to make each exercise compile without ERRORS and Panics ! -> 🎊 Updated on 2022-03-14: Add Chapter [Crate and Module](https://practice.rs/crate-module/intro.html) ## Reading online diff --git a/assets/logo.png b/assets/logo.png new file mode 100644 index 0000000..bb2ac3c Binary files /dev/null and b/assets/logo.png differ diff --git a/src/crate-module/crate.md b/src/crate-module/crate.md index 83878ab..f31c546 100644 --- a/src/crate-module/crate.md +++ b/src/crate-module/crate.md @@ -19,7 +19,7 @@ version = "0.1.0" edition = "2021" ``` -> Note! We will this package across the whole chapter +> Note! We will use this package across the whole chapter as a practice project. 2. 🌟 Create a package with below layout: ```shell @@ -90,11 +90,11 @@ After this step, there should be two crates in package `hello-package`: **a bina β”œβ”€β”€ Cargo.toml β”œβ”€β”€ Cargo.lock β”œβ”€β”€ src -β”‚ β”œβ”€β”€ -β”‚ β”œβ”€β”€ -β”‚ └── -β”‚ └── -β”‚ └── +β”‚ β”œβ”€β”€ __ +β”‚ β”œβ”€β”€ __ +β”‚ └── __ +β”‚ └── __ +β”‚ └── __ β”œβ”€β”€ tests # directory for integrated tests files β”‚ └── some_integration_tests.rs β”œβ”€β”€ benches # dir for benchmark files @@ -103,4 +103,7 @@ After this step, there should be two crates in package `hello-package`: **a bina └── simple_example.rs ``` -Yep, as you can see, the above package structure is very standard and is widely used in many Rust projects. \ No newline at end of file +Yep, as you can see, the above package structure is very standard and is widely used in many Rust projects. + + +> You can find the solutions [here](https://github.com/sunface/rust-by-practice) (under the solutions path), but only use it when you need it :) \ No newline at end of file diff --git a/src/crate-module/module.md b/src/crate-module/module.md index f2addf1..f579b03 100644 --- a/src/crate-module/module.md +++ b/src/crate-module/module.md @@ -190,4 +190,6 @@ fn main() { assert_eq!(__, "sit down please"); assert_eq!(__,"yummy yummy!"); } -``` \ No newline at end of file +``` + +> You can find the solutions [here](https://github.com/sunface/rust-by-practice) (under the solutions path), but only use it when you need it :) \ No newline at end of file diff --git a/src/crate-module/use-pub.md b/src/crate-module/use-pub.md index 6b318bc..8c97aab 100644 --- a/src/crate-module/use-pub.md +++ b/src/crate-module/use-pub.md @@ -63,4 +63,7 @@ pub mod a { ``` ### Full Code -The full code of `hello-package` is [here](https://github.com/sunface/rust-by-practice/tree/master/practices/hello-package). \ No newline at end of file +The full code of `hello-package` is [here](https://github.com/sunface/rust-by-practice/tree/master/practices/hello-package). + + +> You can find the solutions [here](https://github.com/sunface/rust-by-practice) (under the solutions path), but only use it when you need it :) \ No newline at end of file