Skip to content

Commit

Permalink
chore: add no_std flag to cargo
Browse files Browse the repository at this point in the history
  • Loading branch information
S0c5 committed Jul 22, 2024
1 parent d692ff1 commit 60f37be
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions sube/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ http = ["dep:jsonrpc", "surf/h1-client-rustls"]
http-web = ["dep:jsonrpc", "dep:wasm-bindgen", "surf/wasm-client"]
json = ["scales/json"]
std = []
no_std = []

v14 = ["dep:scale-info", "frame-metadata/current"]
ws = ["dep:async-mutex", "dep:async-std", "dep:ewebsock", "dep:futures-channel", "dep:futures-util", "dep:jsonrpc", "async-std/unstable"]
Expand Down
2 changes: 1 addition & 1 deletion sube/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -502,5 +502,5 @@ impl fmt::Display for Error {
#[cfg(feature = "std")]
impl std::error::Error for Error {}

#[cfg(not(feature = "std"))]
#[cfg(feature = "no_std")]
impl core::error::Error for Error {}

0 comments on commit 60f37be

Please sign in to comment.