# 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 = "num-valid"
version = "0.2.5"
authors = ["Massimiliano Martinelli <martinelli@imati.cnr.it>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A robust numerical library providing validated types for real and complex numbers to prevent common floating-point errors like NaN propagation. Features a generic, layered architecture with support for native f64 and optional arbitrary-precision arithmetic."
documentation = "https://docs.rs/num-valid"
readme = "README.md"
keywords = [
    "mathematics",
    "numerics",
    "complex-numbers",
    "arbitrary-precision",
]
categories = ["mathematics"]
license-file = "LICENSE.md"
repository = "https://gitlab.com/max.martinelli/num-valid"

[package.metadata.docs.rs]
features = ["rug"]

[features]
backtrace = []
rug = ["dep:rug"]

[lib]
name = "num_valid"
path = "src/lib.rs"

[[test]]
name = "readme_examples"
path = "tests/readme_examples.rs"

[[bench]]
name = "performance_benchmark"
path = "benches/performance_benchmark.rs"
harness = false

[dependencies.az]
version = "1.2"

[dependencies.bytemuck]
version = "1.24"
features = ["extern_crate_alloc"]

[dependencies.derive_more]
version = "2.0.1"
features = ["full"]

[dependencies.duplicate]
version = "2.0.1"

[dependencies.getset]
version = "0.1.6"

[dependencies.into_inner]
version = "0.1.2"

[dependencies.num]
version = "0.4.3"
features = ["serde"]

[dependencies.num-traits]
version = "0.2.19"

[dependencies.paste]
version = "1.0"

[dependencies.rand]
version = "0.9.2"

[dependencies.rug]
version = "1.28.0"
features = ["serde"]
optional = true

[dependencies.serde]
version = "1.0.228"
features = ["derive"]

[dependencies.thiserror]
version = "2.0.17"

[dependencies.try_create]
version = "0.1.2"

[dev-dependencies.criterion]
version = "0.7"
features = ["html_reports"]
