[package] name = "decorum" version = "0.4.0" edition = "2021" rust-version = "1.70.0" license = "MIT" readme = "README.md" authors = ["Sean Olson "] repository = "https://github.com/olson-sean-k/decorum" description = "Total ordering, equivalence, hashing, and constraints for floating-point types." keywords = [ "finite", "float", "hash", "nan", "ordering", ] categories = [ "mathematics", "no-std", "rust-patterns", ] [package.metadata.docs.rs] all-features = true # Enable KaTeX support. rustdoc-args = [ "--html-in-header", "doc/katex-header.html", ] [features] default = [ "approx", "serde", "std", ] serde = [ "dep:serde", "dep:serde_derive", ] std = [ "approx/std", "num-traits/std", "serde/std", "thiserror/std", ] unstable = [] [dependencies.approx] version = "^0.5.0" default-features = false features = [] optional = true [dependencies.num-traits] version = "^0.2.0" default-features = false features = [] [dependencies.serde] version = "1.0" default-features = false optional = true [dependencies.serde_derive] version = "1.0" default-features = false optional = true [dependencies.thiserror] version = "^2.0.0" default-features = false [build-dependencies] rustversion = "^1.0.3" [dev-dependencies] num = "^0.4.0" serde_json = "1.0"