mirror of
https://github.com/rust-lang/book.git
synced 2026-05-18 00:52:02 -04:00
@@ -4,7 +4,7 @@ The first parts of the module system we’ll cover are packages and crates. A
|
||||
crate is a binary or library. The *crate root* is a source file that the Rust
|
||||
compiler starts from and makes up the root module of your crate (we’ll explain
|
||||
modules in depth in the [“Defining Modules to Control Scope and
|
||||
Privacy”][modules]<!-- ignore -->) section. A *package* is one or more crates
|
||||
Privacy”][modules]<!-- ignore --> section). A *package* is one or more crates
|
||||
that provide a set of functionality. A package contains a *Cargo.toml* file
|
||||
that describes how to build those crates.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user