[package]
description = "Big integer implementation for Rust"
documentation = "https://docs.rs/num-bigint"
homepage = "https://github.com/rust-num/num-bigint"
keywords = ["mathematics", "numerics", "bignum"]
categories = [ "algorithms", "data-structures", "science" ]
license = "MIT OR Apache-2.0"
name = "num-bigint"
repository = "https://github.com/rust-num/num-bigint"
version = "0.5.0"
readme = "README.md"
exclude = ["/ci/*", "/.github/*"]
edition = "2021"
rust-version = "1.60"

[features]
default = ["std"]
std = ["num-integer/std", "num-traits/std"]
arbitrary = ["dep:arbitrary"]
quickcheck = ["dep:quickcheck"]
rand_0_9 = ["rand_core_0_9", "dep:rand_0_9"]
rand_core_0_9 = ["dep:rand_core_0_9"]
rand_0_10 = ["rand_core_0_10", "dep:rand_0_10"]
rand_core_0_10 = ["dep:rand_core_0_10"]
serde = ["dep:serde"]

[package.metadata.docs.rs]
features = ["std", "serde", "rand_0_10", "rand_0_9", "quickcheck", "arbitrary"]
rustdoc-args = ["--cfg", "docsrs"]

[[bench]]
name = "bigint"
required-features = ["rand_0_10"]

[[bench]]
name = "factorial"

[[bench]]
name = "gcd"
required-features = ["rand_0_10"]

[[bench]]
name = "roots"
required-features = ["rand_0_10"]

[[bench]]
harness = false
name = "shootout-pidigits"

[dependencies]

[dependencies.num-integer]
version = "0.1.46"
default-features = false
features = ["i128"]

[dependencies.num-traits]
version = "0.2.18"
default-features = false
features = ["i128"]

[dependencies.rand_0_9]
package = "rand"
optional = true
version = "0.9"
default-features = false

[dependencies.rand_core_0_9]
package = "rand_core"
optional = true
version = "0.9"
default-features = false

[dependencies.rand_0_10]
package = "rand"
optional = true
version = "0.10"
default-features = false

[dependencies.rand_core_0_10]
package = "rand_core"
optional = true
version = "0.10"
default-features = false

[dependencies.serde]
optional = true
version = "1.0"
default-features = false

[dependencies.quickcheck]
optional = true
version = "1"
default-features = false

[dependencies.arbitrary]
optional = true
version = "1"
default-features = false
