Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with anstream optional dependency #312

Closed
vantessel opened this issue Feb 18, 2024 · 1 comment
Closed

Issue with anstream optional dependency #312

vantessel opened this issue Feb 18, 2024 · 1 comment

Comments

@vantessel
Copy link

Running cargo add log env_logger in a fresh crate gives me this error:

error: failed to select a version for `env_logger`.
    ... required by package `testlog v0.1.0`
versions that meet the requirements `^0.11.2` are: 0.11.2

the package `testlog` depends on `env_logger`, with features: `anstream` but `env_logger` does not have these features.
 It has an optional dependency with that name, but that dependency uses the "dep:" syntax in the features table, so it does not have an implicit feature with that name.


failed to select a version for `env_logger` which could resolve this conflict

It works fine with version 0.10.2

@epage
Copy link
Contributor

epage commented Feb 19, 2024

FYI v0.11's MSRV is 1.71 so we could rely on a fix in cargo related to feature declarations. Unfortunately, cargo reports the error before checking the MSRV.

This previously came up in #304.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants