From ad66a2f8abdecc22196de537762d191004209d2e Mon Sep 17 00:00:00 2001 From: V0ldek Date: Mon, 30 Oct 2023 19:53:43 +0000 Subject: [PATCH] release v0.8.4 --- .github/ISSUE_TEMPLATE/bug_report.yml | 3 +- CHANGELOG.md | 42 ++++++++ Cargo.lock | 126 +++++++++++++----------- Justfile | 8 +- README.md | 94 +++++++++--------- book/src/user/installation.md | 2 +- crates/rsonpath-lib/Cargo.toml | 2 +- crates/rsonpath-lib/README.md | 5 +- crates/rsonpath-lib/src/lib.rs | 3 - crates/rsonpath-test-codegen/Cargo.lock | 2 +- crates/rsonpath-test-codegen/Cargo.toml | 2 +- crates/rsonpath-test/Cargo.toml | 6 +- crates/rsonpath/Cargo.toml | 4 +- fuzz/Cargo.lock | 2 +- fuzz/Cargo.toml | 1 + 15 files changed, 176 insertions(+), 126 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml index 28eeca92..19eea4a6 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.yml +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -71,7 +71,8 @@ body: attributes: label: Version of the release options: - # + # + - v0.8.4 - v0.8.3 - v0.8.2 - v0.8.1 diff --git a/CHANGELOG.md b/CHANGELOG.md index 57df1447..a13836f7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,48 @@ All notable changes to this project will be documented in this file. +## [0.8.4] - 2023-10-30 + +### Features + +- [**breaking**] Refactor the `Input` implementors with automatic padding (#[276](https://github.com/V0ldek/rsonpath/issues/276)). + - Padding and alignment is now handled automatically by the input types, + allowing them to work safely without copying the entire input. The overhead is now + limited to the padding, which is at most 256 bytes in total. + - [`BorrowedBytes`](https://docs.rs/rsonpath-lib/0.8.4/rsonpath/input/borrowed/struct.BorrowedBytes.html) is now safe to construct. + - [`OwnedBytes`](https://docs.rs/rsonpath-lib/0.8.4/rsonpath/input/owned/struct.OwnedBytes.html) no longer copies + the entire source on construction. + +### Bug Fixes + +- Atomic values getting invalid spans (#327). ([#327](https://github.com/V0ldek/rsonpath/issues/327)) + - Fixed an issue where atomic values would be matched with all + trailing characters up until the next closing. + +### Performance + +- Improve SIMD codegen. + - Improved the way we dispatch to SIMD-intensive functions. + This results in slightly larger binaries, but *massive* speedups – + throughput increase of 5, 10, 20, or in case of `google_map::travel_modes/rsonpath_direct_count` + 59 (fifty-nine) percent. + +### Reliability + +- Harden GitHub Actions. + - We now use the StepSecurity [harden-runner](https://github.com/step-security/harden-runner) in audit mode + to test a more secure approach to GitHub CI. +- End to end test refactor. + - tests are now generated into many separate files instead of one gigantic file. + This improves compilation times, responsiveness of rust-analyzer, + and in general makes the tooling happier. + +### Dependencies + +- Bump arbitrary from 1.3.0 to 1.3.2. +- Bump clap from 4.4.6 to 4.4.7. +- Bump thiserror from 1.0.49 to 1.0.50. + ## [0.8.3] - 2023-10-04 ### Bug Fixes diff --git a/Cargo.lock b/Cargo.lock index 409535d8..ce2bd838 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -73,9 +73,9 @@ checksum = "a4668cab20f66d8d020e1fbc0ebe47217433c1b6c8f2040faf858554e394ace6" [[package]] name = "arbitrary" -version = "1.3.1" +version = "1.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a2e1373abdaa212b704512ec2bd8b26bd0b7d5c3f70117411a5d9a451383c859" +checksum = "7d5a26814d8dcb93b0e5a0ff3c6d80a8843bafb21b39e8e18a6f05471870e110" dependencies = [ "derive_arbitrary", ] @@ -124,9 +124,9 @@ checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" [[package]] name = "bitflags" -version = "2.4.0" +version = "2.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b4682ae6287fcf752ecaabbfcc7b6f9b72aa33933dc23a554d853aea8eea8635" +checksum = "327762f6e5a765692301e5bb513e0d9fef63be86bbc14528052b1cd3e6f03e07" [[package]] name = "cc" @@ -175,7 +175,7 @@ dependencies = [ "heck", "proc-macro2", "quote", - "syn 2.0.37", + "syn 2.0.38", ] [[package]] @@ -269,19 +269,22 @@ dependencies = [ [[package]] name = "deranged" -version = "0.3.8" +version = "0.3.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f2696e8a945f658fd14dc3b87242e6b80cd0f36ff04ea560fa39082368847946" +checksum = "0f32d04922c60427da6f9fef14d042d9edddef64cb9d4ce0d64d0685fbeb1fd3" +dependencies = [ + "powerfmt", +] [[package]] name = "derive_arbitrary" -version = "1.3.1" +version = "1.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "53e0efad4403bfc52dc201159c4b842a246a14b98c64b55dfd0f2d89729dfeb8" +checksum = "67e77553c4162a157adbf834ebae5b415acbecbeafc7a74b0e886657506a7611" dependencies = [ "proc-macro2", "quote", - "syn 2.0.37", + "syn 2.0.38", ] [[package]] @@ -310,25 +313,14 @@ checksum = "5443807d6dff69373d433ab9ef5378ad8df50ca6298caf15de6e52e24aaf54d5" [[package]] name = "errno" -version = "0.3.4" +version = "0.3.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "add4f07d43996f76ef320709726a556a9d4f965d9410d8d0271132d2f8293480" +checksum = "ac3e13f66a2f95e32a39eaa81f6b95d42878ca0e1db0c7543723dfe12557e860" dependencies = [ - "errno-dragonfly", "libc", "windows-sys 0.48.0", ] -[[package]] -name = "errno-dragonfly" -version = "0.1.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "aa68f1b12764fab894d2755d2518754e71b4fd80ecfb822714a1206c2aab39bf" -dependencies = [ - "cc", - "libc", -] - [[package]] name = "eyre" version = "0.6.8" @@ -353,7 +345,7 @@ checksum = "d4029edd3e734da6fe05b6cd7bd2960760a616bd2ddd0d59a0124746d6272af0" dependencies = [ "cfg-if", "libc", - "redox_syscall", + "redox_syscall 0.3.5", "windows-sys 0.48.0", ] @@ -399,9 +391,9 @@ checksum = "d2fabcfbdc87f4758337ca535fb41a6d701b65693ce38287d856d1674551ec9b" [[package]] name = "hashbrown" -version = "0.14.1" +version = "0.14.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7dfda62a12f55daeae5015f81b0baea145391cb4520f86c248fc615d72640d12" +checksum = "f93e7192158dbcda357bdec5fb5788eebf8bbac027f3f33e719d29135ae84156" [[package]] name = "heck" @@ -484,21 +476,21 @@ checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646" [[package]] name = "libc" -version = "0.2.148" +version = "0.2.149" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9cdc71e17332e86d2e1d38c1f99edcb6288ee11b815fb1a4b049eaa2114d369b" +checksum = "a08173bc88b7955d1b3145aa561539096c421ac8debde8cbc3612ec635fee29b" [[package]] name = "libm" -version = "0.2.7" +version = "0.2.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f7012b1bbb0719e1097c47611d3898568c546d597c2e74d66f6087edd5233ff4" +checksum = "4ec2a862134d2a7d32d7983ddcdd1c4923530833c9f2ea1a44fc5fa473989058" [[package]] name = "linux-raw-sys" -version = "0.4.8" +version = "0.4.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3852614a3bd9ca9804678ba6be5e3b8ce76dfc902cae004e3e0c44051b6e88db" +checksum = "da2479e8c062e40bf0066ffa0bc823de0a9368974af99c9f6df941d2c231e03f" [[package]] name = "log" @@ -569,9 +561,9 @@ checksum = "61807f77802ff30975e01f4f071c8ba10c022052f98b3294119f3e615d13e5be" [[package]] name = "num-traits" -version = "0.2.16" +version = "0.2.17" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f30b0abd723be7e2ffca1272140fac1a2f084c77ec3e123c192b66af1ee9e6c2" +checksum = "39e3200413f237f41ab11ad6d161bc7239c84dcb631773ccd7de3dfe4b5c267c" dependencies = [ "autocfg", "libm", @@ -617,6 +609,12 @@ version = "3.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c1b04fb49957986fdce4d6ee7a65027d55d4b6d2265e5848bbb507b58ccfdb6f" +[[package]] +name = "powerfmt" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "439ee305def115ba05938db6eb1644ff94165c5ab5e9420d1c1bcedbba909391" + [[package]] name = "ppv-lite86" version = "0.2.17" @@ -674,7 +672,7 @@ checksum = "7c003ac8c77cb07bb74f5f198bce836a689bcd5a42574612bf14d17bfd08c20e" dependencies = [ "bit-set", "bit-vec", - "bitflags 2.4.0", + "bitflags 2.4.1", "lazy_static", "num-traits", "rand 0.8.5", @@ -810,6 +808,15 @@ dependencies = [ "bitflags 1.3.2", ] +[[package]] +name = "redox_syscall" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4722d768eff46b75989dd134e5c353f0d6296e5aaa3132e776cbdb56be7731aa" +dependencies = [ + "bitflags 1.3.2", +] + [[package]] name = "regex-syntax" version = "0.7.5" @@ -818,7 +825,7 @@ checksum = "dbb5fb1acd8a1a18b3dd5be62d25485eb770e05afb408a9627d14d451bae12da" [[package]] name = "rsonpath" -version = "0.8.3" +version = "0.8.4" dependencies = [ "clap", "color-eyre", @@ -833,7 +840,7 @@ dependencies = [ [[package]] name = "rsonpath-lib" -version = "0.8.3" +version = "0.8.4" dependencies = [ "arbitrary", "cfg-if", @@ -852,7 +859,7 @@ dependencies = [ [[package]] name = "rsonpath-test" -version = "0.8.3" +version = "0.8.4" dependencies = [ "eyre", "glob", @@ -864,7 +871,7 @@ dependencies = [ [[package]] name = "rsonpath-test-codegen" -version = "0.8.3" +version = "0.8.4" dependencies = [ "heck", "proc-macro2", @@ -897,11 +904,11 @@ checksum = "e74f1ec0cda1aea3a3a6c0df066cd67acac62e24064532b871e8eafb0ec6c126" [[package]] name = "rustix" -version = "0.38.19" +version = "0.38.21" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "745ecfa778e66b2b63c88a61cb36e0eea109e803b0b86bf9879fbc77c70e86ed" +checksum = "2b426b0506e5d50a7d8dafcf2e81471400deb602392c7dd110815afb4eaf02a3" dependencies = [ - "bitflags 2.4.0", + "bitflags 2.4.1", "errno", "libc", "linux-raw-sys", @@ -943,9 +950,9 @@ checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49" [[package]] name = "semver" -version = "1.0.19" +version = "1.0.20" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ad977052201c6de01a8ef2aa3378c4bd23217a056337d1d6da40468d267a4fb0" +checksum = "836fa6a3e1e547f9a2c4040802ec865b5d85f4014efe00555d7090a3dcaa1090" [[package]] name = "serde" @@ -964,7 +971,7 @@ checksum = "67c5609f394e5c2bd7fc51efda478004ea80ef42fee983d5c67a65e34f32c0e3" dependencies = [ "proc-macro2", "quote", - "syn 2.0.37", + "syn 2.0.38", ] [[package]] @@ -984,9 +991,9 @@ checksum = "a7cee0529a6d40f580e7a5e6c495c8fbfe21b7b52795ed4bb5e62cdf92bc6380" [[package]] name = "similar" -version = "2.2.1" +version = "2.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "420acb44afdae038210c99e69aae24109f32f15500aa708e81d46c9f29d55fcf" +checksum = "2aeaf503862c419d66959f5d7ca015337d864e9c49485d771b732e2a20453597" [[package]] name = "simple_logger" @@ -1062,9 +1069,9 @@ dependencies = [ [[package]] name = "syn" -version = "2.0.37" +version = "2.0.38" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7303ef2c05cd654186cb250d29049a24840ca25d2747c25c0381c8d9e2f582e8" +checksum = "e96b79aaa137db8f61e26363a0c9b47d8b4ec75da28b7d1d614c2303e232408b" dependencies = [ "proc-macro2", "quote", @@ -1073,13 +1080,13 @@ dependencies = [ [[package]] name = "tempfile" -version = "3.8.0" +version = "3.8.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cb94d2f3cc536af71caac6b6fcebf65860b347e7ce0cc9ebe8f70d3e521054ef" +checksum = "7ef1adac450ad7f4b3c28589471ade84f25f731a7a0fe30d71dfa9f60fd808e5" dependencies = [ "cfg-if", "fastrand", - "redox_syscall", + "redox_syscall 0.4.1", "rustix", "windows-sys 0.48.0", ] @@ -1113,7 +1120,7 @@ dependencies = [ "proc-macro-error", "proc-macro2", "quote", - "syn 2.0.37", + "syn 2.0.38", ] [[package]] @@ -1125,7 +1132,7 @@ dependencies = [ "proc-macro-error", "proc-macro2", "quote", - "syn 2.0.37", + "syn 2.0.38", "test-case-core", ] @@ -1146,19 +1153,20 @@ checksum = "266b2e40bc00e5a6c09c3584011e08b06f123c00362c92b975ba9843aaaa14b8" dependencies = [ "proc-macro2", "quote", - "syn 2.0.37", + "syn 2.0.38", ] [[package]] name = "time" -version = "0.3.29" +version = "0.3.30" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "426f806f4089c493dcac0d24c29c01e2c38baf8e30f1b716ee37e83d200b18fe" +checksum = "c4a34ab300f2dee6e562c10a046fc05e358b29f9bf92277f30c3c8d82275f6f5" dependencies = [ "deranged", "itoa", "libc", "num_threads", + "powerfmt", "serde", "time-core", "time-macros", @@ -1468,9 +1476,9 @@ checksum = "1a515f5799fe4961cb532f983ce2b23082366b898e52ffbce459c86f67c8378a" [[package]] name = "winnow" -version = "0.5.15" +version = "0.5.17" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7c2e3184b9c4e92ad5167ca73039d0c42476302ab603e2fec4487511f38ccefc" +checksum = "a3b801d0e0a6726477cc207f60162da452f3a95adb368399bef20a946e06f65c" dependencies = [ "memchr", ] diff --git a/Justfile b/Justfile index 0af23533..a595268b 100644 --- a/Justfile +++ b/Justfile @@ -280,9 +280,9 @@ release-patch ver: [private] release-readme: #!/usr/bin/env nu - let rsonpath_deps = (cargo tree --package rsonpath --edges normal --edges build --depth 1 --target=all); - let rsonpath_lib_deps = (cargo tree --package rsonpath-lib --edges normal --edges build --depth 1 --target=all); - let rsonpath_full_deps = (cargo tree --package rsonpath --edges normal --edges build --target=all); + let rsonpath_deps = (cargo tree --package rsonpath --edges normal --edges build --depth 1 --target=all --all-features); + let rsonpath_lib_deps = (cargo tree --package rsonpath-lib --edges normal --edges build --depth 1 --target=all --all-features); + let rsonpath_full_deps = (cargo tree --package rsonpath --edges normal --edges build --target=all --all-features); let params = [ [$rsonpath_deps, "rsonpath", "./README.md"], [$rsonpath_lib_deps, "rsonpath-lib", "./README.md"], @@ -290,7 +290,7 @@ release-readme: [$rsonpath_full_deps, "rsonpath-full", "./README.md"] ]; $params | each {|x| - let deps = ($x.0 | str replace '\n' '\n' --all | str replace '/' '\/' --all); + let deps = ($x.0 | str replace "\n" '\n' --all | str replace '/' '\/' --all); sed -z -i $'s/\n```ini\n.*```\n/\n```ini\n($deps)\n```\n/' $x.2 }; diff --git a/README.md b/README.md index 02d3f502..df77d290 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -#
rsonpath – SIMD-powered JSONPath 🚀
+# rsonpath – SIMD-powered JSONPath 🚀 [![Rust](https://github.com/V0ldek/rsonpath/actions/workflows/rust.yml/badge.svg)](https://github.com/V0ldek/rsonpath/actions/workflows/rust.yml) [![docs.rs](https://img.shields.io/docsrs/rsonpath-lib?logo=docs.rs)](https://docs.rs/crate/rsonpath-lib/latest) @@ -216,12 +216,12 @@ cargo tree --package rsonpath --edges normal --depth 1 ```ini -rsonpath v0.8.3 (/home/mat/rsonpath/crates/rsonpath) -├── clap v4.4.6 +rsonpath v0.8.4 (/home/mat/rsonpath/crates/rsonpath) +├── clap v4.4.7 ├── color-eyre v0.6.2 ├── eyre v0.6.8 ├── log v0.4.20 -├── rsonpath-lib v0.8.3 (/home/mat/rsonpath/crates/rsonpath-lib) +├── rsonpath-lib v0.8.4 (/home/mat/rsonpath/crates/rsonpath-lib) └── simple_logger v4.2.0 [build-dependencies] ├── rustflags v0.1.4 @@ -236,14 +236,15 @@ cargo tree --package rsonpath-lib --edges normal --depth 1 ```ini -rsonpath-lib v0.8.3 (/home/mat/rsonpath/crates/rsonpath-lib) +rsonpath-lib v0.8.4 (/home/mat/rsonpath/crates/rsonpath-lib) +├── arbitrary v1.3.2 ├── cfg-if v1.0.0 ├── log v0.4.20 ├── memmap2 v0.9.0 ├── nom v7.1.3 ├── smallvec v1.11.1 ├── static_assertions v1.1.0 -├── thiserror v1.0.49 +├── thiserror v1.0.50 └── vector-map v1.0.1 ``` @@ -269,9 +270,9 @@ cargo tree --package rsonpath --edges normal ```ini -rsonpath v0.8.3 (/home/mat/rsonpath/crates/rsonpath) -├── clap v4.4.6 -│ ├── clap_builder v4.4.6 +rsonpath v0.8.4 (/home/mat/rsonpath/crates/rsonpath) +├── clap v4.4.7 +│ ├── clap_builder v4.4.7 │ │ ├── anstream v0.6.4 │ │ │ ├── anstyle v1.0.4 │ │ │ ├── anstyle-parse v0.2.2 @@ -292,31 +293,26 @@ rsonpath v0.8.3 (/home/mat/rsonpath/crates/rsonpath) │ │ │ ├── colorchoice v1.0.0 │ │ │ └── utf8parse v0.2.1 │ │ ├── anstyle v1.0.4 -│ │ ├── clap_lex v0.5.1 +│ │ ├── clap_lex v0.6.0 │ │ ├── strsim v0.10.0 │ │ └── terminal_size v0.3.0 -│ │ ├── rustix v0.38.15 -│ │ │ ├── bitflags v2.4.0 -│ │ │ ├── errno v0.3.4 -│ │ │ │ ├── errno-dragonfly v0.1.2 -│ │ │ │ │ └── libc v0.2.148 -│ │ │ │ │ [build-dependencies] -│ │ │ │ │ └── cc v1.0.83 -│ │ │ │ │ └── libc v0.2.148 -│ │ │ │ ├── libc v0.2.148 +│ │ ├── rustix v0.38.21 +│ │ │ ├── bitflags v2.4.1 +│ │ │ ├── errno v0.3.5 +│ │ │ │ ├── libc v0.2.149 │ │ │ │ └── windows-sys v0.48.0 (*) -│ │ │ ├── libc v0.2.148 -│ │ │ ├── linux-raw-sys v0.4.8 +│ │ │ ├── libc v0.2.149 +│ │ │ ├── linux-raw-sys v0.4.10 │ │ │ └── windows-sys v0.48.0 (*) │ │ └── windows-sys v0.48.0 (*) -│ └── clap_derive v4.4.2 (proc-macro) +│ └── clap_derive v4.4.7 (proc-macro) │ ├── heck v0.4.1 -│ ├── proc-macro2 v1.0.67 +│ ├── proc-macro2 v1.0.69 │ │ └── unicode-ident v1.0.12 │ ├── quote v1.0.33 -│ │ └── proc-macro2 v1.0.67 (*) -│ └── syn v2.0.37 -│ ├── proc-macro2 v1.0.67 (*) +│ │ └── proc-macro2 v1.0.69 (*) +│ └── syn v2.0.38 +│ ├── proc-macro2 v1.0.69 (*) │ ├── quote v1.0.33 (*) │ └── unicode-ident v1.0.12 ├── color-eyre v0.6.2 @@ -324,14 +320,15 @@ rsonpath v0.8.3 (/home/mat/rsonpath/crates/rsonpath) │ │ ├── addr2line v0.21.0 │ │ │ └── gimli v0.28.0 │ │ ├── cfg-if v1.0.0 -│ │ ├── libc v0.2.148 +│ │ ├── libc v0.2.149 │ │ ├── miniz_oxide v0.7.1 │ │ │ └── adler v1.0.2 │ │ ├── object v0.32.1 │ │ │ └── memchr v2.6.4 │ │ └── rustc-demangle v0.1.23 │ │ [build-dependencies] -│ │ └── cc v1.0.83 (*) +│ │ └── cc v1.0.83 +│ │ └── libc v0.2.149 │ ├── eyre v0.6.8 │ │ ├── indenter v0.3.3 │ │ └── once_cell v1.18.0 @@ -340,35 +337,35 @@ rsonpath v0.8.3 (/home/mat/rsonpath/crates/rsonpath) │ └── owo-colors v3.5.0 ├── eyre v0.6.8 (*) ├── log v0.4.20 -├── rsonpath-lib v0.8.3 (/home/mat/rsonpath/crates/rsonpath-lib) +├── rsonpath-lib v0.8.4 (/home/mat/rsonpath/crates/rsonpath-lib) │ ├── cfg-if v1.0.0 │ ├── log v0.4.20 │ ├── memmap2 v0.9.0 -│ │ └── libc v0.2.148 +│ │ └── libc v0.2.149 │ ├── nom v7.1.3 │ │ ├── memchr v2.6.4 │ │ └── minimal-lexical v0.2.1 │ ├── smallvec v1.11.1 │ ├── static_assertions v1.1.0 -│ ├── thiserror v1.0.49 -│ │ └── thiserror-impl v1.0.49 (proc-macro) -│ │ ├── proc-macro2 v1.0.67 (*) +│ ├── thiserror v1.0.50 +│ │ └── thiserror-impl v1.0.50 (proc-macro) +│ │ ├── proc-macro2 v1.0.69 (*) │ │ ├── quote v1.0.33 (*) -│ │ └── syn v2.0.37 (*) +│ │ └── syn v2.0.38 (*) │ └── vector-map v1.0.1 │ ├── contracts v0.4.0 (proc-macro) -│ │ ├── proc-macro2 v1.0.67 (*) +│ │ ├── proc-macro2 v1.0.69 (*) │ │ ├── quote v1.0.33 (*) │ │ └── syn v1.0.109 -│ │ ├── proc-macro2 v1.0.67 (*) +│ │ ├── proc-macro2 v1.0.69 (*) │ │ ├── quote v1.0.33 (*) │ │ └── unicode-ident v1.0.12 │ └── rand v0.7.3 │ ├── getrandom v0.1.16 │ │ ├── cfg-if v1.0.0 -│ │ ├── libc v0.2.148 +│ │ ├── libc v0.2.149 │ │ └── wasi v0.9.0+wasi-snapshot-preview1 -│ ├── libc v0.2.148 +│ ├── libc v0.2.149 │ ├── rand_chacha v0.2.2 │ │ ├── ppv-lite86 v0.2.17 │ │ └── rand_core v0.5.1 @@ -380,17 +377,19 @@ rsonpath v0.8.3 (/home/mat/rsonpath/crates/rsonpath) ├── colored v2.0.4 │ ├── is-terminal v0.4.9 │ │ ├── hermit-abi v0.3.3 - │ │ ├── rustix v0.38.15 (*) + │ │ ├── rustix v0.38.21 (*) │ │ └── windows-sys v0.48.0 (*) │ ├── lazy_static v1.4.0 │ └── windows-sys v0.48.0 (*) ├── log v0.4.20 - ├── time v0.3.29 - │ ├── deranged v0.3.8 + ├── time v0.3.30 + │ ├── deranged v0.3.9 + │ │ └── powerfmt v0.2.0 │ ├── itoa v1.0.9 - │ ├── libc v0.2.148 + │ ├── libc v0.2.149 │ ├── num_threads v0.1.6 - │ │ └── libc v0.2.148 + │ │ └── libc v0.2.149 + │ ├── powerfmt v0.2.0 │ ├── time-core v0.1.2 │ └── time-macros v0.2.15 (proc-macro) │ └── time-core v0.1.2 @@ -407,12 +406,13 @@ rsonpath v0.8.3 (/home/mat/rsonpath/crates/rsonpath) └── vergen v8.2.5 ├── anyhow v1.0.75 ├── rustc_version v0.4.0 - │ └── semver v1.0.19 - └── time v0.3.29 - ├── deranged v0.3.8 + │ └── semver v1.0.20 + └── time v0.3.30 + ├── deranged v0.3.9 (*) ├── itoa v1.0.9 - ├── libc v0.2.148 + ├── libc v0.2.149 ├── num_threads v0.1.6 (*) + ├── powerfmt v0.2.0 └── time-core v0.1.2 [build-dependencies] └── rustversion v1.0.14 (proc-macro) diff --git a/book/src/user/installation.md b/book/src/user/installation.md index d5c65fc8..82614d20 100644 --- a/book/src/user/installation.md +++ b/book/src/user/installation.md @@ -35,7 +35,7 @@ To verify it works, check if `rq` is available from your command line: ```console $ rq -V -rq 0.8.3 +rq 0.8.4 ``` diff --git a/crates/rsonpath-lib/Cargo.toml b/crates/rsonpath-lib/Cargo.toml index 429edda6..74e73dcf 100644 --- a/crates/rsonpath-lib/Cargo.toml +++ b/crates/rsonpath-lib/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "rsonpath-lib" -version = "0.8.3" +version = "0.8.4" authors = ["Mateusz Gienieczko "] edition = "2021" description = "Blazing fast JSONPath query engine powered by SIMD. Core library of `rsonpath`." diff --git a/crates/rsonpath-lib/README.md b/crates/rsonpath-lib/README.md index 181e78ee..e0ff1966 100644 --- a/crates/rsonpath-lib/README.md +++ b/crates/rsonpath-lib/README.md @@ -60,14 +60,15 @@ cargo tree --package rsonpath-lib --edges normal --depth 1 ```ini -rsonpath-lib v0.8.3 (/home/mat/rsonpath/crates/rsonpath-lib) +rsonpath-lib v0.8.4 (/home/mat/rsonpath/crates/rsonpath-lib) +├── arbitrary v1.3.2 ├── cfg-if v1.0.0 ├── log v0.4.20 ├── memmap2 v0.9.0 ├── nom v7.1.3 ├── smallvec v1.11.1 ├── static_assertions v1.1.0 -├── thiserror v1.0.49 +├── thiserror v1.0.50 └── vector-map v1.0.1 ``` diff --git a/crates/rsonpath-lib/src/lib.rs b/crates/rsonpath-lib/src/lib.rs index 0f79ef4f..0fe41b0e 100644 --- a/crates/rsonpath-lib/src/lib.rs +++ b/crates/rsonpath-lib/src/lib.rs @@ -15,9 +15,6 @@ //! // Parse a JSONPath query from string. //! let query = JsonPathQuery::parse("$..phoneNumbers[*].number")?; //! // Convert the contents to the Input type required by the Engines. -//! // Currently requires the contents to be owned and allocations to occur, -//! // this is a known limitation tracked as issue #23 -//! // (https://github.com/V0ldek/rsonpath/issues/23). //! let mut contents = r#" //! { //! "person": { diff --git a/crates/rsonpath-test-codegen/Cargo.lock b/crates/rsonpath-test-codegen/Cargo.lock index 4d5c4c62..ea0574f7 100644 --- a/crates/rsonpath-test-codegen/Cargo.lock +++ b/crates/rsonpath-test-codegen/Cargo.lock @@ -75,7 +75,7 @@ dependencies = [ [[package]] name = "rsonpath-test-codegen" -version = "0.8.3" +version = "0.8.4" dependencies = [ "heck", "pretty_assertions", diff --git a/crates/rsonpath-test-codegen/Cargo.toml b/crates/rsonpath-test-codegen/Cargo.toml index 862eb5c4..e79d1537 100644 --- a/crates/rsonpath-test-codegen/Cargo.toml +++ b/crates/rsonpath-test-codegen/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "rsonpath-test-codegen" -version = "0.8.3" +version = "0.8.4" authors = ["Mateusz Gienieczko "] edition = "2021" description = "TOML-based test codegen for rsonpath-lib." diff --git a/crates/rsonpath-test/Cargo.toml b/crates/rsonpath-test/Cargo.toml index e5cc60f0..dd8c0955 100644 --- a/crates/rsonpath-test/Cargo.toml +++ b/crates/rsonpath-test/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "rsonpath-test" -version = "0.8.3" +version = "0.8.4" authors = ["Mateusz Gienieczko "] edition = "2021" description = "Just a build script for the auto test generation." @@ -16,10 +16,10 @@ publish = false [dev-dependencies] pretty_assertions = "1.4.0" -rsonpath-lib = { version = "0.8.3", path = "../rsonpath-lib" } +rsonpath-lib = { version = "0.8.4", path = "../rsonpath-lib" } [build-dependencies] eyre = "0.6.8" glob = "0.3.1" md5 = "0.7.0" -rsonpath-test-codegen = { version = "0.8.3", path = "../rsonpath-test-codegen" } \ No newline at end of file +rsonpath-test-codegen = { version = "0.8.4", path = "../rsonpath-test-codegen" } \ No newline at end of file diff --git a/crates/rsonpath/Cargo.toml b/crates/rsonpath/Cargo.toml index fe4bee6c..6e151da9 100644 --- a/crates/rsonpath/Cargo.toml +++ b/crates/rsonpath/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "rsonpath" -version = "0.8.3" +version = "0.8.4" authors = ["Mateusz Gienieczko "] edition = "2021" description = "Blazing fast JSONPath CLI tool powered by SIMD" @@ -29,7 +29,7 @@ clap = { version = "4.4.7", features = ["derive", "wrap_help"] } color-eyre = { version = "0.6.2", default-features = false } eyre = "0.6.8" log = "0.4.20" -rsonpath-lib = { version = "0.8.3", package = "rsonpath-lib", default-features = false } +rsonpath-lib = { version = "0.8.4", package = "rsonpath-lib", default-features = false } simple_logger = "4.2.0" [build-dependencies] diff --git a/fuzz/Cargo.lock b/fuzz/Cargo.lock index 5cebfbb2..7c05cfb7 100644 --- a/fuzz/Cargo.lock +++ b/fuzz/Cargo.lock @@ -202,7 +202,7 @@ dependencies = [ [[package]] name = "rsonpath-lib" -version = "0.8.3" +version = "0.8.4" dependencies = [ "arbitrary", "cfg-if", diff --git a/fuzz/Cargo.toml b/fuzz/Cargo.toml index 4b76eb1e..c4f1aabd 100644 --- a/fuzz/Cargo.toml +++ b/fuzz/Cargo.toml @@ -23,6 +23,7 @@ members = ["."] [profile.release] debug = 1 +lto = false [[bin]] name = "fuzz_arbitrary_bytes"