Cargo Features

[dependencies]
rug = { version = "1.28.1", default-features = false, features = ["std", "complex", "float", "integer", "rand", "rational", "serde", "borsh", "nightly-float", "num-complex", "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 borsh? 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, serdeize::test.assert_eq_float_handle_nan

float default complex

Enables mpfr of gmp-mpfr-sys

Affects ext::xmpfr, rug::float, serdeize::data, serdeize::serde, serdeize::borsh

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, serdeize::data, serdeize::serde, serdeize::borsh

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

Affects serdeize::serde

borsh = std

experimental features

Enables borsh

Affects serdeize::test.assert_eq_float_handle_nan, serdeize::borsh

nightly-float

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

num-complex

Enables num-complex

num-traits

Enables num-integer and num-traits

fail-on-warnings

undocumented features

gmp-mpfr-sys complex float integer

Enables gmp-mpfr-sys