Cargo Features

gnir = { version = "0.16.5", default-features = false, features = ["std", "alloc", "dev_urandom_fallback", "slow_tests"] }
default = alloc, dev_urandom_fallback

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

std = alloc

Affects test::compile_time_assert_std_error_error

alloc default std?

Affects arithmetic::bigint, limb::limbs_less_than_limb_constant_time, limb::limbs_are_even_constant_time, limb::limbs_equal_limb_constant_time, limb::limbs_minimal_bits, limb::Window, limb::fold_5_bit_windows, padding::RsaEncoding, test::TestCase, test::File, test::run, test::from_hex

dev_urandom_fallback default = lazy_static
test_logging internal_benches slow_tests

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.

lazy_static android freebsd linux netbsd openbsd solaris dev_urandom_fallback