Cargo Features

[dependencies]
rug = { version = "1.27.0", default-features = false, features = ["std", "complex", "float", "integer", "rand", "rational", "serde", "nightly-float", "num-traits", "fail-on-warnings", "gmp-mpfr-sys"] }
default = complex, float, integer, rand, rational, std

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

std default serde?

Affects xmpz::realloc_for_mpn_set_str, rand::RandGen.boxed_clone, rand::ThreadRandGen.boxed_clone

complex default = float

Enables mpc of gmp-mpfr-sys

Affects ext::xmpc, rug::complex

float default complex

Enables mpfr of gmp-mpfr-sys

Affects ext::xmpfr, rug::float

integer default rand rational = gmp-mpfr-sys

Affects ext::xmpz, xmpc::pow_z, xmpfr::set_z, xmpfr::cmp_z, xmpfr::add_z, xmpfr::sub_z, xmpfr::z_sub, xmpfr::mul_z, xmpfr::div_z, xmpfr::z_div, xmpfr::pow_z, rug::integer

rand default = integer

Affects big::RandomBitsIncomplete, big::RandomContIncomplete, xmpfr::urandomb, xmpfr::urandom, xmpfr::nrandom, xmpfr::erandom, xmpz::urandomb, xmpz::urandomm, big::RandomBitsIncomplete, big::RandomContIncomplete, big::RandomNormalIncomplete, big::RandomExpIncomplete, big::RandomBitsIncomplete, big::RandomBelowIncomplete, long64::IntegerExt64.random_bits_64, long64::RandomBitsIncomplete, rug::rand

rational default = integer

Affects ext::xmpq, xmpfr::OptFloat.unwrap_or, xmpfr::set_q, xmpfr::get_q, xmpfr::cmp_q, xmpfr::add_q, xmpfr::sub_q, xmpfr::q_sub, xmpfr::mul_q, xmpfr::div_q, xmpfr::q_div, rug::rational

serde = std

Enables serde

nightly-float

experimental features

Affects xmpfr::set_f16, xmpfr::set_f128, xmpfr::get_f16, xmpfr::get_f128

num-traits

Enables num-integer and num-traits

fail-on-warnings

undocumented features

gmp-mpfr-sys complex float integer

Enables gmp-mpfr-sys