[package]
edition = "2015"
name = "fraction"
version = "0.15.4"
authors = ["dnsl48 <dnsl48@gmail.com>"]
build = false
exclude = ["src/tests/division/*"]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Lossless fractions and decimals; drop-in float replacement"
homepage = "https://github.com/dnsl48/fraction.git"
documentation = "https://docs.rs/fraction/"
readme = "README.md"
keywords = [
"fraction",
"decimal",
"float",
"numeric",
]
categories = ["data-structures"]
license = "MIT OR Apache-2.0"
repository = "https://github.com/dnsl48/fraction.git"
[package.metadata.docs.rs]
all-features = true
[features]
default = [
"with-bigint",
"with-decimal",
"with-dynaint",
]
with-approx = ["with-bigint"]
with-bigint = [
"num/num-bigint",
"num/std",
"lazy_static",
]
with-decimal = []
with-dynaint = []
with-juniper-support = ["juniper"]
with-postgres-support = [
"postgres-types",
"byteorder",
"bytes",
]
with-serde-support = [
"serde",
"serde_derive",
"num/serde",
]
with-unicode = []
[lib]
name = "fraction"
path = "src/lib.rs"
[[bench]]
name = "bench_fraction"
path = "benches/bench_fraction.rs"
harness = false
[dependencies.byteorder]
version = "1"
optional = true
[dependencies.bytes]
version = "1"
optional = true
[dependencies.juniper]
version = "0.15"
optional = true
[dependencies.lazy_static]
version = "1"
optional = true
[dependencies.num]
version = "0.4.3"
default-features = false
[dependencies.postgres-types]
version = "0.2"
optional = true
[dependencies.serde]
version = "1"
optional = true
[dependencies.serde_derive]
version = "1"
optional = true
[dev-dependencies.criterion]
version = "0.5"
[dev-dependencies.rand]
version = "0.8"
[profile.test]
opt-level = 3