mirror of
https://github.com/theoludwig/rust_book.git
synced 2024-12-08 00:45:41 +01:00
docs: add README for every chapters
This commit is contained in:
parent
681fd0c0c9
commit
4716b4edb3
@ -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/)
|
- [Website](https://www.rust-lang.org/)
|
||||||
- Local Documentation: `rustup doc`
|
- Local Documentation: `rustup doc`
|
||||||
- Rust version used: v1.74.0 (`rustc --version`)
|
- Rust version used: v1.75.0 (`rustc --version`)
|
||||||
|
|
||||||
## Summary
|
## 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)
|
11. [Testing](./chapter_11_testing)
|
||||||
12. [An I/O Project: Building a Command Line Program: `minigrep`](./chapter_12_minigrep)
|
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)
|
13. [Functional Language Features: Iterators and Closures](./chapter_13_iterators_and_closures)
|
||||||
|
14. [More About Cargo and Crates.io](./chapter_14_cargo_and_crates)
|
||||||
|
1
chapter_10_generics_traits_lifetimes/README.md
Normal file
1
chapter_10_generics_traits_lifetimes/README.md
Normal file
@ -0,0 +1 @@
|
|||||||
|
# 10. Generic Types, Traits, and Lifetimes
|
@ -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.
|
Command line tool that interacts with file and command line input/output to practice some of the Rust concepts we've learned so far.
|
||||||
|
|
||||||
|
1
chapter_13_iterators_and_closures/README.md
Normal file
1
chapter_13_iterators_and_closures/README.md
Normal file
@ -0,0 +1 @@
|
|||||||
|
# 13. Functional Language Features: Iterators and Closures
|
24
chapter_14_cargo_and_crates/README.md
Normal file
24
chapter_14_cargo_and_crates/README.md
Normal 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 community’s package registry.
|
1
chapter_2_guessing_game/README.md
Normal file
1
chapter_2_guessing_game/README.md
Normal file
@ -0,0 +1 @@
|
|||||||
|
# 2. Programming a Guessing Game
|
1
chapter_3_common_concepts/README.md
Normal file
1
chapter_3_common_concepts/README.md
Normal file
@ -0,0 +1 @@
|
|||||||
|
# 3. Common Programming Concepts
|
1
chapter_4_ownership/README.md
Normal file
1
chapter_4_ownership/README.md
Normal file
@ -0,0 +1 @@
|
|||||||
|
# 4. Understanding Ownership
|
1
chapter_5_structs/README.md
Normal file
1
chapter_5_structs/README.md
Normal file
@ -0,0 +1 @@
|
|||||||
|
# 5. Using Structs to Structure Related Data
|
1
chapter_6_enums/README.md
Normal file
1
chapter_6_enums/README.md
Normal file
@ -0,0 +1 @@
|
|||||||
|
# 6. Enums and Pattern Matching
|
1
chapter_8_common_collections/README.md
Normal file
1
chapter_8_common_collections/README.md
Normal file
@ -0,0 +1 @@
|
|||||||
|
# 8. Common Collections
|
1
chapter_9_error_handling/README.md
Normal file
1
chapter_9_error_handling/README.md
Normal file
@ -0,0 +1 @@
|
|||||||
|
# 9. Error Handling
|
Loading…
Reference in New Issue
Block a user