From 2d8ed794af786bbd8a221441f369523799b2b427 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sat, 2 May 2026 07:38:15 +0000 Subject: [PATCH 1/2] chore(deps): update rust crate v_jsonescape to 0.9 --- Cargo.lock | 13 +++++++++++-- Cargo.toml | 2 +- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index deab62f..9a563c1 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -876,11 +876,20 @@ dependencies = [ "wasm-bindgen", ] +[[package]] +name = "v_escape-base" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f1212fce830b75af194b578e55b3db9049f2c8c45f58d397fb25602fdb50fb3d" + [[package]] name = "v_jsonescape" -version = "0.7.8" +version = "0.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "be8219cc464ba10c48c3231a6871f11d26d831c5c45a47467eea387ea7bb10e8" +checksum = "84cd6e591631bf251dc46aed57a3655c8e152017d58b019053cb65ba7a2336f2" +dependencies = [ + "v_escape-base", +] [[package]] name = "version_check" diff --git a/Cargo.toml b/Cargo.toml index 35f2d92..6a1a600 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -33,7 +33,7 @@ glob = "0.3" rand = "0.10" serde = "1" serde_json = "1" -v_jsonescape = "0.7" +v_jsonescape = "0.9" json-escape = "0.3.0" sonic-rs = "0.5" From 5b063de51d90ef58e8e880f89c0a878d47c21930 Mon Sep 17 00:00:00 2001 From: "anthropic-code-agent[bot]" <242468646+Claude@users.noreply.github.com> Date: Sun, 3 May 2026 15:10:57 +0000 Subject: [PATCH 2/2] fix: update v_jsonescape API usage for version 0.9 The v_jsonescape crate changed its API in version 0.9. The old `escape()` function that returned a String has been replaced with `escape_fmt()` which returns an impl Display. Agent-Logs-Url: https://github.com/napi-rs/json-escape-simd/sessions/00b6669d-b79d-45bf-8614-c4af9c6ebcf7 Co-authored-by: Brooooooklyn <3468483+Brooooooklyn@users.noreply.github.com> --- benches/escape.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/benches/escape.rs b/benches/escape.rs index 79bc213..aa1b2dc 100644 --- a/benches/escape.rs +++ b/benches/escape.rs @@ -66,7 +66,7 @@ fn run_benchmarks(c: &mut Criterion, sources: &[String], prefix: &str) { c.bench_function(&format!("{} escape v_jsonescape", prefix), |b| { b.iter(|| { for source in sources { - black_box(v_jsonescape::escape(source).to_string()); + black_box(v_jsonescape::escape_fmt(source).to_string()); } }) });