diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b360f9c..6ee1f87 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,11 +33,11 @@ jobs: rustup update --no-self-update rustup toolchain install - name: cache - uses: Swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6 # v2.9.2 + uses: Swatinem/rust-cache@d1527c8f67ef9af357290475d4af4b0fab8f12e0 # v2.9.3 with: save-if: ${{ github.ref == 'refs/heads/main' }} - name: tools - uses: taiki-e/install-action@4cef1412cce204788f482e778a0b9187f9626a29 # v2.87.21 + uses: taiki-e/install-action@ab49d3c64680143e184118bed66a46419fc15519 # v2.90.5 with: tool: cargo-nextest,cargo-deny,cargo-shear,typos,zizmor,hyperfine,just,uv fallback: none @@ -71,7 +71,7 @@ jobs: - name: startup bench run: just bench-startup - name: startup bench artifact - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 + uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2 with: name: startup-bench path: docs/bench/startup.json diff --git a/.github/workflows/codspeed.yml b/.github/workflows/codspeed.yml index deadeee..2a05fe8 100644 --- a/.github/workflows/codspeed.yml +++ b/.github/workflows/codspeed.yml @@ -41,19 +41,19 @@ jobs: rustup update --no-self-update rustup toolchain install - name: cache - uses: Swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6 # v2.9.2 + uses: Swatinem/rust-cache@d1527c8f67ef9af357290475d4af4b0fab8f12e0 # v2.9.3 with: save-if: ${{ github.ref == 'refs/heads/main' }} # Same version as the codspeed crate in Cargo.lock; the two move together. - name: tools - uses: taiki-e/install-action@4cef1412cce204788f482e778a0b9187f9626a29 # v2.87.21 + uses: taiki-e/install-action@ab49d3c64680143e184118bed66a46419fc15519 # v2.90.5 with: - tool: cargo-codspeed@5.0.2 + tool: cargo-codspeed@6.1.0 fallback: cargo-binstall - name: build run: cargo codspeed build --features internals --locked - name: run - uses: CodSpeedHQ/action@373d6868929f444bc08d901fd0eb0ad52a8875ea # v5.2.1 + uses: CodSpeedHQ/action@af75f77f17a054769abefaa42fe8dc2975469b5f # v5.6.3 with: mode: simulation run: cargo codspeed run diff --git a/.github/workflows/release-plz.yml b/.github/workflows/release-plz.yml index a9db54a..f254438 100644 --- a/.github/workflows/release-plz.yml +++ b/.github/workflows/release-plz.yml @@ -19,12 +19,12 @@ jobs: id-token: write steps: - name: harden runner - uses: step-security/harden-runner@e14015d583714f6e62063499dc959a02595150a1 # v2.21.1 + uses: step-security/harden-runner@1d88384fd173af6ecb012dfd0264a306b711241a # v2.22.4 with: egress-policy: audit - name: token id: app - uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3.2.0 + uses: actions/create-github-app-token@64ab729a6294000f5aa4a4bc0b73d1f32bc45510 # v3.3.0 with: client-id: ${{ vars.RELEASE_APP_CLIENT_ID }} private-key: ${{ secrets.RELEASE_APP_PRIVATE_KEY }} @@ -40,10 +40,10 @@ jobs: rustup update --no-self-update rustup toolchain install - name: release - uses: release-plz/action@b8d6b54b02889ff2ae2bb82e8b57c3a8fc1683a5 # v0.5.139 + uses: release-plz/action@66b324fd6c72d05d2a08568492ecdd62bfb8a62b # v0.5.148 with: command: release - version: 0.3.169 + version: 0.4.3 config: .github/release-plz.toml env: # The action's `token` input is the cargo registry token; GitHub's goes here. @@ -61,12 +61,12 @@ jobs: cancel-in-progress: false steps: - name: harden runner - uses: step-security/harden-runner@e14015d583714f6e62063499dc959a02595150a1 # v2.21.1 + uses: step-security/harden-runner@1d88384fd173af6ecb012dfd0264a306b711241a # v2.22.4 with: egress-policy: audit - name: token id: app - uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3.2.0 + uses: actions/create-github-app-token@64ab729a6294000f5aa4a4bc0b73d1f32bc45510 # v3.3.0 with: client-id: ${{ vars.RELEASE_APP_CLIENT_ID }} private-key: ${{ secrets.RELEASE_APP_PRIVATE_KEY }} @@ -83,10 +83,10 @@ jobs: rustup toolchain install - name: release-pr id: pr - uses: release-plz/action@b8d6b54b02889ff2ae2bb82e8b57c3a8fc1683a5 # v0.5.139 + uses: release-plz/action@66b324fd6c72d05d2a08568492ecdd62bfb8a62b # v0.5.148 with: command: release-pr - version: 0.3.169 + version: 0.4.3 config: .github/release-plz.toml env: # The action's `token` input is the cargo registry token; GitHub's goes here. diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b9774ba..d9e567d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -52,7 +52,7 @@ jobs: - name: wheel uses: PyO3/maturin-action@e83996d129638aa358a18fbd1dfb82f0b0fb5d3b # v1.51.0 with: - maturin-version: v1.15.0 + maturin-version: v1.16.0 target: ${{ matrix.target }} manylinux: ${{ matrix.manylinux || 'auto' }} args: --release --locked --out dist @@ -88,13 +88,13 @@ jobs: "../$dir/dataseek$ext" --version fi - name: upload wheel - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 + uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2 with: name: wheel-${{ matrix.target }} path: dist/*.whl if-no-files-found: error - name: upload archive - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 + uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2 with: name: archive-${{ matrix.target }} path: archives/* @@ -113,11 +113,11 @@ jobs: - name: build uses: PyO3/maturin-action@e83996d129638aa358a18fbd1dfb82f0b0fb5d3b # v1.51.0 with: - maturin-version: v1.15.0 + maturin-version: v1.16.0 command: sdist args: --out dist - name: upload - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 + uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2 with: name: sdist path: dist/*.tar.gz @@ -134,11 +134,11 @@ jobs: attestations: write steps: - name: harden runner - uses: step-security/harden-runner@e14015d583714f6e62063499dc959a02595150a1 # v2.21.1 + uses: step-security/harden-runner@1d88384fd173af6ecb012dfd0264a306b711241a # v2.22.4 with: egress-policy: audit - name: download - uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 + uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2 with: pattern: archive-* path: archives @@ -166,24 +166,24 @@ jobs: id-token: write steps: - name: harden runner - uses: step-security/harden-runner@e14015d583714f6e62063499dc959a02595150a1 # v2.21.1 + uses: step-security/harden-runner@1d88384fd173af6ecb012dfd0264a306b711241a # v2.22.4 with: egress-policy: audit - name: download wheels - uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 + uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2 with: pattern: wheel-* path: dist merge-multiple: true - name: download sdist - uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 + uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2 with: name: sdist path: dist - name: uv - uses: astral-sh/setup-uv@c18668ad3cf93ea998bef934396af7bb5c839dc7 # v10.2.0 + uses: astral-sh/setup-uv@68559e99cc807c1eb7e9238fd43a15bba460eec2 # v10.3.3 with: - version: 0.12.21 + version: 0.13.9 enable-cache: false - name: publish run: uv publish --trusted-publishing always dist/* @@ -199,12 +199,12 @@ jobs: contents: read steps: - name: harden runner - uses: step-security/harden-runner@e14015d583714f6e62063499dc959a02595150a1 # v2.21.1 + uses: step-security/harden-runner@1d88384fd173af6ecb012dfd0264a306b711241a # v2.22.4 with: egress-policy: audit - name: token id: app - uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3.2.0 + uses: actions/create-github-app-token@64ab729a6294000f5aa4a4bc0b73d1f32bc45510 # v3.3.0 with: client-id: ${{ vars.RELEASE_APP_CLIENT_ID }} private-key: ${{ secrets.RELEASE_APP_PRIVATE_KEY }} diff --git a/Cargo.lock b/Cargo.lock index 0d3d74f..00f763a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -81,9 +81,9 @@ dependencies = [ [[package]] name = "anyhow" -version = "1.0.104" +version = "1.0.105" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "330a5ed07fa54e4702c9d6c4174f74427fc0ef6e214bbd677ae50a5099946470" +checksum = "2cb931c189b85683d69a5cfad41d4d418671e1ac413dd209f3f2fc31e3cfd902" [[package]] name = "approx" @@ -168,25 +168,29 @@ checksum = "2af50177e190e07a26ab74f8b1efbfe2ef87da2116221318cb1c2e82baf7de06" [[package]] name = "bit-set" -version = "0.8.0" +version = "0.11.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "08807e080ed7f9d5433fa9b275196cfc35414f66a0c79d864dc51a0d825231a3" +checksum = "56d87354e4229f54a44f7bf2435906a4656dba36026ab6eaca629a2c436a691c" dependencies = [ - "bit-vec 0.8.0", + "bit-vec 0.10.2", ] [[package]] name = "bit-vec" -version = "0.8.0" +version = "0.9.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5e764a1d40d510daf35e07be9eb06e75770908c27d411ee6c92109c9840eaaf7" +checksum = "b71798fca2c1fe1086445a7258a4bc81e6e49dcd24c8d0dd9a1e57395b603f51" +dependencies = [ + "serde", +] [[package]] name = "bit-vec" -version = "0.9.1" +version = "0.10.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b71798fca2c1fe1086445a7258a4bc81e6e49dcd24c8d0dd9a1e57395b603f51" +checksum = "72503af1e72be411d74ca45cd6b309878fcb35354e252fc2a3a8bda3a97082a0" dependencies = [ + "borsh", "serde", ] @@ -196,11 +200,35 @@ version = "2.13.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3ded4057c258ba199e2d26386d3af3780957ecaee6c4ef4041c6b4b8b97c0b06" +[[package]] +name = "borsh" +version = "1.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "553c5d846a6ba5150c65e3b1b8ec073bcf1abc20f9b7220de384a4443ea4e20a" +dependencies = [ + "borsh-derive", + "bytes", + "cfg_aliases", +] + +[[package]] +name = "borsh-derive" +version = "1.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "12cdfe656708a01f89b451a7d36466e6fe6c414de0aa18fc54f864f6f9ca9f56" +dependencies = [ + "once_cell", + "proc-macro-crate", + "proc-macro2", + "quote", + "syn 3.0.10", +] + [[package]] name = "bstr" -version = "1.13.1" +version = "1.14.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6bb31b46c14244e20ee9984b11bf5c992b91fb6939fea616e3512c8baecdbe5f" +checksum = "a680398c10c7bc0488067c4612226ea905a85f607134b69f3068d505d58c4214" dependencies = [ "memchr", "regex-automata", @@ -209,9 +237,9 @@ dependencies = [ [[package]] name = "bytes" -version = "1.12.1" +version = "1.12.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fc652a48c352aef3ea3aed32080501cf3ef6ed5da78602a020c991775b0aff04" +checksum = "776dfebd015e2d8732c684a2c71003674ccb49457b539b9e82151ba38e96dd7c" [[package]] name = "cast" @@ -221,9 +249,9 @@ checksum = "37b2a672a2cb129a2e41c10b1224bb368f9f37a2b16b612598138befd7b37eb5" [[package]] name = "cc" -version = "1.6.0" +version = "1.11.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f74872d07caf508b30a21f6836e7d7016a2eaf7d9ff4f48deaa58cd8a0407630" +checksum = "02f0e023adb368345ce0ca6cdfc0f24a06554468d0e8503e14a0841de79bfa69" dependencies = [ "find-msvc-tools", "shlex", @@ -241,6 +269,17 @@ version = "0.2.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f079e83a288787bcd14a6aea84cee5c87a67c5a3e660c30f557a3d24761b3527" +[[package]] +name = "chacha20" +version = "0.10.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "65c35e4b699c7e15ccbe7ee35c005e4fc0a278d22238a2857e6ce2dadeda1b06" +dependencies = [ + "cfg-if", + "cpufeatures", + "rand_core", +] + [[package]] name = "ciborium" version = "0.2.2" @@ -270,9 +309,9 @@ dependencies = [ [[package]] name = "clap" -version = "4.6.7" +version = "4.6.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "aa8876b300ab35ba921adea3dfd70157a46249b33f95c9084ae5709785478946" +checksum = "844c5c0b65be192cb68d570cca1b21a6444431d24e39c084dc0336177015337c" dependencies = [ "clap_builder", "clap_derive", @@ -293,43 +332,42 @@ dependencies = [ [[package]] name = "clap_complete" -version = "4.6.11" +version = "4.6.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "037e2a1a92236d0aff7e845093f64661d6df4c02c9fcc61a60e9e1d736fa392f" +checksum = "6a35200383f20018d41c14d1ab19c1727c697f544492143f7d93aa39f0187848" dependencies = [ "clap", ] [[package]] name = "clap_derive" -version = "4.6.7" +version = "4.6.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f9c751b79415d4e559e3d1fcf128e09e720eb673a06d26cf6f392d37d75b66e0" +checksum = "b4c174f11f949b9ca8c60580925e282b9cbd5454750e506f08648b2038080cd7" dependencies = [ "heck", "proc-macro2", "quote", - "syn 3.0.6", + "syn 3.0.10", ] [[package]] name = "clap_lex" -version = "1.1.1" +version = "1.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1c133bc6a41be0d194c306b5506d15e6feeea7b1d6604bd3f8310dfb2ca96486" +checksum = "e0921b3876b3a1df8a1c9f912e7f94342458022c2e84288015893d83c4d62a79" [[package]] name = "codspeed" -version = "5.0.2" +version = "6.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c0379da47d0de730b2f7900e3f2d9c3b5efc21b46875282305300b4851f03e70" +checksum = "b4a421b41e765c0882236030e4431c948bb77f95e7b1c3252a95e03ac996f94e" dependencies = [ "anyhow", "cc", "colored", "getrandom 0.4.3", "glob", - "libc", "nix", "serde", "serde_json", @@ -338,9 +376,9 @@ dependencies = [ [[package]] name = "codspeed-criterion-compat" -version = "5.0.2" +version = "6.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "65f64942456bd4514b06ba4c72623bf197931d05d3d1db61b8a0c6289b30b2c7" +checksum = "13cb33de1bd72ed48368e2ee28359bf1899bfbb6f3d092ec1bc64906c956e68c" dependencies = [ "clap", "codspeed", @@ -351,9 +389,9 @@ dependencies = [ [[package]] name = "codspeed-criterion-compat-walltime" -version = "5.0.2" +version = "6.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e86691354129085562c025293f9e8b35bf9054813bb9981be3a96aa8490c07d1" +checksum = "a1cc00b86b754510c75c78ea8e4264f6efc839d0d425f65aa59dfde5f1306b31" dependencies = [ "anes", "cast", @@ -391,9 +429,9 @@ dependencies = [ [[package]] name = "combine" -version = "4.6.8" +version = "4.6.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cfc320937d09e6de266b31b9afb480f197d7a861be86be7cb2ea7e5d1bfffc5e" +checksum = "4356eba6976435498d05a311ee9fc486da3bc81c200d3f0d7dd9703b41913f92" dependencies = [ "bytes", "memchr", @@ -412,9 +450,9 @@ dependencies = [ [[package]] name = "cookie" -version = "0.18.2" +version = "0.18.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1a373e3602691c3cdea496d2f0ee5935151e6168fe87739483c463db1b2f2f87" +checksum = "d55f2d6c30eeec7d5c6f98bd4395d4abb1895629eab97ee6522d340623615f8a" dependencies = [ "percent-encoding", "time", @@ -455,11 +493,26 @@ version = "0.8.7" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "773648b94d0e5d620f64f280777445740e61fe701025087ec8b57f45c791888b" +[[package]] +name = "core_detect" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7f8f80099a98041a3d1622845c271458a2d73e688351bf3cb999266764b81d48" + +[[package]] +name = "cpufeatures" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5ca28b0ae3115b884660db4118d803791fd6756b6e88f39c0f3f7859060d7566" +dependencies = [ + "libc", +] + [[package]] name = "crc32fast" -version = "1.5.2" +version = "1.5.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "01a7799fd6b852db0e61728dde9a204c423b44d689dbd432522543614b490e78" +checksum = "2b929dd2a135771f40afabd1073f85eed59c800b7c61901e5c254270497dad64" dependencies = [ "cfg-if", ] @@ -499,6 +552,7 @@ dependencies = [ "codspeed-criterion-compat", "enable-ansi-support", "etcetera", + "flate2", "insta", "predicates", "proptest", @@ -517,9 +571,9 @@ dependencies = [ [[package]] name = "der" -version = "0.8.2" +version = "0.8.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a878c850e9e421b20262e9b41f9c860e4785fa07541c266b62ff9d1ef998a80a" +checksum = "6a996a108feb8b427a6e12fcf6af4aa83409b79d72c15337d7741368131ee004" dependencies = [ "pem-rfc7468", "zeroize", @@ -541,9 +595,9 @@ dependencies = [ [[package]] name = "deranged" -version = "0.5.8" +version = "0.5.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7cd812cc2bc1d69d4764bd80df88b4317eaef9e773c75226407d9bc0876b211c" +checksum = "9e9de72ce2ad1f90dc62fa25f0f430ef85eb4b0d8fa0be4f30373bc40a21d28e" [[package]] name = "difflib" @@ -559,7 +613,7 @@ checksum = "c6232dd377dcc64799954cbd3a9bb882e9cdc1308ccd87b1c098f1fb2eaf82a8" dependencies = [ "proc-macro2", "quote", - "syn 3.0.6", + "syn 3.0.10", ] [[package]] @@ -573,9 +627,9 @@ dependencies = [ [[package]] name = "either" -version = "1.18.0" +version = "1.19.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "252afb9ae5eaa683babdc6a068b3f5726eb19e05070c731f9b2a23a7c3e8ed34" +checksum = "0e9c71c2167ca323c882b99918929403426e2373ea17242ff5653e0d5e1058be" [[package]] name = "enable-ansi-support" @@ -594,15 +648,15 @@ checksum = "34aa73646ffb006b8f5147f3dc182bd4bcb190227ce861fc4a4844bf8e3cb2c0" [[package]] name = "equivalent" -version = "1.0.2" +version = "1.0.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "877a4ace8713b0bcf2a4e7eec82529c029f1d0619886d18145fea96c3ffe5c0f" +checksum = "00d174d5400e5e8fd687ad1049e2f578285fa914201b1af7e8b112a4546bd826" [[package]] name = "errno" -version = "0.3.14" +version = "0.3.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "39cab71617ae0d63f51a36d69f866391735b51691dbda63cf6f96d042b63efeb" +checksum = "e35d6e78f4cebb90e51d543db8fe41528851d6deeef6ef21ebd4bfdc1e784776" dependencies = [ "libc", "windows-sys 0.61.2", @@ -626,15 +680,15 @@ checksum = "da7c62ceae207dd37ea5b845da6a0696c799f85e97da1ab5b7910be3c1c80223" [[package]] name = "find-msvc-tools" -version = "0.1.14" +version = "0.1.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "aedcfb3409746eddb02b9e19ebda1c3394f759a152e48ee875a0844d1b955484" +checksum = "1c66915cc5391097de7a2b0b972e8505aa33c0df401fd3a6811dbdb32881ba48" [[package]] name = "flate2" -version = "1.1.10" +version = "1.1.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6e634e2e0ebac1ee034020da1ca582e17ffe4e0f5e985823721e168928136dcb" +checksum = "626d4928326b646e70f65ed36fc7cf9f206bdb68a0019ee7c6b4709da4e084c4" dependencies = [ "crc32fast", "miniz_oxide", @@ -673,9 +727,9 @@ checksum = "00b0228411908ca8685dba7fc2cdd70ec9990a6e753e89b6ac91a84c40fbaf4b" [[package]] name = "form_urlencoded" -version = "1.2.2" +version = "1.2.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cb4cb245038516f5f85277875cdaa4f7d2c9a0fa0468de06ed190163b1581fcf" +checksum = "afa489199eaffb1211795df1c6236ce1ad0d41a6fa45250add73e3b02420f06e" dependencies = [ "percent-encoding", ] @@ -691,18 +745,6 @@ dependencies = [ "wasi", ] -[[package]] -name = "getrandom" -version = "0.3.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "899def5c37c4fd7b2664648c28120ecec138e4d395b459e5ca34f9cce2dd77fd" -dependencies = [ - "cfg-if", - "libc", - "r-efi 5.3.0", - "wasip2", -] - [[package]] name = "getrandom" version = "0.4.3" @@ -711,7 +753,8 @@ checksum = "300e883d756b2e4ec94e02791f39b04b522276138852cfc41d9fb7e904106099" dependencies = [ "cfg-if", "libc", - "r-efi 6.0.0", + "r-efi", + "rand_core", ] [[package]] @@ -733,9 +776,9 @@ dependencies = [ [[package]] name = "hashbrown" -version = "0.17.1" +version = "0.17.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ed5909b6e89a2db4456e54cd5f673791d7eca6732202bbf2a9cc504fe2f9b84a" +checksum = "735eaa21a6a5ffb2e84362faaeb90c05ba8e19797ca30428478cb6ea3a4921bc" [[package]] name = "heck" @@ -767,9 +810,9 @@ checksum = "6dbf3de79e51f3d586ab4cb9d5c3e2c14aa28ed23d180cf89b4df0454a69cc87" [[package]] name = "icu_collections" -version = "2.3.0" +version = "2.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fa68d21081c4a05d5a901a1c62add574c77048b6a1c67be3b50ce0b60d4ca513" +checksum = "fe090a42a0d3140fed8c63263ed1fecc02422cb2f4bfe55cd8de2de1b8e105dd" dependencies = [ "displaydoc", "potential_utf", @@ -781,9 +824,9 @@ dependencies = [ [[package]] name = "icu_locale_core" -version = "2.3.0" +version = "2.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d56e28588da92eee5c3201a6eff33fabdd49b62269c8938d4ff050ce4d900deb" +checksum = "25d29b57c17c6528d0dc4c2141cfa2d08200465acb537a3909c8b9b8a4a984c0" dependencies = [ "displaydoc", "litemap", @@ -794,9 +837,9 @@ dependencies = [ [[package]] name = "icu_normalizer" -version = "2.3.0" +version = "2.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "12f9cf5f235641ed274641dd81c3f28d870e276763d0797aeeab72317b1c646f" +checksum = "404a3b8c486f205c87fe7f23ab6894d84a4ad76d6e4671ae1981ba7def87c599" dependencies = [ "icu_collections", "icu_normalizer_data", @@ -808,15 +851,15 @@ dependencies = [ [[package]] name = "icu_normalizer_data" -version = "2.3.0" +version = "2.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1563da1ed3e0b3bf3d74c9b85917ac9c56464d2f57242270c09c9e752f8021a0" +checksum = "20f0088bfb7441f7a37fa0c9e20cb1e9cba1cac6b9ce8cd2a6dc44294f8e8cbc" [[package]] name = "icu_properties" -version = "2.3.0" +version = "2.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7e7ca276ad3145661a65914e6daf131ca5120cd3dcee8f8f3214b8875184a148" +checksum = "2ea83d991c56158f7cf898bf86436c1dfe7c07ee82fe88951f2695c9f37a379f" dependencies = [ "displaydoc", "icu_collections", @@ -829,15 +872,15 @@ dependencies = [ [[package]] name = "icu_properties_data" -version = "2.3.0" +version = "2.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e590f038c1464a96894fd6d10127e90a8be4509f56ff7ecef851b15cee0b7caa" +checksum = "b98f29af82d02b163fe50161388350e743bb3107cc8e8c2f7314cb505faddfcf" [[package]] name = "icu_provider" -version = "2.3.1" +version = "2.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d27bbb9d3abbefac45d55f647c9de1d44aafcd1186eb91879afef17c396c3e73" +checksum = "413099315636c588ee8f011190b329b971a09a8fae9d157e01dcae8379468514" dependencies = [ "displaydoc", "icu_locale_core", @@ -921,9 +964,9 @@ dependencies = [ [[package]] name = "itoa" -version = "1.0.18" +version = "1.0.19" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8f42a60cbdf9a97f5d2305f08a87dc4e09308d1276d28c869c684d7777685682" +checksum = "3bd1574e617a9a6c1f8f8181bd7e841e1f20e4277607ef28945765188d6284d4" [[package]] name = "jni" @@ -982,9 +1025,9 @@ checksum = "20870f649af7073d53e38067b2a84312175d56ea15217e1b15bc83506ec50afb" [[package]] name = "libc" -version = "0.2.190" +version = "0.2.191" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ce5d3ddc6d3fa000eb1536d85e147bfe31aacaba692ed6a876f95cb7c855be78" +checksum = "65cd87c9a6d60536580b316ad985726104730a5151c99845f2490428ef91240a" [[package]] name = "linux-raw-sys" @@ -1000,15 +1043,15 @@ checksum = "47d9d19d1d6efa0109d2f65ff4c85cddd50bd572e5a00127ab10987290bcefae" [[package]] name = "litrs" -version = "1.0.0" +version = "1.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "11d3d7f243d5c5a8b9bb5d6dd2b1602c0cb0b9db1621bafc7ed66e35ff9fe092" +checksum = "4744e383959f0db86ede514b809b1c53251889093803c05267acc7d4e7030d70" [[package]] name = "log" -version = "0.4.34" +version = "0.4.35" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f9f8bd3e56ce4dfc153cf470fffbfa98c7620958b312ca5c3a4b8d5181fd13c6" +checksum = "5d15f86d12da44cd8d4ec3c73984537eb7f4cadcb9776a575a0a8a05ca11005c" [[package]] name = "memchr" @@ -1051,9 +1094,9 @@ dependencies = [ [[package]] name = "nix" -version = "0.31.3" +version = "0.32.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cf20d2fde8ff38632c426f1165ed7436270b44f199fc55284c38276f9db47c3d" +checksum = "77730ed34f01f4990cb2ea67fec715ecebc6fab9a6396cf83c5529b13f581bdc" dependencies = [ "bitflags", "cfg-if", @@ -1140,9 +1183,9 @@ checksum = "d6790f58c7ff633d8771f42965289203411a5e5c68388703c06e14f24770b41e" [[package]] name = "openssl" -version = "0.10.81" +version = "0.10.82" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "77823a27f0babb03091cb9ed9ef80af3b39dbc82f97e8fa530374b7dafd87a45" +checksum = "4de8111e94a56adca7ebfe6c365b6d42f99deb69b74b6becacd4204e2f193aa2" dependencies = [ "bitflags", "cfg-if", @@ -1165,15 +1208,15 @@ dependencies = [ [[package]] name = "openssl-probe" -version = "0.2.1" +version = "0.2.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7c87def4c32ab89d880effc9e097653c8da5d6ef28e6b539d313baaacfbafcbe" +checksum = "7e036b411754132fd6b74e94b74e9a13c5cf606fa93d1885c35860d3060820b1" [[package]] name = "openssl-sys" -version = "0.9.117" +version = "0.9.118" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b47e7e6bb2c38cd930d25a23b40fa52e068c10e85f3e03a7f5ba5aaca5713695" +checksum = "19c413d6ec9ebaf5e1c829d355cb3e9f783778d700f135be0921d52fce3c60ae" dependencies = [ "cc", "libc", @@ -1227,15 +1270,6 @@ version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4a6394b9e965e73d0a289ee54f589087e2c676aedf60885baf52c76b771e4958" -[[package]] -name = "ppv-lite86" -version = "0.2.21" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "85eae3c4ed2f50dcfe72643da4befc30deadb458a9b590d720cde2f2b1e97da9" -dependencies = [ - "zerocopy", -] - [[package]] name = "predicates" version = "3.1.4" @@ -1266,6 +1300,15 @@ dependencies = [ "termtree", ] +[[package]] +name = "proc-macro-crate" +version = "3.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e67ba7e9b2b56446f1d419b1d807906278ffa1a658a8a5d8a39dcb1f5a78614f" +dependencies = [ + "toml_edit", +] + [[package]] name = "proc-macro2" version = "1.0.107" @@ -1277,16 +1320,17 @@ dependencies = [ [[package]] name = "proptest" -version = "1.11.0" +version = "1.12.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4b45fcc2344c680f5025fe57779faef368840d0bd1f42f216291f0dc4ace4744" +checksum = "b8530004ccb15eae51c7e40009fbe317f341f804db54dc033eec1c50be28cfa0" dependencies = [ "bit-set", - "bit-vec 0.8.0", + "bit-vec 0.10.2", "bitflags", + "chacha20", + "core_detect", "num-traits", "rand", - "rand_chacha", "rand_xorshift", "regex-syntax", "rusty-fork", @@ -1318,12 +1362,6 @@ dependencies = [ "proc-macro2", ] -[[package]] -name = "r-efi" -version = "5.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "69cdb34c158ceb288df11e18b4bd39de994f6657d83847bdffdbd7f346754b0f" - [[package]] name = "r-efi" version = "6.0.0" @@ -1332,38 +1370,25 @@ checksum = "f8dcc9c7d52a811697d2151c701e0d08956f92b0e24136cf4cf27b57a6a0d9bf" [[package]] name = "rand" -version = "0.9.5" +version = "0.10.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b9ef1d0d795eb7d84685bca4f72f3649f064e6641543d3a8c415898726a57b41" +checksum = "8f6fa277c67e6ea590466f04c3fe82cb509f0864fe470643e5570de9514a9b11" dependencies = [ - "rand_chacha", - "rand_core", -] - -[[package]] -name = "rand_chacha" -version = "0.9.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d3022b5f1df60f26e1ffddd6c66e8aa15de382ae63b3a0c1bfc0e4d3e3f325cb" -dependencies = [ - "ppv-lite86", + "getrandom 0.4.3", "rand_core", ] [[package]] name = "rand_core" -version = "0.9.5" +version = "0.10.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "76afc826de14238e6e8c374ddcc1fa19e374fd8dd986b0d2af0d02377261d83c" -dependencies = [ - "getrandom 0.3.4", -] +checksum = "63b8176103e19a2643978565ca18b50549f6101881c443590420e4dc998a3c69" [[package]] name = "rand_xorshift" -version = "0.4.0" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "513962919efc330f829edb2535844d1b912b0fbe2ca165d613e4e8788bb05a5a" +checksum = "60aa6af80be32871323012e02e6e65f8a7cc7890931ae421d217ad8fe0df2ccf" dependencies = [ "rand_core", ] @@ -1384,9 +1409,9 @@ dependencies = [ [[package]] name = "regex" -version = "1.13.1" +version = "1.13.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f020237b6c8eed93db2e2cb53c00c60a8e1bc73da7d073199a1180401450218d" +checksum = "9807af0e638c12e753aa1b4e601791bf2a8f71274023c8bbeec12fc149950857" dependencies = [ "aho-corasick", "memchr", @@ -1396,9 +1421,9 @@ dependencies = [ [[package]] name = "regex-automata" -version = "0.4.18" +version = "0.4.19" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ad8553b9b26413251cbf30e620595c7a41b3887f03da04579c0e6b0d6a06b4b2" +checksum = "41d60ef07df457506a0a1a2073112eb4aae5733dbd2813c3da77d1b0fd441158" dependencies = [ "aho-corasick", "memchr", @@ -1407,9 +1432,9 @@ dependencies = [ [[package]] name = "regex-syntax" -version = "0.8.11" +version = "0.8.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d6f6ff9a378485b298a5286656da665ba74413d36db0979633275d2e708145d4" +checksum = "d902046e6a28a1e4c3cab97258a0ce11e994903f01c2d97a9447a0b3df85f4f6" [[package]] name = "ring" @@ -1445,9 +1470,9 @@ dependencies = [ [[package]] name = "rustix" -version = "1.1.5" +version = "1.1.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "891efababe418670775f199f0d233d84843c227a0949a883ce15b37c78d6629d" +checksum = "e5e76742e5294153d4dde1207dbec5bdd81eef6fabdc0d2118babadabfd858aa" dependencies = [ "bitflags", "errno", @@ -1473,9 +1498,9 @@ dependencies = [ [[package]] name = "rustls-native-certs" -version = "0.8.4" +version = "0.8.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dab5152771c58876a2146916e53e35057e1a4dfa2b9df0f0305b07f611fdea4d" +checksum = "4a073f5dc7469f984c52ad2752b63b0807745133b6de880b7b64c1ac4c48aec4" dependencies = [ "openssl-probe", "rustls-pki-types", @@ -1485,9 +1510,9 @@ dependencies = [ [[package]] name = "rustls-pki-types" -version = "1.15.1" +version = "1.16.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2f4925028c7eb5d1fcdaf196971378ed9d2c1c4efc7dc5d011256f76c99c0a96" +checksum = "102f35f7de7b06d8c61f1cff6592f5253e0dea431c74867aad5dfd70f44663fb" dependencies = [ "zeroize", ] @@ -1521,9 +1546,9 @@ checksum = "eec689c0bc40ff2458a5977b6619cb718087084a18e02a131c599b62d05e1a5f" [[package]] name = "rustls-webpki" -version = "0.103.16" +version = "0.103.17" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4443b1b6d39d7c663139942cc4558262562d2c84123bb6282ef177009ca8b281" +checksum = "e3a0760a887c14823fca5a1c970b01d47c328c696c0c64829d1df50e8f853fd5" dependencies = [ "ring", "rustls-pki-types", @@ -1553,9 +1578,9 @@ dependencies = [ [[package]] name = "schannel" -version = "0.1.29" +version = "0.1.30" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "91c1b7e4904c873ef0710c1f407dde2e6287de2bebc1bbbf7d430bb7cbffd939" +checksum = "9cb23c424d8ee841bb4d813677ca237e2a610067d594fec130f87d6093495ab5" dependencies = [ "windows-sys 0.61.2", ] @@ -1616,14 +1641,14 @@ checksum = "e7a5d71263a5a7d47b41f6b3f06ba276f10cc18b0931f1799f710578e2309348" dependencies = [ "proc-macro2", "quote", - "syn 3.0.6", + "syn 3.0.10", ] [[package]] name = "serde_json" -version = "1.0.151" +version = "1.0.154" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c841b55ecdae098c80dcae9cf767f6f8a0c2cdb3416bbef72181df4d0fe73f14" +checksum = "e7e9cc8b1b85264074fbcc02a88680c4096b1e47df8f739dceb03bf482f04bd6" dependencies = [ "itoa", "memchr", @@ -1634,9 +1659,9 @@ dependencies = [ [[package]] name = "serde_spanned" -version = "1.1.1" +version = "1.1.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6662b5879511e06e8999a8a235d848113e942c9124f211511b16466ee2995f26" +checksum = "9c187e0a369471c550af028cba56d4f4fa2a489ad28151ae95a4d340a2a8b782" dependencies = [ "serde_core", ] @@ -1649,9 +1674,9 @@ checksum = "f8fadd59c855ef2080decdef8ff161eb6661b86933c9d82e5ba29dc602a55aba" [[package]] name = "signal-hook" -version = "0.4.5" +version = "0.4.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b29ffa27d3d59a049bb328258de100f8012848d1b08d444e08bbc02ac468435e" +checksum = "49f7447afd772ca79ad17ae0a3972a6b0df0cb4b80990fd82707593e9e012a74" dependencies = [ "libc", "signal-hook-registry", @@ -1697,9 +1722,9 @@ checksum = "bbbb5d9659141646ae647b42fe094daf6c6192d1620870b449d9557f748b2daa" [[package]] name = "smallvec" -version = "1.16.2" +version = "1.16.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f9395f0f0eee849a9b707b2f06bb92a6a422090e2123bb2ef8e87a0e61892a8e" +checksum = "3244542535d5de959d90ec55d1b5ff0fd2bb7b1310223907d5f11932847f7b59" [[package]] name = "stable_deref_trait" @@ -1751,9 +1776,9 @@ dependencies = [ [[package]] name = "syn" -version = "3.0.6" +version = "3.0.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8593e8e72159ed2257d083c7a454a85cbf854f37a0966d8d483aff8c8a3ebcee" +checksum = "4ae9ccbea3a7b0b09443036490c8f34a8b1b760fd345e5c0dae0aac718faea79" dependencies = [ "proc-macro2", "quote", @@ -1779,7 +1804,7 @@ checksum = "901704edd0dfe137f1987838ee4f259e4e063c31371bdb423f7ae38ec6f77f02" dependencies = [ "proc-macro2", "quote", - "syn 3.0.6", + "syn 3.0.10", ] [[package]] @@ -1828,7 +1853,7 @@ checksum = "fe5197923287db20a58125f0bc85c062f7f2c892de97b18c356f9efb14b28524" dependencies = [ "proc-macro2", "quote", - "syn 3.0.6", + "syn 3.0.10", ] [[package]] @@ -1863,9 +1888,9 @@ dependencies = [ [[package]] name = "tinystr" -version = "0.8.4" +version = "0.8.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b1e27c91459209c2986af3dcf603a5a74a4368754ce37414f59acc971167f643" +checksum = "abc840c238154d58f9e86b2792261edfde565a17696e1cda1a449de27979801a" dependencies = [ "displaydoc", "zerovec", @@ -1883,9 +1908,9 @@ dependencies = [ [[package]] name = "toml" -version = "1.1.6+spec-1.1.0" +version = "1.2.2+spec-1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "920602543f0911ab71da12c50d59701da54c196d1a2bf5cb4b75667f137a406a" +checksum = "5426cb1b964690d913f6c5c1a1ae0b42f428ec506bb4d452876d7a209c9bca3b" dependencies = [ "indexmap", "serde_core", @@ -1898,27 +1923,39 @@ dependencies = [ [[package]] name = "toml_datetime" -version = "1.1.1+spec-1.1.0" +version = "1.1.3+spec-1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3165f65f62e28e0115a00b2ebdd37eb6f3b641855f9d636d3cd4103767159ad7" +checksum = "173f25c883cd2176a2d8212155638c0a60d484a9d84546d270866f40f56b6e49" dependencies = [ "serde_core", ] +[[package]] +name = "toml_edit" +version = "0.25.20+spec-1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e76360e201d6dbd6583e17795ba71a88f47365a9139c8450a7979c32303b8e73" +dependencies = [ + "indexmap", + "toml_datetime", + "toml_parser", + "winnow", +] + [[package]] name = "toml_parser" -version = "1.1.3+spec-1.1.0" +version = "1.1.6+spec-1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1d38ac1cf9b95face32296c0a3ede1fdc270627c9d9c02a7274dd6d960dc4d56" +checksum = "e6769c452d71ba30696c6b37770c439a9cc9110f47f7d5cdbeda79840ef5ea31" dependencies = [ "winnow", ] [[package]] name = "toml_writer" -version = "1.1.2+spec-1.1.0" +version = "1.2.0+spec-1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7d56353a2a665ad0f41a421187180aab746c8c325620617ad883a99a1cbe66d2" +checksum = "009dbb7700f11c55ef83aebbe4c0e9cf1f1ac0844bd8d6f00dc38f302026e13a" [[package]] name = "unarray" @@ -1928,9 +1965,9 @@ checksum = "eaea85b334db583fe3274d12b4cd1880032beab409c0d774be044d4480ab9a94" [[package]] name = "unicode-ident" -version = "1.0.26" +version = "1.0.27" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d245f478577f809a851594d02313b640fb437e0bb33866753cff937863096954" +checksum = "a2c754d6c33795a1c324727428e5a7dedb5b06195f9890bdbcba760d3e246563" [[package]] name = "untrusted" @@ -1940,9 +1977,9 @@ checksum = "8ecb6da28b8a351d773b68d5825ac39017e680750f980f3a1a85cd8dd28a47c1" [[package]] name = "ureq" -version = "3.5.0" +version = "3.5.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cde93ff05758a36a851a398a772b0b79a82fbe3c186a46f2696baaeaf84c966b" +checksum = "3ac5cecf619ca81f66a96482db09687c9f7465af65f4300a8c30cca05bd5a59d" dependencies = [ "base64", "cookie_store", @@ -1962,9 +1999,9 @@ dependencies = [ [[package]] name = "ureq-proto" -version = "0.6.5" +version = "0.7.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "841583fc36089d7d59419568ae157f43a5a03a2e5a81ba87c77d1596ef46e922" +checksum = "622dce33c252115466d83f63e9744a18f12b4406aae51a01c15ad8fcf1185eb3" dependencies = [ "base64", "http", @@ -1974,9 +2011,9 @@ dependencies = [ [[package]] name = "url" -version = "2.5.8" +version = "2.5.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ff67a8a4397373c3ef660812acab3268222035010ab8680ec4215f38ba3d0eed" +checksum = "f00cd2407bb42c0ef17be88d4cf020f5cceffd121665bac9b8b9493a369b3b1a" dependencies = [ "form_urlencoded", "idna", @@ -1992,9 +2029,12 @@ checksum = "b8c0a043c9540bae7c578c88f91dda8bd82e59ae27c21baca69c8b191aaf5a6e" [[package]] name = "utf8_iter" -version = "1.0.4" +version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b6c140620e7ffbb22c2dee59cafe6084a59b5ffc27a8859a5f0d494b5d52b6be" +checksum = "af3bd9d3e571c26fcce9d033b87ea5ab061b8d2ffe9b7a5675d810d68f03edf0" +dependencies = [ + "utf_types", +] [[package]] name = "utf8parse" @@ -2002,6 +2042,12 @@ version = "0.2.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "06abde3611657adf66d383f00b093d7faecc7fa57071cce2578660c9f1010821" +[[package]] +name = "utf_types" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3a3b425286980a367278453f3b6d28cdcb134b574e5a35824a6ff5eebad50bb6" + [[package]] name = "vcpkg" version = "0.2.15" @@ -2034,9 +2080,9 @@ dependencies = [ [[package]] name = "walkdir" -version = "2.5.0" +version = "2.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "29790946404f91d9c5d06f9874efddea1dc06c5efe94541a7d6863108e3a5e4b" +checksum = "b42e295b7452c4604982280d8586001fcad9b8b201cac67bca9771e7a7475403" dependencies = [ "same-file", "winapi-util", @@ -2048,20 +2094,11 @@ version = "0.11.1+wasi-snapshot-preview1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ccf3ec651a847eb01de73ccad15eb7d99f80485de043efb2f370cd654f4ea44b" -[[package]] -name = "wasip2" -version = "1.0.4+wasi-0.2.12" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b67efb37e106e55ce722a510d6b5f9c17f083e5fc79afc2badeb12cc313d9487" -dependencies = [ - "wit-bindgen", -] - [[package]] name = "webpki-root-certs" -version = "1.0.11" +version = "1.0.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e49d0e65abc00c142e8f9428da991da9f1a250c39be97459901eb12b9b49f62a" +checksum = "293198dcebfb821155b5092ab94b5a82ff180eddd7241df3bd6e66a4ffd1a585" dependencies = [ "rustls-pki-types", ] @@ -2165,15 +2202,12 @@ checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec" [[package]] name = "winnow" -version = "1.0.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "23b97319f7b8343df12cc98938e5c3eb436064524c8d2b4e30a1d3a36eecdf81" - -[[package]] -name = "wit-bindgen" -version = "0.57.1" +version = "1.0.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1ebf944e87a7c253233ad6766e082e3cd714b5d03812acc24c318f549614536e" +checksum = "8c3b93199df0ab874cdf0c6a94f0a0dc3423fe41f1cafb62b8bd7b1deb277aef" +dependencies = [ + "memchr", +] [[package]] name = "writeable" @@ -2211,9 +2245,9 @@ dependencies = [ [[package]] name = "yoke" -version = "0.8.3" +version = "0.8.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "709fe23a0424b6a435d82152b1bd3fdfb0833487d5fa90d05d42762a9891fef5" +checksum = "417ef3fcf6c300b7dbd25c85531a746931c02ad536f3cf4786ed1e88223340b3" dependencies = [ "stable_deref_trait", "yoke-derive", @@ -2228,24 +2262,24 @@ checksum = "ec8ebde2db3681e8c9980cc27822030e68752690ddfa9473e739aeb4dbde6d71" dependencies = [ "proc-macro2", "quote", - "syn 3.0.6", + "syn 3.0.10", "synstructure 0.14.0", ] [[package]] name = "zerocopy" -version = "0.8.60" +version = "0.8.64" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6400fc4bb7426f6faac3fb07566122bb18622e3022bd2c36426a92ed489b1dbe" +checksum = "ed43f3060383c64b000f3c630550aebdfa9d3b76d48de32390483dd2cc7e0865" dependencies = [ "zerocopy-derive", ] [[package]] name = "zerocopy-derive" -version = "0.8.60" +version = "0.8.64" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "99c27cc7525bad4df59a45e073c45b2c2aa820efb588234cc23a547ec69a34db" +checksum = "a5cbd820fe3e35fb38c83b6dc7e6b1618bc46e0cd10073ae94e8d52dc468d8b9" dependencies = [ "proc-macro2", "quote", @@ -2269,15 +2303,15 @@ checksum = "f75b4683f6c7f45248d4d64056a24298c6281e0993356d7d1b4a1a962ef10d4a" dependencies = [ "proc-macro2", "quote", - "syn 3.0.6", + "syn 3.0.10", "synstructure 0.14.0", ] [[package]] name = "zeroize" -version = "1.9.0" +version = "1.9.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e13c156562582aa81c60cb29407084cdb54c4164760106ab78e6c5b0858cf64e" +checksum = "85ccff8a4805aba1eaa4cd4afcd49f7557dd2cf5fd79ffc37f8959466effc5aa" [[package]] name = "zerotrie" @@ -2292,9 +2326,9 @@ dependencies = [ [[package]] name = "zerovec" -version = "0.11.8" +version = "0.11.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bb0464e17806c1d976d5cba29399c7f08e516e279e2ba493f63123b5fca67dd8" +checksum = "f58a2799cfe9a1670c7ea8edbd52ef8edb93cb37a7f83bf31ba9e35d9dae6a40" dependencies = [ "yoke", "zerofrom", @@ -2303,13 +2337,13 @@ dependencies = [ [[package]] name = "zerovec-derive" -version = "0.11.6" +version = "0.11.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "34df6fc39dbd26ddc9c10e6a2984476e13acce22e64e4487636ef494369225da" +checksum = "c3743ddbf47738d929cd1ae2e199d40d0162979dfe31aef8ae646d2bf00bf97a" dependencies = [ "proc-macro2", "quote", - "syn 3.0.6", + "syn 3.0.10", ] [[package]] diff --git a/Cargo.toml b/Cargo.toml index 30cedf1..49b86e2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -44,6 +44,7 @@ anstream = "1" clap = { version = "4", features = ["derive", "env", "wrap_help"] } clap_complete = "4" etcetera = "0.11" +flate2 = "1" quick-xml = "0.42" serde = { version = "1", features = ["derive"] } serde_json = "1" @@ -53,7 +54,7 @@ thiserror = "2" enable-ansi-support = "0.3" [target.'cfg(unix)'.dependencies] -signal-hook = { version = "0.4", default-features = false } +signal-hook = { version = "0.4.6", default-features = false } # TLS per platform: the OS's own stack on Windows and macOS (SChannel, # Security.framework), rustls on everything else. ring, rustls' crypto, builds @@ -64,13 +65,13 @@ signal-hook = { version = "0.4", default-features = false } # Neither ureq feature set bundles Mozilla roots, which PlatformVerifier # never reads; src/http.rs picks the matching provider. [target.'cfg(any(windows, target_os = "macos"))'.dependencies] -ureq = { version = "3.5", default-features = false, features = ["json", "gzip", "native-tls-no-default"] } +ureq = { version = "3.5.2", default-features = false, features = ["json", "gzip", "native-tls-no-default"] } # rustls itself to hand ureq ring's provider and to tell a refused # certificate from a dead host. [target.'cfg(not(any(windows, target_os = "macos")))'.dependencies] rustls = { version = "0.23", default-features = false, features = ["ring", "std"] } -ureq = { version = "3.5", default-features = false, features = ["json", "gzip", "rustls-no-provider", "platform-verifier"] } +ureq = { version = "3.5.2", default-features = false, features = ["json", "gzip", "rustls-no-provider", "platform-verifier"] } [features] # Re-exports for benches/ and the relevance example only; unstable and @@ -80,7 +81,7 @@ internals = [] [dev-dependencies] allocation-counter = "0.8" assert_cmd = "2" -criterion = { version = "5", package = "codspeed-criterion-compat", default-features = false, features = ["cargo_bench_support"] } +criterion = { version = "6.1", package = "codspeed-criterion-compat", default-features = false, features = ["cargo_bench_support"] } insta = { version = "1", features = ["filters"] } predicates = "3" proptest = "1" diff --git a/README.md b/README.md index b283dfb..10d4683 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,9 @@ Search for datasets from the terminal -Datasets sit in dozens of archives: Hugging Face and Kaggle, Zenodo and Dataverse, data.gov and data.europa.eu, the IMF and the ECB, NASA and Copernicus. Each has its own search box and its own idea of relevance, and many host the same dataset under different names. dataseek queries them all at once and returns one deduplicated, ranked list, naming every archive that holds each result. Datasets carried by more archives, and matching more of your query, rank higher. +Datasets sit in dozens of archives: Hugging Face and Kaggle, Zenodo and Dataverse, data.gov and data.europa.eu, the IMF and the ECB, NASA and Copernicus. Each has its own search box and its own idea of relevance, and many host the same dataset under different names. dataseek queries 106 of them at once and returns one deduplicated, ranked list, naming every archive that holds each result. Datasets carried by more archives, and matching more of your query, rank higher. + +The 106 sources span fourteen categories: machine-learning hubs and benchmark lists, research repositories, national open-data portals, statistical offices and central banks, earth-observation catalogs, and archives for genomics, medical imaging, microscopy, neuroscience, physics, social science, and speech and language corpora. [The full list](docs/adr/0004-every-source-is-searched.md) names each one, and `dsk sources` prints it. Most sources need no key and nothing to set up. Results come back in the terminal, as JSON for scripts, or to an AI client over MCP. Google Dataset Search and Mendeley Data are the exception: neither permits automated searches, so dataseek asks them only when you name them, `-s google,mendeley` for those alone or `--include google,mendeley` beside the rest ([ADR 0013](docs/adr/0013-opt-in-sources.md)). `dsk` is the same program under a shorter name. @@ -32,12 +34,13 @@ dsk search rainfall --license cc-by --format csv # only CC BY datasets offered dsk search census --json | jq -r '.results[].url' # one URL per line, for scripts dsk sources # every source, its protocol, key and docs dsk inspect https://zenodo.org/records/13135140 # a page's metadata and the files it lists +dsk related https://huggingface.co/datasets/nyu-mll/glue # what else its owner publishes ``` `dsk search air quality -n 3` on a terminal: ```text -- searching 71 sources for "air quality"; 3 need a key, see `dsk doctor` +- searching 101 sources for "air quality"; 3 need a key, see `dsk doctor` 1 Improving Indoor Air Quality for Poor Families: Controlled Experiments 2005-2006 https://microdata.worldbank.org/catalog/396 worldbank-microdata, ihsn | Susmita Dasgupta, Mainul Huq, M. Khaliquzzaman and David Wheeler | 2... @@ -53,7 +56,7 @@ dsk inspect https://zenodo.org/records/13135140 # a page's metadata and the f openaire, socrata | City of Calgary Open Data Portal | 2018-07-16 | See Terms of Use This dataset makes historical air quality data accessible for various parameter... - ✓ 3 of 359 results; 70 of 71 sources answered; -n 359 shows all + ✓ 3 of 422 results; 93 of 101 sources answered, 8 sources not waited for; -n 422 shows all ``` `dsk` alone shows the commands, `dsk help environment` the variables it reads, `dsk help exit-codes` what it returns. `cargo install` cannot install a man page or completions: `dsk man > ~/.local/share/man/man1/dsk.1` puts the page where `man dsk` finds it, and `dsk completion fish` (or `bash`, `zsh`) says where its script goes. @@ -74,7 +77,7 @@ Use it in the terminal, pipe its JSON into scripts, or use dataseek via MCP (`ds Each tool returns what its command prints with `--json`; keys are read from the environment the client starts it in, or from `credentials.toml`. Google Dataset Search and Mendeley Data stay opt-in here too: the model asks for them by naming them in the search tool's `source` argument, and a client can ask for them on every search with `"args": ["mcp", "--include", "google,mendeley"]`. See: [`docs/reference/contract.md`](docs/reference/contract.md#mcp-mode). ## Agent skill -[`skills/dataseek`](skills/dataseek/SKILL.md) teaches a coding agent to use dataseek over MCP or the CLI: writing queries the sources match, reading coverage and source statuses, inspecting a dataset's files, registering the server and its keys, and recovering from each error. Install it with the [skills CLI](https://github.com/vercel-labs/skills): +[`skills/dataseek`](skills/dataseek/SKILL.md) teaches a coding agent to use dataseek over MCP, with the CLI as the fallback: choosing among the 106 sources, writing queries the sources match, reading coverage and source statuses, inspecting a dataset's files, listing what else an owner publishes, registering the server and its keys, and recovering from each error. Install it with the [skills CLI](https://github.com/vercel-labs/skills): ```sh pnpm dlx skills add lmarkmann/dataseek diff --git a/_typos.toml b/_typos.toml index 3b47e98..4555295 100644 --- a/_typos.toml +++ b/_typos.toml @@ -11,9 +11,12 @@ extend-ignore-re = [ "(?i)\\bby(-nc)?-nd\\b", "(?i)\\bcc by nc nd\\b", "\"-ND\"", - "has\\(\"nd\"\\)", + "\"nd\"", "Burnt Area \\(BA\\)", + # A name with an escaped c-cedilla in a TCIA abstract. + "Fran\\\\u\\{e7\\}ois", "census for BA 44/45", + "abschaetzung-organische_boeden", # HTML entity names, decoded in src/record.rs. "\"curren\"", "café", diff --git a/benches/search.rs b/benches/search.rs index 05ca327..8aba31d 100644 --- a/benches/search.rs +++ b/benches/search.rs @@ -47,9 +47,9 @@ const QUERY: &str = "sea surface temperature"; /// and tables, the SDMX agencies hundreds to a few thousand. const CATALOG_SIZES: [usize; 3] = [1_000, 4_000, 16_000]; -/// 76 sources answering with this many records each. +/// 106 sources answering with this many records each. const RECORDS_PER_SOURCE: [usize; 3] = [5, 20, 80]; -const SOURCES: usize = 76; +const SOURCES: usize = 106; fn word(i: usize) -> &'static str { WORDS[i % WORDS.len()] @@ -301,43 +301,28 @@ fn fusion(c: &mut Criterion) { } fn sanitize(c: &mut Criterion) { - let mut group = c.benchmark_group("clean"); - for bytes in [200, 2_000, 20_000] { - let text = html(bytes); - group.throughput(Throughput::Bytes(text.len() as u64)); - group.bench_with_input( - BenchmarkId::from_parameter(bytes), - &text, - |b, text| { - b.iter(|| clean(black_box(text))); - }, - ); - } - group.finish(); - - let mut group = c.benchmark_group("markdown"); - for bytes in [200, 2_000, 20_000] { - let text = markdown(bytes); - group.throughput(Throughput::Bytes(text.len() as u64)); - group.bench_with_input( - BenchmarkId::from_parameter(bytes), - &text, - |b, text| { - b.iter(|| from_markdown(black_box(text))); - }, - ); - } - group.finish(); + bench_text(c, "clean", &[200, 2_000, 20_000], html, clean); + bench_text(c, "markdown", &[200, 2_000, 20_000], markdown, from_markdown); + bench_text(c, "clean/ampersands", &[2_000, 20_000], ampersands, clean); +} - let mut group = c.benchmark_group("clean/ampersands"); - for bytes in [2_000, 20_000] { - let text = ampersands(bytes); +/// `run` over the text `sample` makes for each size, by bytes of input. +fn bench_text( + c: &mut Criterion, + name: &str, + sizes: &[usize], + sample: impl Fn(usize) -> String, + run: impl Fn(&str) -> String, +) { + let mut group = c.benchmark_group(name); + for &bytes in sizes { + let text = sample(bytes); group.throughput(Throughput::Bytes(text.len() as u64)); group.bench_with_input( BenchmarkId::from_parameter(bytes), &text, |b, text| { - b.iter(|| clean(black_box(text))); + b.iter(|| run(black_box(text))); }, ); } diff --git a/docs/adr/0004-every-source-is-searched.md b/docs/adr/0004-every-source-is-searched.md index ddb46a4..a5b9bd5 100644 --- a/docs/adr/0004-every-source-is-searched.md +++ b/docs/adr/0004-every-source-is-searched.md @@ -15,7 +15,7 @@ Every source below is implemented to the same contract (`src/sources.rs`) and se ## Consequences -- One query fans out to about 74 hosts. The search deadline (ADR 0007) bounds the cost of the slowest; the cache bounds repeats. +- One query fans out to about 104 hosts. The search deadline (ADR 0007) bounds the cost of the slowest; the cache bounds repeats. - Adding a source is one registry row plus, at most, one module. Removing one is the reverse; nothing else refers to a source by id. - Overlap is low (ADR 0006 evidence: 96% of merged hits came from exactly one source), so dropping a source loses results rather than duplicates. Reverting to tiers would cut recall in proportion. @@ -26,7 +26,7 @@ Every source below is implemented to the same contract (`src/sources.rs`) and se ## The sources -76 sources, grouped by `--category`. Each source's terms verdict and the sentence it rests on are in [`../synthesis/terms.md`](../synthesis/terms.md); what each offers for filters and file lists is in [`../synthesis/capabilities.md`](../synthesis/capabilities.md). Keys are read from the environment or `credentials.toml` ([`../reference/keys-and-cache.md`](../reference/keys-and-cache.md)); an optional key raises a rate limit or unlocks a better endpoint, a required one is the only way in. +106 sources, grouped by `--category`. Each source's terms verdict and the sentence it rests on are in [`../synthesis/terms.md`](../synthesis/terms.md); what each offers for filters and file lists is in [`../synthesis/capabilities.md`](../synthesis/capabilities.md). Keys are read from the environment or `credentials.toml` ([`../reference/keys-and-cache.md`](../reference/keys-and-cache.md)); an optional key raises a rate limit or unlocks a better endpoint, a required one is the only way in. ### aggregator @@ -47,14 +47,26 @@ Every source below is implemented to the same contract (`src/sources.rs`) and se | `uci` | UCI Machine Learning Repository | list endpoint | local | | [docs](https://github.com/uci-ml-repo/ucimlrepo) | | `roboflow` | Roboflow Universe | Universe API | live | `$ROBOFLOW_API_KEY` (required) | [docs](https://docs.roboflow.com/datasets/universe/universe/universe-search) | | `modelscope` | ModelScope | site API | live | | [docs](https://www.modelscope.cn/docs) | +| `mozilla` | Mozilla Data Collective | MDC REST | live | | [docs](https://mozilladatacollective.com/api-reference/docs) | +| `clarin` | CLARIN VLO | VLO API | live | | [docs](https://vlo.clarin.eu/api/swagger-ui/index.html) | +| `elg` | European Language Grid | ELG catalogue API | live | | [docs](https://european-language-grid.readthedocs.io/en/stable/all/A1_PythonSDK/Catalog.html) | | `aws` | Registry of Open Data on AWS | registry page | local | | [docs](https://github.com/awslabs/open-data-registry) | | `tfds` | TensorFlow Datasets | catalog page | local | | [docs](https://www.tensorflow.org/datasets/catalog/overview) | +| `openslr` | OpenSLR | resource index page | local | | [docs](https://www.openslr.org/resources.php) | +| `lila` | LILA BC | WordPress posts API, listed | local | | [docs](https://lila.science/datasets) | +| `polaris` | Polaris Hub | Hub API, listed | local | | [docs](https://polaris-hub.github.io/polaris/stable/) | +| `academictorrents` | Academic Torrents | RSS database file | local | | [docs](https://academictorrents.com/docs/api.html) | +| `googleresearch` | Google Research Datasets | dataset index pages | local | | [docs](https://research.google/resources/datasets/) | +| `opus` | OPUS | OPUS API corpus list | local | | [docs](https://opus.nlpl.eu/opusapi) | +| `neurips` | NeurIPS Datasets and Benchmarks | virtual site data files | local | | [docs](https://neurips.cc/Conferences/2026/CallForEvaluationsDatasets) | +| `pwc` | Papers with Code archive | archived JSON dump | local | | [docs](https://huggingface.co/datasets/pwc-archive/files) | ### code | id | source | protocol | search | key | API docs | |---|---|---|---|---|---| | `github` | GitHub (topic:dataset) | GitHub search | live | `$GITHUB_TOKEN` (optional) | [docs](https://docs.github.com/en/rest/search/search) | +| `gitlab` | GitLab (topic:dataset) | GitLab projects API | live | | [docs](https://docs.gitlab.com/api/projects/) | ### research @@ -67,6 +79,9 @@ Every source below is implemented to the same contract (`src/sources.rs`) and se | `recherche-data-gouv` | Recherche Data Gouv (France) | Dataverse | live | | [docs](https://guides.dataverse.org/en/latest/api/search.html) | | `dataverse-nl` | DataverseNL | Dataverse | live | | [docs](https://guides.dataverse.org/en/latest/api/search.html) | | `dataverse-no` | DataverseNO | Dataverse | live | | [docs](https://guides.dataverse.org/en/latest/api/search.html) | +| `darus` | DaRUS Stuttgart | Dataverse | live | | [docs](https://guides.dataverse.org/en/latest/api/search.html) | +| `juelich` | Juelich DATA | Dataverse | live | | [docs](https://guides.dataverse.org/en/latest/api/search.html) | +| `cora` | CORA.RDR | Dataverse | live | | [docs](https://guides.dataverse.org/en/latest/api/search.html) | | `osf` | OSF (via SHARE) | SHARE trove | live | | [docs](https://share.osf.io/trove/docs) | | `mendeley` | Mendeley Data | site search API | live | opt-in | [docs](https://data.mendeley.com/api/docs/) | @@ -81,6 +96,11 @@ Every source below is implemented to the same contract (`src/sources.rs`) and se | `data-gov-au` | data.gov.au | CKAN | live | | [docs](https://docs.ckan.org/en/latest/api/) | | `govdata` | GovData (Germany) | CKAN | live | | [docs](https://docs.ckan.org/en/latest/api/) | | `hdx` | Humanitarian Data Exchange | CKAN | live | | [docs](https://docs.humdata.org/build/hdx-apis/metadata-endpoints/package_search) | +| `data-go-jp` | Japan e-Gov Data | CKAN | live | | [docs](https://data.e-gov.go.jp/data/api_guide) | +| `energydata` | World Bank EnergyData | CKAN | live | | [docs](https://docs.ckan.org/en/latest/api/) | +| `open-africa` | openAFRICA | CKAN | live | | [docs](https://docs.ckan.org/en/latest/api/) | +| `netl-edx` | DOE NETL EDX | CKAN | live | | [docs](https://docs.ckan.org/en/latest/api/) | +| `opendata-swiss` | opendata.swiss | CKAN | live | | [docs](https://docs.ckan.org/en/latest/api/) | | `socrata` | Socrata portals (US) | Socrata Discovery | live | | [docs](https://dev.socrata.com/docs/other/discovery) | | `socrata-eu` | Socrata portals (EU) | Socrata Discovery | live | | [docs](https://dev.socrata.com/docs/other/discovery) | | `opendatasoft` | OpenDataSoft hub | OpenDataSoft Explore | live | | [docs](https://help.huwise.com/apis/ods-explore-v2/) | @@ -130,6 +150,8 @@ Every source below is implemented to the same contract (`src/sources.rs`) and se | `earth-search` | Earth Search (AWS) | STAC | local | | [docs](https://element84.com/earth-search/) | | `copernicus-dataspace` | Copernicus Data Space | STAC | local | | [docs](https://documentation.dataspace.copernicus.eu/APIs/STAC.html) | | `copernicus-cds` | Copernicus Climate Data Store | STAC | local | | [docs](https://cds.climate.copernicus.eu/how-to-api) | +| `swisstopo` | Swisstopo STAC | STAC | local | | [docs](https://www.geo.admin.ch/en/rest-interface-stac-api/) | +| `usgs-landsat` | USGS LandsatLook (overlaps `planetary-computer` and `earth-search`) | STAC | local | | [docs](https://www.usgs.gov/landsat-missions/spatiotemporal-asset-catalog-stac) | | `earth-engine` | Google Earth Engine catalog | catalog page | local | | [docs](https://developers.google.com/earth-engine/datasets/catalog) | | `ncei` | NOAA NCEI | NCEI Search Service | live | | [docs](https://www.ncei.noaa.gov/support/access-search-service-api-user-documentation) | | `pangaea` | PANGAEA | PANGAEA search | live | | [docs](https://wiki.pangaea.de/wiki/PANGAEA_search) | @@ -148,9 +170,14 @@ Every source below is implemented to the same contract (`src/sources.rs`) and se | `geo` | NCBI GEO | E-utilities | live | `$NCBI_API_KEY` (optional) | [docs](https://www.ncbi.nlm.nih.gov/books/NBK25501/) | | `arrayexpress` | ArrayExpress (EBI) | EBI Search | live | | [docs](https://www.ebi.ac.uk/ebisearch/documentation/rest-api) | | `biostudies` | BioStudies (EBI) | EBI Search | live | | [docs](https://www.ebi.ac.uk/ebisearch/documentation/rest-api) | +| `bioimages` | BioImage Archive | EBI Search | live | | [docs](https://www.ebi.ac.uk/ebisearch/documentation/rest-api) | +| `empiar` | EMPIAR | EBI Search | live | | [docs](https://www.ebi.ac.uk/ebisearch/documentation/rest-api) | | `omicsdi` | OmicsDI | OmicsDI | live | | [docs](https://www.omicsdi.org/ws/) | | `cellxgene` | CZ CELLxGENE | Curation API, listed | local | | [docs](https://api.cellxgene.cziscience.com/curation/ui/) | +| `grandchallenge` | Grand Challenge | REST API, listed | local | | [docs](https://grand-challenge.org/documentation/grand-challenge-api/) | +| `tcia` | The Cancer Imaging Archive | WordPress collections API, listed | local | | [docs](https://www.cancerimagingarchive.net/tcia-api-guides/) | | `synapse` | Synapse | Synapse REST | live | | [docs](https://rest-docs.synapse.org/) | +| `encode` | ENCODE | ENCODE REST | live | | [docs](https://www.encodeproject.org/help/rest-api/) | ### neuroscience @@ -173,3 +200,6 @@ Every source below is implemented to the same contract (`src/sources.rs`) and se | id | source | protocol | search | key | API docs | |---|---|---|---|---|---| | `cessda` | CESSDA Data Catalogue | CESSDA | live | | [docs](https://api.tech.cessda.eu/) | +| `unicef` | UNICEF SDMX | SDMX | local | | [docs](https://data.unicef.org/sdmx-api-documentation/) | +| `aussda` | AUSSDA | Dataverse | live | | [docs](https://guides.dataverse.org/en/latest/api/search.html) | +| `qdr` | QDR Syracuse | Dataverse | live | | [docs](https://guides.dataverse.org/en/latest/api/search.html) | diff --git a/docs/adr/0005-one-adapter-per-shared-protocol.md b/docs/adr/0005-one-adapter-per-shared-protocol.md index 8cf1bb9..1e94f2d 100644 --- a/docs/adr/0005-one-adapter-per-shared-protocol.md +++ b/docs/adr/0005-one-adapter-per-shared-protocol.md @@ -13,13 +13,13 @@ A protocol is written once and configured per registry row: | protocol | module | rows today | searched | |---|---|---|---| -| CKAN `package_search` | `ckan.rs` | data.gov.uk, Canada, Australia, GovData, HDX, B2FIND | live | -| Dataverse Search API | `dataverse.rs` | Harvard, Borealis, Recherche Data Gouv, DataverseNL, DataverseNO | live | +| CKAN `package_search` | `ckan.rs` | data.gov.uk, Canada, Australia, GovData, HDX, B2FIND, e-Gov Japan, EnergyData, openAFRICA | live | +| Dataverse Search API | `dataverse.rs` | Harvard, Borealis, Recherche Data Gouv, DataverseNL, DataverseNO, DaRUS, Juelich DATA, CORA.RDR, AUSSDA, QDR | live | | NADA catalog search | `nada.rs` | World Bank, IHSN, FAO, UNHCR | live | | Socrata Discovery | `socrata.rs` | US and EU regions (every Socrata domain) | live | -| EBI Search | `ebi.rs` | ArrayExpress, BioStudies | live | -| STAC collections | `stac.rs` | Planetary Computer, Earth Search, Copernicus Data Space, Copernicus CDS | local | -| SDMX-ML 2.1 dataflows | `sdmx.rs` | IMF, OECD, ECB, BIS, ILO, UNdata, Bundesbank | local | +| EBI Search | `ebi.rs` | ArrayExpress, BioStudies, BioImage Archive | live | +| STAC collections | `stac.rs` | Planetary Computer, Earth Search, Copernicus Data Space, Copernicus CDS, Swisstopo, USGS LandsatLook | local | +| SDMX-ML 2.1 dataflows | `sdmx.rs` | IMF, OECD, ECB, BIS, ILO, UNdata, Bundesbank, UNICEF | local | | DCAT-AP | `europa.rs` | every EU national portal, through data.europa.eu | live | | DataCite, OpenAIRE | `datacite.rs`, `openaire.rs` | thousands of DOI and OAI-PMH repositories | live | diff --git a/docs/adr/0006-merge-by-identity-rank-by-fusion.md b/docs/adr/0006-merge-by-identity-rank-by-fusion.md index c92d9c2..6b72c08 100644 --- a/docs/adr/0006-merge-by-identity-rank-by-fusion.md +++ b/docs/adr/0006-merge-by-identity-rank-by-fusion.md @@ -5,7 +5,7 @@ ## Context -Results arrive as about 75 ranked lists with incomparable scores (Elasticsearch relevance, download counts, catalog order). The same dataset appears in several (a Zenodo record in Zenodo, DataCite, OpenAIRE and Google), DataCite lists every version of a record, and many sources match loosely (any word, stemmed, or in fields dataseek never sees). +Results arrive as about 104 ranked lists with incomparable scores (Elasticsearch relevance, download counts, catalog order). The same dataset appears in several (a Zenodo record in Zenodo, DataCite, OpenAIRE and Google), DataCite lists every version of a record, and many sources match loosely (any word, stemmed, or in fields dataseek never sees). ## Decision diff --git a/docs/adr/0007-cache-budget-and-failure-handling.md b/docs/adr/0007-cache-budget-and-failure-handling.md index 7b3473b..24cec32 100644 --- a/docs/adr/0007-cache-budget-and-failure-handling.md +++ b/docs/adr/0007-cache-budget-and-failure-handling.md @@ -5,7 +5,7 @@ ## Context -A search that waits for 75 hosts is only as fast as the slowest, and some hosts fail or rate-limit. Catalog sources download lists of up to tens of thousands of entries (World Bank indicators: 29,533). The cache must not bloat. +A search that waits for 104 hosts is only as fast as the slowest, and some hosts fail or rate-limit. Catalog sources download lists of up to tens of thousands of entries (World Bank indicators: 29,533). The cache must not bloat. ## Decision diff --git a/docs/adr/0012-benchmarks-criterion-local-codspeed-ci.md b/docs/adr/0012-benchmarks-criterion-local-codspeed-ci.md index 9bbbd66..c3e578f 100644 --- a/docs/adr/0012-benchmarks-criterion-local-codspeed-ci.md +++ b/docs/adr/0012-benchmarks-criterion-local-codspeed-ci.md @@ -20,6 +20,7 @@ A search spends seconds on the network and milliseconds on the CPU, so a CPU reg - CI gains a second workflow: one job, Linux only, OIDC upload, no secret. Pull requests trigger it only when `src/`, `benches/` or the manifests change; every push to main runs it so each commit there is a baseline. This is the one exception to ADR 0002's single job, kept apart so its path filter does not touch the required `linux` check. - CodSpeed is an external service: the repository has to stay imported at codspeed.io, on the free plan (CPU simulation, up to five users). - `cargo-codspeed` in the workflow is pinned to the version of the `codspeed` crate in `Cargo.lock`; bumping one without the other breaks the job. +- CodSpeed 6 runs each benchmark in its own process. A chart therefore steps where the harness moved from 5 to 6, not where the code changed; `CODSPEED_PROCESS_ISOLATION=false` restores the old behaviour for one run. - The per-adapter JSON mappers are not benchmarked: each reads at most one API page, microseconds next to its request. An adapter that pages through results, or a profile that shows a mapper hot, is the trigger to add one. - `cargo codspeed run` measures only on Linux; on a Mac, the local numbers are Criterion's wall time. diff --git a/docs/adr/0013-opt-in-sources.md b/docs/adr/0013-opt-in-sources.md index b1bec8b..ed54df0 100644 --- a/docs/adr/0013-opt-in-sources.md +++ b/docs/adr/0013-opt-in-sources.md @@ -21,7 +21,7 @@ Everything else ADR 0008 decided for Google stands, restated here because that A ## Consequences -- A default search asks 74 of the 76 registered sources. Google's results no longer appear unless asked for; the other sources' overlap is unchanged. +- A default search asks 104 of the 106 registered sources. Google's results no longer appear unless asked for; the other sources' overlap is unchanged. - `dsk search climate -s google` is the way to ask for it, and `-s google,zenodo` combines it with others. - A source whose terms need written permission is marked opt-in, not removed, so the day permission arrives the change is one line in the registry. - The plain `sources` output gained a seventh column, the opt-in reason, empty for every other row. diff --git a/docs/adr/0016-rank-by-fusion-and-weighted-coverage.md b/docs/adr/0016-rank-by-fusion-and-weighted-coverage.md index bcac905..83d96b7 100644 --- a/docs/adr/0016-rank-by-fusion-and-weighted-coverage.md +++ b/docs/adr/0016-rank-by-fusion-and-weighted-coverage.md @@ -5,7 +5,7 @@ ## Context -Results arrive as about 75 ranked lists with incomparable scores, and only about 4% of merged hits are found by more than one source (ADR 0006's bench). Fusion therefore mostly interleaves lists that rarely agree, and the order of the top 10 rests on the coverage step that rescales each hit by how much of the query it mentions. ADR 0006 counted every query word the same, so in a sentence such as "monthly inflation by country since 2000" a hit carrying "country" and "by" outscored one carrying only "inflation". The relevance benchmark (`just relevance`, [`../reference/development.md`](../reference/development.md#relevance)) now measures the merged top 10 offline against graded judgments, which makes ranking changes testable instead of argued. +Results arrive as about 104 ranked lists with incomparable scores, and only about 4% of merged hits are found by more than one source (ADR 0006's bench). Fusion therefore mostly interleaves lists that rarely agree, and the order of the top 10 rests on the coverage step that rescales each hit by how much of the query it mentions. ADR 0006 counted every query word the same, so in a sentence such as "monthly inflation by country since 2000" a hit carrying "country" and "by" outscored one carrying only "inflation". The relevance benchmark (`just relevance`, [`../reference/development.md`](../reference/development.md#relevance)) now measures the merged top 10 offline against graded judgments, which makes ranking changes testable instead of argued. ## Decision diff --git a/docs/adr/0020-filters-run-on-the-merged-list.md b/docs/adr/0020-filters-run-on-the-merged-list.md index a13c0dc..7ef7735 100644 --- a/docs/adr/0020-filters-run-on-the-merged-list.md +++ b/docs/adr/0020-filters-run-on-the-merged-list.md @@ -5,7 +5,7 @@ ## Context -An agent or a user often knows more than the words of a query: the data must be openly licensed, recent, offered as CSV, or confirmed by more than one source. Putting those constraints in the query does not work, because every source treats them as more words to match. Each source has its own filter syntax or none at all: CKAN takes Solr `fq` clauses, NASA CMR an `updated_since` parameter, ArcGIS Hub a CQL `filter`, Dataverse `fq` over its own Solr fields, and most of the 76 sources nothing. The fields disagree too: licenses arrive as SPDX ids, Creative Commons deed URLs, EU vocabulary URIs or free text ("CC-By Attribution 4.0 International"), and a record's date is a different field on every source. +An agent or a user often knows more than the words of a query: the data must be openly licensed, recent, offered as CSV, or confirmed by more than one source. Putting those constraints in the query does not work, because every source treats them as more words to match. Each source has its own filter syntax or none at all: CKAN takes Solr `fq` clauses, NASA CMR an `updated_since` parameter, ArcGIS Hub a CQL `filter`, Dataverse `fq` over its own Solr fields, and most of the 106 sources nothing. The fields disagree too: licenses arrive as SPDX ids, Creative Commons deed URLs, EU vocabulary URIs or free text ("CC-By Attribution 4.0 International"), and a record's date is a different field on every source. ## Decision diff --git a/docs/adr/0021-related-reads-one-items-neighbors.md b/docs/adr/0021-related-reads-one-items-neighbors.md new file mode 100644 index 0000000..f7fc224 --- /dev/null +++ b/docs/adr/0021-related-reads-one-items-neighbors.md @@ -0,0 +1,52 @@ +# ADR 0021: `related` reads one item's neighbors from the item's own host + +- Status: proposed +- Date: 2026-11-23 + +## Context + +A search answers a query. A hunt for every dataset on a subject also walks from an item it already holds to the items beside it: the other datasets of the same owner, the datasets that cite a paper, the datasets a model was trained on, the datasets of a collection, the forks of a repository. No query finds these lists. An owner's datasets share no word, and a fork has the name of its parent. The host of the item answers each of them in one call, but in its own JSON, so today the calls are made by hand and their answers are not in the record shape `search` prints. + +## Decision + +- `dsk related ` prints the datasets beside the item a URL names, as records in the shape `search` prints. One host is asked. Nothing fans out, nothing is merged, and dataseek does not rank: the order is the host's. +- The URL's host and path choose one resolver, as in `inspect`: + +| URL | the neighbors | the call | +|---|---|---| +| Hugging Face dataset page or owner page | the owner's datasets, the most downloaded first | `GET /api/datasets?author=OWNER` | +| Hugging Face paper page, or an arXiv link | the datasets that cite the paper | the `datasets` of `GET /api/arxiv/ID/repos` | +| Hugging Face model page | the datasets the model's card names | the `dataset:` tags of `GET /api/models/ID` | +| Hugging Face collection page | the datasets of the collection | the items of type `dataset` of `GET /api/collections/SLUG` | +| GitHub repository or owner page | the owner's repositories, the last pushed first; with `--by forks`, the forks of the repository, the most starred first | `GET /users/OWNER/repos`, `GET /repos/OWNER/REPO/forks` | +| GitLab project page | the projects of the project's group or user, the most starred first | `GET /projects/PATH`, then `GET /groups/PATH/projects` or `GET /users/NAME/projects` | + +- `--by owner|forks` exists because a GitHub repository URL has two relations. Every other URL has one, and `--by forks` on it is an error that names the pages it works on. +- A call sends one request, two for GitLab, where the first one reads whether the project belongs to a group or a user. The answer is one page: at most 1,000 datasets from the Hub and 100 repositories from GitHub or GitLab. `--limit` (default 100) cuts the list. +- The item the URL names is left out of its own neighbors. +- Each row is mapped by the function the source's adapter uses, so the same JSON row is the same record in `search` and in `related`. +- A model's tags carry dataset ids and nothing else, so those records hold the id and the link. `inspect` reads the rest of one of them. +- Nothing is cached. As with `inspect`, the call is made once, on demand, for one item. +- A GitHub owner listing is not narrowed to repositories tagged `dataset`. The user named the item, and many data repositories carry no topic. +- `HF_TOKEN` and `GITHUB_TOKEN` are sent where they are set, as in `search`. The API is asked on the scheme the URL names, and a key travels only over `https`. +- `--json` prints `schema` (`dataseek-related/1`), `url`, `source`, `relation` and `results`. +- The MCP server gets a fourth tool, `related`, with its schema generated from the command's help as for the other three ([ADR 0015](0015-mcp-server-over-stdio.md)). + +## Consequences + +- An agent or a user walks from one item to its neighbors with one command and reads them like search results. +- A new relation is one resolver: one URL pattern, one call, one mapping function that mostly exists already. +- The lists are not complete past one page. An owner with more than 1,000 Hub datasets or 100 repositories is cut at that number, in the host's order. +- A listing shows whatever the owner holds, so a GitHub owner listing contains code repositories beside the data. +- Without a cache a repeated call is a repeated request. GitHub and GitLab each allow 60 anonymous requests an hour, which is enough for a walk by hand and little for a loop. + +## Evidence + +Probes of the live APIs on 2026-11-23: + +- `GET /api/datasets?author=nyu-mll&limit=1000` on the Hub returns the owner's datasets as rows of the search listing. +- `GET /api/arxiv/1810.04805/repos` returns an object with `datasets`, `models` and `spaces`; each dataset is a listing row. +- `GET /api/models/distilbert/distilbert-base-uncased-finetuned-sst-2-english` carries the tags `dataset:sst2` and `dataset:glue`. +- A collection's `items` carry `type`, `id`, `author`, `downloads` and `lastModified`. +- `GET /users/OWNER/repos` and `GET /repos/OWNER/REPO/forks` on GitHub return repositories in the shape of a search item, and take `sort=pushed` and `sort=stargazers`. +- `GET /projects/restcountries%2Frestcountries` on GitLab names its namespace with `kind` (`group` or `user`) and `full_path`. diff --git a/docs/adr/README.md b/docs/adr/README.md index 5ab90e5..d657b7c 100644 --- a/docs/adr/README.md +++ b/docs/adr/README.md @@ -42,3 +42,4 @@ A decision that constrains future work lives here, once, and is cited from where | [0018](0018-a-search-never-waits-for-a-catalog-download.md) | A search never waits for a catalog download it can do without | accepted | | [0019](0019-stop-waiting-past-a-quorum.md) | Past 90% of the sources, the rest get one second | accepted | | [0020](0020-filters-run-on-the-merged-list.md) | Filters run on the merged list; a source filters only where it is never stricter | accepted | +| [0021](0021-related-reads-one-items-neighbors.md) | `related` reads one item's neighbors from the item's own host | proposed | diff --git a/docs/bench/2026-11-23-relevance-hub-full-text.md b/docs/bench/2026-11-23-relevance-hub-full-text.md new file mode 100644 index 0000000..41d2d2b --- /dev/null +++ b/docs/bench/2026-11-23-relevance-hub-full-text.md @@ -0,0 +1,35 @@ +# Relevance with the Hub's full-text search, 2026-11-23 + +## Question + +Does the merged top 10 get better when the `huggingface` adapter also asks the Hub's full-text search for a query of several words, and in which order should its hits join the adapter's list? The method and the commands are in [`../reference/development.md`](../reference/development.md#relevance). + +## Setup + +- 48 queries, 32 of them graded and 16 known-item, in two halves. The order was chosen on the tuning half only. +- Three recordings of the `huggingface` lists on 2026-11-23 with `just relevance record --source huggingface`, no key: the adapter of v0.10.1 (ids only), and the new adapter with each of two orders. Every other source's list is the one already in the snapshot. +- Order (a): the query words a dataset holds, then its downloads, then the Hub's full-text order. Order (b): the full-text order first, then (a). +- All three are scored on the same 1,154 judgments. 111 were added for the results the new lists brought into a top 10. + +## Results + +Mean nDCG@10 and P@10 over the graded queries, known-item MRR over the others, with 95% bootstrap intervals: + +| ranking | half | nDCG@10 | P@10 | known-item MRR | +|---|---|---|---|---| +| v0.10.1 adapter | all | 0.616 [0.528, 0.700] | 0.756 [0.663, 0.838] | 0.518 [0.310, 0.733] | +| | tune | 0.621 [0.481, 0.758] | 0.756 [0.619, 0.881] | 0.479 [0.208, 0.781] | +| | held | 0.611 [0.505, 0.706] | 0.756 [0.625, 0.862] | 0.557 [0.234, 0.887] | +| full text, order (a), shipped | all | 0.645 [0.573, 0.716] | 0.778 [0.694, 0.850] | 0.518 [0.308, 0.733] | +| | tune | 0.646 [0.520, 0.774] | 0.788 [0.663, 0.894] | 0.479 [0.208, 0.781] | +| | held | 0.644 [0.583, 0.714] | 0.769 [0.656, 0.863] | 0.556 [0.231, 0.886] | +| full text, order (b) | tune | 0.595 [0.448, 0.735] | 0.719 [0.575, 0.844] | 0.480 [0.210, 0.781] | + +Order (b) was recorded for the tuning half only and scored before the 32 held-out labels were added, which do not touch the tuning queries. + +## Reading + +- Order (a) is better than the old adapter on both halves, and order (b) is worse than the old adapter on the tuning half. The Hub's full-text order puts cards that hold few of the query words near the top; the word count moves them down. +- "fMRI recordings of people watching movies" shows the gain. The old adapter returns no dataset for it, because no repository id holds two of its words. The full-text search returns ten, three of them graded relevant. +- A full-text hit needs a description. In a first version it had none, a record with no description is never dropped for lacking the query's words, and title-only records took top-10 places: that version lowered nDCG@10 on the tuning half. The description is now the start of the card. +- The gate compared the new lists with the baseline of October and failed on two held-out queries. On `skin-lesions` the old adapter scores 0.419 today and the new one 0.458: the fall from 0.580 comes from datasets published since the baseline was recorded and from the larger pool of relevant results, which lowers nDCG for a list that did not change. On `american-community-survey` the known item moves from rank 10 to rank 11; that cost is real. The baseline was reset with `just relevance --bless` to the scores of order (a). diff --git a/docs/reference/contract.md b/docs/reference/contract.md index 0621dcd..1134d25 100644 --- a/docs/reference/contract.md +++ b/docs/reference/contract.md @@ -62,9 +62,11 @@ Every `--json` output is one object with a `schema` tag naming its shape and ver `inspect --json` (`dataseek-inspect/1`) prints `dataset`, the page's own JSON-LD node as the page wrote it, and beside it `files`, dataseek's reading of the file list, so a `files` key on the page is never overwritten. Every string of the page's metadata, keys included, has its control characters (C0 other than newline and tab, DEL, and C1) replaced by a space before it is printed, as text or as JSON, so a page cannot drive the terminal that shows it. +`related --json` (`dataseek-related/1`) prints `url`, `source` (the registry id of the host that answered), `relation` (`owner`, `paper`, `model`, `collection` or `forks`) and `results`. Each result has the keys of a `search` result without `sources` and `score`: one host answered and nothing was ranked ([ADR 0021](../adr/0021-related-reads-one-items-neighbors.md)). An item with no neighbors is an empty `results` list and exit code 0. + ## MCP mode -`dataseek mcp` serves `search`, `sources` and `inspect` to MCP clients over stdio ([ADR 0015](../adr/0015-mcp-server-over-stdio.md)). A client registers it as command `dsk` with arguments `["mcp"]`. +`dataseek mcp` serves `search`, `sources`, `inspect` and `related` to MCP clients over stdio ([ADR 0015](../adr/0015-mcp-server-over-stdio.md)). A client registers it as command `dsk` with arguments `["mcp"]`. - **Protocol.** Requests naming revision `2026-07-28` in `_meta` are served statelessly, with `server/discover`; clients that open with `initialize` get revision `2025-11-25` or `2025-06-18`. A request naming any other revision gets `-32022` with the supported list. - **stdout** carries one JSON-RPC message per line and nothing else. stderr carries the server's own status line, as plain text, and its calls' narration, as `dataseek-events/1` lines. `-q`, `-v`, `--cache-dir` and `--connect-timeout` given to `dataseek mcp` reach every call. diff --git a/docs/reference/development.md b/docs/reference/development.md index 53f6112..a6ce2fb 100644 --- a/docs/reference/development.md +++ b/docs/reference/development.md @@ -36,12 +36,14 @@ CI runs the same nextest as `just test`. nextest does not run doctests, so CI an No test touches the network. `tests/cli.rs` gives every run its own home, config and cache directories and routes HTTP through a proxy on a closed port, which is exactly how an offline machine looks to dataseek. The HTTP tests in `src/http.rs` talk to a listener on `127.0.0.1` that answers with canned responses. Live behavior is what `dataseek bench` measures. -Every adapter splits its request (`search` or `list`) from a pure `parse`, and every `parse` has one test against a real response stored in `tests/fixtures/sources/.{json,html,xml,txt}`. The test compares the first record field by field, as one `Dataset` literal, with values read off the fixture by hand. Never paste the test's own output in as the expectation: an expectation the code produced cannot catch the code being wrong, and a hand-written fixture built from the adapter's own JSON pointers cannot catch a pointer the real API never fills, which is how most adapter bugs so far were found. One table in `src/sources.rs` holds every live `parse` to the two rules in that module's header: an unrelated body is `SourceError::Shape`, never an empty list, and the result stops at `limit`. +Every adapter splits its request (`search` or `list`) from a pure `parse`, and every `parse` has one test against a real response stored in `tests/fixtures/sources/.{json,html,xml,txt}`. The test compares the first record field by field, as one `Dataset` literal, with values read off the fixture by hand. Never paste the test's own output in as the expectation: an expectation the code produced cannot catch the code being wrong, and a hand-written fixture built from the adapter's own JSON pointers cannot catch a pointer the real API never fills, which is how most adapter bugs so far were found. One table in `src/sources.rs` holds every live `parse` to the two rules in that module's header: an unrelated body is `SourceError::Shape`, never an empty list, and the result stops at `limit`. The same module holds what adapters share: `parse_list` for a body with its records in one list, `retry_plain` for a source that answers an error to a query its parser cannot read, `paginate_next` for pages that link the next one, and `wordpress_rows` for a site that lists its datasets through the WordPress REST API. Use them before writing the loop again. `inspect` reads whole pages, and `tests/fixtures/inspect/` keeps real responses: `zenodo.html` is a record page with its `` and a `` cut down to its `application/ld+json` script, and the other fixtures are the JSON documents Dataverse and Hugging Face serve. The MCP session test in `tests/cli.rs` serves `zenodo.html` through a helper on `127.0.0.1` that acts as the proxy and answers every request with the page, tunnelled through `CONNECT` or not, so `inspect` runs end to end on an `http://` URL without the network. To re-record a fixture after a source changes, repeat the adapter's request with `xh` and the dataseek User-Agent (`dataseek/ (+https://github.com/lmarkmann/dataseek; mailto:user@dataseek.dev)`), never with a key, trim arrays to a few rows with `jq 'walk(if type=="array" then .[:4] else . end)'` (except arrays a record's own fields sum over, such as CKAN `resources` and `extras`, which stay whole while the list of results is trimmed), shorten long descriptions to a real prefix, replace any individual's e-mail address with `contact@example.org`, and then re-derive the expected record by reading the new file. Sources that need a key (FRED, Roboflow) use the example response from their API docs, linked above the test. +`related` maps recorded answers in `tests/fixtures/related/`, one per resolver, recorded under the same rules; `tests/cli.rs` serves two of them through the proxy helper, so `related` runs end to end on an `http://` URL. + `inspect` reads its file lists from recorded pages in `tests/fixtures/inspect/`, recorded under the same rules. Its `--json` shape is part of `json_shapes_snapshot` in `tests/cli.rs`, read from a page served on a random local port that a snapshot filter replaces with `[LOCAL_ADDR]`. proptest writes the inputs that once failed to `proptest-regressions/`; they are committed so every run replays them first. @@ -58,7 +60,7 @@ just bench --baseline main # after a change: the difference, with an inte just bench catalog/search # one group; the filter is a regex over names ``` -`benches/search.rs` measures the CPU stages of a search at three input sizes each: SDMX and Eurostat catalog parsing, loading a cached catalog, local catalog search, merging 76 source lists, and cleaning remote text, both HTML and prose full of bare ampersands. The library is private, so the bench reaches these through `dataseek::internals`, which exists only with the `internals` feature. `just bench` turns the feature on; a bare `cargo bench` skips the target. +`benches/search.rs` measures the CPU stages of a search at three input sizes each: SDMX and Eurostat catalog parsing, loading a cached catalog, local catalog search, merging 106 source lists, and cleaning remote text, both HTML and prose full of bare ampersands. The library is private, so the bench reaches these through `dataseek::internals`, which exists only with the `internals` feature. `just bench` turns the feature on; a bare `cargo bench` skips the target. CI runs the same benches through CodSpeed's CPU simulation on every push to main and on pull requests that touch code ([ADR 0012](../adr/0012-benchmarks-criterion-local-codspeed-ci.md)). The simulation counts instructions instead of timing, so its numbers hold steady across runs but are not milliseconds; compare them only with other CodSpeed runs. `cargo codspeed` measures only on Linux. Local wall time is a rough guide: an A/A run on a busy Mac reported identical code up to 52% faster ([baseline](../bench/2026-10-06-baseline.md)). Measured results go in [`../bench/`](../bench/) with the machine they came from. diff --git a/docs/reference/keys-and-cache.md b/docs/reference/keys-and-cache.md index ebe39e5..0f14962 100644 --- a/docs/reference/keys-and-cache.md +++ b/docs/reference/keys-and-cache.md @@ -2,7 +2,7 @@ ## API keys -No key is needed for most sources: 73 of the 76 answer without one. Keys raise rate limits or unlock three sources. Set a key as an environment variable, or put it in `credentials.toml` in the config directory (`dataseek doctor` prints the path) with permissions `600`: +No key is needed for most sources: 103 of the 106 answer without one, and 98 take none at all. Keys raise rate limits or unlock three sources. Set a key as an environment variable, or put it in `credentials.toml` in the config directory (`dataseek doctor` prints the path) with permissions `600`: ```toml fred = "..." @@ -13,7 +13,7 @@ Each key is one `name = "value"` line, in double or single quotes, with `#` comm | source | environment variable | file key | without it | get one | |---|---|---|---|---| -| Hugging Face | `HF_TOKEN` | `huggingface` | 500 requests per 5 min per IP | https://huggingface.co/settings/tokens | +| Hugging Face | `HF_TOKEN` | `huggingface` | 500 requests per 5 min per IP; the full-text search of a multi-word query has its own 50 per 5 min, which a token does not raise | https://huggingface.co/settings/tokens | | Kaggle | `KAGGLE_API_TOKEN`, or `~/.kaggle/access_token`, or `~/.kaggle/kaggle.json` | `kaggle` | anonymous requests reach every page; a key changed nothing observable | https://www.kaggle.com/settings/api | | Data.gov | `DATAGOV_API_KEY` | `datagov` | catalog.data.gov's keyless search | https://api.data.gov/signup/ | | GitHub | `GITHUB_TOKEN` | `github` | 10 searches per minute | https://github.com/settings/tokens | diff --git a/docs/reference/release.md b/docs/reference/release.md index d8cbb06..15a64e1 100644 --- a/docs/reference/release.md +++ b/docs/reference/release.md @@ -52,7 +52,7 @@ Auto-merge needs squash merges titled by the PR, auto-merge allowed, branches de just release-preview ``` -No release-plz subcommand has a dry-run flag, so the recipe runs the real `release-plz update`, prints the diff and restores the tree on every exit path. It refuses to start on a dirty tree, untracked files included, because the restore ends in `git clean`. +No release-plz subcommand has a dry-run flag, so the recipe runs the real `release-plz update`, prints its diff, and does so inside a throwaway clone of the repository. The working tree is never touched, which makes the preview safe on a dirty tree and inside a linked worktree, where release-plz's own checkout of `main` fails. The clone puts `main` on HEAD, so a branch is previewed as if it had already landed; uncommitted changes are not covered and the recipe says so. When nothing since the last tag is release-worthy, it says that instead of printing an empty diff. A `release-plz` older or newer than the version `release-plz.yml` pins draws a warning, because it can render a different changelog than the release PR will. ## Publishing to crates.io diff --git a/docs/synthesis/capabilities.md b/docs/synthesis/capabilities.md index bef830e..6bdde3e 100644 --- a/docs/synthesis/capabilities.md +++ b/docs/synthesis/capabilities.md @@ -4,21 +4,35 @@ The filter and file-list features planned for dataseek (server-side filters by l Columns: **license**, **date** and **format** filters; **type** is a resource-type filter; **manifest** is a file list with names, sizes, checksums or download URLs; **paging** is the parameter and the deepest reachable result; **total** is a hit count; **related** is papers or datasets linked to a record; **machine** is Croissant, schema.org JSON-LD, DCAT or another structured record. Rows of one protocol module (CKAN, Dataverse, NADA, SDMX, STAC, Socrata, EBI) repeat the protocol's cells; a difference between portals is named in the cell. +The **related** column is what a record links to. The neighbors of an item (its owner's other datasets, the datasets that cite a paper, a repository's forks) come from other calls: `dsk related` reads them for `huggingface`, `github` and `gitlab` ([ADR 0021](../adr/0021-related-reads-one-items-neighbors.md)). + | id | license | date | format | type | manifest | paging | total | related | machine | |---|---|---|---|---|---|---|---|---|---| | `datacite` | `license=` | `published=`, `created=`, `registered=` (years); `query=updated:[...]` | `query=formats:csv` (no parameter) | `resource-type-id=dataset` | none (`contentUrl` is null) | `page[number]` and `page[size]` (to 1000), 10,000 deep; `page[cursor]=1` unlimited | `meta.total` | `attributes.relatedIdentifiers[]`; `relationships.citations`, `references`, `parts`, `versions` | `Accept: application/vnd.schemaorg.ld+json` on `/dois/{doi}` | | `openaire` | `hasLicense` (boolean) | `fromPublicationDate`, `toPublicationDate`, `publicationYear` | none | `type` (publication, dataset, software, other) | none | `page` and `pageSize` (100), 10,000 deep; `cursor=*` beyond | `header.numFound` | `/v3/research-products/links` (Scholix) | `/skg-if/v1/products/{id}` | | `google` | none (UI "Usage rights" only) | none (UI "Last updated" only) | none (UI only) | none | none (format names at record position 10) | none (first 20 only) | `ds:0` `data[8]` (undocumented position) | none | none (a Croissant facet count only) | | `b2find` | `fq=license_id:` | `fq=metadata_modified:[ TO *]` | `fq=res_format:CSV` | `fq=dataset_type:dataset` | `resources[]` in each result, or `package_show?id=` | `start` and `rows` (to 1,000, site-configurable) | `result.count` | `RelatedIdentifier` extra | none (`.jsonld` answers 404) | -| `huggingface` | `filter=license:cc0-1.0` | none (`sort=lastModified` or `createdAt`) | `filter=format:parquet` | `filter=task_categories:...`, `filter=modality:...` | `/api/datasets/{id}/tree/main`, or `expand[]=siblings` | `limit` (to 1,000) and `skip`; `Link: rel="next"` cursor | none | tags `arxiv:`, `doi:`, `source_datasets:` | `/api/datasets/{id}/croissant` | +| `huggingface` | `filter=license:cc0-1.0` | none (`sort=lastModified` or `createdAt`) | `filter=format:parquet` | `filter=task_categories:...`, `filter=modality:...` | `/api/datasets/{id}/tree/main`, or `expand[]=siblings` | `limit` (to 1,000) and `skip`; `Link: rel="next"` cursor; full text: `limit` (to 100) and `skip` | `estimatedTotalHits` (full text only) | tags `arxiv:`, `doi:`, `source_datasets:` | `/api/datasets/{id}/croissant` | | `kaggle` | `license` (cc, gpl, odb, other, all) | none (`sortBy=updated` or `published`) | `fileType` (csv, sqlite, json, bigQuery, parquet, all) | none (datasets only) | `/api/v1/datasets/list/{owner}/{dataset}` (names, sizes; no checksums) | `page` (20 a page; depth 100 confirmed) | none | none | Croissant at `/datasets/{owner}/{dataset}/croissant/download` (a web route) | | `openml` | none (per dataset in `/data/{id}`) | none | none | none (`status` filter only) | `/data/{id}` (file URL, md5, Parquet URL); `/data/features/{id}` | `limit/N/offset/M` | none | none (tasks and studies reference dataset ids) | `/data/{id}`, `/data/qualities/{id}` (JSON) | | `uci` | none | none | `filter=python` on the list (no true format filter) | none | `/api/dataset?id=N` (`data_url`, `variables` table) | none (`take` and `skip` ignored) | none | `intro_paper` at `/api/dataset?id=N` | `/api/dataset?id=N` (UCI's own schema) | | `roboflow` | none documented | inline `updated:30d` in `q` | none (project-type words in `q`) | `type` (dataset or model) | none | `page` (from 1); `limit` may be ignored | none documented | inline `like:` in `q` | none documented | | `modelscope` | `License=` (undocumented); OpenAPI `filter.license` | none (sort only) | none | none on this endpoint; OpenAPI `filter.task` | `/api/v1/datasets/{ns}/{name}/repo/tree?Revision=master&Recursive=true` (name, path, size, sha256) | `PageNumber` and `PageSize` (to 100) | `TotalCount` | none observed | `GET /api/v1/datasets/{ns}/{name}`; page `.md` | +| `mozilla` | `license=` | `uploadDate=today`, `thisWeek`, `thisMonth`, `thisYear` | `format=MP3` | `task=ASR`, `locale=`, `pricing=free` or `compensated` | none keyless (`POST /datasets/{id}/download` needs a key: one archive, size and sha256) | `page` and `limit` (100) | `total` | none | `GET /datasets/{id}/metadata` (Croissant 1.0 JSON-LD) | +| `clarin` | `fq=licenseType:PUB` (also `ACA`, `RES`); `fq=availability:` | none | `fq=format:` | `fq=resourceClass:corpus`, `modality`, `genre` | none from search (`resources[]` and `_resourceRef` in `/api/records/{id}`) | `from` and `size` | `numFound` | none | `/api/records/{id}/cmdi` (the CMDI XML) | +| `elg` | `licence__term=CC-BY-4.0` (the short id) | none | none | `resource_type__term=` (one value; a second is read as AND), `media_type__term=` | none from search (`detail`, the metadata record, names the distribution) | `page`, 20 a page | `count` | `duplicate`, `potential_duplicate`, `is_division_of` | `detail`: `/catalogue_backend/api/registry/metadatarecord/{id}/` (ELG-SHARE JSON) | | `aws` | none (free text per entry in the YAML) | none | none (tag pages `/tag//`) | none (`Resources[].Type` in the YAML) | none (`Resources[].ARN` and `Region` in the per-entry YAML) | none | none (local search) | `DataAtWork` in the YAML | schema.org JSON-LD on entry pages; per-entry YAML | | `tfds` | none | none | none | none (83 category headings) | none | none | none | none | none | +| `openslr` | none (on each resource page) | none | none | none (Category column: Speech, Text, Audio, Misc, Software, Other) | file list on each resource page (HTML) | none | none | none | none | +| `lila` | none (on each dataset page) | `modified_after`, `after` (WordPress) | none | `categories`, `tags` (WordPress taxonomies) | none (download links in the post body) | `page` and `per_page` (100) | `X-WP-Total` header | none | none | +| `polaris` | none (`license` in each row) | none | none (`tableContent.fileType`, Parquet or Zarr) | none (datasets and benchmarks are separate lists) | `tableContent` (signed Parquet URL, size) and `zarrContent` | `limit` and `offset` | `metadata.total` | `benchmarks[]`, `source`, `curationReference` | per-column `annotations` | +| `academictorrents` | none | none | none | `category` (Dataset, Paper, Course) | the torrent file at `/download/.torrent` | none | none | none | `/apiv2/entry/` | +| `googleresearch` | none | none | none | none (the index has research-area filters) | none (one outbound link per card) | `page` (15 cards) | none | none | none | +| `opus` | none | none | none (`preprocessing` per corpus: xml, moses, tmx) | none | `opusapi?corpus=` (file URLs, sizes, pairs) | none | none | none | `opusapi?corpus=` | +| `neurips` | none | none | none | `eventtype` (Oral, Poster), `decision` | none | none | `count` | `url` (project), `paper_url` (proceedings), `sourceurl` (OpenReview group) | none | +| `pwc` | none (`license_name` in each row) | none (`introduced_date` in each row) | none | `modalities`, `tasks`, `languages` | none (`data_loaders` name libraries and repositories) | none | none | `paper`, `variants`, `parent_dataset` | none | | `github` | `license:` in `q` | `pushed:`, `created:` in `q` | none | none (`topic:`, `fork:`, `archived:`, `is:`) | `GET /repos/{owner}/{repo}/git/trees/{branch}?recursive=1` | `page` and `per_page` (100), 1,000 deep | `total_count` | none (`homepage`, `topics`) | none (`CITATION.cff` through `/contents/`) | +| `gitlab` | none | `last_activity_after`, `last_activity_before` | none | none (`topic`, `archived`, `with_programming_language`) | `GET /projects/{id}/repository/tree?recursive=true` | `page` and `per_page` (100), 50,000 projects deep; `pagination=keyset` beyond | `x-total` header | none (`forked_from_project`) | none | | `zenodo` | `q` field `metadata.rights.id:cc-by-4.0` | `q` fields `updated:[...]`, `publication_date:[...]` | `q` field `filetype:csv` | `type=dataset`, `subtype` | `/api/records/{id}/files` (key, size, md5, link) | `page` and `size` (25 anonymous), `links.next`, 10,000 deep | `hits.total` | `metadata.related_identifiers[]`, `conceptdoi` | `Accept: application/ld+json` or `application/dcat+xml`; OAI-PMH `/oai2d` | | `figshare` | none (`:license:` is rejected) | `published_since`, `modified_since` | none | `item_type` (integer) | `/v2/articles/{id}/files` (name, size, md5, download_url) | `page` and `page_size`, or `offset` and `limit`; `X-Cursor` header | none | `related_materials`, `references`, `resource_doi` (detail record) | OAI-PMH `/v3/oai` (oai_dc, oai_datacite, qdc, rdf, cerif) | | `harvard-dataverse` | `fq=license:"CC0 1.0"` (facet) | `fq=publicationDate:`; `sort=date` | `type=file` with `fq=fileTypeGroupFacet:...` (file level) | `type=dataverse`, `dataset` or `file` | `/api/datasets/:persistentId/versions/:latest-published/files` | `start` and `per_page` (guide: 1,000) | `data.total_count` | `publications` in the search item | `/api/datasets/export?exporter=...` (schema.org, croissant, croissantSlim, dcterms, ddi, Datacite) | @@ -26,6 +40,9 @@ Columns: **license**, **date** and **format** filters; **type** is a resource-ty | `recherche-data-gouv` | as `harvard-dataverse` | as `harvard-dataverse` | as `harvard-dataverse` | as `harvard-dataverse` | as `harvard-dataverse` | `start` and `per_page` (504 at 1,000) | `data.total_count` | `publications` in the search item | schema.org (formats not listed by v6.0) | | `dataverse-nl` | as `harvard-dataverse` | as `harvard-dataverse` | as `harvard-dataverse` | as `harvard-dataverse` | as `harvard-dataverse` | as `harvard-dataverse` | `data.total_count` | `publications` in the search item | exporters including croissant | | `dataverse-no` | as `harvard-dataverse` | as `harvard-dataverse` | as `harvard-dataverse` | as `harvard-dataverse` | as `harvard-dataverse` | as `harvard-dataverse` | `data.total_count` | `publications` in the search item | `exporter=schema.org` and the others (croissant not listed) | +| `darus` | as `harvard-dataverse` | as `harvard-dataverse` | as `harvard-dataverse` | as `harvard-dataverse` | as `harvard-dataverse` | as `harvard-dataverse` | `data.total_count` | `publications` in the search item | `exporter=schema.org` and the others | +| `juelich` | as `harvard-dataverse` | as `harvard-dataverse` | as `harvard-dataverse` | as `harvard-dataverse` | as `harvard-dataverse` | as `harvard-dataverse` | `data.total_count` | `publications` in the search item | `exporter=schema.org` and the others | +| `cora` | as `harvard-dataverse` | as `harvard-dataverse` | as `harvard-dataverse` | as `harvard-dataverse` | as `harvard-dataverse` | as `harvard-dataverse` | `data.total_count` | `publications` in the search item | `exporter=schema.org` and the others | | `osf` | `cardSearchFilter[rights]=` | `cardSearchFilter[dateModified][after]` (also `before`, `at-date`); `sort=-dateModified` | none | `cardSearchFilter[resourceType]`, `cardSearchFilter[resourceNature]` | none in trove (`api.osf.io` `/v2/nodes/{id}/files/`) | `links.next` cursor (not with `page[size]`); `page[size]` 100 | `meta.total` (a string for broad queries) | `hasVersion`, `isVersionOf`, `supplements`, `hasPart`, `sameAs`, `funder`, `references` | the card itself; `acceptMediatype` `application/ld+json` or `text/turtle` | | `mendeley` | none in search (OAI `oai_datacite` rightsList) | `publication_year_from`, `publication_year_to` | none | `data_type`, `access_type`, `source_id`, `funder_id`, `institution_id` | `GET /datasets/publics/{id}/files` (OAuth only) | `page` (to 10,000) and `page_size` (to 500) | `total_records` | OAI `relatedIdentifiers` | OAI-PMH `/oai` (oai_dc, oai_datacite, datacite) | | `europa` | `facets={"license":["CC_BY_4_0"]}` | `minDate`, `maxDate`, `dateType=issued`, `modified` or `temporal` | `facets={"format":["CSV"]}` | `filters=dataset`, `dataservice`, `datasetseries`, `catalogue`, `resource`, `vocabulary`, `organization` | `GET /api/hub/search/datasets/{id}` (access_url, download_url, format, byte_size) | `page` (0-based) and `limit` (to 1,000), 10,000 deep; `scroll` | `result.count` | DCAT-AP relations; `in_series` facet | `/api/hub/repo/datasets/{id}.jsonld`, `.ttl`, `.rdf` | @@ -35,6 +52,11 @@ Columns: **license**, **date** and **format** filters; **type** is a resource-ty | `data-gov-au` | `fq=license_id:` | `fq=metadata_modified:[ TO *]` | `fq=res_format:CSV` | `fq=dataset_type:dataset` | `resources[]`, or `package_show?id=` | `start` and `rows` (to 1,000) | `result.count` | `relationships_as_subject`, `relationships_as_object` (empty in samples) | `/dataset/.jsonld` | | `govdata` | `fq=license_id:` | `fq=metadata_modified:[ TO *]` | `fq=res_format:CSV` | `fq=dataset_type:dataset` | `resources[]`, or `package_show?id=` | `start` and `rows` (to 1,000) | `result.count` | `related_resource` extra | `/dataset/.jsonld` | | `hdx` | `fq=license_id:` | `fq=metadata_modified:[ TO *]`; `fq=last_modified:[...]` | `fq=res_format:CSV` | `fq=dataset_type:dataset` | `resources[]` (sizes filled on HDX) | `start` and `rows` (to 1,000) | `result.count` | `relationships_as_subject`, `relationships_as_object` (empty in samples) | `/dataset/.jsonld` | +| `data-go-jp` | `fq=license_id:` | `fq=metadata_modified:[ TO *]` | `fq=res_format:CSV` | `fq=dataset_type:dataset` | `resources[]`, or `package_show?id=` | `start` and `rows` (to 1,000) | `result.count` | `relationships_as_subject`, `relationships_as_object` | `/dataset/.jsonld` not checked | +| `netl-edx` | none | none: every `fq` value answers HTTP 500 | none | none: the request sends no `fq` | `resources[]`, or `package_show?id=` | `start` and `rows` (to 1,000) | `result.count` | none | `aiml_info` names the ML tasks a dataset suits; `/dataset/.jsonld` not checked | +| `opendata-swiss` | `fq=license_id:` | `fq=metadata_modified:[ TO *]` | `fq=res_format:CSV` | `fq=dataset_type:dataset` | `resources[]`, or `package_show?id=` | `start` and `rows` (to 1,000) | `result.count` | `relationships_as_subject`, `relationships_as_object` | `title`, `notes` and the organization name are maps from language to text; `/dataset/.jsonld` not checked | +| `energydata` | `fq=license_id:` | `fq=metadata_modified:[ TO *]` | `fq=res_format:CSV` | `fq=dataset_type:dataset` | `resources[]`, or `package_show?id=` | `start` and `rows` (to 1,000) | `result.count` | `relationships_as_subject`, `relationships_as_object` | `/dataset/.jsonld` not checked | +| `open-africa` | `fq=license_id:` | `fq=metadata_modified:[ TO *]` | `fq=res_format:CSV` | `fq=dataset_type:dataset` | `resources[]`, or `package_show?id=` | `start` and `rows` (to 1,000) | `result.count` | `relationships_as_subject`, `relationships_as_object` | `/dataset/.jsonld` not checked | | `socrata` | `license=` (repeatable) | none (`order=updatedAt` or `createdAt`) | none (`resource.blob_mime_type` not filterable) | `only=dataset`, `href`, `file`, `filter`, `map`, `chart`, `story`, `link`, `measure`, `federated_href` | none in Discovery (`https:///api/views/.json`, `rows.csv`) | `limit` (to 10,000) and `offset` (sum to 10,000); `scroll_id` beyond | `resultSetSize` | `resource.parent_fxf`; `parent_ids`, `derived_from` filters | `https:///data.json`, `/api/dcat.json` | | `socrata-eu` | as `socrata` | as `socrata` | as `socrata` | as `socrata` | as `socrata` | as `socrata` | `resultSetSize` | as `socrata` | as `socrata` | | `opendatasoft` | `where=license="..."` or `refine=license: