Skip to content
CodeWiki
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
Search
⌘K
English
English
Chinese
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
English
English
Chinese
Practice
/
Quiz
/
Rust
/
Modules and crates
Which statement correctly distinguishes a Cargo package, a crate, and a module?
from Modules and crates
Rust 1.98
beginner
1 min
Which statement correctly distinguishes a Cargo package, a crate, and a module?
A package is described by Cargo.toml, a crate is one compilation unit, and modules organize names inside a crate.
Every Rust source file is a separate package and crate.
A package may contain only one binary crate and any number of library crates.
Modules are Cargo targets, while crates are only filesystem directories.
Check
Ask AI about this kata
Report an error
previous kata
A package named store-domain has src/lib.rs and src/main.rs. From main.rs, how should the…
Quiz
next kata
What does this program print?
Predict the output
A new version is available
Reload