[package]
name = "g_math"
version = "0.1.1"
edition = "2021"
description = "Multi-domain fixed-point arithmetic library with 18 transcendental functions"
authors = ["Niels Erik Toren"]
license = "MIT OR Apache-2.0"
readme = "README.md"
repository = "https://github.com/nierto/gMath"
homepage = "https://github.com/nierto/gMath"
documentation = "https://docs.rs/g_math"
keywords = ["fixed-point", "arithmetic", "precision", "mathematics", "no-float"]
categories = ["mathematics", "algorithms"]
build = "build.rs"
[build-dependencies]
num-bigint = "0.4"
num-traits = "0.2"
num-rational = "0.4"
num-integer = "0.1"
[dependencies]
num-traits = { version = "0.2", optional = true }
num-bigint = { version = "0.4", optional = true }
num-integer = { version = "0.1", optional = true }
[dev-dependencies]
criterion = "0.4"
proptest = "1.0"
approx = "0.5"
num-bigint = "0.4"
num-rational = "0.4"
[features]
default = []
infinite-precision = ["dep:num-bigint", "dep:num-traits", "dep:num-integer"]
embedded = []
balanced = []
scientific = []
legacy-tests = []
rebuild-tables = []
[lints.rust.unexpected_cfgs]
level = "warn"
check-cfg = [
'cfg(table_format, values("q64_64", "q128_128", "q256_256", "q512_512"))',
'cfg(q64_64)', 'cfg(q128_128)', 'cfg(q256_256)', 'cfg(q512_512)',
'cfg(feature, values("rebuild-tables"))',
]
[profile.release]
debug = false
lto = true
codegen-units = 1
opt-level = 3
[profile.bench]
debug = true
lto = true
opt-level = 3