Skip to content

cargo verify-project returns incorrect results when using unstable features #6209

@pietroalbini

Description

@pietroalbini

cargo verify-project returns a positive response if a crate is using unstable features on the stable toolchain, even if every other cargo command returns an error.

$ cargo read-manifest
error: failed to parse manifest at `/.../Cargo.toml`

Caused by:
  the cargo feature `test-dummy-unstable` requires a nightly version of Cargo, but this is the `stable` channel

$ cargo verify-project
{"success":"true"}
Sample Cargo.toml
cargo-features = ["test-dummy-unstable"]

[package]
name = "foo"
version = "0.1.0"
authors = ["Pietro Albini <[email protected]>"]

[dependencies]

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions