3 ms·
When I first looked at Rust, I recall being very confused about the distinctions between crate, package, module, and library. It seemed like an area which could
by theavocado 12y ago
When I first looked at Rust, I recall being very confused about the distinctions between crate, package, module, and library. It seemed like an area which could use some simplification.
- steveklabnik 12y ago"Package" and "library" are two words that mean the same thing. They're more generic terms for "crate," which is Rust specific. "module"s are ways of splitting up your code inside a crate: one crate has many modules, and each module belongs to one crate.
- theavocado 12y agoThanks, Steve! Have not yet had a chance to go through the new guide, but looking forward to it!
- steveklabnik 12y agoAny time. There'll be a full guide to the module system when I get some time...