-
Book Overview & Buying
-
Table Of Contents
Rust for C++ Developers
By :
Beyond its safety guarantees, one of Rust's primary strengths is a large, centralized repository of community-contributed crates accessible directly from Cargo. In this section, we'll learn how to locate interesting dependencies and import them into our projects with Cargo.
Crates contributed by the Rust community are indexed by a registry, with the default Rust registry residing at https://crates.io/. Whereas in C++ our dependencies could be scattered across tens of websites and use many different configurations, in Rust, this central registry hosts thousands of different crates, each of which can be imported into our project with a few simple commands.
Of course, we wouldn't want to import just any of them. We must locate a set of crates that meet our specific criteria around licensing, maturity, and functionality. Searching for the crates that meet our needs can be accomplished on the crates...