[package]
authors = ["Alex Huszagh <ahuszagh@gmail.com>"]
autobenches = false
categories = ["parsing", "encoding", "no-std", "value-formatting"]
description = "Lexical, to- and from-string conversion routines."
documentation = "https://docs.rs/lexical"
keywords = ["parsing", "lexical", "encoding", "no_std"]
license = "MIT/Apache-2.0"
name = "lexical"
readme = "README.md"
repository = "https://github.com/Alexhuszagh/rust-lexical"
version = "4.2.1"
build = "build.rs"
exclude = [
"data/*",
"benches/*",
"lexical-codegen/*",
"lexical-benchmark/*",
]
[badges]
travis-ci = { repository = "Alexhuszagh/rust-lexical" }
[dependencies]
cfg-if = "0.1"
lexical-core = { path = "lexical-core", version = "^0.6.8", default-features = false }
rand = { version = "0.4", optional = true }
serde = { version = "1.0", optional = true }
serde_derive = { version = "1.0", optional = true }
toml = { version = "0.5", optional = true }
[dev-dependencies]
approx = "0.3.0"
criterion = "0.3"
dtoa = "0.4"
itoa = { version = "0.4", features = ["i128"] }
lazy_static = "1"
[build-dependencies]
rustc_version = "0.2"
[features]
default = ["correct", "ryu", "std"]
correct = ["lexical-core/correct"]
format = ["lexical-core/format"]
grisu3 = ["lexical-core/grisu3"]
radix = ["lexical-core/radix"]
rounding = ["lexical-core/rounding"]
ryu = ["lexical-core/ryu"]
std = ["lexical-core/std"]
trim_floats = ["lexical-core/trim_floats"]
unchecked_index = ["lexical-core/unchecked_index"]
property_tests = ["lexical-core/property_tests"]
noinline = ["lexical-core/noinline"]
comprehensive_float_test = ["rand/std", "serde/std", "serde_derive", "std", "toml"]
[[bin]]
name = "few_ones"
path = "data/test-parse-random/few_ones.rs"
required-features = ["comprehensive_float_test"]
[[bin]]
name = "huge-pow10"
path = "data/test-parse-random/huge-pow10.rs"
required-features = ["comprehensive_float_test"]
[[bin]]
name = "long-fractions"
path = "data/test-parse-random/long-fractions.rs"
required-features = ["comprehensive_float_test"]
[[bin]]
name = "many-digits"
path = "data/test-parse-random/many-digits.rs"
required-features = ["comprehensive_float_test"]
[[bin]]
name = "rand-f64"
path = "data/test-parse-random/rand-f64.rs"
required-features = ["comprehensive_float_test"]
[[bin]]
name = "short-decimals"
path = "data/test-parse-random/short-decimals.rs"
required-features = ["comprehensive_float_test"]
[[bin]]
name = "subnorm"
path = "data/test-parse-random/subnorm.rs"
required-features = ["comprehensive_float_test"]
[[bin]]
name = "tiny-pow10"
path = "data/test-parse-random/tiny-pow10.rs"
required-features = ["comprehensive_float_test"]
[[bin]]
name = "u32-small"
path = "data/test-parse-random/u32-small.rs"
required-features = ["comprehensive_float_test"]
[[bin]]
name = "u64-pow2"
path = "data/test-parse-random/u64-pow2.rs"
required-features = ["comprehensive_float_test"]
[[bin]]
name = "test-parse-unittests"
path = "data/test-parse-unittests/main.rs"
required-features = ["comprehensive_float_test"]
[[bench]]
name = "atof"
path = "benches/atof.rs"
harness = false
[[bench]]
name = "atof_malicious"
path = "benches/atof_malicious.rs"
harness = false
[[bench]]
name = "atof_real"
path = "benches/atof_real.rs"
harness = false
[[bench]]
name = "atoi"
path = "benches/atoi.rs"
harness = false
[[bench]]
name = "itoa"
path = "benches/itoa.rs"
harness = false
[[bench]]
name = "ftoa"
path = "benches/ftoa.rs"
harness = false
[profile.dev]
opt-level = 0
debug = true
lto = false
[profile.release]
opt-level = 3
debug = false
debug-assertions = false
lto = true
[profile.bench]
opt-level = 3
debug = false
debug-assertions = false
lto = true