third_party_rust_nom/Cargo.toml
Geoffroy Couprie 40f20aa070 use the lexical-core crate for float parsing
the previous float parsing code was first using the `recognize_float`
function, then passing the result to `str::parse()`, so input data was
parsed twice.
This commit introduces the lexical-core crate, which implements faster
float parsing and can even work in no_std. It is imported through the
"lexical" feature that is active by default
2019-04-27 18:32:47 +02:00

157 lines
2.3 KiB
TOML

[package]
name = "nom"
version = "5.0.0-alpha1"
authors = [ "contact@geoffroycouprie.com" ]
description = "A byte-oriented, zero-copy, parser combinators library"
license = "MIT"
repository = "https://github.com/Geal/nom"
readme = "README.md"
documentation = "https://docs.rs/nom"
keywords = ["parser", "parser-combinators", "parsing", "streaming", "bit"]
categories = ["parsing"]
include = [
"CHANGELOG.md",
"LICENSE",
".gitignore",
".travis.yml",
"Cargo.toml",
"src/*.rs",
"src/*/*.rs",
"tests/*.rs",
"build.rs"
]
[features]
alloc = []
std = ["alloc", "memchr/use_std"]
default = ["std", "lexical"]
regexp = ["regex"]
regexp_macros = ["regexp", "lazy_static"]
lexical = ["lexical-core"]
[dependencies.regex]
version = "^1.0"
optional = true
[dependencies.lazy_static]
version = "^1.0"
optional = true
[dependencies.memchr]
version = "^2.0"
default-features = false
[dependencies.lexical-core]
version = "^0.4.0"
optional = true
[dev-dependencies]
criterion = "0.2"
jemallocator = "^0.1"
[build-dependencies]
version_check = "^0.1"
[package.metadata.docs.rs]
features = [ "alloc", "std", "regexp", "regexp_macros", "lexical"]
all-features = true
[profile.bench]
debug = true
lto = true
codegen-units = 1
[lib]
bench = false
[[test]]
name = "arithmetic"
[[test]]
name = "arithmetic_ast"
required-features = ["alloc"]
[[test]]
name = "blockbuf-arithmetic"
[[test]]
name = "css"
[[test]]
name = "custom_errors"
[[test]]
name = "float"
[[test]]
name = "inference"
[[test]]
name = "ini"
required-features = ["alloc"]
[[test]]
name = "ini_str"
required-features = ["alloc"]
[[test]]
name = "issues"
required-features = ["alloc", "regexp_macros"]
[[test]]
name = "json"
[[test]]
name = "mp4"
[[test]]
name = "multiline"
required-features = ["alloc"]
[[test]]
name = "named_args"
[[test]]
name = "overflow"
[[test]]
name = "reborrow_fold"
[[test]]
name = "test1"
[[bench]]
name = "arithmetic"
harness = false
[[bench]]
name = "http"
harness = false
[[bench]]
name = "ini"
harness = false
[[bench]]
name = "ini_complete"
harness = false
[[bench]]
name = "ini_str"
harness = false
[[bench]]
name = "json"
harness = false
[[example]]
name = "json"
required-features = ["alloc"]
[badges]
travis-ci = { repository = "Geal/nom" }
coveralls = { repository = "Geal/nom", branch = "master", service = "github" }
maintenance = { status = "actively-developed" }