Skip to content

Switch from ryu -> zmij for float formatting#1304

Merged
dtolnay merged 1 commit into
serde-rs:masterfrom
dtolnay:zmij
Dec 23, 2025
Merged

Switch from ryu -> zmij for float formatting#1304
dtolnay merged 1 commit into
serde-rs:masterfrom
dtolnay:zmij

Conversation

@dtolnay

@dtolnay dtolnay commented Dec 21, 2025

Copy link
Copy Markdown
Member

@dtolnay
dtolnay marked this pull request as draft December 21, 2025 18:20
@dtolnay
dtolnay force-pushed the zmij branch 2 times, most recently from d46a323 to 3d282d2 Compare December 22, 2025 18:00
@dtolnay
dtolnay marked this pull request as ready for review December 23, 2025 22:02
@dtolnay
dtolnay merged commit fd829a6 into serde-rs:master Dec 23, 2025
16 checks passed
@dtolnay
dtolnay deleted the zmij branch December 23, 2025 22:11
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.
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant