2

Fix dep/feat syntax with hidden implicit optional dependencies by ehuss · Pull R...

 11 months ago
source link: https://github.com/rust-lang/cargo/pull/12130
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Conversation

Contributor

This fixes an issue with dep/feat syntax in the [features] table where it wouldn't work if the optional dependency had its implicit feature removed via the dep: syntax.

The problem is that both resolvers were expecting that dep/feat would be able to activate a feature named "dep". But if that implicit feature wasn't created, then it would fail with an error.

This was just an oversight (which probably happened in #9574).

Fixes #10788


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK