Skip to content

Commit eb1f2c3

Browse files
remove std and alloc implied feature to bare minimum instead
1 parent 74fabd8 commit eb1f2c3

File tree

1 file changed

+4
-15
lines changed

1 file changed

+4
-15
lines changed

Cargo.toml

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -88,21 +88,10 @@ format = ["pem", "pkcs1", "pkcs8", "sec1"]
8888
logging = ["rustls/logging"]
8989
tls12 = ["rustls/tls12"]
9090

91-
# Only enable feature in upstream if there is an overall effect e.g. aead/alloc in-place
92-
# zeroize is another typical that can be turned off
93-
94-
# TODO: go through all of these that what gets exposed re: std error type
95-
std = [
96-
"alloc",
97-
"webpki?/std",
98-
"pki-types/std",
99-
"rustls/std",
100-
"ed25519-dalek?/std",
101-
"pkcs1?/std",
102-
"getrandom/std"
103-
]
104-
alloc = ["webpki?/alloc", "ecdsa?/alloc", "signature?/alloc", "ccm?/alloc"]
105-
zeroize = ["ed25519-dalek?/zeroize", "x25519-dalek?/zeroize"]
91+
# RustCrypto is preparing to migrate to core::error::Error
92+
# and in before most of the use case for std is just std::error::Error
93+
std = ["alloc"]
94+
alloc = ["ecdsa?/alloc", "signature?/alloc"]
10695

10796
nist = []
10897
p256 = ["dep:p256", "nist"]

0 commit comments

Comments
 (0)