Cargo Features
[dependencies]
sec1 = { version = "0.8.0-rc.3", default-features = false, features = ["std", "alloc", "der", "pem", "point", "serde", "zeroize", "subtle"] }
- default = der, point
-
These default features are set whenever
sec1
is added without
somewhere in the dependency tree.default-features = false - std = alloc
-
Affects
traits::DecodeEcPrivateKey.read_sec1_der_file
,traits::EncodeEcPrivateKey.write_sec1_der_file
,traits::DecodeEcPrivateKey.read_sec1_pem_file
,traits::EncodeEcPrivateKey.write_sec1_pem_file
… - alloc pem? std?
-
Enables alloc of optional der, optional pkcs8, and optional zeroize
Affects
traits::EncodeEcPrivateKey
… - der default pem? = zeroize
-
Enables der
- pem = alloc
-
Affects
traits::DecodeEcPrivateKey.from_sec1_pem
,traits::EncodeEcPrivateKey.to_sec1_pem
,traits::DecodeEcPrivateKey.read_sec1_pem_file
,traits::EncodeEcPrivateKey.write_sec1_pem_file
… - point default
-
Enables base16ct and hybrid-array
Affects
sec1::point
… - serde
-
Enables serdect
- zeroize der
Features from optional dependencies
In crates that don't use the dep:
syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.