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
Make library no_std and introduce std and unstable features
Remove all references to std from the library and introduce std and
unstable features which enable corresponding serde features.
In default build, std is enabled and nothing changes. However, if std
is disabled, the library becomes no_std. Downside of lack of std is
that Error enum no longer implements std::error;:Error. To remedy that,
unstable feature uses core::error::Error but requires a nightly compiler.
For the most part, this commit is mostly just replacing references to
std crate with core and alloc crates. On exception is std::error::Error
which is replaced by serde’s StdError such that Error enums implement
whatever trait serde uses. With std or unstable feature enabled it’s
just an alias to {std,core}::error::Error.
Issue: CosmWasm/cosmwasm#1484
Issue: #40
0 commit comments