Crates.io | rust_book_code |
lib.rs | rust_book_code |
version | 0.2.1 |
source | src |
created_at | 2022-12-31 06:06:43.988009 |
updated_at | 2023-10-31 05:41:51.931637 |
description | The code of rust book |
homepage | |
repository | https://github.com/XuGuangnian/rust-book-code |
max_upload_size | |
id | 748258 |
size | 92,741 |
After
reading Modules
and Cargo Workspaces, use mod
and workspace
to
manage the Rust book code for future review.
Book:
https://doc.rust-lang.org/stable/book/
中文翻译:
rust-book-code is the cargo workspace root directory, rust_book_code
is the book code to start.
cargo run --bin rust_book_code
If you want to use the code in Chapter 10, comment all chx() except ch10() in main function of rust_book_code package.