-
Notifications
You must be signed in to change notification settings - Fork 211
Please reconsider RUSTFLAGS for setting the backend #658
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
Comments
The main reason we don't "just" use crate features for selecting the backend is twofold:
Combined, these limitations made it very difficult to use Cargo features for backend selection in
While this is documented behavior of |
I am in agreement with @josephlr here. While I agree that compilation flags in Rust are unfortunately unintuitive and somewhat error-prone, but it's the most fitting tool we have right now for the reason stated above. Hopefully, one dat we will get declarative crate configuration flags (a.k.a mutually exclusive or global features, e.g. see this proposal), but until then we are likely to continue to rely on configuration flags. And we certainly will not change it in a v0.3 release since it would be a breaking change. |
FYI, Bevy is very reluctant to upgrade to the latest version because of the new difficulties here. See bevyengine/bevy#18047 for more discussion. If there's anything we can do, or specific feedback we can offer, please get in touch :) |
Thanks for the heads up @alice-i-cecile I'll comment on that issue. |
I ran into issues with this because I had
RUSTFLAGS
set via env and it overwrites the ones set in theconfig.toml
target. That makes for some very non-intuitive errors.Why isn't this just controlled via features?
The text was updated successfully, but these errors were encountered: