Cargo Features

[dependencies]
crypto-primes = { version = "0.6.0-pre.0", default-features = false, features = ["default-rng", "tests-openssl", "tests-gmp", "tests-exhaustive", "tests-all"] }
default = default-rng

The default-rng feature is set by default whenever crypto-primes is added without default-features = false somewhere in the dependency tree.

default-rng default

Enables getrandom of rand_core

Affects presets::generate_prime, presets::generate_safe_prime, presets::is_prime, presets::is_safe_prime

tests-openssl tests-all? = openssl
tests-gmp tests-all? = rug
tests-exhaustive tests-all?
tests-all = tests-exhaustive, tests-gmp, tests-openssl

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.

openssl tests-openssl?
rug tests-gmp?