We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9d7047d commit ecf26daCopy full SHA for ecf26da
crates/rlp/Cargo.toml
@@ -36,6 +36,9 @@ derive = ["dep:alloy-rlp-derive"]
36
# Enables `core::net::` implementations always instead of conditionally through `std`.
37
# Requires Rust 1.77 or newer.
38
core-net = []
39
+# Enables `core::error::Error` implementations always instead of conditionally through `std`.
40
+# Requires Rust 1.81 or newer.
41
+core-error = []
42
43
arrayvec = ["dep:arrayvec"]
44
crates/rlp/src/error.rs
@@ -33,6 +33,8 @@ pub enum Error {
33
Custom(&'static str),
34
}
35
+#[cfg(all(feature = "core-net", not(feature = "std")))]
+impl core::error::Error for Error {}
#[cfg(feature = "std")]
impl std::error::Error for Error {}
0 commit comments