Skip to content

Commit 7c70e3b

Browse files
Bump jiter from 0.5.0 to 0.6.1 (#1498)
Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1 parent e161980 commit 7c70e3b

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ base64 = "0.22.1"
4646
num-bigint = "0.4.6"
4747
python3-dll-a = "0.2.10"
4848
uuid = "1.11.0"
49-
jiter = { version = "0.5", features = ["python"] }
49+
jiter = { version = "0.6", features = ["python"] }
5050
hex = "0.4.3"
5151

5252
[lib]

src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ extern crate core;
44

55
use std::sync::OnceLock;
66

7-
use jiter::{map_json_error, PartialMode, PythonParse, StringCacheMode};
7+
use jiter::{map_json_error, FloatMode, PartialMode, PythonParse, StringCacheMode};
88
use pyo3::exceptions::PyTypeError;
99
use pyo3::{prelude::*, sync::GILOnceCell};
1010
use serializers::BytesMode;
@@ -61,7 +61,7 @@ pub fn from_json<'py>(
6161
cache_mode: cache_strings,
6262
partial_mode: allow_partial,
6363
catch_duplicate_keys: false,
64-
lossless_floats: false,
64+
float_mode: FloatMode::Float,
6565
};
6666
parse_builder
6767
.python_parse(py, json_bytes)

src/validators/json.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
use jiter::FloatMode;
12
use pyo3::intern;
23
use pyo3::prelude::*;
34
use pyo3::types::PyDict;
@@ -71,7 +72,7 @@ impl Validator for JsonValidator {
7172
cache_mode: state.cache_str(),
7273
partial_mode: PartialMode::Off,
7374
catch_duplicate_keys: false,
74-
lossless_floats: false,
75+
float_mode: FloatMode::Float,
7576
};
7677
let obj = parse_builder
7778
.python_parse(py, json_bytes)

0 commit comments

Comments
 (0)