diff --git a/block-padding/Cargo.toml b/block-padding/Cargo.toml index 20afeea8..8684e056 100644 --- a/block-padding/Cargo.toml +++ b/block-padding/Cargo.toml @@ -14,10 +14,3 @@ readme = "README.md" [dependencies] hybrid-array = "0.2.0-rc.10" - -[features] -std = [] - -[package.metadata.docs.rs] -all-features = true -rustdoc-args = ["--cfg", "docsrs"] diff --git a/block-padding/src/lib.rs b/block-padding/src/lib.rs index 28aa4775..b0e16ef9 100644 --- a/block-padding/src/lib.rs +++ b/block-padding/src/lib.rs @@ -8,12 +8,8 @@ html_logo_url = "https://raw.githubusercontent.com/RustCrypto/media/6ee8e381/logo.svg", html_favicon_url = "https://raw.githubusercontent.com/RustCrypto/media/6ee8e381/logo.svg" )] -#![cfg_attr(docsrs, feature(doc_cfg))] #![warn(missing_docs, rust_2018_idioms)] -#[cfg(feature = "std")] -extern crate std; - pub use hybrid_array as array; use core::fmt; @@ -399,6 +395,4 @@ impl fmt::Display for UnpadError { } } -#[cfg(feature = "std")] -#[cfg_attr(docsrs, doc(cfg(feature = "std")))] -impl std::error::Error for UnpadError {} +impl core::error::Error for UnpadError {} diff --git a/inout/Cargo.toml b/inout/Cargo.toml index ac61e812..f2dc2ca1 100644 --- a/inout/Cargo.toml +++ b/inout/Cargo.toml @@ -14,10 +14,3 @@ readme = "README.md" [dependencies] block-padding = { version = "0.4.0-rc.0", path = "../block-padding", optional = true } hybrid-array = "0.2.0-rc.10" - -[features] -std = ["block-padding/std"] - -[package.metadata.docs.rs] -all-features = true -rustdoc-args = ["--cfg", "docsrs"] diff --git a/inout/src/errors.rs b/inout/src/errors.rs index be61a780..ecbf265c 100644 --- a/inout/src/errors.rs +++ b/inout/src/errors.rs @@ -10,9 +10,7 @@ impl fmt::Display for IntoArrayError { } } -#[cfg(feature = "std")] -#[cfg_attr(docsrs, doc(cfg(feature = "std")))] -impl std::error::Error for IntoArrayError {} +impl core::error::Error for IntoArrayError {} /// The error returned when input and output slices have different length /// and thus can not be converted to `InOutBuf`. @@ -25,9 +23,7 @@ impl fmt::Display for NotEqualError { } } -#[cfg(feature = "std")] -#[cfg_attr(docsrs, doc(cfg(feature = "std")))] -impl std::error::Error for NotEqualError {} +impl core::error::Error for NotEqualError {} /// Padding error. Usually emitted when size of output buffer is insufficient. #[cfg(feature = "block-padding")] @@ -43,9 +39,7 @@ impl fmt::Display for PadError { } #[cfg(feature = "block-padding")] -#[cfg(feature = "std")] -#[cfg_attr(docsrs, doc(cfg(feature = "std")))] -impl std::error::Error for PadError {} +impl core::error::Error for PadError {} /// Output buffer is smaller than input buffer. #[derive(Clone, Copy, Debug)] @@ -57,6 +51,4 @@ impl fmt::Display for OutIsTooSmallError { } } -#[cfg(feature = "std")] -#[cfg_attr(docsrs, doc(cfg(feature = "std")))] -impl std::error::Error for OutIsTooSmallError {} +impl core::error::Error for OutIsTooSmallError {} diff --git a/inout/src/lib.rs b/inout/src/lib.rs index cb5dc4b1..bc4ecb55 100644 --- a/inout/src/lib.rs +++ b/inout/src/lib.rs @@ -10,9 +10,6 @@ #![cfg_attr(docsrs, feature(doc_cfg))] #![warn(missing_docs, rust_2018_idioms)] -#[cfg(feature = "std")] -extern crate std; - #[cfg(feature = "block-padding")] #[cfg_attr(docsrs, doc(cfg(feature = "block-padding")))] pub use block_padding;