June 2021
Beginner
344 pages
8h 9m
English
Cargo can install dependencies for you. There’s an ever-growing number of “crates” (Rust’s name for packages) available for free on the crates.io system.[17] Cargo makes it easy to install and use these crates, as well as to publish your own.
You can search available crates by typing cargo search [search term] or visiting the crates website. For example, searching for bracket-terminal produces the following:
| => | cargo search bracket-terminal |
| <= | bracket-terminal = "0.7.0" # ASCII/Codepage 437 terminal emulator with a |
| | game loop. Defaults to OpenGL, also support |
| | Amethyst,… |
Searching also searches crates’ descriptions. For example, if you find yourself needing a “slot map”—a few crates appear to offer one:
Read now
Unlock full access