Skip to content

Commit 23da3d4

Browse files
committed
cryptography: add std feature
Adds an off-by-default `std` feature which activates the `std` features of all of the other dependencies. This is a somewhat lousy way of doing this, and I wish that there were a better approach, so much that I posted a Pre-Pre-RFC about it: https://internals.rust-lang.org/t/pre-pre-rfc-weak-cargo-feature-activation/13141 For now though, this is immediately useful to me.
1 parent 3182f68 commit 23da3d4

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

cryptography/Cargo.toml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,17 @@ signature = { version = "1.2.0", optional = true, default-features = false, path
2121
stream-cipher = { version = "0.7", optional = true, path = "../stream-cipher" }
2222
universal-hash = { version = "0.4", optional = true, path = "../universal-hash" }
2323

24+
[features]
25+
std = [
26+
"aead/std",
27+
"block-cipher/std",
28+
"digest/std",
29+
"elliptic-curve/std",
30+
"mac/std",
31+
"signature/std",
32+
"stream-cipher/std",
33+
"universal-hash/std"
34+
]
35+
2436
[package.metadata.docs.rs]
2537
all-features = true

0 commit comments

Comments
 (0)