Read a Cargo.toml: what each version constraint really accepts, which features are implicit, and which dependencies inherit from the workspace.
Waiting for a Cargo.toml
Nothing is uploaded. Paste the file, or load an example.
A bare version string in Cargo is a caret range, not a pin: "1.0.200" means >=1.0.200, <2.0.0. That is the single most misread line in a Rust manifest, so each dependency here is labelled by what the resolver may do with it rather than by how the constraint looks.
Paste a Cargo.toml to see what it declares and how far each dependency can move.
This reads the manifest, not the lock file. It does not resolve the graph, so it cannot say which version Cargo would choose, and it cannot show the effect of feature unification — that depends on every other crate in the build. Where a dependency uses workspace = true the real constraint lives in the workspace root, and it is reported as inherited rather than guessed.
Cargo.toml Inspector runs entirely on your device — your manifest is parsed in your browser and nothing is sent to crates.io
You’re on the Free plan. Compare plans
A bare version string in Cargo is a caret range. serde = "1.0.200" accepts 1.9.0, which is the single most misread line in a Rust manifest — it looks like an exact pin and permits every compatible release above it. Each dependency here is labelled by what the resolver may do with it rather than by how the text reads.
Features unify across the whole dependency graph, which makes default-features = false a statement of intent rather than a guarantee. If anything else in the build wants a crate's default features, they are enabled for every copy of that crate including yours. An optional dependency also creates an implicit feature of the same name unless some feature refers to it as dep:name, and that implicit feature is public API.
Workspace inheritance is reported rather than guessed at. Where a dependency uses workspace = true the real constraint lives in the workspace root, which is not in this file — so it is shown as inherited instead of being given a version it does not have here.
No. It is shorthand for ^1.2.3, which accepts anything from 1.2.3 up to but not including 2.0.0. To pin exactly, write =1.2.3 — and note that the lock file, not the manifest, is what makes a build reproducible.
Because features unify across the graph. Your crate asking for no default features does not stop another crate in the same build asking for them, and the union is what gets compiled. The setting expresses what you need, not what you will get.
Marking a dependency optional creates a feature with the same name, unless a feature activates it as dep:name. That feature is part of your public API, so removing the optional dependency later is a breaking change for anyone who enabled it.
Because they use workspace = true, and the version is declared in the workspace root rather than here. Guessing a value would be worse than reporting the inheritance honestly.
No. This reads the manifest. The lock file is what records the resolved versions, and cargo tree in the project shows the graph including feature unification.
If a tool here saved you some time, you can put something towards the hosting.Buy me a coffee, on Ko-fi, opens in a new tab