diff --git a/Cargo.toml b/Cargo.toml index ef0e9f2..127c526 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -27,10 +27,10 @@ rust-version = "1.77" [dependencies] byteorder = "1.5.0" -fast-float = "0.2.0" +fast-float2 = "0.2.3" itoa = "1.0" nom = "7.1.3" -ordered-float = { version = "4.2", default-features = false } +ordered-float = { version = "4.5", default-features = false } rand = { version = "0.8.5", features = ["small_rng"] } ryu = "1.0" serde_json = { version = "1.0", default-features = false, features = ["std"] } diff --git a/src/parser.rs b/src/parser.rs index 5c382c4..b1edbfd 100644 --- a/src/parser.rs +++ b/src/parser.rs @@ -271,7 +271,7 @@ impl<'a> Parser<'a> { } } - match fast_float::parse(s) { + match fast_float2::parse(s) { Ok(v) => Ok(Value::Number(Number::Float64(v))), Err(_) => Err(self.error(ParseErrorCode::InvalidNumberValue)), }