From 213e22a06eba3e1ae0a3bab494e6982667467028 Mon Sep 17 00:00:00 2001 From: liuqiang Date: Mon, 19 Oct 2026 12:13:31 +0800 Subject: [PATCH] fix: require sonic-number >= 0.1.3 The root parser (src/parser.rs) uses sonic_number::parse_float32 and sonic_number::parse_number_unchecked, both introduced in sonic-number 0.1.3. The loose version = "0.1" requirement allows Cargo to resolve to sonic-number 0.1.2 (e.g. when kept by an existing Cargo.lock), which makes the published sonic-rs 0.5.10 fail to build with E0432/E0425. Pin the requirement to "0.1.3" so Cargo selects at least sonic-number 0.1.3. Fixes #246 --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index cfcfb0f..8cb4af8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -24,7 +24,7 @@ itoa = "1.0" ref-cast = "1.0" serde = { version = "1.0", features = ["rc", "derive"] } simdutf8 = "0.1" -sonic-number = { path = "./sonic-number", version = "0.1" } +sonic-number = { path = "./sonic-number", version = "0.1.3" } sonic-simd = { path = "./sonic-simd", version = "0.1" } thiserror = "2.0" zmij = "1.0"