Skip to content

Conversation

@waywardmonkeys
Copy link
Collaborator

No description provided.

@waywardmonkeys
Copy link
Collaborator Author

For this to work, we'd need a semver bump for core:error::Error, but that's coming when we use color.

I'm also not sure how generally useful this feature would be, so feedback is welcome.

@waywardmonkeys waywardmonkeys force-pushed the support-no_std branch 2 times, most recently from 0688cd2 to 5efb018 Compare December 27, 2024 17:33
Copy link
Member

@tomcur tomcur left a 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.

@waywardmonkeys
Copy link
Collaborator Author

Yeah, I am inclined to do a 0.15.3 with roughly the current state of main and then 0.16 with color and no_std.

Copy link
Member

@DJMcNab DJMcNab left a 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.

# 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
Copy link
Member

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)

This increases the MSRV to 1.81 for `core::error`.
Copy link
Collaborator

@nicoburns nicoburns left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like it's mostly s/std/core/ and s/std/alloc. And we already have sufficient MSRV now.

@nicoburns nicoburns added this pull request to the merge queue Oct 26, 2025
Merged via the queue into linebender:main with commit 83199c5 Oct 26, 2025
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants