Cargo Features
[dependencies]
rsa = { version = "0.10.0-rc.10", default-features = false, features = ["std", "encoding", "hazmat", "os_rng", "serde", "pkcs5", "sha1", "sha2"] }
- default = encoding, std
-
These default features are set whenever
rsais added withoutsomewhere in the dependency tree.default-features = false - std default
-
Enables rand of crypto-bigint and std of optional pkcs1 and optional pkcs8
pkcs1:
optional dependencies
- encoding default serde?
-
Enables pkcs1, pkcs8, and spki
Affects
pss::get_default_pss_signature_algo_id… - hazmat
-
Affects
rsa::hazmat… - os_rng
-
Enables rand_core of crypto-bigint and os_rng of rand
rand:
Option: enable OsRng
- serde = encoding
-
Enables serde and serdect, serde of crypto-bigint
- pkcs5
-
Enables encryption of pkcs8
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.