原书出处
Effective Rust 35 Specific Ways to Improve Your Rust Code (David Drysdale)
4 Chapter 4. Dependencies Item 24: Re-export dependencies whose types appear in your API
inary that uses the
rand crate—more specifically, one that uses some 0.8 version of the crate: # Cargo.toml file for a top-level binary crate. [dependencies] # The binary depends on the `rand` crate from crates.io rand = "=0.8.5" # It also depends on some other crate (`dep-lib`). dep-lib = "0.1.0" // Source code: let mut rng = rand::thread_rng(); // rand 0.8 let max: usize = rn
g.gen_range(5..10);
原书定位详情
来源:a19c7933-4eda-4176-aebd-30fe7e1ad292
正文位置:extracted/Effective Rust 35 Specific Ways to Improve Your Rust Code (David Drysdale)/_epub-src/OEBPS/ch04.html#file_re-export_md
EPUB SHA-256:523496927c4fd2d3fc11c9b81ad96b76201e66d746b6ac29d71d61d3517181c1