Skip to content

Provide better way for API users to deal with unstable features #6113

@dpc

Description

@dpc

I'm trying Rust Edition 2018 RC1 on my project and part of it was removing cargo-features = ["edition"] line. Most tools works correctly, but both cargo-outdated and my own project that uses cargo as a library stopped working and print:

error: failed to parse manifest at `/home/dpc/lab/crev/crev-common/Cargo.toml`
caused by: editions are unstable
caused by: feature `edition` is required

or similar when opening workspace:

cargo::core::Workspace::new(&self.manifest_path, &self.config)?;

It looks like for whatever reason they didn't get the memo that cargo-features = ["edition"] is not required anymore.

It's a bit surprising since cargo on beta channel works just fine. Do I have to configure something in https://docs.rs/cargo/0.30.0/cargo/util/config/struct.Config.html ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-cargo-apiArea: cargo-the-library API and internal code issuesC-feature-requestCategory: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`S-needs-designStatus: Needs someone to work further on the design for the feature or fix. NOT YET accepted.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions