Debian Codegraph @

Cargo.toml.orig

raw
1 [package]
2 authors = ["Alex Huszagh <[email protected]>"]
3 autobenches = false
4 categories = ["value-formatting", "encoding", "no-std"]
5 description = "Shared utilities for lexical creates."
6 edition = "2021"
7 keywords = ["no_std"]
8 license = "MIT/Apache-2.0"
9 name = "lexical-util"
10 readme = "README.md"
11 repository = "https://github.com/Alexhuszagh/rust-lexical"
12 version = "1.0.7"
13 rust-version = "1.60.0"
14 exclude = [
15 "assets/*",
16 "docs/*",
17 "etc/*",
18 "cargo-timing*.html"
19 ]
20
21 [dependencies]
22 float16 = { version = "0.1.0", optional = true }
23
24 # FEATURES
25 # --------
26 # In order to improve compile times, we have separate support
27 # for each numeric conversion. Since these features are additive,
28 # if more features are added, separate crates can add support
29 # for more features without requiring re-compilation of lexical.
30
31 [features]
32 default = ["std"]
33 # Use the standard library.
34 std = []
35 # Add support for numerical conversions with power-of-two strings.
36 power-of-two = []
37 # Add support for numerical conversions with non-decimal strings.
38 radix = ["power-of-two"]
39 # Add support for parsing custom numerical formats.
40 format = []
41 # Add support for writing integers.
42 write-integers = []
43 # Add support for writing floats.
44 write-floats = []
45 # Add support for parsing integers.
46 parse-integers = []
47 # Add support for parsing floats.
48 parse-floats = []
49 # Reduce code size at the cost of performance.
50 compact = []
51 # Add support for the `f16` and `b16` half-point floating point numbers.
52 f16 = ["parse-floats", "write-floats", "float16"]
53
54 # Internal only features.
55 # Enable the lint checks.
56 lint = []
57
58 # UNSUPPORTED
59 # -----------
60 # Currently unsupported features.
61 # Enable support for 128-bit floats. Unsupported and unlikely to ever be.
62 # https://github.com/Alexhuszagh/rust-lexical/issues/46
63 # Enable support for 16-bit floats.
64 # Enable support for 128-bit floats.
65 f128 = ["parse-floats", "write-floats"]
66
67 [package.metadata.docs.rs]
68 features = ["radix", "format", "write-integers", "write-floats", "parse-integers", "parse-floats", "f16"]
69 rustdoc-args = ["--cfg", "docsrs"]