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
The main reason for why we are not using this currently is that thiserror requires std. Would would be the strategy for handling no-std context if we do switch to thiserror?
We can't do thiserror for no_std crates unfortunately. I believe the next best alternative is to use displaydoc (as explained in this thiserror thread).
For the future: thiserror will support no_std when std::error::Error is moved to core. nightly supports this with the feature flag #![feature(error_in_core)], and here is the tracking issue to stabilize the feature.
thiserror
craterelated: 0xPolygonMiden/miden-node#62
The text was updated successfully, but these errors were encountered: