NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
crates.io
crates.io, #691 most downloaded on crates.io
Lexical, to- and from-string conversion routines.
Latest stable
1.0.6
Last release 1 years ago
21 Sep 2025
Ships unpredictably
gaps range from 1 weeks to 2.3 years
Most releases are documented
notes for 32 of 40 stable releases
3 versions withdrawn
withdrawn after publishing
8 years old
43 releases · first in 2018
Drag across the ruler to compare, or tap a release to open it.
Increment high-level lexical version for release.
Increment high-level lexical version for release.
Only require 19 digits for writing i64 and not 20 ( #191 ).
i64 and not 20 (#191).Your coding agent can read these notes before it upgrades. Set up the MCP server →
Improved performance of number formatting with non-decimal radices ( #169 ).
Higher performance when parsing floats with digit separators.
no_integer_leading_zeros was enabled.Error::InvalidDigit.Regressions where parsing digit separators without the compact panicked.
compact panicked.The full changelog is as follows:
The full changelog is as follows:
alloc in no_std ennvironments without the write feature.MaybeUninit.-0.0 with a leading -.lexical-util and clearly documented the preconditions to use safely.lexical-write-integer and clearly documented the preconditions to use safely._unchecked API methods, since the performance benefits are dubious and it makes safety invariant checking much harder.safe and nightly features, since ASM is now supported by the MSRV on stable and opt-in for memory-safe indexing is no longer relevant.Fixed numeric overflow bug causing panic (should explicitly wrap) in dragonbox algorithm's umul192_lower128.
umul192_lower128.clippy and fmt lints.clap versions.powerpc64le checks due to bugs in workflow.Numerous bug fixes and minor feature additions.
Numerous bug fixes and minor feature additions.
-Zmiri-tag-raw-pointers in miri correctness checks.format_error and format_is_valid to determine if a format packed struct is valid, since the previous checks relied on undocumented behavior.from_radix to ParseFloatOptions and WriteFloatOptions, to simplify creating the default options with a different radix.no_std in lexical-parse-float when default features are disabled.power-of-two feature enabled for radixes 16 and 32.Reproduced all dependent licenses in lexical, and document extensively what features are dependent on what licensing terms.
Reproduced all dependent licenses in lexical, and document extensively what features are dependent on what licensing terms.
This was a large release that Involved a near complete re-write of lexical for faster algorithms, a simpler internal design, and faster digit parsing
This was a large release that Involved a near complete re-write of lexical for faster algorithms, a simpler internal design, and faster digit parsing implementations.
NumberFormat to be a packed u128 struct to allow more extensive configuration and use const generics.NumberFormat to be an internal implementation detail, and NumberFormatBuilder to be the public API for creating custom formats at compile time.Added parse_with_options, parse_partial_with_options.
Added write_with_options, write_unchecked, and write_with_options_unchecked.
Remove the write_format, write_radix, and similar functions.
Remove the parse_format, parse_radix, and similar functions.
Added a faster float writer and parser for power of 2 radixes.
Added the required_exponent_notation flag to NumberFormat.
Added the power-of-two feature, for conversion to and from strings with power-of-two bases.
Added the compact feature, optimized for binary size rather than performance.
Added extensive documentation on benchmarks, algorithms used, and internal implementation details.
dtoa feature. This allows only 1 compact backend and 1 performance backend, for fully additive features. The new Dragonbox algorithm is faster than any existing algorithms.rounding feature. This was never used in practice.This is a very large release that involved a full re-write from the ground-up.
parse_with_options, parse_partial_with_optionswrite_with_options.required_exponent_notation flag to NumberFormat.power-of-two feature, for conversion to and from strings with power-of-two bases.compact feature, optimized for binary size rather than performance.write_format, write_radix, and similar functions.parse_format, parse_radix, and similar functions.dtoa feature.rounding feature.Downgraded rand to fix proptests.
slice::sort is not present in no_std.libm which enables stable no_std use.Fixed issue with Integer::BITS conflicting with new compilers.
Fixed issue with Integer::BITS conflicting with new compilers.
integer::BITS conflicting with new compilers.Changed NumberFormat to use 64-bit flags.
Updated NumberFormat flags.
NO_INTEGER_LEADING_ZEROS and NO_FLOAT_LEADING_ZEROS NumberFormat flags.InvalidLeadingZeros to ErrorCode enum.validate_no_leading_zeros to reject invalid inputs.Updated the format bitflags to make matches more efficient.
Updated the format bitflags to make matches more efficient.
Fixed a regression causing special values to incorrectly parse.
Fixed a regression causing special values to incorrectly parse.
inf2 as working.Introduced the custom-format parse API
Introduced the custom-format parse API
format feature to control parsing integers and floats from number specifications.NumberFormat bitflags to control Number format specifications. These flags control how a number is parsed, including enabling the use of digit separators, requiring integer or fraction digits, and more.NumberFormat (RUST_STRING, PYTHON_LITERAL) to avoid compiling formats when not needed.FromLexicalFormat and FromLexicalLossyFormat traits with the format feature, which enable you to specify the number format during parsing.ErrorCode to signify more parse failures.ErrorCode::MissingFraction to be ErrorCode::MissingMantissa, to differentiate between missing integers, missing fractions, and missing significant digits (mantissa).RawFloatState and FloatState and replaced it logically with FastDataInterface and SlowDataInterface, allowing format-defined parsing.Updates dependencies to latest (config-if, static-assertions, arrayvec).
arrayvec and static-assertions versions.Patched an implementation of insert_many due to a security advisory which does not affect lexical.
Changed NumberFormat to use 64-bit flags.
Updated NumberFormat flags.
NO_INTEGER_LEADING_ZEROS and NO_FLOAT_LEADING_ZEROS NumberFormat flags.InvalidLeadingZeros to ErrorCode enum.validate_no_leading_zeros to reject invalid inputs.Updated the format bitflags to make matches more efficient.
Updated the format bitflags to make matches more efficient.
Fixed a regression causing special values to incorrectly parse.
Fixed a regression causing special values to incorrectly parse.
inf2 as working.Introduced the custom-format parse API
Introduced the custom-format parse API
Fixed a bug causing compilation issues on MSVC.
- Removed panic handlers. - Other no_std improvements.
no_std environments.Removed rust-stackvector with arrayvec, which has better support.
get/set_exponent_default_char, get/set_exponent_backup_char, and get/set_float_rounding, to allow validation logic for config variables.write* functions, which replace the *toa methods.parse* functions, which replace the ato* methods.EXPONENT_DEFAULT_CHAR, EXPONENT_BACKUP_CHAR, and FLOAT_ROUNDING.ato* to *toa, since these were for compatibility with the C-API and were therefore redundant.lexical-capi crate.Nothing published for this version
Refactored the internal API for simpler code paths.
MAX_*_SIZE_BASE10 constants, to determine the maximum size in bytes a formatted type will take in base 10.ato*_partial functions, which parse until an invalid digit is found, returning the value and number of processed digits.Underflow, to detect numerical underflow, EmptyFraction, to detect floats with an empty integer and fraction components, and EmptyExponent, to detect floats with no value following the exponent character.std::result::Result.ffi module.*_slice from functions in the public API, since there is no naming conflict with FFI code.*_ffi and *_FFI from public functions and constants.__udivmodti4).try_parse* has been replaced with parse*.Dropped support for Rustc versions older than 1.31.0.
Nothing published for this version
Substituted stackvector with arrayvec.
Remove Debug trait from structs containing references.
Bug fixes to use write_fmt instead of to_string in benches.
edition keyword.Write::write_fmt rather than to_string to avoid heap allocation leading to misleading results (credit to @RazrFalcon).Added CI for more architectures.
Added support for older Rustc versions, >= 1.24.0.
parse_partial* parsers, which parse until an invalid digit is found, returning the value and number of processed digits.&arr[idx] creates a local copy in Rust versions before 1.28.0, creating a dangling reference after the scope ends. For more details, see cached_grisu_power in /lexical-core/src/ftoa/grisu2.rs .FromBytes, FromBytesLossy, and ToBytes to FromLexical, FromLexicalLossy, and ToLexical.ToLexical from to_bytes and to_bytes_radix to to_lexical and to_lexical_radix to avoid conflict with unstable feature int_to_from_bytes.FromLexical from from_bytes, from_bytes_radix, try_from_bytes, and try_from_bytes_radix to from_lexical, from_lexical_radix, try_from_lexical, and try_from_lexical_radix to avoid conflict with unstable feature int_to_from_bytes.FromLexicalLossy from from_bytes_lossy, from_bytes_lossy_radix, try_from_bytes_lossy, and try_from_bytes_lossy_radix to from_lexical_lossy, from_lexical_lossy_radix, try_from_lexical_lossy, and try_from_lexical_lossy_radix to avoid conflict with unstable feature int_to_from_bytes.Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
One column per quarter.