[package]
name = "modmath"
version = "0.1.3"
edition = "2024"
description = """
Modular math implemented with traits.
"""
repository = "https://github.com/kaidokert/modmath-rs"
readme = "../README.md"
authors = ["kaidokert <kaidokert@gmail.com>"]
license = "Apache-2.0"
exclude = ["/.github/*"]
keywords = ["numerics", "bignum"]
[dependencies]
num-traits = { version = "0.2", default-features = false }
num-integer = { version = "0.1", default-features = false, optional = true }
c0nst = { version = "0.2", optional = true }
fixed-bigint = { version = "0.2.2", optional = true, default-features = false }
[dev-dependencies]
fixed-bigint = { version = "0.2.2" }
num-bigint = { package = "num-bigint", version = "0.4"}
num-bigint_patched = { package = "num-bigint", git = "https://github.com/kaidokert/num-bigint.git" , tag = "v0.4.6_patch" }
bnum = { version = "0.12", features = ["numtraits"] }
bnum_patched = { package = "bnum",features = ["numtraits"] , git = "https://github.com/kaidokert/bnum.git", tag = "v0.12.1_patch" }
crypto-bigint = "0.6"
crypto-bigint_patched = { package = "crypto-bigint", git = "https://github.com/kaidokert/crypto-bigint.git" , tag = "v0.6.1_rsa_patch_1" }
ibig = "0.3"
ibig_patched = { package = "ibig", git = "https://github.com/kaidokert/ibig-rs.git" , tag = "v0.3.6_patch" }
paste = "1"
[features]
default = ["std"]
std = []
constrained = []
basic = []
strict = []
num-integer = ["dep:num-integer"]
wide-mul = ["dep:fixed-bigint"]
nightly = ["dep:c0nst", "c0nst/nightly", "dep:fixed-bigint", "fixed-bigint/nightly"]