[package]
edition = "2024"
name = "pymath"
version = "0.2.0"
authors = ["Jeong, YunWon <jeong@youknowone.org>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A binary representation compatible Rust implementation of Python's math library."
readme = "README.md"
license = "PSF-2.0"
repository = "https://github.com/RustPython/pymath"
[features]
_bigint = [
"dep:num-traits",
"dep:num-integer",
]
complex = ["dep:num-complex"]
default = ["complex"]
malachite-bigint = [
"_bigint",
"dep:malachite-bigint",
]
mul_add = []
num-bigint = [
"_bigint",
"dep:num-bigint",
]
[lib]
name = "pymath"
path = "src/lib.rs"
[dependencies.libc]
version = "0.2"
[dependencies.malachite-bigint]
version = "0"
optional = true
[dependencies.num-bigint]
version = "0.4"
optional = true
[dependencies.num-complex]
version = "0.4"
optional = true
[dependencies.num-integer]
version = "0.1"
optional = true
[dependencies.num-traits]
version = "0.2"
optional = true
[dev-dependencies.proptest]
version = "1.6.0"
[dev-dependencies.pyo3]
version = "0.27"
features = [
"abi3",
"auto-initialize",
]
[target."cfg(not(any(unix, windows)))".dependencies.libm]
version = "0.2"