We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Problem
Similar to #1474, I'm seeing a situation where doc-tests do not observe a specified dev-dependency.
Steps
#[cfg(feature = "libc")] pub struct Exists; /// ``` /// use banana::Exists; /// ``` pub struct Another;
[package] name = "banana" version = "0.1.0" edition = "2018" [dependencies] libc = { version = "0.2", optional = true } [dev-dependencies] libc = "0.2"
and then cargo test.
cargo test
Possible Solution(s)
🤷 This works correctly for regular tests. No, that doesn't work either :( Not sure why I thought this is a regression, or a difference in behaviour.
Notes
Output of cargo version: 1.52.0
cargo version
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Problem
Similar to #1474, I'm seeing a situation where doc-tests do not observe a specified dev-dependency.
Steps
and then
cargo test
.Possible Solution(s)
🤷 This works correctly for regular tests.No, that doesn't work either :( Not sure why I thought this is a regression, or a difference in behaviour.Notes
Output of
cargo version
: 1.52.0The text was updated successfully, but these errors were encountered: