Cargo Features
[dependencies]
rug = { version = "1.26.1", default-features = false, features = ["std", "complex", "float", "integer", "rand", "rational", "serde", "nightly-float", "num-traits", "fail-on-warnings", "gmp-mpfr-sys", "num-integer"] }
- default = complex, float, integer, rand, rational, std
-
These default features are set whenever
rug
is added without
somewhere in the dependency tree.default-features = false - 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
,macros::CastPtr
,macros::CastPtrMut
… - 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
,macros::CastPtr
,macros::CastPtrMut
… - 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 = num-integer
-
Enables num-traits
- fail-on-warnings
-
undocumented features
- gmp-mpfr-sys complex float integer
-
Enables gmp-mpfr-sys
- num-integer num-traits?
-
Enables num-integer