-
Notifications
You must be signed in to change notification settings - Fork 27
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
Replace the "no-std" feature with a "std" feature #114
Conversation
Negative feature names are rejected by Clippy: they cause confusion when several crates depend on the same crate but with different sets of features. The default set of features is changed but anyone who specifies "--no-default-features" or "default-features = false" will need to change what features they specify, so this is an incompatible change. Signed-off-by: Edmund Grimley Evans <edmund.grimley-evans@arm.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm happy to remove the last commit from my PR if this one is merged first. |
5811849
to
82b3425
Compare
0958c82
to
5a5a3db
Compare
Signed-off-by: Edmund Grimley Evans <edmund.grimley-evans@arm.com>
b6194e3
to
23a8864
Compare
Summary: I have proposed three ways of getting the CI tests to pass:
The first way seems bad because we want to keep things working with the old toolchain. I quite like the third one because it doesn't unnecessarily affect users of the crate with a recent toolchain, but perhaps it increases the maintenance burden. Which shall we use? Or is there a fourth way? |
Thanks for the patch @egrimley-arm. :) @ionut-arm what do you think? |
If building with older toolchain is a requirement, it should be committed to with the definition of an MSRV (not present on any of the 3 listed commits). This would need to go with the restriction imposed on This restriction could be mitigated by (optionally) depending on multiple version of
(see https://slint.dev/blog/rust-adding-default-cargo-feature) Keeping I'd also highly recommend to use |
That sounds like a good idea. I've just made a separate PR for that: #116. |
I'm against the @gowthamsk-arm - was there a strong reason to keep the MSRV at 1.58? |
23a8864
to
b6194e3
Compare
I have reverted this PR back to the second version, the one that modifies |
One of the distributions that Parsec is packaged for has 1.58 as the minimum RUST version so we had to set it as MSRV. |
Since this PR sets the dependencies' version range, should'nt it also include:
i.e. what's in #116 |
As I see it, this PR is mostly about replacing |
Negative feature names are rejected by Clippy: they cause confusion when several crates depend on the same crate but with different sets of features.
The default set of features is changed but anyone who specifies
--no-default-features
ordefault-features = false
will need to change what features they specify, so this is an incompatible change.Also update toolchain from 1.58.1 to 1.60.0 in
.github/workflows/ci.yml
asregex-syntax
v0.7.2 requiresrustc
1.60.0 or newer.