Skip to content

Commit a4b3afc

Browse files
committed
crypto-common: remove std feature
As of #1660, the `crypto-common` crate stopped linking `std` entirely by switching to `core::error::Error`. That PR didn't remove the `std` feature however, which was retained to transitively activate the `std` features of `getrandom` and `rand_core` optioinally in the event their corresponding features are enabled. This PR goes ahead and removes it entirely, which also unblocks being able to remove the `std` feature from other crates like `aead`, `cipher`, `digest`, and `universal-hash`.
1 parent 78662ae commit a4b3afc

5 files changed

Lines changed: 4 additions & 5 deletions

File tree

aead/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ heapless = { version = "0.8", optional = true, default-features = false }
2727
[features]
2828
default = ["rand_core"]
2929
alloc = []
30-
std = ["alloc", "crypto-common/std"]
30+
std = ["alloc"]
3131
dev = ["blobby"]
3232
getrandom = ["crypto-common/getrandom"]
3333
rand_core = ["crypto-common/rand_core"]

cipher/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ zeroize = { version = "1.8", optional = true, default-features = false }
2222

2323
[features]
2424
alloc = []
25-
std = ["alloc", "crypto-common/std"]
25+
std = ["alloc"]
2626
block-padding = ["inout/block-padding"]
2727
# Enable random key and IV generation methods
2828
rand_core = ["crypto-common/rand_core"]

crypto-common/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ getrandom = { version = "0.2", optional = true }
2121

2222
[features]
2323
getrandom = ["dep:getrandom", "rand_core?/getrandom"]
24-
std = ["getrandom?/std", "rand_core?/std"]
2524

2625
[package.metadata.docs.rs]
2726
all-features = true

digest/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ rand_core = ["crypto-common/rand_core"] # Enable random key generation methods
3030
oid = ["const-oid"]
3131
zeroize = ["dep:zeroize", "block-buffer?/zeroize"]
3232
alloc = []
33-
std = ["alloc", "crypto-common/std"]
33+
std = ["alloc"]
3434
dev = ["blobby"]
3535

3636
[package.metadata.docs.rs]

universal-hash/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ crypto-common = "0.2.0-rc.0"
1717
subtle = { version = "2.4", default-features = false }
1818

1919
[features]
20-
std = ["crypto-common/std"]
20+
std = []
2121

2222
[package.metadata.docs.rs]
2323
all-features = true

0 commit comments

Comments
 (0)