-
Notifications
You must be signed in to change notification settings - Fork 211
build(vm): remove thiserror form deps #1279
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
Conversation
Codecov Report
@@ Coverage Diff @@
## main #1279 +/- ##
=======================================
Coverage 97.56% 97.56%
=======================================
Files 90 90
Lines 36260 36260
=======================================
Hits 35377 35377
Misses 883 883
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
fmoletta
left a comment
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.
Thanks!
MegaRedHand
left a comment
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.
🚀 🚀
Oppen
left a comment
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.
Looks great, thanks @tdelabro!
IMO it's ready to merge, but please move the changelog entry up as @MegaRedHand pointed out. If you have time, could you also check my question in the other comment? Not a blocker, it's mostly curiosity.
| "parse-hyperlinks/std", | ||
| "felt/std", | ||
| "dep:num-prime", | ||
| "thiserror-no-std/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.
All of this makes me wonder, do we actually use anything that requires the std feature on thiserror? Did you try building without it?
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.
Yes.
The std version of thiserror generate the following line (which is not generated in no_std):
impl std::error::Error for <MyErrorType> {}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.
In the future rust will move the Error trait in core tho
3e350ef to
36a73d2
Compare
Remove dep to thiserror
Description
Rather than alternating between thiserror and thiserror-no-std depending on the feature "std", we can use thiserror-no-std/std.
Checklist