Cargo Features

[dependencies]
rsa = { version = "0.9.6", default-features = false, features = ["std", "hazmat", "getrandom", "nightly", "serde", "pem", "pkcs5", "u64_digit", "sha1", "sha2"] }
default = pem, std, u64_digit

These default features are set whenever rsa is added without default-features = false somewhere in the dependency tree.

std default

Enables std of digest, pkcs1, pkcs8, rand_core, and signature

hazmat

Affects rsa::hazmat

getrandom

Enables getrandom of rand_core

nightly

Enables nightly of num-bigint-dig

serde

Enables serde of num-bigint-dig, serde

pem default

Enables pem of pkcs1 and pkcs8

pkcs5

Enables encryption of pkcs8

u64_digit default

Enables u64_digit of num-bigint-dig

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features.

sha1 implicit feature

With oid

sha2 implicit feature

With oid