Skip to content

Commit c9b7732

Browse files
authored
Merge pull request #544 from rsonquery/v0ldek/dependabot
V0ldek/dependabot
2 parents e4cbaf3 + a98be77 commit c9b7732

File tree

16 files changed

+689
-558
lines changed

16 files changed

+689
-558
lines changed

Cargo.lock

+456-172
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+6-9
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,10 @@ members = [
44
"crates/rsonpath",
55
"crates/rsonpath-lib",
66
"crates/rsonpath-syntax",
7-
"crates/rsonpath-test"
7+
"crates/rsonpath-test",
88
]
99

10-
exclude = [
11-
"crates/rsonpath-benchmarks",
12-
"crates/rsonpath-test-codegen"
13-
]
10+
exclude = ["crates/rsonpath-benchmarks", "crates/rsonpath-test-codegen"]
1411

1512
resolver = "2"
1613

@@ -28,10 +25,10 @@ debug = 1
2825
# The time impact of build is not large (~33% time increase).
2926
[profile.distribution]
3027
inherits = "release"
31-
lto = "fat" # Better codegen, much slower compile time.
32-
codegen-units = 1 # Better codegen, much slower compile time.
33-
debug = 0 # Smaller binary size.
34-
strip = "debuginfo" # Smaller binary size.
28+
lto = "fat" # Better codegen, much slower compile time.
29+
codegen-units = 1 # Better codegen, much slower compile time.
30+
debug = 0 # Smaller binary size.
31+
strip = "debuginfo" # Smaller binary size.
3532

3633
[patch.crates-io]
3734
rsonpath-lib = { path = "./crates/rsonpath-lib" }

Justfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ doc $RUSTDOCFLAGS="--cfg docsrs":
5656

5757
# Run the codegen for rsonpath-test, generating the E2E tests and JSONs.
5858
gen-tests:
59-
RSONPATH_ENABLE_TEST_CODEGEN=1 cargo build --package rsonpath-test
59+
RSONPATH_ENABLE_TEST_CODEGEN=1 cargo build -p rsonpath-test
6060

6161
# === RUN ===
6262

crates/rsonpath-lib/Cargo.toml

+8-8
Original file line numberDiff line numberDiff line change
@@ -27,21 +27,21 @@ rustdoc-args = ["--cfg", "docsrs"]
2727
all-features = true
2828

2929
[dependencies]
30-
arbitrary = { version = "1.3.1", features = ["derive"], optional = true }
30+
arbitrary = { version = "1.3.2", features = ["derive"], optional = true }
3131
cfg-if = "1.0.0"
32-
log = "0.4.21"
33-
memmap2 = "0.9.4"
32+
log = "0.4.22"
33+
memmap2 = "0.9.5"
3434
nom = "7.1.3"
3535
rsonpath-syntax = { version = "0.3.1", path = "../rsonpath-syntax" }
36-
smallvec = { version = "1.13.1", features = ["union"] }
36+
smallvec = { version = "1.13.2", features = ["union"] }
3737
static_assertions = "1.1.0"
38-
thiserror = "1.0.58"
38+
thiserror = "1.0.64"
3939
vector-map = "1.0.1"
4040

4141
[dev-dependencies]
42-
itertools = "0.12.1"
43-
pretty_assertions = "1.4.0"
44-
proptest = "1.4.0"
42+
itertools = "0.13.0"
43+
pretty_assertions = "1.4.1"
44+
proptest = "1.5.0"
4545
test-case = "3.3.1"
4646

4747
[features]

crates/rsonpath-lib/src/input/mmap.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -100,11 +100,11 @@ impl Input for MmapInput {
100100

101101
#[inline]
102102
fn seek_backward(&self, from: usize, needle: u8) -> Option<usize> {
103-
return if from < self.last_block_start {
103+
if from < self.last_block_start {
104104
self.mmap.seek_backward(from, needle)
105105
} else {
106106
self.as_padded_input().seek_backward(from, needle)
107-
};
107+
}
108108
}
109109

110110
#[inline]
@@ -153,11 +153,11 @@ impl Input for MmapInput {
153153

154154
#[inline]
155155
fn seek_non_whitespace_backward(&self, from: usize) -> Option<(usize, u8)> {
156-
return if from < self.last_block_start {
156+
if from < self.last_block_start {
157157
self.mmap.seek_non_whitespace_backward(from)
158158
} else {
159159
self.as_padded_input().seek_non_whitespace_backward(from)
160-
};
160+
}
161161
}
162162

163163
#[inline]

crates/rsonpath-lib/src/result/nodes.rs

+1-5
Original file line numberDiff line numberDiff line change
@@ -425,11 +425,7 @@ fn append_block(dest: &mut Vec<u8>, src: &[u8], src_start: usize, read_start: us
425425
fn append_final_block(dest: &mut Vec<u8>, src: &[u8], src_start: usize, read_start: usize, read_end: usize) {
426426
debug!("src_start: {src_start}, read_start: {read_start}, read_end: {read_end}");
427427
debug_assert!(read_end >= src_start);
428-
let in_block_start = if read_start > src_start {
429-
read_start - src_start
430-
} else {
431-
0
432-
};
428+
let in_block_start = read_start.saturating_sub(src_start);
433429
let in_block_end = read_end - src_start;
434430

435431
dest.extend(&src[in_block_start..in_block_end]);

crates/rsonpath-syntax/Cargo.toml

+7-7
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,16 @@ rustdoc-args = ["--cfg", "docsrs"]
1717
all-features = true
1818

1919
[dependencies]
20-
arbitrary = { version = "1.3.1", features = ["derive"], optional = true }
21-
owo-colors = { version = "4.0.0", default-features = false, optional = true }
20+
arbitrary = { version = "1.3.2", features = ["derive"], optional = true }
21+
owo-colors = { version = "4.1.0", default-features = false, optional = true }
2222
nom = "7.1.3"
23-
thiserror = "1.0.58"
24-
unicode-width = "0.1.11"
23+
thiserror = "1.0.64"
24+
unicode-width = "0.2.0"
2525

2626
[dev-dependencies]
27-
insta = "1.38.0"
28-
pretty_assertions = "1.4.0"
29-
proptest = "1.4.0"
27+
insta = "1.40.0"
28+
pretty_assertions = "1.4.1"
29+
proptest = "1.5.0"
3030
test-case = "3.3.1"
3131

3232
[features]

crates/rsonpath-syntax/src/parser.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -514,7 +514,7 @@ fn logical_expr<'q>(q: &'q str, ctx: ParseCtx) -> IResult<&'q str, LogicalExpr,
514514
return fail(SyntaxErrorKind::NonSingularQueryInComparison, q.len(), query_len, rest);
515515
};
516516
if negated {
517-
return fail(SyntaxErrorKind::InvalidNegation, q.len(), 1, rest);
517+
fail(SyntaxErrorKind::InvalidNegation, q.len(), 1, rest)
518518
} else {
519519
Ok((
520520
rest,

crates/rsonpath-test-codegen/Cargo.lock

+84-42
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/rsonpath-test-codegen/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ serde = { version = "1.0.210", features = ["derive"] }
1919
toml = "0.8.19"
2020
proc-macro2 = "1.0.86"
2121
quote = "1.0.37"
22-
heck = { version = "0.4.1", features = ["unicode"] }
22+
heck = { version = "0.5.0" }
2323
walkdir = "2.5.0"
2424

2525
[dev-dependencies]

0 commit comments

Comments
 (0)