Switch from ryu -> zmij for float formatting#1304
Merged
Merged
Conversation
dtolnay
marked this pull request as draft
December 21, 2025 18:20
dtolnay
force-pushed
the
zmij
branch
2 times, most recently
from
December 22, 2025 18:00
d46a323 to
3d282d2
Compare
dtolnay
marked this pull request as ready for review
December 23, 2025 22:02
kayabaNerve
added a commit
to core-json/core-json
that referenced
this pull request
Dec 25, 2025
This follows serde-rs/json#1304. As both libraries are by the same author, we shouldn't have supply-chain concerns introduced by this commit.
This was referenced Dec 26, 2025
hugobast
added a commit
to hugobast/rust-decimal
that referenced
this pull request
Jan 14, 2026
This change moves from ryu to zmij for floating-point to string conversion in serde arbitrary precision deserialization. This follows the same direction as serde_json: serde-rs/json#1304 Related to: paupino#761
hugobast
added a commit
to hugobast/rust-decimal
that referenced
this pull request
Jan 14, 2026
Uses zmij for floating-point to string conversion to avoid precision loss during deserialization. This follows the same direction as serde_json: serde-rs/json#1304 Related to: paupino#761
takumi-earth
pushed a commit
to earthlings-dev/json
that referenced
this pull request
Jan 27, 2026
Switch from ryu -> zmij for float formatting
paupino
added a commit
to paupino/rust-decimal
that referenced
this pull request
Mar 13, 2026
* fix: address float to string loss of precision * chore: convert to a set of test cases * Allow the usage of stack-based strings * Address comments * Change calling method of doc test * Fix: RUSTSEC-2026-0001 Co-authored-by: sebadob <sebastiandobe@mailbox.org> * Version 1.40.0 * Replace ryu with zmij for float formatting This change moves from ryu to zmij for floating-point to string conversion in serde arbitrary precision deserialization. This follows the same direction as serde_json: serde-rs/json#1304 Related to: #761 * Set zmij to stable version * Benchmarking and div optimizations (#775) * Widen mathematical operations to retain precision as long as possible during calculations (#776) * Remove std requirement from rand tests (#778) --------- Co-authored-by: Hugo Bastien <hugo@stedi.com> Co-authored-by: Tony-Samuels <103182249+Tony-Samuels@users.noreply.github.com> Co-authored-by: Caio <c410.f3r@gmail.com> Co-authored-by: sebadob <sebastiandobe@mailbox.org>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
https://github.com/dtolnay/zmij
Benchmarks: https://github.com/dtolnay/dtoa-benchmark