1
1
mirror of https://github.com/theoludwig/rust_book.git synced 2024-07-17 08:30:11 +02:00

docs: add README for every chapters

This commit is contained in:
Théo LUDWIG 2024-02-08 11:21:23 +01:00
parent 681fd0c0c9
commit 4716b4edb3
Signed by: theoludwig
GPG Key ID: ADFE5A563D718F3B
12 changed files with 36 additions and 2 deletions

View File

@ -14,7 +14,7 @@ Rust keeps track of who can read and write to memory. It knows when the program
- [Website](https://www.rust-lang.org/)
- Local Documentation: `rustup doc`
- Rust version used: v1.74.0 (`rustc --version`)
- Rust version used: v1.75.0 (`rustc --version`)
## Summary
@ -31,3 +31,4 @@ Rust keeps track of who can read and write to memory. It knows when the program
11. [Testing](./chapter_11_testing)
12. [An I/O Project: Building a Command Line Program: `minigrep`](./chapter_12_minigrep)
13. [Functional Language Features: Iterators and Closures](./chapter_13_iterators_and_closures)
14. [More About Cargo and Crates.io](./chapter_14_cargo_and_crates)

View File

@ -0,0 +1 @@
# 10. Generic Types, Traits, and Lifetimes

View File

@ -1,4 +1,4 @@
# An I/O Project: Building a Command Line Program: `minigrep`
# 12. An I/O Project: Building a Command Line Program: `minigrep`
Command line tool that interacts with file and command line input/output to practice some of the Rust concepts we've learned so far.

View File

@ -0,0 +1 @@
# 13. Functional Language Features: Iterators and Closures

View File

@ -0,0 +1,24 @@
# 14. More About Cargo and Crates.io
## Customizing Builds with Release Profiles
=> Release profiles are predefined and customizable profiles with different configurations that allow a programmer to have more control over various options for compiling code.
Cargo has 2 main profiles:
- `dev`: for development (used by default with `cargo build`)
- `release`: for release (used with `cargo build --release`)
We can customize the `release` profile by adding a section to the `Cargo.toml` file:
```toml
[profile.dev]
opt-level = 0
[profile.release]
opt-level = 3
```
## Publishing a Crate to Crates.io
Packages can be published to [crates.io](https://crates.io/), the Rust communitys package registry.

View File

@ -0,0 +1 @@
# 2. Programming a Guessing Game

View File

@ -0,0 +1 @@
# 3. Common Programming Concepts

View File

@ -0,0 +1 @@
# 4. Understanding Ownership

View File

@ -0,0 +1 @@
# 5. Using Structs to Structure Related Data

View File

@ -0,0 +1 @@
# 6. Enums and Pattern Matching

View File

@ -0,0 +1 @@
# 8. Common Collections

View File

@ -0,0 +1 @@
# 9. Error Handling