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
Use a nightly
feature flag instead of stable
#567
Comments
So my experience from doing a quick implementation of this is:
|
Hmm I guess the correct option is to fully feature gate all doc-test's. But then, as you said before leptos is currently developed with the idea that I've looked at
And
I'll try and see if I can swap this out with |
Yeah, this didn't work. I eventually made it work with |
Has this been fixed? It is set to 0.3.0 milestone. |
Copying and pasting from my reply to this question on Discord: "I released 0.3.0 rather than waiting longer and longer to pack in additional breaking changes. I have pretty limited time that’s largely taken up by support, so haven’t gone in and updated that tag." Updated now. |
We had some good discussion on the leptos discord about the current
stable
feature flag. I'll try to reproduce the conversation here.Problem
Let's say you have this dependency graph:
Because features are additive and
foo
usedstable
, the whole build tree now builds asstable
. Ifbar
used nighly features in it's code, now the build fails.The key is in this line of the cargo book:
Currently this is not the case since enabling the
stable
feature flag actually disables functionality.Possible Solution
Remove
stable
and introduce a feature flag callednightly
that is on by default and switch all conditional compilation from#[cfg(not(feature = "stable"))]
to#[cfg(feature = "nightly")]
This is a breaking change since everybody that either uses
stable
or has disabled default features has to change theirCargo.toml
in order to keep using nightly features.The text was updated successfully, but these errors were encountered: