pymath 0.2.0

A binary representation compatible Rust implementation of Python's math library.
Documentation
# 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 = "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"