How do I use external crates in Rust?
Since Rust 1.0, 99% of all users will use Cargo to manage the dependencies of a project. The TL;DR of the documentation is: Create a project using cargo new Edit the generated Cargo.toml file to add dependencies: [dependencies] old-http = “0.1.0-pre” Access the crate in your code: Rust 2021 and 2018 use old_http::SomeType; Rust 2015 … Read more