Cargo Features
[dependencies]
lexical = { version = "7.0.5", default-features = false, features = ["std", "write-integers", "write-floats", "parse-integers", "parse-floats", "power-of-two", "radix", "format", "compact", "f16", "lint", "f128", "parse", "write", "integers", "floats"] }
- default = parse-floats, parse-integers, std, write-floats, write-integers
-
Need to enable all for backwards compatibility.
- std default
-
Use the standard library.
Enables std of lexical-core
- write-integers default integers? write?
-
Add support for writing integers.
Enables write-integers of lexical-core
Affects
lexical::to_string,lexical::to_string_with_options… - write-floats default floats? write?
-
Add support for writing floats.
Enables write-floats of lexical-core
Affects
lexical::to_string,lexical::to_string_with_options… - parse-integers default integers? parse?
-
Add support for parsing integers.
Enables parse-integers of lexical-core
Affects
lexical::parse,lexical::parse_partial,lexical::parse_with_options,lexical::parse_partial_with_options… - parse-floats default floats? parse?
-
Add support for parsing floats.
Enables parse-floats of lexical-core
Affects
lexical::parse,lexical::parse_partial,lexical::parse_with_options,lexical::parse_partial_with_options… - power-of-two
-
Add support for parsing power-of-two float strings.
Enables power-of-two of lexical-core
- radix
-
Add support for parsing non-decimal float strings.
Enables radix of lexical-core
- format
-
Add support for parsing custom numerical formats.
Enables format of lexical-core
- compact
-
Reduce code size at the cost of performance.
Enables compact of lexical-core
- f16
-
Enable support for 16-bit floats.
Enables f16 of lexical-core
- lint
-
INTERNAL ONLY
-------------
Internal only features. These are not meant to be used directly.
Enable the lint checks.Enables lint of lexical-core
- f128
-
UNSUPPORTED
Currently unsupported features. Enable support for 128-bit floats. Unsupported and unlikely to ever be. https://github.com/Alexhuszagh/rust-lexical/issues/46
Enables f128 of lexical-core
- parse = parse-floats, parse-integers
-
DEPRECATED
----------
These were never supported, however, they exist in case existing code uses them. They should not be used under any circumstances and should be removed. - write = write-floats, write-integers
- integers = parse-integers, write-integers
- floats = parse-floats, write-floats