Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump jiter from 0.5.0 to 0.6.1 #1498

Merged
merged 2 commits into from
Oct 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading