Skip to content

Commit

Permalink
Bump jiter from 0.5.0 to 0.6.1 (#1498)
Browse files Browse the repository at this point in the history
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
  • Loading branch information
dependabot[bot] authored Oct 23, 2024
1 parent e161980 commit 7c70e3b
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ base64 = "0.22.1"
num-bigint = "0.4.6"
python3-dll-a = "0.2.10"
uuid = "1.11.0"
jiter = { version = "0.5", features = ["python"] }
jiter = { version = "0.6", features = ["python"] }
hex = "0.4.3"

[lib]
Expand Down
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ extern crate core;

use std::sync::OnceLock;

use jiter::{map_json_error, PartialMode, PythonParse, StringCacheMode};
use jiter::{map_json_error, FloatMode, PartialMode, PythonParse, StringCacheMode};
use pyo3::exceptions::PyTypeError;
use pyo3::{prelude::*, sync::GILOnceCell};
use serializers::BytesMode;
Expand Down Expand Up @@ -61,7 +61,7 @@ pub fn from_json<'py>(
cache_mode: cache_strings,
partial_mode: allow_partial,
catch_duplicate_keys: false,
lossless_floats: false,
float_mode: FloatMode::Float,
};
parse_builder
.python_parse(py, json_bytes)
Expand Down
3 changes: 2 additions & 1 deletion src/validators/json.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
use jiter::FloatMode;
use pyo3::intern;
use pyo3::prelude::*;
use pyo3::types::PyDict;
Expand Down Expand Up @@ -71,7 +72,7 @@ impl Validator for JsonValidator {
cache_mode: state.cache_str(),
partial_mode: PartialMode::Off,
catch_duplicate_keys: false,
lossless_floats: false,
float_mode: FloatMode::Float,
};
let obj = parse_builder
.python_parse(py, json_bytes)
Expand Down

0 comments on commit 7c70e3b

Please sign in to comment.