[package]
edition = "2024"
rust-version = "1.88"
name = "puremp"
version = "0.1.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A pure-Rust arbitrary-precision arithmetic library — integers, rationals and MPFR-class floats — with no foreign-code dependencies, plus a C ABI and a CLI."
readme = "README.md"
keywords = [
"bignum",
"bigint",
"arbitrary-precision",
"rational",
"no-std",
]
categories = [
"mathematics",
"no-std",
"algorithms",
]
license = "MIT"
repository = "https://github.com/KarpelesLab/puremp"
[features]
alloc = []
cli = [
"std",
"rational",
"float",
]
default = [
"std",
"rational",
"float",
"cli",
]
ffi = [
"std",
"rational",
"float",
]
float = ["int"]
int = ["alloc"]
rational = ["int"]
std = ["alloc"]
[lib]
name = "puremp"
path = "src/lib.rs"
[[bin]]
name = "puremp"
path = "src/bin/puremp/main.rs"
required-features = ["cli"]
[[example]]
name = "bench"
path = "examples/bench.rs"
required-features = [
"std",
"int",
]
[[test]]
name = "integration"
path = "tests/integration.rs"
[dependencies]
[lints.rust]
missing_docs = "warn"
unreachable_pub = "warn"
unsafe_code = "deny"
[profile.release]
lto = "thin"