# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

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

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

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

[lib]
name = "num_bigint"
path = "src/lib.rs"

[[test]]
name = "bigint"
path = "tests/bigint.rs"

[[test]]
name = "bigint_bitwise"
path = "tests/bigint_bitwise.rs"

[[test]]
name = "bigint_scalar"
path = "tests/bigint_scalar.rs"

[[test]]
name = "biguint"
path = "tests/biguint.rs"

[[test]]
name = "biguint_scalar"
path = "tests/biguint_scalar.rs"

[[test]]
name = "fuzzed"
path = "tests/fuzzed.rs"

[[test]]
name = "modpow"
path = "tests/modpow.rs"

[[test]]
name = "roots"
path = "tests/roots.rs"

[[bench]]
name = "bigint"
path = "benches/bigint.rs"
required-features = ["rand_0_10"]

[[bench]]
name = "factorial"
path = "benches/factorial.rs"

[[bench]]
name = "gcd"
path = "benches/gcd.rs"
required-features = ["rand_0_10"]

[[bench]]
name = "roots"
path = "benches/roots.rs"
required-features = ["rand_0_10"]

[[bench]]
name = "shootout-pidigits"
path = "benches/shootout-pidigits.rs"
harness = false

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

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

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

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

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

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

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

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

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