
Rust Error Multiple Versions of One Crate in the Graph
Two versions of the same crate in the graph are legal, and they produce confusing type errors when types cross the boundary. cargo tree shows who pulls which.
Tag
6 posts

Two versions of the same crate in the graph are legal, and they produce confusing type errors when types cross the boundary. cargo tree shows who pulls which.

A Cargo subcommand is a binary named cargo-something. The interesting parts are the argument Cargo passes, reading the workspace with cargo_metadata and installing it.

Cargo cannot find versions that satisfy every requirement in your tree. Read the message, find the conflict with cargo tree, and fix it by relaxing a requirement, updating a crate, or a patch.

Install the Rust toolchain with rustup, check that it works, pick a channel and create your first Cargo project, with the three problems that stop most first installs.

A guide to Cargo beyond cargo build: the manifest, dependency versions, features, workspaces, profiles, MSRV, publishing and the errors you will meet along the way.

A package has a Cargo.toml, a crate is one compilation unit, and a module is a namespace inside it. Learn how the three nest and what each one changes.