Thanks to visit codestin.com
Credit goes to lib.rs

Cargo Features

[dependencies]
lexical-util = { version = "1.0.7", default-features = false, features = ["std", "power-of-two", "radix", "format", "write-integers", "write-floats", "parse-integers", "parse-floats", "compact", "f16", "lint", "f128"] }

FEATURES
--------
In order to improve compile times, we have separate support for each numeric conversion. Since these features are additive,
if more features are added, separate crates can add support for more features without requiring re-compilation of lexical.

default = std

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

std default

Use the standard library.

power-of-two radix?

Add support for numerical conversions with power-of-two strings.

Affects assert::debug_assert_radix, prebuilt_formats::CXX_HEX_LITERAL, prebuilt_formats::CXX_HEX_STRING, prebuilt_formats::CXX20_HEX_LITERAL, prebuilt_formats::CXX20_HEX_STRING, prebuilt_formats::CXX17_HEX_LITERAL, prebuilt_formats::CXX17_HEX_STRING, prebuilt_formats::CXX14_HEX_STRING, prebuilt_formats::CXX11_HEX_STRING, prebuilt_formats::C_HEX_LITERAL, prebuilt_formats::C_HEX_STRING, prebuilt_formats::C18_HEX_LITERAL, prebuilt_formats::C18_HEX_STRING, prebuilt_formats::C11_HEX_LITERAL, prebuilt_formats::C11_HEX_STRING, prebuilt_formats::C99_HEX_LITERAL, prebuilt_formats::C99_HEX_STRING, assert::assert_buffer

radix = power-of-two

Add support for numerical conversions with non-decimal strings.

Affects assert::debug_assert_radix

format

Add support for parsing custom numerical formats.

write-integers

Add support for writing integers.

Affects algorithm::copy_to_dst, algorithm::rtrim_char_count, algorithm::ltrim_char_count, assert::assert_buffer, digit::digit_to_char, options::WriteOptions, assert::assert_buffer, digit::digit_to_char_const

write-floats f128? f16?

Add support for writing floats.

Affects algorithm::copy_to_dst, algorithm::rtrim_char_count, algorithm::ltrim_char_count, assert::assert_buffer, digit::digit_to_char, num::Float, options::WriteOptions, assert::assert_buffer, digit::digit_to_char_const

parse-integers

Add support for parsing integers.

Affects digit::char_to_digit, digit::char_is_digit, options::ParseOptions

parse-floats f128? f16?

Add support for parsing floats.

Affects digit::char_to_digit, digit::char_is_digit, num::Float, options::ParseOptions, digit::digit_to_char_const

compact

Reduce code size at the cost of performance.

f16 = float16, parse-floats, write-floats

Add support for the f16 and b16 half-point floating point numbers.

Affects num::AsPrimitive.as_f16, num::AsPrimitive.as_bf16

lint

Internal only features.
Enable the lint checks.

f128 = parse-floats, write-floats

UNSUPPORTED

Currently unsupported features. Enable support for 128-bit floats. Unsupported and unlikely to ever be. https://github.com/Alexhuszagh/rust-lexical/issues/46 Enable support for 16-bit floats. Enable support for 128-bit floats.

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.

float16 f16?