1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58
|
[package]
authors = ["Alex Huszagh <ahuszagh@gmail.com>"]
autobenches = false
categories = ["parsing", "no-std"]
description = "Efficient parsing of integers from strings."
edition = "2021"
keywords = ["parsing", "lexical", "no_std"]
license = "MIT/Apache-2.0"
name = "lexical-parse-integer"
readme = "README.md"
repository = "https://github.com/Alexhuszagh/rust-lexical"
version = "1.0.5"
rust-version = "1.63.0"
exclude = [
"assets/*",
"docs/*",
"etc/*",
"cargo-timing*.html"
]
[dependencies]
static_assertions = "1"
[dependencies.lexical-util]
version = "1.0.5"
path = "../lexical-util"
default-features = false
features = ["parse-integers"]
[dev-dependencies]
# FIXME: Replace back to "1.0.4" once the PR is merged.
# There's an issue in quickcheck due to an infinitely repeating shrinker.
# Issue: https://github.com/BurntSushi/quickcheck/issues/295
# Fix: https://github.com/BurntSushi/quickcheck/pull/296
quickcheck = { git = "https://github.com/Alexhuszagh/quickcheck/", branch = "i32min-shrink-bound-legacy" }
proptest = ">=1.5.0"
[features]
default = ["std"]
# Use the standard library.
std = ["lexical-util/std"]
# Add support for parsing power-of-two integer strings.
power-of-two = ["lexical-util/power-of-two"]
# Add support for parsing non-decimal integer strings.
radix = ["lexical-util/radix", "power-of-two"]
# Add support for parsing custom integer formats.
format = ["lexical-util/format"]
# Reduce code size at the cost of performance.
compact = ["lexical-util/compact"]
# INTERNAL ONLY
# -------------
# Internal only features. These are not meant to be used directly.
# Enable the lint checks.
lint = ["lexical-util/lint"]
[package.metadata.docs.rs]
features = ["radix", "format"]
|