Skip to content

Commit 40d7b6d

Browse files
renovate[bot]ClaudeBrooooooklyn
authored
chore(deps): update rust crate v_jsonescape to 0.9 (#74)
* chore(deps): update rust crate v_jsonescape to 0.9 * 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> --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: anthropic-code-agent[bot] <242468646+Claude@users.noreply.github.com> Co-authored-by: Brooooooklyn <3468483+Brooooooklyn@users.noreply.github.com>
1 parent 47896e6 commit 40d7b6d

3 files changed

Lines changed: 13 additions & 4 deletions

File tree

Cargo.lock

Lines changed: 11 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
@@ -33,7 +33,7 @@ glob = "0.3"
3333
rand = "0.10"
3434
serde = "1"
3535
serde_json = "1"
36-
v_jsonescape = "0.7"
36+
v_jsonescape = "0.9"
3737
json-escape = "0.3.0"
3838
sonic-rs = "0.5"
3939

benches/escape.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ fn run_benchmarks(c: &mut Criterion, sources: &[String], prefix: &str) {
6666
c.bench_function(&format!("{} escape v_jsonescape", prefix), |b| {
6767
b.iter(|| {
6868
for source in sources {
69-
black_box(v_jsonescape::escape(source).to_string());
69+
black_box(v_jsonescape::escape_fmt(source).to_string());
7070
}
7171
})
7272
});

0 commit comments

Comments
 (0)