-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
serde_test
should be dev-dependency
#99
Comments
serde is an optional dependency, so how does one add a feature-specific dev-dependency? I tried [target.'cfg(feature="serde")'.dev-dependencies]
serde_test = "1.0" but cargo warns that it doesn't work as expected, and Is it the norm to require all features to build tests? (I've also asked about this in an r/rust questions thread, but since this isn't the only project with optional serde support you've opened an issue for, I guess you know.) |
Based on your comment on circular-queue I tried just doing [dev-dependencies]
serde_test = "1.0" but when I run
even though serde was not enabled. |
Hm, I tried to provide compilation of quick-xml which have only one required dependency, but |
If I'm not missing something, it is required only for tests, so it should be in the
[dev-dependencies]
sectionThe text was updated successfully, but these errors were encountered: