[package]
edition = "2021"
name = "approx"
version = "0.6.0-rc2"
authors = ["Brendan Zabarauskas <bjzaba@yahoo.com.au>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Approximate floating point equality comparisons and assertions."
homepage = "https://github.com/brendanzab/approx"
documentation = "https://docs.rs/approx"
readme = "README.md"
keywords = [
"approximate",
"assert",
"comparison",
"equality",
"float",
]
license = "Apache-2.0"
repository = "https://github.com/brendanzab/approx"
[package.metadata.docs.rs]
features = [
"num_complex",
"array_impl",
"tuple_impl",
"ordered_float",
]
[features]
array_impl = []
default = [
"array_impl",
"tuple_impl",
]
derive = ["dep:approx-derive"]
indexmap_impl = ["dep:indexmap"]
num_complex = ["dep:num-complex"]
ordered_float = ["dep:ordered-float"]
tuple_impl = ["paste"]
vec_impl = []
[lib]
name = "approx"
path = "src/lib.rs"
[[test]]
name = "abs_diff_eq"
path = "tests/abs_diff_eq.rs"
[[test]]
name = "common"
path = "tests/common.rs"
[[test]]
name = "macro_import"
path = "tests/macro_import.rs"
[[test]]
name = "macros"
path = "tests/macros.rs"
[[test]]
name = "relative_eq"
path = "tests/relative_eq.rs"
[[test]]
name = "ulps_eq"
path = "tests/ulps_eq.rs"
[dependencies.approx-derive]
version = "0.6.0-rc2"
optional = true
[dependencies.indexmap]
version = ">=2.0"
optional = true
default-features = false
[dependencies.num-complex]
version = "0.4"
optional = true
[dependencies.num-traits]
version = "0.2"
default-features = false
[dependencies.ordered-float]
version = "5"
optional = true
[dependencies.paste]
version = "1"
optional = true