Cargo Features
[dependencies]
lexical-core = { version = "1.0.5", 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-parse-float, lexical-parse-integer, lexical-util, lexical-write-float, and lexical-write-integer
- write-integers default = integers, lexical-write-integer, write
-
Add support for writing integers.
- write-floats default = floats, lexical-write-float, write
-
Add support for writing floats.
- parse-integers default = integers, lexical-parse-integer, parse
-
Add support for parsing integers.
- parse-floats default = floats, lexical-parse-float, parse
-
Add support for parsing floats.
- power-of-two
-
Add support for parsing power-of-two float strings.
Enables power-of-two of optional lexical-parse-float, optional lexical-parse-integer, lexical-util, optional lexical-write-float, and optional lexical-write-integer
- radix
-
Add support for parsing non-decimal float strings.
Enables radix of optional lexical-parse-float, optional lexical-parse-integer, lexical-util, optional lexical-write-float, and optional lexical-write-integer
- format
-
Add support for parsing custom numerical formats.
Enables format of optional lexical-parse-float, optional lexical-parse-integer, lexical-util, optional lexical-write-float, and optional lexical-write-integer
- compact
-
Reduce code size at the cost of performance.
Enables compact of optional lexical-parse-float, optional lexical-parse-integer, optional lexical-write-float, and optional lexical-write-integer
- f16
-
Enable support for 16-bit floats.
Enables f16 of optional lexical-parse-float, lexical-util, and optional lexical-write-float
- lint
-
INTERNAL ONLY
-------------
Internal only features. These are not meant to be used directly.
Enable the lint checks.Enables lint of optional lexical-parse-float, optional lexical-parse-integer, lexical-util, optional lexical-write-float, and optional lexical-write-integer
- write write-floats write-integers
-
Add support for writing numbers. Library users should use
write-integers
andwrite-floats
instead.Enables write of lexical-util
Affects
lexical-core::write
,lexical-core::write_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-util
Affects
lexical-core::parse
,lexical-core::parse_partial
,lexical-core::parse_with_options
,lexical-core::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-util
- 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-util
- 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 optional lexical-parse-float, lexical-util, and optional lexical-write-float
Features from optional dependencies
In crates that don't use the dep:
syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.