proc-macros used as build-depedencies and normal depedencies have features unified #15251
Labels
A-features2
Area: issues specifically related to the v2 feature resolver
A-proc-macro
Area: compiling proc-macros
C-bug
Category: bug
S-triage
Status: This issue is waiting on initial triage.
Problem
If a package depends on a crate both as a dev-depedency and a normal depedency, and that crate pass feature flags to a macro, the features flags for the macro will be unified.
When compiling the
app
package, thecommon
package will have the "foo" feature enabled in the build.rs script (as expected), but will not during the normal build (as expected), BUT themacros
package will have the "foo" feature enabled at both.This create an issue when the
macros
package expect thecommon
package to also have the feature enabled (to use some exported items for exemple).Steps
No response
Possible Solution(s)
No response
Notes
No response
Version
The text was updated successfully, but these errors were encountered: