Cargo Features

malachite-nz has no features set by default.

[dependencies]
malachite-nz = { version = "0.4.16", features = ["32_bit_limbs", "random", "enable_pyo3", "enable_serde", "test_build", "bin_build", "float_helpers", "doc-images"] }
32_bit_limbs

Affects malachite-nz::platform_32, mod_op::limbs_mod_limb

random test_build?

Enables random of malachite-base

Affects integer::random, natural::random

enable_pyo3 = pyo3, pyo3-build-config
enable_serde = serde
test_build bin_build? = indoc, num, pyo3, pyo3-build-config, random, rug, serde, serde_json

Enables test_build of malachite-base

Affects malachite-nz::test_util, coprime_with::coprime_with_check_2_3, coprime_with::coprime_with_check_2_3_5, div_exact::test_invert_limb_table, half_gcd::HalfGcdMatrix, half_gcd::HalfGcdMatrix1, mod_op::limbs_mod_limb, mod_power_of_2_square::SQRLO_DC_THRESHOLD_LIMIT, mul::product_of_limbs, toom::TUNE_PROGRAM_BUILD, toom::WANT_FAT_BINARY, toom::TOOM22_MAYBE_MUL_TOOM22, toom::TOOM33_MAYBE_MUL_BASECASE, toom::TOOM33_MAYBE_MUL_TOOM33, toom::limbs_mul_greater_to_out_toom_54, square::TOOM3_MAYBE_SQR_TOOM3, square::TOOM3_MAYBE_SQR_BASECASE, general_digits::GET_STR_PRECOMPUTE_THRESHOLD, general_digits::PowerTableRow, general_digits::PowerTableAlgorithm

bin_build = test_build

Affects malachite-nz::bin_util

float_helpers

Affects arithmetic::float_add, arithmetic::float_div, arithmetic::float_extras, arithmetic::float_mul, arithmetic::float_reciprocal, arithmetic::float_square, arithmetic::float_sub

doc-images = embed-doc-image

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.

serde enable_serde? test_build?
indoc test_build?
pyo3 enable_pyo3? test_build?

Enables pyo3 ^0.21.2

serde_json test_build?
num test_build?
rug test_build?
embed-doc-image doc-images?
pyo3-build-config build enable_pyo3? test_build?

Enables pyo3-build-config ^0.21.2