Cargo Features

[dependencies]
lexical-parse-float = { version = "1.0.5", default-features = false, features = ["std", "power-of-two", "radix", "format", "compact", "f16", "lint", "f128"] }
default = std

The std feature is set by default whenever lexical-parse-float is added without default-features = false somewhere in the dependency tree.

std default

Use the standard library.

Enables std of lexical-parse-integer and lexical-util

Affects float::powf, float::powd

power-of-two radix?

Add support for parsing power-of-two float strings.

Enables power-of-two of lexical-parse-integer and lexical-util

Affects bigint::split_radix, limits::f32_exponent_limit, limits::f32_mantissa_limit, limits::f64_exponent_limit, limits::f64_mantissa_limit, limits::u32_power_limit, limits::u64_power_limit, shared::calculate_power2, limits::f128_exponent_limit, limits::f128_mantissa_limit

radix = power-of-two

Add support for parsing non-decimal float strings.

Enables radix of lexical-parse-integer and lexical-util

Affects bigint::Bigfloat, bigint::large_quorem, bigint::split_radix, limits::f32_exponent_limit, limits::f32_mantissa_limit, limits::f64_exponent_limit, limits::f64_mantissa_limit, limits::u32_power_limit, limits::u64_power_limit, slow::byte_comp, slow::compare_bytes, slow::integral_binary_factor, limits::f128_exponent_limit, limits::f128_mantissa_limit

format

Add support for parsing custom float formats.

Enables format of lexical-parse-integer and lexical-util

compact

Reduce code size at the cost of performance.

Enables compact of lexical-parse-integer and lexical-util

Affects float::powf, float::powd

f16

Enable support for 16-bit floats.

Enables f16 of lexical-util

lint

INTERNAL ONLY
-------------
Internal only features. These are not meant to be used directly.
Enable the lint checks.

Enables lint of lexical-parse-integer and 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 lexical-util

Affects limits::f128_exponent_limit, limits::f128_mantissa_limit, limits::f128_exponent_limit, limits::f128_exponent_limit, limits::f128_mantissa_limit, limits::f128_mantissa_limit