Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .github/workflows/cipher.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,5 +69,4 @@ jobs:
- run: cargo test
- run: cargo test --features block-padding
- run: cargo test --features dev
- run: cargo test --features std
- run: cargo test --all-features
1 change: 0 additions & 1 deletion cipher/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ zeroize = { version = "1.8", optional = true, default-features = false }

[features]
alloc = []
std = ["alloc"]
block-padding = ["inout/block-padding"]
# Enable random key and IV generation methods
rand_core = ["crypto-common/rand_core"]
Expand Down
2 changes: 0 additions & 2 deletions cipher/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@

#[cfg(all(feature = "block-padding", feature = "alloc"))]
extern crate alloc;
#[cfg(feature = "std")]
extern crate std;

#[cfg(feature = "dev")]
pub use blobby;
Expand Down
6 changes: 2 additions & 4 deletions cipher/src/stream/errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ impl fmt::Display for StreamCipherError {
}
}

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

/// The error type returned when a cipher position can not be represented
/// by the requested type.
Expand All @@ -37,5 +36,4 @@ impl From<OverflowError> for StreamCipherError {
}
}

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