A study note of Rust language.
Official references:
- The Rust Programming Language
- Rust by Example
- The Rust Reference
- Rustlings
- The Cargo Book
- Edition Guide
- The Rustonomicon: Unsafe Rust Programing
- Async Book
- The Unstable Book
Other useful references:
- pretzelhammer/rust-blog
- rust-unofficial/too-many-lists
- rust-unofficial/patterns
- Possible Rust
- Rust Language Cheat Sheet
- rust-algorithms: Common data structures and algorithms in Rust
- The Little Book of Rust Macros
- The Rust Performance Book
- The Rust Machine Learning Book
- The Little Book of Rust Macros
│
├── Asynchronous Programming in Rust
│
├── Learn Rust With Entirely Too Many Linked Lists
│
├── Rust By Example
│
├── Rust Design Patterns
│
├── The Rust Programming Language
│
├── The Rust Reference
│
├── The Rustonomicon
│
├── sample_code
│ ├── tmll
│ │ ├── Cargo.toml
│ │ └── src
│ │ ├── first.rs
│ │ ├── second.rs
│ │ ├── third.rs
│ │ ├── fourth.rs
│ │ ├── fifth.rs
│ │ └── lib.rs
│ │
│ ├── trpl
│ │ ├── Cargo.toml
│ │ ├── bin
│ │ │ ├── blog.rs
│ │ │ ├── gui.rs
│ │ │ ├── hello_macro.rs
│ │ │ ├── minigrep.rs
│ │ │ └── web_server.rs
│ │ ├── src
│ │ │ ├── minigrep
│ │ │ │ ├── data.rs
│ │ │ │ └── func.rs
│ │ │ ├── blog.rs
│ │ │ ├── gui.rs
│ │ │ ├── hello_macro.rs
│ │ │ ├── lib.rs
│ │ │ ├── messenger.rs
│ │ │ ├── minigrep.rs
│ │ │ ├── oop_encapsulation.rs
│ │ │ └── web_server.rs
│ │ └── trpl_derive
│ │ ├── Cargo.toml
│ │ └── src
│ │ └── lib.rs
│ │
│ ├── Cargo.lock
│ └── Cargo.toml
│
├── README.md
└── target
Study notes/Book translation in Chinese.
- Asynchronous Programming in Rust
- Learn Rust With Entirely Too Many Linked Lists
- Rust By Example
- Rust Design Patterns
- The Rust Programming Language
- The Rustonomicon
- rust.json: VsCode Rust snippets
Examples from 'The Rust Programming Language'.
- minigrep: book TRPL chapter 12
- messenger: book TRPL chapter 15.5
- oop_encapsulation: book TRPL chapter 17.1
- gui: book TRPL chapter 17.2
- blog: book TRPL chapter 17.3
- hello_macro: book TRPL chapter 19.5
- web_server: book TRPL chapter 20
-
blog run:
cargo run -p trpl_example --bin blog
-
minigrep run:
cargo run -p trpl_example --bin minigrep -- the poem.txt
orCASE_INSENSITIVE=1 cargo run -p trpl_example --bin minigrep -- the poem.txt
-
minigrep test:
cargo test -p trpl -- tests_minigrep
-
gui run:
cargo run -p trpl_example --bin gui
-
hello_macro run:
cargo run -p trpl_example --bin hello_macro
-
web_server run:
cargo run -p trpl_example --bin web_server
Examples from 'Learn Rust With Entirely Too Many Linked Lists'.
-
first test:
cargo test -p tmll -- test_first
-
second test:
cargo test -p tmll -- test_second
-
third test:
cargo test -p tmll -- test_third
-
fourth test:
cargo test -p tmll -- test_fourth