[package]
edition = "2021"
rust-version = "1.68"
name = "dashu-int"
version = "0.6.0"
authors = [
"Jacob Zhong <cmpute@gmail.com>",
"Tomek Czajka <tczajka@gmail.com>",
]
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Arbitrary-precision integer math library for Rust, balancing ergonomics and efficiency. Provides UBig and IBig (unsigned and signed), with small values inlined on the stack. Efficient arithmetic, modular arithmetic, and number theory (pow, ilog, gcd, gcd_ext); two's-complement bit operations; parsing and formatting in base 2-36; optional serde, rand, num-traits, rkyv, and zeroize."
homepage = "https://github.com/cmpute/dashu/tree/master/integer"
documentation = "https://docs.rs/dashu-int"
readme = "README.md"
keywords = [
"mathematics",
"numerics",
"integer",
"bigint",
"arbitrary-precision",
]
categories = [
"mathematics",
"no-std",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/cmpute/dashu"
[package.metadata]
maintenance = "actively-developed"
[package.metadata.docs.rs]
all-features = true
[features]
default = [
"std",
"num-order",
]
num-integer = ["num-integer_v01"]
num-traits = ["num-traits_v02"]
rand = ["rand_v010"]
rkyv = ["rkyv_v08"]
std = ["dashu-base/std"]
tuning = ["std"]
[lib]
name = "dashu_int"
path = "src/lib.rs"
bench = false
[[example]]
name = "factorial"
path = "examples/factorial.rs"
[[test]]
name = "add"
path = "tests/add.rs"
[[test]]
name = "bits"
path = "tests/bits.rs"
[[test]]
name = "cmp"
path = "tests/cmp.rs"
[[test]]
name = "const_div"
path = "tests/const_div.rs"
[[test]]
name = "convert"
path = "tests/convert.rs"
[[test]]
name = "div"
path = "tests/div.rs"
[[test]]
name = "dword_prop"
path = "tests/dword_prop.rs"
[[test]]
name = "gcd"
path = "tests/gcd.rs"
[[test]]
name = "hash"
path = "tests/hash.rs"
[[test]]
name = "helper_macros"
path = "tests/helper_macros.rs"
[[test]]
name = "io"
path = "tests/io.rs"
[[test]]
name = "iter"
path = "tests/iter.rs"
[[test]]
name = "log"
path = "tests/log.rs"
[[test]]
name = "modular"
path = "tests/modular.rs"
[[test]]
name = "monty"
path = "tests/monty.rs"
[[test]]
name = "mul"
path = "tests/mul.rs"
[[test]]
name = "num_order"
path = "tests/num_order.rs"
required-features = ["num-order"]
[[test]]
name = "pow"
path = "tests/pow.rs"
[[test]]
name = "random"
path = "tests/random.rs"
required-features = ["rand_v08"]
[[test]]
name = "reducer"
path = "tests/reducer.rs"
[[test]]
name = "remove"
path = "tests/remove.rs"
[[test]]
name = "root"
path = "tests/root.rs"
[[test]]
name = "serde"
path = "tests/serde.rs"
required-features = ["serde"]
[[test]]
name = "shift"
path = "tests/shift.rs"
[[test]]
name = "sign"
path = "tests/sign.rs"
[[bench]]
name = "io"
path = "benches/io.rs"
harness = false
required-features = ["rand"]
[[bench]]
name = "modular"
path = "benches/modular.rs"
harness = false
required-features = ["rand"]
[[bench]]
name = "primitive"
path = "benches/primitive.rs"
harness = false
required-features = ["rand"]
[[bench]]
name = "shift"
path = "benches/shift.rs"
harness = false
required-features = ["rand"]
[dependencies.cfg-if]
version = "1.0.0"
[dependencies.dashu-base]
version = "0.6.0"
default-features = false
[dependencies.num-integer_v01]
version = "0.1.45"
optional = true
default-features = false
package = "num-integer"
[dependencies.num-modular]
version = "0.6.5"
default-features = false
[dependencies.num-order]
version = "1.2.0"
optional = true
default-features = false
[dependencies.num-traits_v02]
version = "0.2.14"
optional = true
default-features = false
package = "num-traits"
[dependencies.rand_v010]
version = "0.10"
optional = true
default-features = false
package = "rand"
[dependencies.rand_v08]
version = "0.8.3"
optional = true
default-features = false
package = "rand"
[dependencies.rand_v09]
version = "0.9"
optional = true
default-features = false
package = "rand"
[dependencies.rkyv_v07]
version = "0.7"
features = [
"alloc",
"size_32",
]
optional = true
default-features = false
package = "rkyv"
[dependencies.rkyv_v08]
version = "0.8"
features = [
"alloc",
"pointer_width_32",
]
optional = true
default-features = false
package = "rkyv"
[dependencies.serde]
version = "1.0.130"
optional = true
default-features = false
[dependencies.static_assertions]
version = "1.1"
[dependencies.zeroize]
version = "1.5.7"
optional = true
default-features = false
[dev-dependencies.criterion]
version = "0.5.1"
features = ["html_reports"]
[dev-dependencies.postcard]
version = "1.0.2"
features = ["alloc"]
[dev-dependencies.proptest]
version = "~1.7"
[dev-dependencies.rand_v010]
version = "0.10"
package = "rand"
[dev-dependencies.rand_v08]
version = "0.8.3"
package = "rand"
[dev-dependencies.rand_v09]
version = "0.9"
package = "rand"
[dev-dependencies.serde_json]
version = "1.0"
[dev-dependencies.serde_test]
version = "1.0.130"