Rust Book, Chapter 7: Packages, Crates, and Modules

The way Rust organizes code can be tricky for Scala developers. The concepts do not map one-to-one. Further confusing matters, Rust packages are not the closest thing to Scala packages. There are loose translations to Scala to help us get our bearings. Packages and crates # In Rust, a crate is the unit of compilation. It&rsquo;s either a binary crate or a library crate. The binary artifact is…