You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
With the move of the Error Trait into core, the std flag is no longer needed. #100
Meanwhile, you could avoid breaking changes by keeping the std feature in the crate, but not apply any cfg attributes that depend on it. I actually use this strategy for all my no_std-by-default crates so that I can avoid a breaking change in the future if I need something from std.
Of course, waiting for Rust v.1.81 to mature is a fine strategy as well. With https://github.com/esp-rs/rust being the only active Rust fork I know also recently hitting 1.81, I would be very interested in hearing your opinion on why keeping the MRSV that low is useful!
@daviddrysdale With my Issue/PR now being almost a year old, maybe we could open this discussion again? :) With 1.90.0 hitting stable, do you think it would be worth it to reconsider? You could also consider just keeping the std feature but using core impl's anyway. Sure, this makes consuming the crate a bit confusing, but It won't break no_std environments this way :)
Activity
daviddrysdale commentedon Oct 21, 2024
Thanks!
The code change looks fine, but there would need to be some knock-on effects:
So we'll probably wait for a while before merging this PR.
juliankrieger commentedon Oct 21, 2024
There are a couple of strategies you could employ to release this earlier.
rust-1.81featurehttps://crates.io/crates/rustversionno_stdenvironmentscore::error,no_stddtolnay/thiserror#304 (comment))Meanwhile, you could avoid breaking changes by keeping the
stdfeature in the crate, but not apply anycfgattributes that depend on it. I actually use this strategy for all myno_std-by-default crates so that I can avoid a breaking change in the future if I need something fromstd.Of course, waiting for Rust v.1.81 to mature is a fine strategy as well. With
https://github.com/esp-rs/rustbeing the only active Rust fork I know also recently hitting 1.81, I would be very interested in hearing your opinion on why keeping the MRSV that low is useful!juliankrieger commentedon Sep 29, 2025
@daviddrysdale With my Issue/PR now being almost a year old, maybe we could open this discussion again? :) With 1.90.0 hitting stable, do you think it would be worth it to reconsider? You could also consider just keeping the
stdfeature but usingcoreimpl's anyway. Sure, this makes consuming the crate a bit confusing, but It won't breakno_stdenvironments this way :)daviddrysdale commentedon Jan 14, 2026
Fixed with #120