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.