Skip to content

Regression in cargo 1.26.0-nightly 2018-04-04: [target.'cfg(FLAG)'.dependencies] does not work anymore #5313

@PaulGrandperrin

Description

@PaulGrandperrin

The new revision of cargo included in rust nightly has a regression.

cargo 1.26.0-nightly (b70ab13b3 2018-04-04)
release: 1.26.0
commit-hash: b70ab13b31628e91b05961d55c07abf20ad49de6
commit-date: 2018-04-04

My crate honggfuzz-rs is tested on travis daily and today the compilation failed even though there wasn't any commit:
https://travis-ci.org/rust-fuzz/honggfuzz-rs/builds/363265565

I suspect the regression comes from this line in my cargo.toml:

[target.'cfg(fuzzing_debug)'.dependencies]
memmap = "0.6"

Code including memmap is only compiled when building with --cfg fuzzing_debug and until now, this crate was accordingly also only included when building with this flag.

It seems that this dependency is not understood anymore on the latest nightly.

I guess very few people/crates will be affected by this change/regression. For the record, I just want to state that I really don't care if it is decided that this functionality is not supported anymore.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions