Cargo Features
[dependencies]
lexical-write-float = { version = "0.8.5", default-features = false, features = ["std", "power-of-two", "radix", "format", "compact", "safe", "nightly", "f16", "lint", "f128"] }
- default = std
-
The
std
feature is set by default wheneverlexical-write-float
is added without
somewhere in the dependency tree.default-features = false - std default
-
Use the standard library.
Enables std of lexical-util and lexical-write-integer
- power-of-two radix?
-
Add support for writing power-of-two float strings.
Enables power-of-two of lexical-util and lexical-write-integer
- radix = power-of-two
-
Add support for writing non-decimal float strings.
Enables radix of lexical-util and lexical-write-integer
- format
-
Add support for writing custom float formats.
Enables format of lexical-util
- compact
-
Reduce code size at the cost of performance.
Enables compact of lexical-util and lexical-write-integer
Affects
float::RawFloat
… - safe
-
Ensure only safe indexing is used.
This is not enabled by default for writers, due to the performance costs, and since input can be easily validated to avoid buffer overwrites.Enables safe of lexical-write-integer
- nightly
-
Add support for nightly-only features.
Enables nightly of lexical-write-integer
- f16
-
Enable support for 16-bit floats.
Enables f16 of lexical-util
- lint
-
Internal only features.
Enable the lint checks.Enables lint of lexical-util and lexical-write-integer
- f128
-
Currently unsupported.
Enable support for 128-bit floats.Enables f128 of lexical-util