diff --git a/Cargo.toml b/Cargo.toml index df17afe..2c13cca 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -12,7 +12,6 @@ categories = ["cryptography"] [features] default = [] # `std` feature enables an `Error` impl for `CoseError` -std = [] [dependencies] ciborium = { version = "^0.2.1", default-features = false } diff --git a/README.md b/README.md index 5fb69b6..ea0de90 100644 --- a/README.md +++ b/README.md @@ -13,9 +13,6 @@ example](examples/signature.rs) for documentation on how to use the code. **This repo is under construction** and so details of the API and the code may change without warning. -## Features - -The `std` feature of the crate enables an implementation of `std::error::Error` for `CoseError`. ## `no_std` Support diff --git a/src/common/mod.rs b/src/common/mod.rs index 629b076..2144c42 100644 --- a/src/common/mod.rs +++ b/src/common/mod.rs @@ -95,8 +95,7 @@ impl core::fmt::Display for CoseError { } } -#[cfg(feature = "std")] -impl std::error::Error for CoseError {} +impl core::error::Error for CoseError {} impl CoseError { fn fmt_msg(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {