Cargo Features
[dependencies]
lexical = { version = "7.0.4", default-features = false, features = ["std", "write-integers", "write-floats", "parse-integers", "parse-floats", "power-of-two", "radix", "format", "compact", "f16", "lint", "write", "parse", "integers", "floats", "f128"] }
- 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
- write-floats default = floats, write
-
Add support for writing floats.
Enables write-floats of lexical-core
- parse-integers default = integers, parse
-
Add support for parsing integers.
Enables parse-integers of lexical-core
- parse-floats default = floats, parse
-
Add support for parsing floats.
Enables parse-floats of lexical-core
- 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
- write write-floats write-integers
-
Add support for writing numbers. Library users should use
write-integers
andwrite-floats
instead.Enables write of lexical-core
Affects
lexical::to_string
,lexical::to_string_with_options
… - parse parse-floats parse-integers
-
Add support for parsing numbers. Library users should use
parse-integers
andparse-floats
instead.Enables parse of lexical-core
Affects
lexical::parse
,lexical::parse_partial
,lexical::parse_with_options
,lexical::parse_partial_with_options
… - integers parse-integers write-integers
-
Add support for conversions to or from integers. Library users should use
write-integers
andparse-integers
instead.Enables integers of lexical-core
- floats parse-floats write-floats
-
Add support for conversions to or from floats. Library users should use
write-floats
andparse-floats
instead.Enables floats 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