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

If optional dependency raises the requirements of other dependencies, the current approach may miss the problem #6

Open
taiki-e opened this issue Feb 12, 2022 · 0 comments
Labels
bug Something isn't working enhancement New feature or request

Comments

@taiki-e
Copy link
Owner

taiki-e commented Feb 12, 2022

See tokio-rs/tracing#2015 (comment) for details.

@taiki-e taiki-e added bug Something isn't working enhancement New feature or request labels Feb 12, 2022
dburgener added a commit to dburgener/quick-xml that referenced this issue Feb 23, 2023
The 2.0 family of memchr doesn't build in this crate.  This is hard to
see using cargo minimal-versions because tokio depends on memchr 2.2,
which raises the dependency using minimal-versions even when tokio is
disabled.  This is a known issue with cargo-minimal-versions:

taiki-e/cargo-minimal-versions#6

So everything looks fine from the perspective of this crate, but
consumers who use quick_xml without the optional features that enable
the tokio dependency have a minimal version down to 2.0, which breaks.

To reproduce in this crate, I commented out the tokio and async_tokio
lines in Cargo.toml and ran cargo minimal-versions, which produces the
errors, and emulates the conditions an external user might experience.
Mingun pushed a commit to tafia/quick-xml that referenced this issue Feb 24, 2023
The 2.0 family of memchr doesn't build in this crate.  This is hard to
see using cargo minimal-versions because tokio depends on memchr 2.2,
which raises the dependency using minimal-versions even when tokio is
disabled.  This is a known issue with cargo-minimal-versions:

taiki-e/cargo-minimal-versions#6

So everything looks fine from the perspective of this crate, but
consumers who use quick_xml without the optional features that enable
the tokio dependency have a minimal version down to 2.0, which breaks.

To reproduce in this crate, I commented out the tokio and async_tokio
lines in Cargo.toml and ran cargo minimal-versions, which produces the
errors, and emulates the conditions an external user might experience.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant