Busca en todas las páginas de la documentación
10 pages in this section.
How Rust's privacy model, compilation units, and workspaces fit together - and the mental model for organizing code from a single file to a monorepo.
`mod`, files, and the module tree.
`pub`, `pub(crate)`, and encapsulation.
Imports, re-exports, and glob imports.
Binary vs. library crates and `Cargo.toml`.
Multi-crate repos and shared dependencies.
Optional functionality and conditional compilation.
Organizing binaries, libraries, and tests.
Cohesive, well-bounded crate design.