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
Macro is unusable without declaring your own feature flags #3
Comments
The The idea here is that the However, this seems to cause confusion, so I'm going to change this behavior in the near feature. |
The point is that the macro emits those cfgs into my code, so it'll look for feature flags in my crate. It works in debug mode if I add [features]
default = ["debug"]
debug = []
[dependencies]
debug-plotter = { version = "0.2.1" } to my crate's [features]
default = ["debug", "plot-release"]
debug = []
plot-release = []
[dependencies]
debug-plotter = { version = "0.2.1" } to it. It does not work with just The problem is that the conditional compilation attributes are used/set inside the macro. |
Oh sorry I misunderstood the issue in this case. I just updated the code to avoid these features and instead use the |
Currently,
is emitted from the macro, meaning that the crate that uses it has to define/activate these features rather than
debug-plotter
itself.I think this might also relate to #2, as I've seen the same "unused variable" message in rust-analyzer until I added
plot-release
anddebug
as feature flags to my crate instead.The text was updated successfully, but these errors were encountered: