-
Notifications
You must be signed in to change notification settings - Fork 17
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
Support no_std
#39
base: main
Are you sure you want to change the base?
Support no_std
#39
Conversation
For this to work, we'd need a semver bump for I'm also not sure how generally useful this feature would be, so feedback is welcome. |
0688cd2
to
5efb018
Compare
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.
Perhaps this is important for someone. The only real downside is the big jump in MSRV and the semver bump, so perhaps it should just be delayed until color is ready to go in as well, allowing one more patch release just prior.
Yeah, I am inclined to do a 0.15.3 with roughly the current state of |
5efb018
to
afb19df
Compare
This increases the MSRV to 1.81 for `core::error`.
afb19df
to
2c630c2
Compare
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.
One possible tweak with how no_std is set, but otherwise looks good.
@@ -39,6 +41,10 @@ env: | |||
# The MSRV jobs run only cargo check because different clippy versions can disagree on goals and | |||
# running tests introduces dev dependencies which may require a higher MSRV than the bare package. | |||
# | |||
# For no_std checks we target x86_64-unknown-none, because this target doesn't support std |
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.
(there are reasonable arguments to use wasm32v1-none
at some point, but not for this PR - IIRC, it was only stabilised in 1.84. Cc @xStrom)
@@ -51,11 +51,14 @@ | |||
None. | |||
*/ | |||
|
|||
#![cfg_attr(all(not(feature = "std"), not(test)), no_std)] |
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 think the pattern in linebender/xilem#877 is better, because of the interaction with the implicit prelude.
I will admit that I'm a little bit surprised we don't get any unused_qualification
warnings as-is, but maybe they don't apply to use items.
No description provided.