diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b96b43c..55d421f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -31,6 +31,8 @@ jobs: - run: cargo test --workspace --doc - run: cargo clippy --all-targets --all-features -- -D warnings - run: RUSTDOCFLAGS="-D warnings" cargo doc --workspace --no-deps + - name: Audit dependencies, licenses, and sources + uses: EmbarkStudios/cargo-deny-action@3c6349835b2b7b196a839186cb8b78e02f7b5f25 - name: Verify package contents run: | for package in \ @@ -38,8 +40,17 @@ jobs: stonfi_api_client \ dedust_api_client \ swap_coffee_api_client \ - tonco_api_client \ - bidask_api_client + tonco_api_client do cargo package --list -p "$package" done + + msrv: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + - name: Install MSRV toolchain + uses: dtolnay/rust-toolchain@1.88.0 + - uses: Swatinem/rust-cache@v2 + - run: cargo check --workspace --all-targets --all-features diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9f91b83..d2a8cbd 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -28,6 +28,17 @@ jobs: uses: actions/checkout@v4 with: fetch-depth: 0 + ref: ${{ github.event_name == 'workflow_run' && github.event.workflow_run.head_sha || github.sha }} + - name: Verify the checked-out commit passed CI + if: github.event_name == 'workflow_run' + env: + TESTED_SHA: ${{ github.event.workflow_run.head_sha }} + run: | + checked_out_sha=$(git rev-parse HEAD) + if [ "$checked_out_sha" != "$TESTED_SHA" ]; then + echo "::error::Refusing to release untested commit $checked_out_sha; Build-Test passed for $TESTED_SHA" + exit 1 + fi - uses: Swatinem/rust-cache@v2 - name: Install Rust toolchain uses: dtolnay/rust-toolchain@stable diff --git a/AGENTS.md b/AGENTS.md index c923ce2..fb3906b 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -14,15 +14,18 @@ Root guidance applies to the whole workspace. Also read the crate-local ## Workspace Crates -- `api_clients_core` (`core/`): shared HTTP executor, retry setup, and common - error/result types. -- `stonfi_api_client`: REST wrapper for STON.fi API v1 and public export endpoints. -- `dedust_api_client`: REST wrapper for DeDust API v2. -- `swap_coffee_api_client`: REST wrapper for Swap Coffee API v1. -- `tonco_api_client`: GraphQL wrapper for Tonco Indexer. -- `bidask_api_client`: unsupported legacy Bidask crate; it is intentionally - excluded from publishing and should not be recommended for final-app - integration. +- `api_clients_core` (`crates/core/`): shared HTTP executor, retry setup, and + common error/result types. +- `stonfi_api_client` (`crates/stonfi/`): REST wrapper for STON.fi API v1 and + public export endpoints. +- `dedust_api_client` (`crates/dedust/`): REST wrapper for DeDust API v2. +- `swap_coffee_api_client` (`crates/swap_coffee/`): REST wrapper for Swap Coffee + API v1. +- `tonco_api_client` (`crates/tonco_api_client/`): GraphQL wrapper for Tonco + Indexer. +- `bidask_api_client` (`crates/bidask/`): unsupported legacy Bidask crate; it is + intentionally excluded from publishing and should not be recommended for + final-app integration. ## Project Goals @@ -59,6 +62,10 @@ release-plz in CI. Do not treat unchanged crate versions on a feature branch as a release-readiness finding unless the user explicitly asks for a manual release-prep change. +The workspace MSRV is Rust 1.88. Dependency changes must preserve it and pass +the dedicated MSRV CI job. The release workflow must refuse to process a +default-branch commit other than the exact SHA that completed `Build-Test`. + Public structs and enums are generally marked `#[non_exhaustive]` to preserve semver headroom for new fields and variants. Use `Default::default().with_(...)` or request parameter constructors in @@ -183,8 +190,12 @@ cargo test -p --tests cargo test cargo +nightly fmt cargo clippy --all-targets --all-features -- -D warnings +cargo +1.88.0 check --workspace --all-targets --all-features +cargo deny check git diff --check ``` Use `RUSTDOCFLAGS="-D warnings" cargo doc --no-deps` when rustdoc or public API -documentation changed. +documentation changed. Use `cargo semver-checks check-release --workspace` for +intentional breaking releases and review the release-plz version bumps plus all +README dependency snippets before publishing. diff --git a/Cargo.lock b/Cargo.lock index 4549c1b..54640c8 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2,36 +2,15 @@ # It is not intended for manual editing. version = 4 -[[package]] -name = "addr2line" -version = "0.24.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dfbe277e56a376000877090da837660b4427aad530e3028d44e0bffe4f89a1c1" -dependencies = [ - "gimli", -] - -[[package]] -name = "adler2" -version = "2.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "320119579fcad9c21884f5c4861d16174d0e06250625266f50fe6898340abefa" - [[package]] name = "aho-corasick" -version = "1.1.3" +version = "1.1.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8e60d3430d3a69478ad0993f19238d2df97c507009a52b3c10addcd7f6bcb916" +checksum = "ddd31a130427c27518df266943a5308ed92d4b226cc639f5a8f1002816174301" dependencies = [ "memchr", ] -[[package]] -name = "android-tzdata" -version = "0.1.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e999941b234f3131b00bc13c22d06e8c5ff726d1b6318ac7eb276997bbb4fef0" - [[package]] name = "android_system_properties" version = "0.1.5" @@ -43,9 +22,9 @@ dependencies = [ [[package]] name = "anstream" -version = "0.6.20" +version = "1.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3ae563653d1938f79b1ab1b5e668c87c76a9930414574a6583a7b7e11a8e6192" +checksum = "824a212faf96e9acacdbd09febd34438f8f711fb84e09a8916013cd7815ca28d" dependencies = [ "anstyle", "anstyle-parse", @@ -58,44 +37,44 @@ dependencies = [ [[package]] name = "anstyle" -version = "1.0.11" +version = "1.0.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "862ed96ca487e809f1c8e5a8447f6ee2cf102f846893800b20cebdf541fc6bbd" +checksum = "940b3a0ca603d1eade50a4846a2afffd5ef57a9feac2c0e2ec2e14f9ead76000" [[package]] name = "anstyle-parse" -version = "0.2.7" +version = "1.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4e7644824f0aa2c7b9384579234ef10eb7efb6a0deb83f9630a49594dd9c15c2" +checksum = "52ce7f38b242319f7cabaa6813055467063ecdc9d355bbb4ce0c68908cd8130e" dependencies = [ "utf8parse", ] [[package]] name = "anstyle-query" -version = "1.1.4" +version = "1.1.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9e231f6134f61b71076a3eab506c379d4f36122f2af15a9ff04415ea4c3339e2" +checksum = "40c48f72fd53cd289104fc64099abca73db4166ad86ea0b4341abe65af83dadc" dependencies = [ - "windows-sys 0.60.2", + "windows-sys 0.61.2", ] [[package]] name = "anstyle-wincon" -version = "3.0.10" +version = "3.0.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3e0633414522a32ffaac8ac6cc8f748e090c5717661fddeea04219e2344f5f2a" +checksum = "291e6a250ff86cd4a820112fb8898808a366d8f9f58ce16d1f538353ad55747d" dependencies = [ "anstyle", "once_cell_polyfill", - "windows-sys 0.60.2", + "windows-sys 0.61.2", ] [[package]] name = "anyhow" -version = "1.0.99" +version = "1.0.103" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b0674a1ddeecb70197781e945de4b3b8ffb61fa939a5597bcf48503737663100" +checksum = "2a4385e2e34eb35d6b3efe798b9eb88096925d87726c0798709bf56d9ed84af3" [[package]] name = "api_clients_core" @@ -111,32 +90,10 @@ dependencies = [ "serde", "serde_json", "serde_qs", - "thiserror 2.0.16", + "thiserror 2.0.18", "tokio", ] -[[package]] -name = "async-stream" -version = "0.3.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0b5a71a6f37880a80d1d7f19efd781e4b5de42c88f0722cc13bcb6cc2cfe8476" -dependencies = [ - "async-stream-impl", - "futures-core", - "pin-project-lite", -] - -[[package]] -name = "async-stream-impl" -version = "0.3.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c7c24de15d275a1ecfd47a380fb4d5ec9bfe0933f309ed5e705b775596a3574d" -dependencies = [ - "proc-macro2", - "quote", - "syn 2.0.106", -] - [[package]] name = "async-trait" version = "0.1.89" @@ -145,7 +102,7 @@ checksum = "9035ad2d096bed7955a320ee7e2230574d28fd3c3a0f186cbea1ff3c7eed5dbb" dependencies = [ "proc-macro2", "quote", - "syn 2.0.106", + "syn 2.0.118", ] [[package]] @@ -156,23 +113,31 @@ checksum = "1505bd5d3d116872e7271a6d4e16d81d0c8570876c8de68093a09ac269d8aac0" [[package]] name = "autocfg" -version = "1.5.0" +version = "1.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c08606f8c3cbf4ce6ec8e28fb0014a2c086708fe954eaa885384a6165172e7e8" +checksum = "f2032f911046de80f0a198e0901378627c33f59ea0ac00e363d481118bd70a53" [[package]] -name = "backtrace" -version = "0.3.75" +name = "aws-lc-rs" +version = "1.17.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6806a6321ec58106fea15becdad98371e28d92ccbc7c8f1b3b6dd724fe8f1002" +checksum = "4342d8937fc7e5dd9b1c60292261c0670c882a2cd1719cfc11b1af41731e32ad" dependencies = [ - "addr2line", - "cfg-if", - "libc", - "miniz_oxide", - "object", - "rustc-demangle", - "windows-targets 0.52.6", + "aws-lc-sys", + "zeroize", +] + +[[package]] +name = "aws-lc-sys" +version = "0.42.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6d9ceb1da931507a12f4fccea479dccd00da1943e1b4ae72d8e502d707361444" +dependencies = [ + "cc", + "cmake", + "dunce", + "fs_extra", + "pkg-config", ] [[package]] @@ -205,56 +170,92 @@ checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" [[package]] name = "bitflags" -version = "2.9.4" +version = "2.13.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2261d10cca569e4643e526d8dc2e62e433cc8aba21ab764233731f8d369bf394" +checksum = "b4388bee8683e3d04af747c73422af53102d2bd24d9eadb6cbc100baef4b43f8" + +[[package]] +name = "bs58" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bf88ba1141d185c399bee5288d850d63b8369520c1eafc32a0430b5b6c287bf4" +dependencies = [ + "tinyvec", +] [[package]] name = "bumpalo" -version = "3.19.0" +version = "3.20.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "46c5e41b57b8bba42a04676d81cb89e9ee8e859a1a66f80a5a72e1cb76b34d43" +checksum = "72f5acc6cb2ba439de613abc23857ec3d78374d8ed5ac84e9d11336e87da8649" [[package]] name = "bytes" -version = "1.10.1" +version = "1.12.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d71b6127be86fdcfddb610f7182ac57211d4b18a3e9c82eb2d17662f2227ad6a" +checksum = "fc652a48c352aef3ea3aed32080501cf3ef6ed5da78602a020c991775b0aff04" [[package]] name = "cc" -version = "1.2.36" +version = "1.2.67" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5252b3d2648e5eedbc1a6f501e3c795e07025c1e93bbf8bbdd6eef7f447a6d54" +checksum = "e17dd265a7d0f31ef544e1b20e03add05d3b45b491b633b10d67145d2acc1a38" dependencies = [ "find-msvc-tools", + "jobserver", + "libc", "shlex", ] [[package]] name = "cfg-if" -version = "1.0.3" +version = "1.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801" + +[[package]] +name = "cfg_aliases" +version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2fd1289c04a9ea8cb22300a459a72a385d7c73d3259e2ed7dcb2af674838cfa9" +checksum = "613afe47fcd5fac7ccf1db93babcb082c5994d996f20b8b159f2ad1658eb5724" + +[[package]] +name = "chacha20" +version = "0.10.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d524456ba66e72eb8b115ff89e01e497f8e6d11d78b70b1aa13c0fbd97540a81" +dependencies = [ + "cfg-if", + "cpufeatures", + "rand_core", +] [[package]] name = "chrono" -version = "0.4.41" +version = "0.4.45" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c469d952047f47f91b68d1cba3f10d63c11d73e4636f24f08daf0278abf01c4d" +checksum = "1aa79e62e7697b8e29b513a68abacf485adcd1fe8284a4316c5ae868e6633327" dependencies = [ - "android-tzdata", "iana-time-zone", "num-traits", "serde", "windows-link", ] +[[package]] +name = "cmake" +version = "0.1.58" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c0f78a02292a74a88ac736019ab962ece0bc380e3f977bf72e376c5d78ff0678" +dependencies = [ + "cc", +] + [[package]] name = "colorchoice" -version = "1.0.4" +version = "1.0.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b05b61dc5112cbb17e4b6cd61790d9845d13888356391624cbe7e41efeac1e75" +checksum = "1d07550c9036bf2ae0c684c4297d503f838287c83c53686d05370d0e139ae570" [[package]] name = "combine" @@ -276,45 +277,98 @@ dependencies = [ "libc", ] +[[package]] +name = "core-foundation" +version = "0.10.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b2a6cd9ae233e7f62ba4e9353e81a88df7fc8a5987b8d445b4d90c879bd156f6" +dependencies = [ + "core-foundation-sys", + "libc", +] + [[package]] name = "core-foundation-sys" version = "0.8.7" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "773648b94d0e5d620f64f280777445740e61fe701025087ec8b57f45c791888b" +[[package]] +name = "cpufeatures" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8b2a41393f66f16b0823bb79094d54ac5fbd34ab292ddafb9a0456ac9f87d201" +dependencies = [ + "libc", +] + [[package]] name = "darling" -version = "0.20.11" +version = "0.21.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fc7f46116c46ff9ab3eb1597a45688b6715c6e628b5c133e288e709a29bcb4ee" +checksum = "9cdf337090841a411e2a7f3deb9187445851f91b309c0c0a29e05f74a00a48c0" dependencies = [ - "darling_core", - "darling_macro", + "darling_core 0.21.3", + "darling_macro 0.21.3", +] + +[[package]] +name = "darling" +version = "0.23.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "25ae13da2f202d56bd7f91c25fba009e7717a1e4a1cc98a76d844b65ae912e9d" +dependencies = [ + "darling_core 0.23.0", + "darling_macro 0.23.0", ] [[package]] name = "darling_core" -version = "0.20.11" +version = "0.21.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0d00b9596d185e565c2207a0b01f8bd1a135483d02d9b7b0a54b11da8d53412e" +checksum = "1247195ecd7e3c85f83c8d2a366e4210d588e802133e1e355180a9870b517ea4" dependencies = [ "fnv", "ident_case", "proc-macro2", "quote", "strsim", - "syn 2.0.106", + "syn 2.0.118", +] + +[[package]] +name = "darling_core" +version = "0.23.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9865a50f7c335f53564bb694ef660825eb8610e0a53d3e11bf1b0d3df31e03b0" +dependencies = [ + "ident_case", + "proc-macro2", + "quote", + "strsim", + "syn 2.0.118", ] [[package]] name = "darling_macro" -version = "0.20.11" +version = "0.21.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fc34b93ccb385b40dc71c6fceac4b2ad23662c7eeb248cf10d529b7e055b6ead" +checksum = "d38308df82d1080de0afee5d069fa14b0326a88c14f15c5ccda35b4a6c414c81" dependencies = [ - "darling_core", + "darling_core 0.21.3", "quote", - "syn 2.0.106", + "syn 2.0.118", +] + +[[package]] +name = "darling_macro" +version = "0.23.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ac3984ec7bd6cfa798e62b4a642426a5be0e68f9401cfc2a01e3fa9ea2fcdb8d" +dependencies = [ + "darling_core 0.23.0", + "quote", + "syn 2.0.118", ] [[package]] @@ -332,14 +386,44 @@ dependencies = [ "tokio", ] +[[package]] +name = "defmt" +version = "1.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e2953bfe4f93bbd20cc71198842756f77d161884c99ebbabc41d80231ded88d1" +dependencies = [ + "bitflags 1.3.2", + "defmt-macros", +] + +[[package]] +name = "defmt-macros" +version = "1.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bad9c72e7ca2137e0dc3813245a0d282fd6daad32fd800af018306a9169b5fe8" +dependencies = [ + "defmt-parser", + "proc-macro2", + "quote", + "syn 2.0.118", +] + +[[package]] +name = "defmt-parser" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "10d60334b3b2e7c9d91ef8150abfb6fa4c1c39ebbcf4a81c2e346aad939fee3e" +dependencies = [ + "thiserror 2.0.18", +] + [[package]] name = "deranged" -version = "0.5.3" +version = "0.5.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d630bccd429a5bb5a64b5e94f693bfc48c9f8566418fda4c494cc94f911f87cc" +checksum = "7cd812cc2bc1d69d4764bd80df88b4317eaef9e773c75226407d9bc0876b211c" dependencies = [ - "powerfmt", - "serde", + "serde_core", ] [[package]] @@ -360,32 +444,38 @@ dependencies = [ "proc-macro2", "quote", "rustc_version", - "syn 2.0.106", + "syn 2.0.118", ] [[package]] name = "derive_setters" -version = "0.1.8" +version = "0.1.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ae5c625eda104c228c06ecaf988d1c60e542176bd7a490e60eeda3493244c0c9" +checksum = "b7e6f6fa1f03c14ae082120b84b3c7fbd7b8588d924cf2d7c3daf9afd49df8b9" dependencies = [ - "darling", + "darling 0.21.3", "proc-macro2", "quote", - "syn 2.0.106", + "syn 2.0.118", ] [[package]] name = "displaydoc" -version = "0.2.5" +version = "0.2.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "97369cbbc041bc366949bc74d34658d6cda5621039731c6310521892a3a20ae0" +checksum = "1ac70aa55017e108007fbaf5aa0f54b021c98f92ff8af59d42eda9da96e3dd4f" dependencies = [ "proc-macro2", "quote", - "syn 2.0.106", + "syn 2.0.118", ] +[[package]] +name = "dunce" +version = "1.0.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "92773504d58c093f6de2459af4af33faa518c13451eb8f2b5698ed3d36e7c813" + [[package]] name = "dyn-clone" version = "1.0.20" @@ -403,9 +493,9 @@ dependencies = [ [[package]] name = "env_filter" -version = "0.1.3" +version = "2.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "186e05a59d4c50738528153b83b0b0194d3a29507dfec16eccd4b342903397d0" +checksum = "900d271a03799a1ee8d1ca9b19893b48ca674a9284fefcfb85f05e74ed314217" dependencies = [ "log", "regex", @@ -413,9 +503,9 @@ dependencies = [ [[package]] name = "env_logger" -version = "0.11.8" +version = "0.11.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "13c863f0904021b108aa8b2f55046443e6b1ebde8fd4a15c399893aae4fa069f" +checksum = "de671bd27a75a797dc9ae289ba1e77276e75e2026408aab65185384e2d5cd3f6" dependencies = [ "anstream", "anstyle", @@ -430,27 +520,11 @@ version = "1.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "877a4ace8713b0bcf2a4e7eec82529c029f1d0619886d18145fea96c3ffe5c0f" -[[package]] -name = "errno" -version = "0.3.13" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "778e2ac28f6c47af28e4907f13ffd1e1ddbd400980a9abd7c8df189bf578a5ad" -dependencies = [ - "libc", - "windows-sys 0.52.0", -] - -[[package]] -name = "fastrand" -version = "2.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "37909eebbb50d72f9059c3b6d82c0463f2ff062c9e95845c43a6c9c0355411be" - [[package]] name = "find-msvc-tools" -version = "0.1.1" +version = "0.1.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7fd99930f64d146689264c637b5af2f0233a933bef0d8570e2526bf9e083192d" +checksum = "5baebc0774151f905a1a2cc41989300b1e6fbb29aff0ceffa1064fdd3088d582" [[package]] name = "fnv" @@ -458,21 +532,6 @@ version = "1.0.7" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1" -[[package]] -name = "foreign-types" -version = "0.3.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f6f339eb8adc052cd2ca78910fda869aefa38d22d5cb648e6485e4d3fc06f3b1" -dependencies = [ - "foreign-types-shared", -] - -[[package]] -name = "foreign-types-shared" -version = "0.1.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "00b0228411908ca8685dba7fc2cdd70ec9990a6e753e89b6ac91a84c40fbaf4b" - [[package]] name = "form_urlencoded" version = "1.2.2" @@ -482,11 +541,17 @@ dependencies = [ "percent-encoding", ] +[[package]] +name = "fs_extra" +version = "1.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "42703706b716c37f96a77aea830392ad231f44c9e9a67872fa5548707e11b11c" + [[package]] name = "futures" -version = "0.3.31" +version = "0.3.32" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "65bc07b1a8bc7c85c5f2e110c476c7389b4554ba72af57d8445ea63a576b0876" +checksum = "8b147ee9d1f6d097cef9ce628cd2ee62288d963e16fb287bd9286455b241382d" dependencies = [ "futures-channel", "futures-core", @@ -499,9 +564,9 @@ dependencies = [ [[package]] name = "futures-channel" -version = "0.3.31" +version = "0.3.32" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2dff15bf788c671c1934e366d07e30c1814a8ef514e1af724a602e8a2fbe1b10" +checksum = "07bbe89c50d7a535e539b8c17bc0b49bdb77747034daa8087407d655f3f7cc1d" dependencies = [ "futures-core", "futures-sink", @@ -509,15 +574,15 @@ dependencies = [ [[package]] name = "futures-core" -version = "0.3.31" +version = "0.3.32" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "05f29059c0c2090612e8d742178b0580d2dc940c837851ad723096f87af6663e" +checksum = "7e3450815272ef58cec6d564423f6e755e25379b217b0bc688e295ba24df6b1d" [[package]] name = "futures-executor" -version = "0.3.31" +version = "0.3.32" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1e28d1d997f585e54aebc3f97d39e72338912123a67330d723fdbb564d646c9f" +checksum = "baf29c38818342a3b26b5b923639e7b1f4a61fc5e76102d4b1981c6dc7a7579d" dependencies = [ "futures-core", "futures-task", @@ -526,38 +591,38 @@ dependencies = [ [[package]] name = "futures-io" -version = "0.3.31" +version = "0.3.32" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9e5c1b78ca4aae1ac06c48a526a655760685149f0d465d21f37abfe57ce075c6" +checksum = "cecba35d7ad927e23624b22ad55235f2239cfa44fd10428eecbeba6d6a717718" [[package]] name = "futures-macro" -version = "0.3.31" +version = "0.3.32" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "162ee34ebcb7c64a8abebc059ce0fee27c2262618d7b60ed8faf72fef13c3650" +checksum = "e835b70203e41293343137df5c0664546da5745f82ec9b84d40be8336958447b" dependencies = [ "proc-macro2", "quote", - "syn 2.0.106", + "syn 2.0.118", ] [[package]] name = "futures-sink" -version = "0.3.31" +version = "0.3.32" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e575fab7d1e0dcb8d0c7bcf9a63ee213816ab51902e6d244a95819acacf1d4f7" +checksum = "c39754e157331b013978ec91992bde1ac089843443c49cbc7f46150b0fad0893" [[package]] name = "futures-task" -version = "0.3.31" +version = "0.3.32" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f90f7dce0722e95104fcb095585910c0977252f286e354b5e3bd38902cd99988" +checksum = "037711b3d59c33004d3856fbdc83b99d4ff37a24768fa1be9ce3538a1cde4393" [[package]] name = "futures-util" -version = "0.3.31" +version = "0.3.32" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9fa08315bb612088cc391249efdc3bc77536f16c91f6cf495e6fbe85b20a4a81" +checksum = "389ca41296e6190b48053de0321d02a77f32f8a5d2461dd38762c0593805c6d6" dependencies = [ "futures-channel", "futures-core", @@ -567,41 +632,36 @@ dependencies = [ "futures-task", "memchr", "pin-project-lite", - "pin-utils", "slab", ] [[package]] name = "getrandom" -version = "0.2.16" +version = "0.2.17" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "335ff9f135e4384c8150d6f27c6daed433577f86b4750418338c01a1a2528592" +checksum = "ff2abc00be7fca6ebc474524697ae276ad847ad0a6b3faa4bcb027e9a4614ad0" dependencies = [ "cfg-if", "js-sys", "libc", - "wasi 0.11.1+wasi-snapshot-preview1", + "wasi", "wasm-bindgen", ] [[package]] name = "getrandom" -version = "0.3.3" +version = "0.4.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "26145e563e54f2cadc477553f1ec5ee650b00862f0a58bcd12cbdc5f0ea2d2f4" +checksum = "300e883d756b2e4ec94e02791f39b04b522276138852cfc41d9fb7e904106099" dependencies = [ "cfg-if", + "js-sys", "libc", "r-efi", - "wasi 0.14.3+wasi-0.2.4", + "rand_core", + "wasm-bindgen", ] -[[package]] -name = "gimli" -version = "0.31.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "07e28edb80900c19c28f1072f2e8aeca7fa06b23cd4169cefe1af5aa3260783f" - [[package]] name = "graphql-introspection-query" version = "0.2.0" @@ -662,9 +722,9 @@ dependencies = [ [[package]] name = "h2" -version = "0.4.12" +version = "0.4.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f3c0b69cfcb4e1b9f1bf2f53f95f766e4661169728ec61cd3fe5a0166f2d1386" +checksum = "6cb093c84e8bd9b188d4c4a8cb6579fc016968d14c99882163cd3ff402a4f155" dependencies = [ "atomic-waker", "bytes", @@ -672,7 +732,7 @@ dependencies = [ "futures-core", "futures-sink", "http", - "indexmap 2.11.0", + "indexmap 2.14.0", "slab", "tokio", "tokio-util", @@ -687,9 +747,9 @@ checksum = "8a9ee70c43aaf417c914396645a0fa852624801b24ebb7ae78fe8272889ac888" [[package]] name = "hashbrown" -version = "0.15.5" +version = "0.17.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9229cfe53dfd69f0609a49f65461bd93001ea1ef889cd5529dd176593f5338a1" +checksum = "ed5909b6e89a2db4456e54cd5f673791d7eca6732202bbf2a9cc504fe2f9b84a" [[package]] name = "heck" @@ -705,12 +765,11 @@ checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70" [[package]] name = "http" -version = "1.3.1" +version = "1.4.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f4a85d31aea989eead29a3aaf9e1115a180df8282431156e533de47660892565" +checksum = "6970f50e31d6fc17d3fa27329444bfa74e196cf62e95052a3f6fee181dba6425" dependencies = [ "bytes", - "fnv", "itoa", ] @@ -745,9 +804,9 @@ checksum = "6dbf3de79e51f3d586ab4cb9d5c3e2c14aa28ed23d180cf89b4df0454a69cc87" [[package]] name = "hyper" -version = "1.7.0" +version = "1.10.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eb3aa54a13a0dfe7fbe3a59e0c76093041720fdc77b110cc0fc260fafb4dc51e" +checksum = "55281c53a1894c864990125767da440a4e630446785086f52523b20033b74498" dependencies = [ "atomic-waker", "bytes", @@ -759,7 +818,6 @@ dependencies = [ "httparse", "itoa", "pin-project-lite", - "pin-utils", "smallvec", "tokio", "want", @@ -767,46 +825,28 @@ dependencies = [ [[package]] name = "hyper-rustls" -version = "0.27.7" +version = "0.27.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e3c93eb611681b207e1fe55d5a71ecf91572ec8a6705cdb6857f7d8d5242cf58" +checksum = "33ca68d021ef39cf6463ab54c1d0f5daf03377b70561305bb89a8f83aab66e0f" dependencies = [ "http", "hyper", "hyper-util", "rustls", - "rustls-pki-types", "tokio", "tokio-rustls", "tower-service", ] -[[package]] -name = "hyper-tls" -version = "0.6.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "70206fc6890eaca9fde8a0bf71caa2ddfc9fe045ac9e5c70df101a7dbde866e0" -dependencies = [ - "bytes", - "http-body-util", - "hyper", - "hyper-util", - "native-tls", - "tokio", - "tokio-native-tls", - "tower-service", -] - [[package]] name = "hyper-util" -version = "0.1.16" +version = "0.1.20" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8d9b05277c7e8da2c93a568989bb6207bef0112e8d17df7a6eda4a3cf143bc5e" +checksum = "96547c2556ec9d12fb1578c4eaf448b04993e7fb79cbaad930a656880a6bdfa0" dependencies = [ "base64", "bytes", "futures-channel", - "futures-core", "futures-util", "http", "http-body", @@ -825,9 +865,9 @@ dependencies = [ [[package]] name = "iana-time-zone" -version = "0.1.63" +version = "0.1.65" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b0c919e5debc312ad217002b8048a17b7d83f80703865bbfcfebb0458b0b27d8" +checksum = "e31bc9ad994ba00e440a8aa5c9ef0ec67d5cb5e5cb0cc7f8b744a35b389cc470" dependencies = [ "android_system_properties", "core-foundation-sys", @@ -849,12 +889,13 @@ dependencies = [ [[package]] name = "icu_collections" -version = "2.0.0" +version = "2.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "200072f5d0e3614556f94a9930d5dc3e0662a652823904c3a75dc3b0af7fee47" +checksum = "2984d1cd16c883d7935b9e07e44071dca8d917fd52ecc02c04d5fa0b5a3f191c" dependencies = [ "displaydoc", "potential_utf", + "utf8_iter", "yoke", "zerofrom", "zerovec", @@ -862,9 +903,9 @@ dependencies = [ [[package]] name = "icu_locale_core" -version = "2.0.0" +version = "2.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0cde2700ccaed3872079a65fb1a78f6c0a36c91570f28755dda67bc8f7d9f00a" +checksum = "92219b62b3e2b4d88ac5119f8904c10f8f61bf7e95b640d25ba3075e6cac2c29" dependencies = [ "displaydoc", "litemap", @@ -875,11 +916,10 @@ dependencies = [ [[package]] name = "icu_normalizer" -version = "2.0.0" +version = "2.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "436880e8e18df4d7bbc06d58432329d6458cc84531f7ac5f024e93deadb37979" +checksum = "c56e5ee99d6e3d33bd91c5d85458b6005a22140021cc324cea84dd0e72cff3b4" dependencies = [ - "displaydoc", "icu_collections", "icu_normalizer_data", "icu_properties", @@ -890,42 +930,38 @@ dependencies = [ [[package]] name = "icu_normalizer_data" -version = "2.0.0" +version = "2.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "00210d6893afc98edb752b664b8890f0ef174c8adbb8d0be9710fa66fbbf72d3" +checksum = "da3be0ae77ea334f4da67c12f149704f19f81d1adf7c51cf482943e84a2bad38" [[package]] name = "icu_properties" -version = "2.0.1" +version = "2.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "016c619c1eeb94efb86809b015c58f479963de65bdb6253345c1a1276f22e32b" +checksum = "bee3b67d0ea5c2cca5003417989af8996f8604e34fb9ddf96208a033901e70de" dependencies = [ - "displaydoc", "icu_collections", "icu_locale_core", "icu_properties_data", "icu_provider", - "potential_utf", "zerotrie", "zerovec", ] [[package]] name = "icu_properties_data" -version = "2.0.1" +version = "2.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "298459143998310acd25ffe6810ed544932242d3f07083eee1084d83a71bd632" +checksum = "8e2bbb201e0c04f7b4b3e14382af113e17ba4f63e2c9d2ee626b720cbce54a14" [[package]] name = "icu_provider" -version = "2.0.0" +version = "2.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "03c80da27b5f4187909049ee2d72f276f0d9f99a42c306bd0131ecfe04d8e5af" +checksum = "139c4cf31c8b5f33d7e199446eff9c1e02decfc2f0eec2c8d71f65befa45b421" dependencies = [ "displaydoc", "icu_locale_core", - "stable_deref_trait", - "tinystr", "writeable", "yoke", "zerofrom", @@ -952,9 +988,9 @@ dependencies = [ [[package]] name = "idna_adapter" -version = "1.2.1" +version = "1.2.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3acae9609540aa318d1bc588455225fb2085b9ed0c4f6bd0d9d5bcd86f1a0344" +checksum = "cb68373c0d6620ef8105e855e7745e18b0d00d3bdb07fb532e434244cdb9a714" dependencies = [ "icu_normalizer", "icu_properties", @@ -973,97 +1009,126 @@ dependencies = [ [[package]] name = "indexmap" -version = "2.11.0" +version = "2.14.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f2481980430f9f78649238835720ddccc57e52df14ffce1c6f37391d61b563e9" +checksum = "d466e9454f08e4a911e14806c24e16fba1b4c121d1ea474396f396069cf949d9" dependencies = [ "equivalent", - "hashbrown 0.15.5", + "hashbrown 0.17.1", "serde", + "serde_core", ] [[package]] -name = "instant" -version = "0.1.13" +name = "ipnet" +version = "2.12.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e0242819d153cba4b4b05a5a8f2a7e9bbf97b6055b2a002b395c96b5ff3c0222" -dependencies = [ - "cfg-if", - "js-sys", - "wasm-bindgen", - "web-sys", -] +checksum = "d98f6fed1fde3f8c21bc40a1abb88dd75e67924f9cffc3ef95607bad8017f8e2" [[package]] -name = "io-uring" -version = "0.7.10" +name = "is_terminal_polyfill" +version = "1.70.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "046fa2d4d00aea763528b4950358d0ead425372445dc8ff86312b3c69ff7727b" +checksum = "a6cb138bb79a146c1bd460005623e142ef0181e3d0219cb493e02f7d08a35695" + +[[package]] +name = "itoa" +version = "1.0.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8f42a60cbdf9a97f5d2305f08a87dc4e09308d1276d28c869c684d7777685682" + +[[package]] +name = "jiff" +version = "0.2.32" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "961d16382652bfdd8c6f68b223b26a8c93e0d475c672f414411db31c6c5c900e" dependencies = [ - "bitflags 2.9.4", - "cfg-if", - "libc", + "defmt", + "jiff-static", + "log", + "portable-atomic", + "portable-atomic-util", + "serde_core", ] [[package]] -name = "ipnet" -version = "2.11.0" +name = "jiff-static" +version = "0.2.32" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "469fb0b9cefa57e3ef31275ee7cacb78f2fdca44e4765491884a2b119d4eb130" +checksum = "d0879bd39df99c4c5e2c6615ccc026391a423dde10532c573e6086eb94a802cc" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.118", +] [[package]] -name = "iri-string" -version = "0.7.8" +name = "jni" +version = "0.22.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dbc5ebe9c3a1a7a5127f920a418f7585e9e758e911d0466ed004f393b0e380b2" +checksum = "5efd9a482cf3a427f00d6b35f14332adc7902ce91efb778580e180ff90fa3498" dependencies = [ - "memchr", - "serde", + "cfg-if", + "combine", + "jni-macros", + "jni-sys", + "log", + "simd_cesu8", + "thiserror 2.0.18", + "walkdir", + "windows-link", ] [[package]] -name = "is_terminal_polyfill" -version = "1.70.1" +name = "jni-macros" +version = "0.22.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7943c866cc5cd64cbc25b2e01621d07fa8eb2a1a23160ee81ce38704e97b8ecf" +checksum = "a00109accc170f0bdb141fed3e393c565b6f5e072365c3bd58f5b062591560a3" +dependencies = [ + "proc-macro2", + "quote", + "rustc_version", + "simd_cesu8", + "syn 2.0.118", +] [[package]] -name = "itoa" -version = "1.0.15" +name = "jni-sys" +version = "0.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4a5f13b858c8d314ee3e8f639011f7ccefe71f97f96e50151fb991f267928e2c" +checksum = "c6377a88cb3910bee9b0fa88d4f42e1d2da8e79915598f65fb0c7ee14c878af2" +dependencies = [ + "jni-sys-macros", +] [[package]] -name = "jiff" -version = "0.2.15" +name = "jni-sys-macros" +version = "0.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "be1f93b8b1eb69c77f24bbb0afdf66f54b632ee39af40ca21c4365a1d7347e49" +checksum = "38c0b942f458fe50cdac086d2f946512305e5631e720728f2a61aabcd47a6264" dependencies = [ - "jiff-static", - "log", - "portable-atomic", - "portable-atomic-util", - "serde", + "quote", + "syn 2.0.118", ] [[package]] -name = "jiff-static" -version = "0.2.15" +name = "jobserver" +version = "0.1.35" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "03343451ff899767262ec32146f6d559dd759fdadf42ff0e227c7c48f72594b4" +checksum = "1c00acbd29eabad4a2392fa0e921c874934dbbf4194312ad20f04a0ed67a3cb3" dependencies = [ - "proc-macro2", - "quote", - "syn 2.0.106", + "getrandom 0.4.3", + "libc", ] [[package]] name = "js-sys" -version = "0.3.78" +version = "0.3.103" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0c0b063578492ceec17683ef2f8c5e89121fbd0b172cbc280635ab7567db2738" +checksum = "53b44bfcdb3f8d5837a46dae1ca9660a837176eee74a28b229bc626816589102" dependencies = [ - "once_cell", + "cfg-if", + "futures-util", "wasm-bindgen", ] @@ -1075,43 +1140,42 @@ checksum = "bbd2bcb4c963f2ddae06a2efc7e9f3591312473c50c6685e1f298068316e66fe" [[package]] name = "libc" -version = "0.2.175" +version = "0.2.186" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6a82ae493e598baaea5209805c49bbf2ea7de956d50d7da0da1164f9c6d28543" - -[[package]] -name = "linux-raw-sys" -version = "0.9.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cd945864f07fe9f5371a27ad7b52a172b4b499999f1d97574c9fa68373937e12" +checksum = "68ab91017fe16c622486840e4c83c9a37afeff978bd239b5293d61ece587de66" [[package]] name = "litemap" -version = "0.8.0" +version = "0.8.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "241eaef5fd12c88705a01fc1066c48c4b36e0dd4377dcdc7ec3942cea7a69956" +checksum = "92daf443525c4cce67b150400bc2316076100ce0b3686209eb8cf3c31612e6f0" [[package]] name = "lock_api" -version = "0.4.13" +version = "0.4.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "96936507f153605bddfcda068dd804796c84324ed2510809e5b2a624c81da765" +checksum = "224399e74b87b5f3557511d98dff8b14089b3dadafcab6bb93eab67d3aace965" dependencies = [ - "autocfg", "scopeguard", ] [[package]] name = "log" -version = "0.4.28" +version = "0.4.33" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0ceec5bc11778974d1bcb055b18002eba7f4b3518b6a0081b3af5f21666da9ad" + +[[package]] +name = "lru-slab" +version = "0.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "34080505efa8e45a4b816c349525ebe327ceaa8559756f0356cba97ef3bf7432" +checksum = "112b39cec0b298b6c1999fee3e31427f74f676e4cb9879ed1a121b43661a4154" [[package]] name = "memchr" -version = "2.7.5" +version = "2.8.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "32a282da65faaf38286cf3be983213fcf1d2e2a58700e808f83f4ea9a4804bc0" +checksum = "cf8baf1c55e62ffcace7a9f06f4bd9cd3f0c4beb022d3b367256b91b87513d98" [[package]] name = "mime" @@ -1119,48 +1183,22 @@ version = "0.3.17" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6877bb514081ee2a7ff5ef9de3281f14a4dd4bceac4c09388074a6b5df8a139a" -[[package]] -name = "miniz_oxide" -version = "0.8.9" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1fa76a2c86f704bdb222d66965fb3d63269ce38518b83cb0575fca855ebb6316" -dependencies = [ - "adler2", -] - [[package]] name = "mio" -version = "1.0.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "78bed444cc8a2160f01cbcf811ef18cac863ad68ae8ca62092e8db51d51c761c" -dependencies = [ - "libc", - "wasi 0.11.1+wasi-snapshot-preview1", - "windows-sys 0.59.0", -] - -[[package]] -name = "native-tls" -version = "0.2.14" +version = "1.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "87de3442987e9dbec73158d5c715e7ad9072fda936bb03d19d7fa10e00520f0e" +checksum = "02bd0af71c67b473010cbbc60715ee815645a4dc942899111f494b4b737d6fda" dependencies = [ "libc", - "log", - "openssl", - "openssl-probe", - "openssl-sys", - "schannel", - "security-framework", - "security-framework-sys", - "tempfile", + "wasi", + "windows-sys 0.61.2", ] [[package]] name = "num-conv" -version = "0.1.0" +version = "0.2.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "51d515d32fb182ee37cda2ccdcb92950d6a3c2893aa280e540671c2cd0f3b1d9" +checksum = "521739c6d2bac4aa25192232afe6841231376b2b26d4d9fae5ecf8ca5772e441" [[package]] name = "num-traits" @@ -1171,94 +1209,45 @@ dependencies = [ "autocfg", ] -[[package]] -name = "object" -version = "0.36.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "62948e14d923ea95ea2c7c86c71013138b66525b86bdc08d2dcc262bdb497b87" -dependencies = [ - "memchr", -] - [[package]] name = "once_cell" -version = "1.21.3" +version = "1.21.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "42f5e15c9953c5e4ccceeb2e7382a716482c34515315f7b03532b8b4e8393d2d" +checksum = "9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50" [[package]] name = "once_cell_polyfill" -version = "1.70.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a4895175b425cb1f87721b59f0f286c2092bd4af812243672510e1ac53e2e0ad" - -[[package]] -name = "openssl" -version = "0.10.73" +version = "1.70.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8505734d46c8ab1e19a1dce3aef597ad87dcb4c37e7188231769bd6bd51cebf8" -dependencies = [ - "bitflags 2.9.4", - "cfg-if", - "foreign-types", - "libc", - "once_cell", - "openssl-macros", - "openssl-sys", -] - -[[package]] -name = "openssl-macros" -version = "0.1.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a948666b637a0f465e8564c73e89d4dde00d72d4d473cc972f390fc3dcee7d9c" -dependencies = [ - "proc-macro2", - "quote", - "syn 2.0.106", -] +checksum = "384b8ab6d37215f3c5301a95a4accb5d64aa607f1fcb26a11b5303878451b4fe" [[package]] name = "openssl-probe" -version = "0.1.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d05e27ee213611ffe7d6348b942e8f942b37114c00cc03cec254295a4a17852e" - -[[package]] -name = "openssl-sys" -version = "0.9.109" +version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "90096e2e47630d78b7d1c20952dc621f957103f8bc2c8359ec81290d75238571" -dependencies = [ - "cc", - "libc", - "pkg-config", - "vcpkg", -] +checksum = "7c87def4c32ab89d880effc9e097653c8da5d6ef28e6b539d313baaacfbafcbe" [[package]] name = "parking_lot" -version = "0.11.2" +version = "0.12.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7d17b78036a60663b797adeaee46f5c9dfebb86948d1255007a1d6be0271ff99" +checksum = "93857453250e3077bd71ff98b6a65ea6621a19bb0f559a85248955ac12c45a1a" dependencies = [ - "instant", "lock_api", "parking_lot_core", ] [[package]] name = "parking_lot_core" -version = "0.8.6" +version = "0.9.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "60a2cfe6f0ad2bfc16aefa463b497d5c7a5ecd44a23efa72aa342d90177356dc" +checksum = "2621685985a2ebf1c516881c026032ac7deafcda1a2c9b7850dc81e3dfcb64c1" dependencies = [ "cfg-if", - "instant", "libc", "redox_syscall", "smallvec", - "winapi", + "windows-link", ] [[package]] @@ -1269,9 +1258,9 @@ checksum = "9b4f627cb1b25917193a259e49bdad08f671f8d9708acfd5fe0a8c1455d87220" [[package]] name = "pin-project-lite" -version = "0.2.16" +version = "0.2.17" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3b3cff922bd51709b605d9ead9aa71031d81447142d828eb4a6eba76fe619f9b" +checksum = "a89322df9ebe1c1578d689c92318e070967d1042b512afbe49518723f4e6d5cd" [[package]] name = "pin-utils" @@ -1281,30 +1270,30 @@ checksum = "8b870d8c151b6f2fb93e84a13146138f05d02ed11c7e7c54f8826aaaf7c9f184" [[package]] name = "pkg-config" -version = "0.3.32" +version = "0.3.33" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7edddbd0b52d732b21ad9a5fab5c704c14cd949e5e9a1ec5929a24fded1b904c" +checksum = "19f132c84eca552bf34cab8ec81f1c1dcc229b811638f9d283dceabe58c5569e" [[package]] name = "portable-atomic" -version = "1.11.1" +version = "1.13.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f84267b20a16ea918e43c6a88433c2d54fa145c92a811b5b047ccbe153674483" +checksum = "c33a9471896f1c69cecef8d20cbe2f7accd12527ce60845ff44c153bb2a21b49" [[package]] name = "portable-atomic-util" -version = "0.2.4" +version = "0.2.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d8a2f0d8d040d7848a709caf78912debcc3f33ee4b3cac47d73d1e1069e83507" +checksum = "c2a106d1259c23fac8e543272398ae0e3c0b8d33c88ed73d0cc71b0f1d902618" dependencies = [ "portable-atomic", ] [[package]] name = "potential_utf" -version = "0.1.3" +version = "0.1.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "84df19adbe5b5a0782edcab45899906947ab039ccf4573713735ee7de1e6b08a" +checksum = "0103b1cef7ec0cf76490e969665504990193874ea05c85ff9bab8b911d0a0564" dependencies = [ "zerovec", ] @@ -1316,102 +1305,146 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "439ee305def115ba05938db6eb1644ff94165c5ab5e9420d1c1bcedbba909391" [[package]] -name = "ppv-lite86" -version = "0.2.21" +name = "proc-macro2" +version = "1.0.106" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "85eae3c4ed2f50dcfe72643da4befc30deadb458a9b590d720cde2f2b1e97da9" +checksum = "8fd00f0bb2e90d81d1044c2b32617f68fcb9fa3bb7640c23e9c748e53fb30934" dependencies = [ - "zerocopy", + "unicode-ident", ] [[package]] -name = "proc-macro2" -version = "1.0.101" +name = "quinn" +version = "0.11.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "89ae43fd86e4158d6db51ad8e2b80f313af9cc74f5c0e03ccb87de09998732de" +checksum = "0c1a41e437b6bbd489372cd4971de128e85c855f56c57f283d20ff016cf7c0a8" dependencies = [ - "unicode-ident", + "bytes", + "cfg_aliases", + "pin-project-lite", + "quinn-proto", + "quinn-udp", + "rustc-hash", + "rustls", + "socket2", + "thiserror 2.0.18", + "tokio", + "tracing", + "web-time", +] + +[[package]] +name = "quinn-proto" +version = "0.11.16" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2f4bfc015262b9df63c8845072ce59068853ff5872180c2ce2f13038b970e560" +dependencies = [ + "aws-lc-rs", + "bytes", + "getrandom 0.4.3", + "lru-slab", + "rand", + "rand_pcg", + "ring", + "rustc-hash", + "rustls", + "rustls-pki-types", + "slab", + "thiserror 2.0.18", + "tinyvec", + "tracing", + "web-time", +] + +[[package]] +name = "quinn-udp" +version = "0.5.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "35a133f956daabe89a61a685c2649f13d82d5aa4bd5d12d1277e1072a21c0694" +dependencies = [ + "cfg_aliases", + "libc", + "once_cell", + "socket2", + "tracing", + "windows-sys 0.61.2", ] [[package]] name = "quote" -version = "1.0.40" +version = "1.0.46" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1885c039570dc00dcb4ff087a89e185fd56bae234ddc7f056a945bf36467248d" +checksum = "dfbc457d0c7a0759a614551b11a6409e5951f6c7537be1f1b7682b9ae9230368" dependencies = [ "proc-macro2", ] [[package]] name = "r-efi" -version = "5.3.0" +version = "6.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "69cdb34c158ceb288df11e18b4bd39de994f6657d83847bdffdbd7f346754b0f" +checksum = "f8dcc9c7d52a811697d2151c701e0d08956f92b0e24136cf4cf27b57a6a0d9bf" [[package]] name = "rand" -version = "0.8.5" +version = "0.10.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "34af8d1a0e25924bc5b7c43c079c942339d8f0a8b57c39049bef581b46327404" +checksum = "c7f5fa3a058cd35567ef9bfa5e75732bee0f9e4c55fa90477bef2dfcdbc4be80" dependencies = [ - "libc", - "rand_chacha", + "chacha20", + "getrandom 0.4.3", "rand_core", ] [[package]] -name = "rand_chacha" -version = "0.3.1" +name = "rand_core" +version = "0.10.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e6c10a63a0fa32252be49d21e7709d4d4baf8d231c2dbce1eaa8141b9b127d88" -dependencies = [ - "ppv-lite86", - "rand_core", -] +checksum = "63b8176103e19a2643978565ca18b50549f6101881c443590420e4dc998a3c69" [[package]] -name = "rand_core" -version = "0.6.4" +name = "rand_pcg" +version = "0.10.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c" +checksum = "caa0f4137e1c0a72f4c651489402276c8e8e1cf081f3b0ba156d2cbeef09e86a" dependencies = [ - "getrandom 0.2.16", + "rand_core", ] [[package]] name = "redox_syscall" -version = "0.2.16" +version = "0.5.18" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fb5a58c1855b4b6819d59012155603f0b22ad30cad752600aadfcb695265519a" +checksum = "ed2bf2547551a7053d6fdfafda3f938979645c44812fbfcda098faae3f1a362d" dependencies = [ - "bitflags 1.3.2", + "bitflags 2.13.0", ] [[package]] name = "ref-cast" -version = "1.0.24" +version = "1.0.25" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4a0ae411dbe946a674d89546582cea4ba2bb8defac896622d6496f14c23ba5cf" +checksum = "f354300ae66f76f1c85c5f84693f0ce81d747e2c3f21a45fef496d89c960bf7d" dependencies = [ "ref-cast-impl", ] [[package]] name = "ref-cast-impl" -version = "1.0.24" +version = "1.0.25" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1165225c21bff1f3bbce98f5a1f889949bc902d3575308cc7b0de30b4f6d27c7" +checksum = "b7186006dcb21920990093f30e3dea63b7d6e977bf1256be20c3563a5db070da" dependencies = [ "proc-macro2", "quote", - "syn 2.0.106", + "syn 2.0.118", ] [[package]] name = "regex" -version = "1.11.2" +version = "1.13.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "23d7fd106d8c02486a8d64e778353d1cffe08ce79ac2e82f540c86d0facf6912" +checksum = "2a0e75113e14dc5acb068cd0786884f214f1312650a3d36d269f5c4f3cdee8a2" dependencies = [ "aho-corasick", "memchr", @@ -1421,9 +1454,9 @@ dependencies = [ [[package]] name = "regex-automata" -version = "0.4.10" +version = "0.4.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6b9458fa0bfeeac22b5ca447c63aaf45f28439a709ccd244698632f9aa6394d6" +checksum = "1f388202e4b80542a0921078cc23b6333bcf1409c1e3f86404cae4766a6131db" dependencies = [ "aho-corasick", "memchr", @@ -1432,15 +1465,15 @@ dependencies = [ [[package]] name = "regex-syntax" -version = "0.8.6" +version = "0.8.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "caf4aa5b0f434c91fe5c7f1ecb6a5ece2130b02ad2a590589dda5146df959001" +checksum = "d6f6ff9a378485b298a5286656da665ba74413d36db0979633275d2e708145d4" [[package]] name = "reqwest" -version = "0.12.23" +version = "0.13.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d429f34c8092b2d42c7c93cec323bb4adeb7c67698f70839adec842ec10c7ceb" +checksum = "219c5811de6525e5416c7d5d53bb656d3afdbc6c5af816e0802bcfa42dbdc1c3" dependencies = [ "base64", "bytes", @@ -1452,21 +1485,21 @@ dependencies = [ "http-body-util", "hyper", "hyper-rustls", - "hyper-tls", "hyper-util", "js-sys", "log", "mime", - "native-tls", "percent-encoding", "pin-project-lite", + "quinn", + "rustls", "rustls-pki-types", + "rustls-platform-verifier", "serde", "serde_json", - "serde_urlencoded", "sync_wrapper", "tokio", - "tokio-native-tls", + "tokio-rustls", "tower", "tower-http", "tower-service", @@ -1478,46 +1511,44 @@ dependencies = [ [[package]] name = "reqwest-middleware" -version = "0.4.2" +version = "0.5.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "57f17d28a6e6acfe1733fe24bcd30774d13bffa4b8a22535b4c8c98423088d4e" +checksum = "07bc3f1384cffa4f274dad2d4ddd73aed32fed8f786d96c6be8aa4e5fd3c3b58" dependencies = [ "anyhow", "async-trait", "http", "reqwest", - "serde", - "thiserror 1.0.69", + "thiserror 2.0.18", "tower-service", ] [[package]] name = "reqwest-retry" -version = "0.7.0" +version = "0.9.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "29c73e4195a6bfbcb174b790d9b3407ab90646976c55de58a6515da25d851178" +checksum = "fe2412db2af7d2268e7a5406be0431f37d9eb67ff390f35b395716f5f06c2eaa" dependencies = [ "anyhow", "async-trait", "futures", - "getrandom 0.2.16", + "getrandom 0.2.17", "http", "hyper", - "parking_lot", "reqwest", "reqwest-middleware", "retry-policies", - "thiserror 1.0.69", + "thiserror 2.0.18", "tokio", "tracing", - "wasm-timer", + "wasmtimer", ] [[package]] name = "retry-policies" -version = "0.4.0" +version = "0.5.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5875471e6cab2871bc150ecb8c727db5113c9338cc3354dc5ee3425b6aa40a1c" +checksum = "dc05fbf560421a0357a750cbe78c7ca19d4923918490daabba313d5dbc871e47" dependencies = [ "rand", ] @@ -1530,17 +1561,17 @@ checksum = "a4689e6c2294d81e88dc6261c768b63bc4fcdb852be6d1352498b114f61383b7" dependencies = [ "cc", "cfg-if", - "getrandom 0.2.16", + "getrandom 0.2.17", "libc", "untrusted", "windows-sys 0.52.0", ] [[package]] -name = "rustc-demangle" -version = "0.1.26" +name = "rustc-hash" +version = "2.1.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "56f7d92ca342cea22a06f2121d944b4fd82af56988c270852495420f961d4ace" +checksum = "6b1e7f9a428571be2dc5bc0505c13fb6bf936822b894ec87abf8a08a4e51742d" [[package]] name = "rustc_version" @@ -1551,25 +1582,13 @@ dependencies = [ "semver", ] -[[package]] -name = "rustix" -version = "1.0.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "11181fbabf243db407ef8df94a6ce0b2f9a733bd8be4ad02b4eda9602296cac8" -dependencies = [ - "bitflags 2.9.4", - "errno", - "libc", - "linux-raw-sys", - "windows-sys 0.52.0", -] - [[package]] name = "rustls" -version = "0.23.31" +version = "0.23.41" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c0ebcbd2f03de0fc1122ad9bb24b127a5a6cd51d72604a3f3c50ac459762b6cc" +checksum = "6b92b125634d9b795e7beca796cc790df15a7fb38323bf3196fda83292d06b1f" dependencies = [ + "aws-lc-rs", "once_cell", "rustls-pki-types", "rustls-webpki", @@ -1577,21 +1596,62 @@ dependencies = [ "zeroize", ] +[[package]] +name = "rustls-native-certs" +version = "0.8.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dab5152771c58876a2146916e53e35057e1a4dfa2b9df0f0305b07f611fdea4d" +dependencies = [ + "openssl-probe", + "rustls-pki-types", + "schannel", + "security-framework", +] + [[package]] name = "rustls-pki-types" -version = "1.12.0" +version = "1.15.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "229a4a4c221013e7e1f1a043678c5cc39fe5171437c88fb47151a21e6f5b5c79" +checksum = "764899a24af3980067ee14bc143654f297b22eaebfe3c7b6b211920a5a59b046" dependencies = [ + "web-time", "zeroize", ] +[[package]] +name = "rustls-platform-verifier" +version = "0.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "26d1e2536ce4f35f4846aa13bff16bd0ff40157cdb14cc056c7b14ba41233ba0" +dependencies = [ + "core-foundation 0.10.1", + "core-foundation-sys", + "jni", + "log", + "once_cell", + "rustls", + "rustls-native-certs", + "rustls-platform-verifier-android", + "rustls-webpki", + "security-framework", + "security-framework-sys", + "webpki-root-certs", + "windows-sys 0.61.2", +] + +[[package]] +name = "rustls-platform-verifier-android" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f87165f0995f63a9fbeea62b64d10b4d9d8e78ec6d7d51fb2125fda7bb36788f" + [[package]] name = "rustls-webpki" -version = "0.103.4" +version = "0.103.13" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0a17884ae0c1b773f1ccd2bd4a8c72f16da897310a98b0e84bf349ad5ead92fc" +checksum = "61c429a8649f110dddef65e2a5ad240f747e85f7758a6bccc7e5777bd33f756e" dependencies = [ + "aws-lc-rs", "ring", "rustls-pki-types", "untrusted", @@ -1599,23 +1659,26 @@ dependencies = [ [[package]] name = "rustversion" -version = "1.0.22" +version = "1.0.23" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b39cdef0fa800fc44525c84ccb54a029961a8215f9619753635a9c0d2538d46d" +checksum = "cf54715a573b99ac80df0bc206da022bcd442c974952c7b9720069370852e21f" [[package]] -name = "ryu" -version = "1.0.20" +name = "same-file" +version = "1.0.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "28d3b2b1366ec20994f1fd18c3c594f05c5dd4bc44d8bb0c1c632c8d6829481f" +checksum = "93fc1dc3aaa9bfed95e02e6eadabb4baf7e3078b0bd1b4d7b6b0b68378900502" +dependencies = [ + "winapi-util", +] [[package]] name = "schannel" -version = "0.1.27" +version = "0.1.29" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1f29ebaa345f945cec9fbbc532eb307f0fdad8161f281b6369539c8d84876b3d" +checksum = "91c1b7e4904c873ef0710c1f407dde2e6287de2bebc1bbbf7d430bb7cbffd939" dependencies = [ - "windows-sys 0.59.0", + "windows-sys 0.61.2", ] [[package]] @@ -1632,9 +1695,9 @@ dependencies = [ [[package]] name = "schemars" -version = "1.0.4" +version = "1.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "82d20c4491bc164fa2f6c5d44565947a52ad80b9505d8e36f8d54c27c739fcd0" +checksum = "a2b42f36aa1cd011945615b92222f6bf73c599a102a300334cd7f8dbeec726cc" dependencies = [ "dyn-clone", "ref-cast", @@ -1650,12 +1713,12 @@ checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49" [[package]] name = "security-framework" -version = "2.11.1" +version = "3.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "897b2245f0b511c87893af39b033e5ca9cce68824c4d7e7630b5a1d339658d02" +checksum = "b7f4bc775c73d9a02cde8bf7b2ec4c9d12743edf609006c7facc23998404cd1d" dependencies = [ - "bitflags 2.9.4", - "core-foundation", + "bitflags 2.13.0", + "core-foundation 0.10.1", "core-foundation-sys", "libc", "security-framework-sys", @@ -1663,9 +1726,9 @@ dependencies = [ [[package]] name = "security-framework-sys" -version = "2.14.0" +version = "2.17.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "49db231d56a190491cb4aeda9527f1ad45345af50b0851622a7adb8c03b01c32" +checksum = "6ce2691df843ecc5d231c0b14ece2acc3efb62c0a398c7e1d875f3983ce020e3" dependencies = [ "core-foundation-sys", "libc", @@ -1679,35 +1742,46 @@ checksum = "8a7852d02fc848982e0c167ef163aaff9cd91dc640ba85e263cb1ce46fae51cd" [[package]] name = "serde" -version = "1.0.219" +version = "1.0.228" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9a8e94ea7f378bd32cbbd37198a4a91436180c5bb472411e48b5ec2e2124ae9e" +dependencies = [ + "serde_core", + "serde_derive", +] + +[[package]] +name = "serde_core" +version = "1.0.228" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5f0e2c6ed6606019b4e29e69dbaba95b11854410e5347d525002456dbbb786b6" +checksum = "41d385c7d4ca58e59fc732af25c3983b67ac852c1a25000afe1175de458b67ad" dependencies = [ "serde_derive", ] [[package]] name = "serde_derive" -version = "1.0.219" +version = "1.0.228" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5b0276cf7f2c73365f7157c8123c21cd9a50fbbd844757af28ca1f5925fc2a00" +checksum = "d540f220d3187173da220f885ab66608367b6574e925011a9353e4badda91d79" dependencies = [ "proc-macro2", "quote", - "syn 2.0.106", + "syn 2.0.118", ] [[package]] name = "serde_json" -version = "1.0.143" +version = "1.0.150" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d401abef1d108fbd9cbaebc3e46611f4b1021f714a0597a71f41ee463f5f4a5a" +checksum = "e8014e44b4736ed0538adeecded0fce2a272f22dc9578a7eb6b2d9993c74cfb9" dependencies = [ - "indexmap 2.11.0", + "indexmap 2.14.0", "itoa", "memchr", - "ryu", "serde", + "serde_core", + "zmij", ] [[package]] @@ -1718,36 +1792,24 @@ checksum = "f3faaf9e727533a19351a43cc5a8de957372163c7d35cc48c90b75cdda13c352" dependencies = [ "percent-encoding", "serde", - "thiserror 2.0.16", -] - -[[package]] -name = "serde_urlencoded" -version = "0.7.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d3491c14715ca2294c4d6a88f15e84739788c1d030eed8c110436aafdaa2f3fd" -dependencies = [ - "form_urlencoded", - "itoa", - "ryu", - "serde", + "thiserror 2.0.18", ] [[package]] name = "serde_with" -version = "3.14.0" +version = "3.21.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f2c45cd61fefa9db6f254525d46e392b852e0e61d9a1fd36e5bd183450a556d5" +checksum = "76a5c54c7310e7b8b9577c286d7e399ddd876c3e12b3ed917a8aabc4b96e9e8c" dependencies = [ "base64", + "bs58", "chrono", "hex", "indexmap 1.9.3", - "indexmap 2.11.0", + "indexmap 2.14.0", "schemars 0.9.0", - "schemars 1.0.4", - "serde", - "serde_derive", + "schemars 1.2.1", + "serde_core", "serde_json", "serde_with_macros", "time", @@ -1755,49 +1817,65 @@ dependencies = [ [[package]] name = "serde_with_macros" -version = "3.14.0" +version = "3.21.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "de90945e6565ce0d9a25098082ed4ee4002e047cb59892c318d66821e14bb30f" +checksum = "84d57bc0c8b9a17920c178daa6bb924850d54a9c97ab45194bb8c17ad66bb660" dependencies = [ - "darling", + "darling 0.23.0", "proc-macro2", "quote", - "syn 2.0.106", + "syn 2.0.118", ] [[package]] name = "shlex" -version = "1.3.0" +version = "2.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f8fadd59c855ef2080decdef8ff161eb6661b86933c9d82e5ba29dc602a55aba" + +[[package]] +name = "simd_cesu8" +version = "1.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "94f90157bb87cddf702797c5dadfa0be7d266cdf49e22da2fcaa32eff75b2c33" +dependencies = [ + "rustc_version", + "simdutf8", +] + +[[package]] +name = "simdutf8" +version = "0.1.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64" +checksum = "e3a9fe34e3e7a50316060351f37187a3f546bce95496156754b601a5fa71b76e" [[package]] name = "slab" -version = "0.4.11" +version = "0.4.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7a2ae44ef20feb57a68b23d846850f861394c2e02dc425a50098ae8c90267589" +checksum = "0c790de23124f9ab44544d7ac05d60440adc586479ce501c1d6d7da3cd8c9cf5" [[package]] name = "smallvec" -version = "1.15.1" +version = "1.15.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "67b1b7a3b5fe4f1376887184045fcf45c69e92af734b7aaddc05fb777b6fbd03" +checksum = "8ed6a63f02c8539c91a8685a86f4099661ba3da017932f6ebbea6de3f0fa7c90" [[package]] name = "socket2" -version = "0.6.0" +version = "0.6.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "233504af464074f9d066d7b5416c5f9b894a5862a6506e306f7b816cdd6f1807" +checksum = "52d1cfed4120b4d927bf7c0f86d2087a4a7d6027c906d9f9d525a80573b9be51" dependencies = [ "libc", - "windows-sys 0.59.0", + "windows-sys 0.61.2", ] [[package]] name = "stable_deref_trait" -version = "1.2.0" +version = "1.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a8f112729512f8e442d81f95a8a7ddf2b7c6b8a1a6f509a95864142b30cab2d3" +checksum = "6ce2be8dc25455e1f91df71bfa12ad37d7af1092ae736f3a6cd0e37bc7810596" [[package]] name = "stonfi_api_client" @@ -1858,9 +1936,9 @@ dependencies = [ [[package]] name = "syn" -version = "2.0.106" +version = "2.0.118" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ede7c438028d4436d71104916910f5bb611972c5cfd7f89b8300a8186e6fada6" +checksum = "1b9ae57f904213ebb649ce6895b8a66c66f0203b9319718f69a5612a065b1422" dependencies = [ "proc-macro2", "quote", @@ -1884,17 +1962,17 @@ checksum = "728a70f3dbaf5bab7f0c4b1ac8d7ae5ea60a4b5549c8a5914361c99147a709d2" dependencies = [ "proc-macro2", "quote", - "syn 2.0.106", + "syn 2.0.118", ] [[package]] name = "system-configuration" -version = "0.6.1" +version = "0.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3c879d448e9d986b661742763247d3693ed13609438cf3d006f51f5368a5ba6b" +checksum = "a13f3d0daba03132c0aa9767f98351b3488edc2c100cda2d2ec2b04f3d8d3c8b" dependencies = [ - "bitflags 2.9.4", - "core-foundation", + "bitflags 2.13.0", + "core-foundation 0.9.4", "system-configuration-sys", ] @@ -1908,19 +1986,6 @@ dependencies = [ "libc", ] -[[package]] -name = "tempfile" -version = "3.21.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "15b61f8f20e3a6f7e0649d825294eaf317edce30f82cf6026e7e4cb9222a7d1e" -dependencies = [ - "fastrand", - "getrandom 0.3.3", - "once_cell", - "rustix", - "windows-sys 0.52.0", -] - [[package]] name = "thiserror" version = "1.0.69" @@ -1932,11 +1997,11 @@ dependencies = [ [[package]] name = "thiserror" -version = "2.0.16" +version = "2.0.18" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3467d614147380f2e4e374161426ff399c91084acd2363eaf549172b3d5e60c0" +checksum = "4288b5bcbc7920c07a1149a35cf9590a2aa808e0bc1eafaade0b80947865fbc4" dependencies = [ - "thiserror-impl 2.0.16", + "thiserror-impl 2.0.18", ] [[package]] @@ -1947,45 +2012,45 @@ checksum = "4fee6c4efc90059e10f81e6d42c60a18f76588c3d74cb83a0b242a2b6c7504c1" dependencies = [ "proc-macro2", "quote", - "syn 2.0.106", + "syn 2.0.118", ] [[package]] name = "thiserror-impl" -version = "2.0.16" +version = "2.0.18" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6c5e1be1c48b9172ee610da68fd9cd2770e7a4056cb3fc98710ee6906f0c7960" +checksum = "ebc4ee7f67670e9b64d05fa4253e753e016c6c95ff35b89b7941d6b856dec1d5" dependencies = [ "proc-macro2", "quote", - "syn 2.0.106", + "syn 2.0.118", ] [[package]] name = "time" -version = "0.3.43" +version = "0.3.53" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "83bde6f1ec10e72d583d91623c939f623002284ef622b87de38cfd546cbf2031" +checksum = "18dfaaeddcb932337b5e7866ee7d0ce9b76d2fd092997146f187ec09b4558a50" dependencies = [ "deranged", "num-conv", "powerfmt", - "serde", + "serde_core", "time-core", "time-macros", ] [[package]] name = "time-core" -version = "0.1.6" +version = "0.1.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "40868e7c1d2f0b8d73e4a8c7f0ff63af4f6d19be117e90bd73eb1d62cf831c6b" +checksum = "9e1c906769ad99c88eaa54e728060edef082f8e358ff32030cb7c7d315e81109" [[package]] name = "time-macros" -version = "0.2.24" +version = "0.2.31" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "30cfb0125f12d9c277f35663a0a33f8c30190f4e4574868a330595412d34ebf3" +checksum = "c431b87111666e491a90baa837f914fb45cd5dc3c268591b0220ff5057f2085f" dependencies = [ "num-conv", "time-core", @@ -1993,58 +2058,60 @@ dependencies = [ [[package]] name = "tinystr" -version = "0.8.1" +version = "0.8.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5d4f6d1145dcb577acf783d4e601bc1d76a13337bb54e6233add580b07344c8b" +checksum = "c8323304221c2a851516f22236c5722a72eaa19749016521d6dff0824447d96d" dependencies = [ "displaydoc", "zerovec", ] +[[package]] +name = "tinyvec" +version = "1.12.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bb4ebadaa0af04fab11ae01eb5f9fdb5f9c5b875506e210e71c07873528baa7f" +dependencies = [ + "tinyvec_macros", +] + +[[package]] +name = "tinyvec_macros" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20" + [[package]] name = "tokio" -version = "1.47.1" +version = "1.52.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "89e49afdadebb872d3145a5638b59eb0691ea23e46ca484037cfab3b76b95038" +checksum = "8fc7f01b389ac15039e4dc9531aa973a135d7a4135281b12d7c1bc79fd57fffe" dependencies = [ - "backtrace", "bytes", - "io-uring", "libc", "mio", "pin-project-lite", - "slab", "socket2", "tokio-macros", - "windows-sys 0.59.0", + "windows-sys 0.61.2", ] [[package]] name = "tokio-macros" -version = "2.5.0" +version = "2.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6e06d43f1345a3bcd39f6a56dbb7dcab2ba47e68e8ac134855e7e2bdbaf8cab8" +checksum = "385a6cb71ab9ab790c5fe8d67f1645e6c450a7ce006a33de03daa956cf70a496" dependencies = [ "proc-macro2", "quote", - "syn 2.0.106", -] - -[[package]] -name = "tokio-native-tls" -version = "0.3.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bbae76ab933c85776efabc971569dd6119c580d8f5d448769dec1764bf796ef2" -dependencies = [ - "native-tls", - "tokio", + "syn 2.0.118", ] [[package]] name = "tokio-rustls" -version = "0.26.2" +version = "0.26.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8e727b36a1a0e8b74c376ac2211e40c2c8af09fb4013c60d910495810f008e9b" +checksum = "1729aa945f29d91ba541258c8df89027d5792d85a8841fb65e8bf0f4ede4ef61" dependencies = [ "rustls", "tokio", @@ -2052,9 +2119,9 @@ dependencies = [ [[package]] name = "tokio-stream" -version = "0.1.17" +version = "0.1.18" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eca58d7bba4a75707817a2c44174253f9236b2d5fbd055602e9d5c07c139a047" +checksum = "32da49809aab5c3bc678af03902d4ccddea2a87d028d86392a4b1560c6906c70" dependencies = [ "futures-core", "pin-project-lite", @@ -2063,12 +2130,10 @@ dependencies = [ [[package]] name = "tokio-test" -version = "0.4.4" +version = "0.4.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2468baabc3311435b55dd935f702f42cd1b8abb7e754fb7dfb16bd36aa88f9f7" +checksum = "3f6d24790a10a7af737693a3e8f1d03faef7e6ca0cc99aae5066f533766de545" dependencies = [ - "async-stream", - "bytes", "futures-core", "tokio", "tokio-stream", @@ -2076,9 +2141,9 @@ dependencies = [ [[package]] name = "tokio-util" -version = "0.7.16" +version = "0.7.18" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "14307c986784f72ef81c89db7d9e28d6ac26d16213b109ea501696195e6e3ce5" +checksum = "9ae9cec805b01e8fc3fd2fe289f89149a9b66dd16786abd8b19cfa7b48cb0098" dependencies = [ "bytes", "futures-core", @@ -2104,9 +2169,9 @@ dependencies = [ [[package]] name = "tower" -version = "0.5.2" +version = "0.5.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d039ad9159c98b70ecfd540b2573b97f7f52c3e8d9f8ad57a24b916a536975f9" +checksum = "ebe5ef63511595f1344e2d5cfa636d973292adc0eec1f0ad45fae9f0851ab1d4" dependencies = [ "futures-core", "futures-util", @@ -2119,20 +2184,20 @@ dependencies = [ [[package]] name = "tower-http" -version = "0.6.6" +version = "0.6.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "adc82fd73de2a9722ac5da747f12383d2bfdb93591ee6c58486e0097890f05f2" +checksum = "4cfcf7e2740e6fc6d4d688b4ef00650406bb94adf4731e43c096c3a19fe40840" dependencies = [ - "bitflags 2.9.4", + "bitflags 2.13.0", "bytes", "futures-util", "http", "http-body", - "iri-string", "pin-project-lite", "tower", "tower-layer", "tower-service", + "url", ] [[package]] @@ -2149,9 +2214,9 @@ checksum = "8df9b6e13f2d32c91b9bd719c00d1958837bc7dec474d94952798cc8e69eeec3" [[package]] name = "tracing" -version = "0.1.41" +version = "0.1.44" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "784e0ac535deb450455cbfa28a6f0df145ea1bb7ae51b821cf5e7927fdcfbdd0" +checksum = "63e71662fa4b2a2c3a26f570f037eb95bb1f85397f3cd8076caed2f026a6d100" dependencies = [ "pin-project-lite", "tracing-attributes", @@ -2160,20 +2225,20 @@ dependencies = [ [[package]] name = "tracing-attributes" -version = "0.1.30" +version = "0.1.31" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "81383ab64e72a7a8b8e13130c49e3dab29def6d0c7d76a03087b3cf71c5c6903" +checksum = "7490cfa5ec963746568740651ac6781f701c9c5ea257c58e057f3ba8cf69e8da" dependencies = [ "proc-macro2", "quote", - "syn 2.0.106", + "syn 2.0.118", ] [[package]] name = "tracing-core" -version = "0.1.34" +version = "0.1.36" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b9d12581f227e93f094d3af2ae690a574abb8a2b9b7a96e7cfe9647b2b617678" +checksum = "db97caf9d906fbde555dd62fa95ddba9eecfd14cb388e4f491a66d74cd5fb79a" dependencies = [ "once_cell", ] @@ -2186,9 +2251,9 @@ checksum = "e421abadd41a4225275504ea4d6566923418b7f05506fbc9c0fe86ba7396114b" [[package]] name = "unicode-ident" -version = "1.0.18" +version = "1.0.24" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5a5f39404a5da50712a4c1eecf25e90dd62b613502b7e925fd4e4d19b5c96512" +checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75" [[package]] name = "untrusted" @@ -2198,9 +2263,9 @@ checksum = "8ecb6da28b8a351d773b68d5825ac39017e680750f980f3a1a85cd8dd28a47c1" [[package]] name = "url" -version = "2.5.7" +version = "2.5.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "08bc136a29a3d1758e07a9cca267be308aeebf5cfd5a10f3f67ab2097683ef5b" +checksum = "ff67a8a4397373c3ef660812acab3268222035010ab8680ec4215f38ba3d0eed" dependencies = [ "form_urlencoded", "idna", @@ -2221,10 +2286,14 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "06abde3611657adf66d383f00b093d7faecc7fa57071cce2578660c9f1010821" [[package]] -name = "vcpkg" -version = "0.2.15" +name = "walkdir" +version = "2.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "accd4ea62f7bb7a82fe23066fb0957d48ef677f6eeb8215f372f52e48bb32426" +checksum = "29790946404f91d9c5d06f9874efddea1dc06c5efe94541a7d6863108e3a5e4b" +dependencies = [ + "same-file", + "winapi-util", +] [[package]] name = "want" @@ -2241,20 +2310,11 @@ version = "0.11.1+wasi-snapshot-preview1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ccf3ec651a847eb01de73ccad15eb7d99f80485de043efb2f370cd654f4ea44b" -[[package]] -name = "wasi" -version = "0.14.3+wasi-0.2.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6a51ae83037bdd272a9e28ce236db8c07016dd0d50c27038b3f407533c030c95" -dependencies = [ - "wit-bindgen", -] - [[package]] name = "wasm-bindgen" -version = "0.2.101" +version = "0.2.126" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7e14915cadd45b529bb8d1f343c4ed0ac1de926144b746e2710f9cd05df6603b" +checksum = "4b067c0c11094aef6b7a801c1e34a26affafdf3d051dba08456b868789aaf9a4" dependencies = [ "cfg-if", "once_cell", @@ -2263,38 +2323,21 @@ dependencies = [ "wasm-bindgen-shared", ] -[[package]] -name = "wasm-bindgen-backend" -version = "0.2.101" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e28d1ba982ca7923fd01448d5c30c6864d0a14109560296a162f80f305fb93bb" -dependencies = [ - "bumpalo", - "log", - "proc-macro2", - "quote", - "syn 2.0.106", - "wasm-bindgen-shared", -] - [[package]] name = "wasm-bindgen-futures" -version = "0.4.51" +version = "0.4.76" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0ca85039a9b469b38336411d6d6ced91f3fc87109a2a27b0c197663f5144dffe" +checksum = "c62df1340f32221cb9c54d6a27b030e3dba64361d4a95bed55f9aacb44da291d" dependencies = [ - "cfg-if", "js-sys", - "once_cell", "wasm-bindgen", - "web-sys", ] [[package]] name = "wasm-bindgen-macro" -version = "0.2.101" +version = "0.2.126" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7c3d463ae3eff775b0c45df9da45d68837702ac35af998361e2c84e7c5ec1b0d" +checksum = "167ce5e579f6bcf889c4f7175a8a5a585de84e8ff93976ce393efa5f2837aab1" dependencies = [ "quote", "wasm-bindgen-macro-support", @@ -2302,78 +2345,83 @@ dependencies = [ [[package]] name = "wasm-bindgen-macro-support" -version = "0.2.101" +version = "0.2.126" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7bb4ce89b08211f923caf51d527662b75bdc9c9c7aab40f86dcb9fb85ac552aa" +checksum = "f3997c7839262f4ef12cf90b818d6340c18e80f263f1a94bf157d0ec4420380e" dependencies = [ + "bumpalo", "proc-macro2", "quote", - "syn 2.0.106", - "wasm-bindgen-backend", + "syn 2.0.118", "wasm-bindgen-shared", ] [[package]] name = "wasm-bindgen-shared" -version = "0.2.101" +version = "0.2.126" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f143854a3b13752c6950862c906306adb27c7e839f7414cec8fea35beab624c1" +checksum = "dc1b4cb0cc549fcf58d7dfc081778139b3d283a081644e833e84682ad71cea24" dependencies = [ "unicode-ident", ] [[package]] -name = "wasm-timer" -version = "0.2.5" +name = "wasmtimer" +version = "0.4.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "be0ecb0db480561e9a7642b5d3e4187c128914e58aa84330b9493e3eb68c5e7f" +checksum = "1c598d6b99ea013e35844697fc4670d08339d5cda15588f193c6beedd12f644b" dependencies = [ "futures", "js-sys", "parking_lot", "pin-utils", + "slab", "wasm-bindgen", - "wasm-bindgen-futures", - "web-sys", ] [[package]] name = "web-sys" -version = "0.3.78" +version = "0.3.103" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "77e4b637749ff0d92b8fad63aa1f7cff3cbe125fd49c175cd6345e7272638b12" +checksum = "8622dcb61c0bcc9fffa6938bed81210af2da9a7e4a1a834b2e37a59b6dfb6141" dependencies = [ "js-sys", "wasm-bindgen", ] [[package]] -name = "winapi" -version = "0.3.9" +name = "web-time" +version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419" +checksum = "5a6580f308b1fad9207618087a65c04e7a10bc77e02c8e84e9b00dd4b12fa0bb" dependencies = [ - "winapi-i686-pc-windows-gnu", - "winapi-x86_64-pc-windows-gnu", + "js-sys", + "wasm-bindgen", ] [[package]] -name = "winapi-i686-pc-windows-gnu" -version = "0.4.0" +name = "webpki-root-certs" +version = "1.0.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6" +checksum = "0d46a5a140e6f7afeccd8eae97eff335163939eac8b929834875168b29b3d267" +dependencies = [ + "rustls-pki-types", +] [[package]] -name = "winapi-x86_64-pc-windows-gnu" -version = "0.4.0" +name = "winapi-util" +version = "0.1.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" +checksum = "c2a7b1c03c876122aa43f3020e6c3c3ee5c05081c9a00739faf7503aeba10d22" +dependencies = [ + "windows-sys 0.61.2", +] [[package]] name = "windows-core" -version = "0.61.2" +version = "0.62.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c0fdd3ddb90610c7638aa2b3a3ab2904fb9e5cdbecc643ddb3647212781c4ae3" +checksum = "b8e83a14d34d0623b51dce9581199302a221863196a1dde71a7663a4c2be9deb" dependencies = [ "windows-implement", "windows-interface", @@ -2384,37 +2432,37 @@ dependencies = [ [[package]] name = "windows-implement" -version = "0.60.0" +version = "0.60.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a47fddd13af08290e67f4acabf4b459f647552718f683a7b415d290ac744a836" +checksum = "053e2e040ab57b9dc951b72c264860db7eb3b0200ba345b4e4c3b14f67855ddf" dependencies = [ "proc-macro2", "quote", - "syn 2.0.106", + "syn 2.0.118", ] [[package]] name = "windows-interface" -version = "0.59.1" +version = "0.59.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bd9211b69f8dcdfa817bfd14bf1c97c9188afa36f4750130fcdf3f400eca9fa8" +checksum = "3f316c4a2570ba26bbec722032c4099d8c8bc095efccdc15688708623367e358" dependencies = [ "proc-macro2", "quote", - "syn 2.0.106", + "syn 2.0.118", ] [[package]] name = "windows-link" -version = "0.1.3" +version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5e6ad25900d524eaabdbbb96d20b4311e1e7ae1699af4fb28c17ae66c80d798a" +checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5" [[package]] name = "windows-registry" -version = "0.5.3" +version = "0.6.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5b8a9ed28765efc97bbc954883f4e6796c33a06546ebafacbabee9696967499e" +checksum = "02752bf7fbdcce7f2a27a742f798510f3e5ad88dbe84871e5168e2120c3d5720" dependencies = [ "windows-link", "windows-result", @@ -2423,18 +2471,18 @@ dependencies = [ [[package]] name = "windows-result" -version = "0.3.4" +version = "0.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "56f42bd332cc6c8eac5af113fc0c1fd6a8fd2aa08a0119358686e5160d0586c6" +checksum = "7781fa89eaf60850ac3d2da7af8e5242a5ea78d1a11c49bf2910bb5a73853eb5" dependencies = [ "windows-link", ] [[package]] name = "windows-strings" -version = "0.4.2" +version = "0.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "56e6c93f3a0c3b36176cb1327a4958a0353d5d166c2a35cb268ace15e91d3b57" +checksum = "7837d08f69c77cf6b07689544538e017c1bfcf57e34b4c0ff58e6c2cd3b37091" dependencies = [ "windows-link", ] @@ -2445,25 +2493,16 @@ version = "0.52.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "282be5f36a8ce781fad8c8ae18fa3f9beff57ec1b52cb3de0789201425d9a33d" dependencies = [ - "windows-targets 0.52.6", -] - -[[package]] -name = "windows-sys" -version = "0.59.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1e38bc4d79ed67fd075bcc251a1c39b32a1776bbe92e5bef1f0bf1f8c531853b" -dependencies = [ - "windows-targets 0.52.6", + "windows-targets", ] [[package]] name = "windows-sys" -version = "0.60.2" +version = "0.61.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f2f500e4d28234f72040990ec9d39e3a6b950f9f22d3dba18416c35882612bcb" +checksum = "ae137229bcbd6cdf0f7b80a31df61766145077ddf49416a728b02cb3921ff3fc" dependencies = [ - "windows-targets 0.53.3", + "windows-link", ] [[package]] @@ -2472,31 +2511,14 @@ version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9b724f72796e036ab90c1021d4780d4d3d648aca59e491e6b98e725b84e99973" dependencies = [ - "windows_aarch64_gnullvm 0.52.6", - "windows_aarch64_msvc 0.52.6", - "windows_i686_gnu 0.52.6", - "windows_i686_gnullvm 0.52.6", - "windows_i686_msvc 0.52.6", - "windows_x86_64_gnu 0.52.6", - "windows_x86_64_gnullvm 0.52.6", - "windows_x86_64_msvc 0.52.6", -] - -[[package]] -name = "windows-targets" -version = "0.53.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d5fe6031c4041849d7c496a8ded650796e7b6ecc19df1a431c1a363342e5dc91" -dependencies = [ - "windows-link", - "windows_aarch64_gnullvm 0.53.0", - "windows_aarch64_msvc 0.53.0", - "windows_i686_gnu 0.53.0", - "windows_i686_gnullvm 0.53.0", - "windows_i686_msvc 0.53.0", - "windows_x86_64_gnu 0.53.0", - "windows_x86_64_gnullvm 0.53.0", - "windows_x86_64_msvc 0.53.0", + "windows_aarch64_gnullvm", + "windows_aarch64_msvc", + "windows_i686_gnu", + "windows_i686_gnullvm", + "windows_i686_msvc", + "windows_x86_64_gnu", + "windows_x86_64_gnullvm", + "windows_x86_64_msvc", ] [[package]] @@ -2505,115 +2527,60 @@ version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "32a4622180e7a0ec044bb555404c800bc9fd9ec262ec147edd5989ccd0c02cd3" -[[package]] -name = "windows_aarch64_gnullvm" -version = "0.53.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "86b8d5f90ddd19cb4a147a5fa63ca848db3df085e25fee3cc10b39b6eebae764" - [[package]] name = "windows_aarch64_msvc" version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469" -[[package]] -name = "windows_aarch64_msvc" -version = "0.53.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c7651a1f62a11b8cbd5e0d42526e55f2c99886c77e007179efff86c2b137e66c" - [[package]] name = "windows_i686_gnu" version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8e9b5ad5ab802e97eb8e295ac6720e509ee4c243f69d781394014ebfe8bbfa0b" -[[package]] -name = "windows_i686_gnu" -version = "0.53.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c1dc67659d35f387f5f6c479dc4e28f1d4bb90ddd1a5d3da2e5d97b42d6272c3" - [[package]] name = "windows_i686_gnullvm" version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0eee52d38c090b3caa76c563b86c3a4bd71ef1a819287c19d586d7334ae8ed66" -[[package]] -name = "windows_i686_gnullvm" -version = "0.53.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9ce6ccbdedbf6d6354471319e781c0dfef054c81fbc7cf83f338a4296c0cae11" - [[package]] name = "windows_i686_msvc" version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66" -[[package]] -name = "windows_i686_msvc" -version = "0.53.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "581fee95406bb13382d2f65cd4a908ca7b1e4c2f1917f143ba16efe98a589b5d" - [[package]] name = "windows_x86_64_gnu" version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "147a5c80aabfbf0c7d901cb5895d1de30ef2907eb21fbbab29ca94c5b08b1a78" -[[package]] -name = "windows_x86_64_gnu" -version = "0.53.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2e55b5ac9ea33f2fc1716d1742db15574fd6fc8dadc51caab1c16a3d3b4190ba" - [[package]] name = "windows_x86_64_gnullvm" version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "24d5b23dc417412679681396f2b49f3de8c1473deb516bd34410872eff51ed0d" -[[package]] -name = "windows_x86_64_gnullvm" -version = "0.53.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0a6e035dd0599267ce1ee132e51c27dd29437f63325753051e71dd9e42406c57" - [[package]] name = "windows_x86_64_msvc" version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec" -[[package]] -name = "windows_x86_64_msvc" -version = "0.53.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "271414315aff87387382ec3d271b52d7ae78726f5d44ac98b4f4030c91880486" - -[[package]] -name = "wit-bindgen" -version = "0.45.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "052283831dbae3d879dc7f51f3d92703a316ca49f91540417d38591826127814" - [[package]] name = "writeable" -version = "0.6.1" +version = "0.6.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ea2f10b9bb0928dfb1b42b65e1f9e36f7f54dbdf08457afefb38afcdec4fa2bb" +checksum = "1ffae5123b2d3fc086436f8834ae3ab053a283cfac8fe0a0b8eaae044768a4c4" [[package]] name = "yoke" -version = "0.8.0" +version = "0.8.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5f41bb01b8226ef4bfd589436a297c53d118f65921786300e427be8d487695cc" +checksum = "709fe23a0424b6a435d82152b1bd3fdfb0833487d5fa90d05d42762a9891fef5" dependencies = [ - "serde", "stable_deref_trait", "yoke-derive", "zerofrom", @@ -2621,68 +2588,48 @@ dependencies = [ [[package]] name = "yoke-derive" -version = "0.8.0" +version = "0.8.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "38da3c9736e16c5d3c8c597a9aaa5d1fa565d0532ae05e27c24aa62fb32c0ab6" +checksum = "de844c262c8848816172cef550288e7dc6c7b7814b4ee56b3e1553f275f1858e" dependencies = [ "proc-macro2", "quote", - "syn 2.0.106", + "syn 2.0.118", "synstructure", ] -[[package]] -name = "zerocopy" -version = "0.8.26" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1039dd0d3c310cf05de012d8a39ff557cb0d23087fd44cad61df08fc31907a2f" -dependencies = [ - "zerocopy-derive", -] - -[[package]] -name = "zerocopy-derive" -version = "0.8.26" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9ecf5b4cc5364572d7f4c329661bcc82724222973f2cab6f050a4e5c22f75181" -dependencies = [ - "proc-macro2", - "quote", - "syn 2.0.106", -] - [[package]] name = "zerofrom" -version = "0.1.6" +version = "0.1.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "50cc42e0333e05660c3587f3bf9d0478688e15d870fab3346451ce7f8c9fbea5" +checksum = "0ec05a11813ea801ff6d75110ad09cd0824ddba17dfe17128ea0d5f68e6c5272" dependencies = [ "zerofrom-derive", ] [[package]] name = "zerofrom-derive" -version = "0.1.6" +version = "0.1.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d71e5d6e06ab090c67b5e44993ec16b72dcbaabc526db883a360057678b48502" +checksum = "11532158c46691caf0f2593ea8358fed6bbf68a0315e80aae9bd41fbade684a1" dependencies = [ "proc-macro2", "quote", - "syn 2.0.106", + "syn 2.0.118", "synstructure", ] [[package]] name = "zeroize" -version = "1.8.1" +version = "1.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ced3678a2879b30306d323f4542626697a464a97c0a07c9aebf7ebca65cd4dde" +checksum = "e13c156562582aa81c60cb29407084cdb54c4164760106ab78e6c5b0858cf64e" [[package]] name = "zerotrie" -version = "0.2.2" +version = "0.2.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "36f0bbd478583f79edad978b407914f61b2972f5af6fa089686016be8f9af595" +checksum = "0f9152d31db0792fa83f70fb2f83148effb5c1f5b8c7686c3459e361d9bc20bf" dependencies = [ "displaydoc", "yoke", @@ -2691,9 +2638,9 @@ dependencies = [ [[package]] name = "zerovec" -version = "0.11.4" +version = "0.11.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e7aa2bd55086f1ab526693ecbe444205da57e25f4489879da80635a46d90e73b" +checksum = "90f911cbc359ab6af17377d242225f4d75119aec87ea711a880987b18cd7b239" dependencies = [ "yoke", "zerofrom", @@ -2702,11 +2649,17 @@ dependencies = [ [[package]] name = "zerovec-derive" -version = "0.11.1" +version = "0.11.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5b96237efa0c878c64bd89c436f661be4e46b2f3eff1ebb976f7ef2321d2f58f" +checksum = "625dc425cab0dca6dc3c3319506e6593dcb08a9f387ea3b284dbd52a92c40555" dependencies = [ "proc-macro2", "quote", - "syn 2.0.106", + "syn 2.0.118", ] + +[[package]] +name = "zmij" +version = "1.0.22" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bd2f034a4bebf216c9e4b7083603e024cf930873fd67830cfb083c9fa33129d9" diff --git a/Cargo.toml b/Cargo.toml index b33bf90..1c2cd78 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,22 +2,23 @@ resolver = "2" members = [ - "core", - "dedust_api_client", - "stonfi_api_client", - "swap_coffee_api_client", - "tonco_api_client", - "bidask_api_client", + "crates/core", + "crates/dedust", + "crates/stonfi", + "crates/swap_coffee", + "crates/tonco_api_client", + "crates/bidask", ] [workspace.package] edition = "2021" +rust-version = "1.88" license = "MIT" repository = "https://github.com/Sild/api_clients_rs" [workspace.dependencies] # Internal -api_clients_core = { path = "core", version = "0.2" } +api_clients_core = { path = "crates/core", version = "0.2" } # External thiserror = "2.0" @@ -25,15 +26,15 @@ tokio = { version = "1.47", features = ["macros", "rt-multi-thread"] } anyhow = "1.0" log = "0.4" serde = { version = "1.0", features = ["derive"] } -reqwest = { version = "0.12", features = ["json"] } +reqwest = { version = "0.13", features = ["json"] } serde_json = { version = "1.0", features = ["preserve_order"] } tokio-test = "0.4" serde_with = "3.14" serde_qs = "0.15.0" serde_derive = "1.0" env_logger = "0.11" -reqwest-retry = "0.7" -reqwest-middleware = "0.4" +reqwest-retry = "0.9" +reqwest-middleware = "0.5" graphql_client = "0.14.0" derive_setters = "0.1" derive_more = { version = "2", features = ["from"] } diff --git a/README.md b/README.md index 30d244a..3873e94 100644 --- a/README.md +++ b/README.md @@ -6,13 +6,13 @@ adding application-specific swap, routing, persistence, or fallback logic. MRs are welcome. -| Service | Client | Status | Capabilities | -|------------------------|----------------------------------------------------|-------------|--------------| -| https://ston.fi | [stonfi_api_client](stonfi_api_client) | Supported | STON.fi API v1 assets, pools, farms, routers, swap/liquidity simulation, wallet views, stats, transactions, and public export feeds. | -| https://dedust.io | [dedust_api_client](dedust_api_client) | Supported | DeDust API v2 assets, pools, pool trades, and routing plans. | -| https://app.tonco.io/ | [tonco_api_client](tonco_api_client) | Supported | Low-level Tonco Indexer GraphQL execution with caller-owned query/schema files and generated types. | -| https://swap.coffee | [swap_coffee_api_client](swap_coffee_api_client) | Supported | Swap Coffee API v1 tokens and pools. | -| Bidask | [bidask_api_client](bidask_api_client) | Unsupported | Legacy source only; not recommended for application integration and not published. | +| Service | Client | Status | Capabilities | +|-----------------------|----------------------------------------------------------|-------------|--------------| +| https://ston.fi | [stonfi_api_client](crates/stonfi) | Supported | STON.fi API v1 assets, pools, farms, routers, swap/liquidity simulation, wallet views, stats, transactions, and public export feeds. | +| https://dedust.io | [dedust_api_client](crates/dedust) | Supported | DeDust API v2 assets, pools, pool trades, and routing plans. | +| https://app.tonco.io/ | [tonco_api_client](crates/tonco_api_client) | Supported | Low-level Tonco Indexer GraphQL execution with caller-owned query/schema files and generated types. | +| https://swap.coffee | [swap_coffee_api_client](crates/swap_coffee) | Supported | Swap Coffee API v1 tokens and pools. | +| Bidask | [bidask_api_client](crates/bidask) | Unsupported | Legacy source only; not recommended for application integration and not published. | If you're interested in some particular endpoint which is not implemented yet, just raise an issue and I'll add it. @@ -23,10 +23,12 @@ Add the crate for the service you need: ```toml [dependencies] -stonfi_api_client = "0.8" +stonfi_api_client = "0.9" tokio = { version = "1", features = ["macros", "rt-multi-thread"] } ``` +The workspace minimum supported Rust version (MSRV) is 1.88. + Then build a client and execute the typed request in an async Tokio runtime: ```rust diff --git a/core/src/errors.rs b/core/src/errors.rs deleted file mode 100644 index 7474c91..0000000 --- a/core/src/errors.rs +++ /dev/null @@ -1,50 +0,0 @@ -use thiserror::Error; - -#[derive(Error, Debug)] -#[non_exhaustive] -pub enum ApiClientsError { - #[error("NetworkError: code: {0}, msg: {1}")] - Network(u16, String), - #[error("ServerError: code: {0}, msg: {1}")] - Server(u16, String), - #[error("ClientError: code: {0}, msg: {1}")] - Client(u16, String), - #[error("UnknownError: {0}")] - Unknown(String), - #[error("InternalError: {0}")] - Internal(String), - #[error("UnexpectedResponse: {0}")] - UnexpectedResponse(String), - #[error("InvalidArgs: {0}")] - InvalidArgs(String), -} - -impl From for ApiClientsError { - fn from(err: reqwest::Error) -> Self { - if let Some(status) = err.status() { - match status.as_u16() { - 400..=499 => ApiClientsError::Client(status.as_u16(), err.to_string()), - 500..=599 => ApiClientsError::Server(status.as_u16(), err.to_string()), - _ => ApiClientsError::Network(status.as_u16(), err.to_string()), - } - } else { - ApiClientsError::Unknown(err.to_string()) - } - } -} - -impl From for ApiClientsError { - fn from(err: reqwest_middleware::Error) -> Self { - if let Some(status) = err.status() { - match status.as_u16() { - 400..=499 => ApiClientsError::Client(status.as_u16(), err.to_string()), - 500..=599 => ApiClientsError::Server(status.as_u16(), err.to_string()), - _ => ApiClientsError::Network(status.as_u16(), err.to_string()), - } - } else { - ApiClientsError::Unknown(err.to_string()) - } - } -} - -pub type ApiClientsResult = Result; diff --git a/bidask_api_client/AGENTS.md b/crates/bidask/AGENTS.md similarity index 100% rename from bidask_api_client/AGENTS.md rename to crates/bidask/AGENTS.md diff --git a/bidask_api_client/CHANGELOG.md b/crates/bidask/CHANGELOG.md similarity index 100% rename from bidask_api_client/CHANGELOG.md rename to crates/bidask/CHANGELOG.md diff --git a/bidask_api_client/Cargo.toml b/crates/bidask/Cargo.toml similarity index 94% rename from bidask_api_client/Cargo.toml rename to crates/bidask/Cargo.toml index 4bf2f81..031889c 100644 --- a/bidask_api_client/Cargo.toml +++ b/crates/bidask/Cargo.toml @@ -1,5 +1,6 @@ [package] edition.workspace = true +rust-version.workspace = true license.workspace = true repository.workspace = true name = "bidask_api_client" diff --git a/bidask_api_client/README.md b/crates/bidask/README.md similarity index 100% rename from bidask_api_client/README.md rename to crates/bidask/README.md diff --git a/bidask_api_client/src/api.rs b/crates/bidask/src/api.rs similarity index 100% rename from bidask_api_client/src/api.rs rename to crates/bidask/src/api.rs diff --git a/bidask_api_client/src/api/request.rs b/crates/bidask/src/api/request.rs similarity index 100% rename from bidask_api_client/src/api/request.rs rename to crates/bidask/src/api/request.rs diff --git a/bidask_api_client/src/api/response.rs b/crates/bidask/src/api/response.rs similarity index 100% rename from bidask_api_client/src/api/response.rs rename to crates/bidask/src/api/response.rs diff --git a/bidask_api_client/src/api/types.rs b/crates/bidask/src/api/types.rs similarity index 100% rename from bidask_api_client/src/api/types.rs rename to crates/bidask/src/api/types.rs diff --git a/bidask_api_client/src/api_client.rs b/crates/bidask/src/api_client.rs similarity index 100% rename from bidask_api_client/src/api_client.rs rename to crates/bidask/src/api_client.rs diff --git a/bidask_api_client/src/api_client/builder.rs b/crates/bidask/src/api_client/builder.rs similarity index 100% rename from bidask_api_client/src/api_client/builder.rs rename to crates/bidask/src/api_client/builder.rs diff --git a/bidask_api_client/src/lib.rs b/crates/bidask/src/lib.rs similarity index 55% rename from bidask_api_client/src/lib.rs rename to crates/bidask/src/lib.rs index 5abd16f..71ad3ef 100644 --- a/bidask_api_client/src/lib.rs +++ b/crates/bidask/src/lib.rs @@ -1,4 +1,5 @@ #![doc = include_str!("../README.md")] +#![allow(missing_docs, reason = "unsupported legacy crate is not published")] pub use api_clients_core; pub mod api; diff --git a/bidask_api_client/tests/test_api.rs b/crates/bidask/tests/test_api.rs similarity index 73% rename from bidask_api_client/tests/test_api.rs rename to crates/bidask/tests/test_api.rs index 6800722..5dcd395 100644 --- a/bidask_api_client/tests/test_api.rs +++ b/crates/bidask/tests/test_api.rs @@ -1,12 +1,12 @@ // Bidask support is disabled for this workspace. Keep the live API test -// commented out while `bidask_api_client` remains unsupported and unpublished. +// commented out while `bidask` remains unsupported and unpublished. // // use std::vec; // // use anyhow::Result; -// use bidask_api_client::api::Request; -// use bidask_api_client::api_client::BidaskApiClient; -// use bidask_api_client::unwrap_response; +// use bidask::api::Request; +// use bidask::api_client::BidaskApiClient; +// use bidask::unwrap_response; // // fn init_env() -> BidaskApiClient { // let _ = env_logger::builder().filter_level(log::LevelFilter::Debug).try_init(); diff --git a/bidask_api_client/tests/test_construction.rs b/crates/bidask/tests/test_construction.rs similarity index 100% rename from bidask_api_client/tests/test_construction.rs rename to crates/bidask/tests/test_construction.rs diff --git a/core/AGENTS.md b/crates/core/AGENTS.md similarity index 93% rename from core/AGENTS.md rename to crates/core/AGENTS.md index 2951b51..9aaff68 100644 --- a/core/AGENTS.md +++ b/crates/core/AGENTS.md @@ -49,8 +49,9 @@ reviewing every service crate and downstream integration guidance. with a trailing `?`. - All successful responses are parsed as JSON. Non-JSON success bodies become `ApiClientsError::UnexpectedResponse`. -- 4xx responses map to `Client`; 5xx responses map to `Server`; other reqwest - errors map through the reqwest conversions. +- 4xx responses map to `Client`; 5xx responses map to `Server`; status-less + connect, timeout, request, and body errors map to `Network`; other reqwest or + middleware errors map to `Unknown`. - Built executors rate-limit outbound HTTP attempts to 10 RPS by default. The limiter is smooth/no-burst and is installed after retry middleware so retries reserve their own slots. @@ -75,6 +76,7 @@ For this crate: ```bash cargo test -p api_clients_core +cargo +1.88.0 check -p api_clients_core --all-targets --all-features cargo +nightly fmt cargo clippy -p api_clients_core --all-targets --all-features -- -D warnings RUSTDOCFLAGS="-D warnings" cargo doc -p api_clients_core --no-deps diff --git a/core/CHANGELOG.md b/crates/core/CHANGELOG.md similarity index 100% rename from core/CHANGELOG.md rename to crates/core/CHANGELOG.md diff --git a/core/Cargo.toml b/crates/core/Cargo.toml similarity index 95% rename from core/Cargo.toml rename to crates/core/Cargo.toml index 6608c33..b9efcd0 100644 --- a/core/Cargo.toml +++ b/crates/core/Cargo.toml @@ -4,6 +4,7 @@ version = "0.2.1" description = "core API clients features for various services" readme = "README.md" edition.workspace = true +rust-version.workspace = true license.workspace = true repository.workspace = true diff --git a/core/README.md b/crates/core/README.md similarity index 95% rename from core/README.md rename to crates/core/README.md index d1460ac..924fb6e 100644 --- a/core/README.md +++ b/crates/core/README.md @@ -26,10 +26,12 @@ request timeout, and applies a smooth 10 RPS client-side rate limit. ```toml [dependencies] -api_clients_core = "0.2" +api_clients_core = "0.3" tokio = { version = "1", features = ["macros", "rt-multi-thread"] } ``` +The minimum supported Rust version (MSRV) is 1.88. + ```rust,no_run use api_clients_core::{ApiClientsError, Executor}; use std::time::Duration; @@ -59,7 +61,7 @@ fn classify_error(err: ApiClientsError) -> &'static str { match err { ApiClientsError::Client(_, _) => "client", ApiClientsError::Server(_, _) => "server", - ApiClientsError::Network(_, _) => "network", + ApiClientsError::Network(_) => "network", ApiClientsError::UnexpectedResponse(_) => "unexpected-response", _ => "other", } diff --git a/crates/core/src/errors.rs b/crates/core/src/errors.rs new file mode 100644 index 0000000..99189bb --- /dev/null +++ b/crates/core/src/errors.rs @@ -0,0 +1,87 @@ +use thiserror::Error; + +/// Errors produced while building a client or executing an API request. +#[derive(Error, Debug)] +#[non_exhaustive] +pub enum ApiClientsError { + /// The request failed before an HTTP response was available, for example + /// because of a connection, timeout, request, or response-body failure. + #[error("NetworkError: {0}")] + Network(String), + /// The remote service returned an HTTP 5xx response. + #[error("ServerError: code: {0}, msg: {1}")] + Server(u16, String), + /// The remote service returned an HTTP 4xx response. + #[error("ClientError: code: {0}, msg: {1}")] + Client(u16, String), + /// An error did not match a more specific public classification. + #[error("UnknownError: {0}")] + Unknown(String), + /// The client or executor could not be constructed. + #[error("InternalError: {0}")] + Internal(String), + /// A successful HTTP or GraphQL response could not be interpreted as the + /// response type required by the request. + #[error("UnexpectedResponse: {0}")] + UnexpectedResponse(String), + /// Request parameters could not be serialized or otherwise validated. + #[error("InvalidArgs: {0}")] + InvalidArgs(String), +} + +impl From for ApiClientsError { + fn from(err: reqwest::Error) -> Self { + let status = err.status(); + let is_network = err.is_connect() || err.is_timeout() || err.is_request() || err.is_body(); + classify_http_error(status, is_network, err.to_string()) + } +} + +impl From for ApiClientsError { + fn from(err: reqwest_middleware::Error) -> Self { + let status = err.status(); + let is_network = err.is_connect() || err.is_timeout() || err.is_request() || err.is_body(); + classify_http_error(status, is_network, err.to_string()) + } +} + +fn classify_http_error(status: Option, is_network: bool, message: String) -> ApiClientsError { + match status.map(|status| status.as_u16()) { + Some(code @ 400..=499) => ApiClientsError::Client(code, message), + Some(code @ 500..=599) => ApiClientsError::Server(code, message), + _ if is_network => ApiClientsError::Network(message), + _ => ApiClientsError::Unknown(message), + } +} + +/// Result type returned by the shared executor and service clients. +pub type ApiClientsResult = Result; + +#[cfg(test)] +mod tests { + use super::{classify_http_error, ApiClientsError}; + use http::StatusCode; + + #[test] + fn test_classifies_statusless_transport_error_as_network() { + let error = classify_http_error(None, true, "request timed out".to_string()); + + assert!(matches!(error, ApiClientsError::Network(message) if message == "request timed out")); + } + + #[test] + fn test_classifies_http_error_statuses() { + let client = classify_http_error(Some(StatusCode::BAD_REQUEST), false, "bad request".to_string()); + let server = classify_http_error(Some(StatusCode::SERVICE_UNAVAILABLE), false, "unavailable".to_string()); + + assert!(matches!(client, ApiClientsError::Client(400, message) if message == "bad request")); + assert!(matches!(server, ApiClientsError::Server(503, message) if message == "unavailable")); + } + + #[test] + fn test_preserves_unknown_non_transport_errors() { + let error = classify_http_error(None, false, "middleware failed".to_string()); + + assert!(matches!(error, ApiClientsError::Unknown(message) if message == "middleware failed")); + } +} diff --git a/core/src/executor.rs b/crates/core/src/executor.rs similarity index 80% rename from core/src/executor.rs rename to crates/core/src/executor.rs index 2a3805a..2d33db6 100644 --- a/core/src/executor.rs +++ b/crates/core/src/executor.rs @@ -30,6 +30,12 @@ impl Executor { /// accepted and causes requests to wait indefinitely instead of being sent. pub fn builder>(api_endpoint: T) -> Builder { Builder::new(api_endpoint.into()) } + /// Execute a GET request without additional query parameters or headers. + /// + /// # Errors + /// + /// Returns [`ApiClientsError`](crate::ApiClientsError) when the request + /// fails or the response cannot be deserialized as `RESPONSE`. pub async fn exec_get(&self, path: &str) -> ApiClientsResult where RESPONSE: de::DeserializeOwned, @@ -37,6 +43,13 @@ impl Executor { self.exec_get_extra(path, &serde_json::Value::Null, &[]).await } + /// Execute a GET request with serialized query parameters and headers. + /// + /// # Errors + /// + /// Returns [`ApiClientsError`](crate::ApiClientsError) when parameters + /// cannot be serialized, the request fails, or the response cannot be + /// deserialized as `RESPONSE`. pub async fn exec_get_extra( &self, path: &str, @@ -59,7 +72,13 @@ impl Executor { handle_response(request_builder.send().await?).await } - // put params as query string + /// Execute a POST request with parameters encoded in the query string. + /// + /// # Errors + /// + /// Returns [`ApiClientsError`](crate::ApiClientsError) when parameters + /// cannot be serialized, the request fails, or the response cannot be + /// deserialized as `RESPONSE`. pub async fn exec_post_qs( &self, path: &str, @@ -82,7 +101,13 @@ impl Executor { handle_response(request_builder.send().await?).await } - // put params as body in json format + /// Execute a POST request with parameters serialized as a JSON body. + /// + /// # Errors + /// + /// Returns [`ApiClientsError`](crate::ApiClientsError) when parameters + /// cannot be serialized, the request fails, or the response cannot be + /// deserialized as `RESPONSE`. pub async fn exec_post_body( &self, path: &str, diff --git a/core/src/executor/builder.rs b/crates/core/src/executor/builder.rs similarity index 91% rename from core/src/executor/builder.rs rename to crates/core/src/executor/builder.rs index 9ea575f..3da9a0d 100644 --- a/core/src/executor/builder.rs +++ b/crates/core/src/executor/builder.rs @@ -35,6 +35,12 @@ impl Builder { } } + /// Build the configured [`Executor`]. + /// + /// # Errors + /// + /// Returns [`ApiClientsError::Internal`] if the underlying HTTP client + /// cannot be constructed. pub fn build(self) -> ApiClientsResult { let rate_limit = RateLimitMiddleware::new(self.max_rps); let http_client = match self.http_client { diff --git a/core/src/executor/rate_limiter.rs b/crates/core/src/executor/rate_limiter.rs similarity index 100% rename from core/src/executor/rate_limiter.rs rename to crates/core/src/executor/rate_limiter.rs diff --git a/core/src/lib.rs b/crates/core/src/lib.rs similarity index 82% rename from core/src/lib.rs rename to crates/core/src/lib.rs index 90cb906..c466c18 100644 --- a/core/src/lib.rs +++ b/crates/core/src/lib.rs @@ -1,4 +1,5 @@ #![doc = include_str!("../README.md")] +#![warn(missing_docs)] mod errors; mod executor; diff --git a/dedust_api_client/AGENTS.md b/crates/dedust/AGENTS.md similarity index 100% rename from dedust_api_client/AGENTS.md rename to crates/dedust/AGENTS.md diff --git a/dedust_api_client/CHANGELOG.md b/crates/dedust/CHANGELOG.md similarity index 100% rename from dedust_api_client/CHANGELOG.md rename to crates/dedust/CHANGELOG.md diff --git a/dedust_api_client/Cargo.toml b/crates/dedust/Cargo.toml similarity index 94% rename from dedust_api_client/Cargo.toml rename to crates/dedust/Cargo.toml index b183b11..4b1d5f1 100644 --- a/dedust_api_client/Cargo.toml +++ b/crates/dedust/Cargo.toml @@ -1,5 +1,6 @@ [package] edition.workspace = true +rust-version.workspace = true license.workspace = true repository.workspace = true name = "dedust_api_client" diff --git a/dedust_api_client/README.md b/crates/dedust/README.md similarity index 97% rename from dedust_api_client/README.md rename to crates/dedust/README.md index 398d538..373e205 100644 --- a/dedust_api_client/README.md +++ b/crates/dedust/README.md @@ -10,10 +10,12 @@ slippage, execute swaps, or normalize DeDust data into a shared DEX domain model ```toml [dependencies] -dedust_api_client = "0.6" +dedust_api_client = "0.7" tokio = { version = "1", features = ["macros", "rt-multi-thread"] } ``` +The minimum supported Rust version (MSRV) is 1.88. + Run requests inside an async Tokio runtime. Pass request parameter structs directly where `Into` is implemented, and match response enums with a wildcard arm. diff --git a/dedust_api_client/src/api_client.rs b/crates/dedust/src/api_client.rs similarity index 60% rename from dedust_api_client/src/api_client.rs rename to crates/dedust/src/api_client.rs index 95d9d8e..81ef0fb 100644 --- a/dedust_api_client/src/api_client.rs +++ b/crates/dedust/src/api_client.rs @@ -3,14 +3,18 @@ mod builder; use crate::api_client::builder::Builder; use crate::v2::V2ApiClient; +/// Default base URL for DeDust API v2. pub const DEFAULT_API_V2_URL: &str = "https://api.dedust.io/v2"; +/// DeDust service client with a child client for API v2. #[derive(Clone)] #[non_exhaustive] pub struct DedustApiClient { + /// DeDust API v2 execution client. pub v2: V2ApiClient, } impl DedustApiClient { + /// Start configuring a DeDust client with the default v2 endpoint. pub fn builder() -> Builder { Builder::new() } } diff --git a/dedust_api_client/src/api_client/builder.rs b/crates/dedust/src/api_client/builder.rs similarity index 81% rename from dedust_api_client/src/api_client/builder.rs rename to crates/dedust/src/api_client/builder.rs index ef0aee3..81ae29d 100644 --- a/dedust_api_client/src/api_client/builder.rs +++ b/crates/dedust/src/api_client/builder.rs @@ -4,6 +4,7 @@ use api_clients_core::{ApiClientsResult, Executor}; use derive_setters::Setters; use std::sync::Arc; +/// Builder for [`DedustApiClient`]. #[derive(Setters)] #[setters(prefix = "with_", strip_option)] #[non_exhaustive] @@ -20,6 +21,11 @@ impl Builder { } } + /// Build the configured DeDust client. + /// + /// # Errors + /// + /// Returns an error if the shared executor cannot be constructed. pub fn build(self) -> ApiClientsResult { let executor = match self.executor { Some(executor) => executor, diff --git a/crates/dedust/src/lib.rs b/crates/dedust/src/lib.rs new file mode 100644 index 0000000..7557433 --- /dev/null +++ b/crates/dedust/src/lib.rs @@ -0,0 +1,9 @@ +#![doc = include_str!("../README.md")] +#![warn(missing_docs)] + +/// Re-export of the shared executor and error crate used by this client. +pub use api_clients_core; // re-export +/// Top-level DeDust client and builder. +pub mod api_client; +/// DeDust API v2 requests, responses, and wire models. +pub mod v2; diff --git a/dedust_api_client/src/v2.rs b/crates/dedust/src/v2.rs similarity index 81% rename from dedust_api_client/src/v2.rs rename to crates/dedust/src/v2.rs index 518aea6..027c1ba 100644 --- a/dedust_api_client/src/v2.rs +++ b/crates/dedust/src/v2.rs @@ -9,6 +9,7 @@ pub use request::*; pub use response::*; pub use types::*; +/// Executes typed requests against DeDust API v2. #[derive(Clone)] pub struct V2ApiClient { executor: Arc, @@ -17,6 +18,12 @@ pub struct V2ApiClient { impl V2ApiClient { pub(crate) fn new(executor: Arc) -> Self { Self { executor } } + /// Execute a DeDust v2 request and return its matching response variant. + /// + /// # Errors + /// + /// Returns an error when request serialization, transport, status handling, + /// or response deserialization fails. pub async fn exec(&self, request: REQUEST) -> ApiClientsResult where REQUEST: Into, diff --git a/dedust_api_client/src/v2/request.rs b/crates/dedust/src/v2/request.rs similarity index 85% rename from dedust_api_client/src/v2/request.rs rename to crates/dedust/src/v2/request.rs index afa7782..6e8dfeb 100644 --- a/dedust_api_client/src/v2/request.rs +++ b/crates/dedust/src/v2/request.rs @@ -1,3 +1,8 @@ +//! Raw DeDust API v2 request variants and query parameters. +//! +//! Names and fields intentionally mirror the upstream wire contract. +#![allow(missing_docs, reason = "raw request models mirror the upstream API contract")] + use derive_more::From; use derive_setters::Setters; use serde_derive::Serialize; diff --git a/dedust_api_client/src/v2/response.rs b/crates/dedust/src/v2/response.rs similarity index 78% rename from dedust_api_client/src/v2/response.rs rename to crates/dedust/src/v2/response.rs index 0899e45..45f994e 100644 --- a/dedust_api_client/src/v2/response.rs +++ b/crates/dedust/src/v2/response.rs @@ -1,3 +1,8 @@ +//! Raw DeDust API v2 response variants. +//! +//! Names and fields intentionally mirror the upstream wire contract. +#![allow(missing_docs, reason = "raw response models mirror the upstream API contract")] + use crate::v2::types::*; use derive_more::From; use serde_derive::Deserialize; diff --git a/dedust_api_client/src/v2/types.rs b/crates/dedust/src/v2/types.rs similarity index 93% rename from dedust_api_client/src/v2/types.rs rename to crates/dedust/src/v2/types.rs index c44f6fe..775de43 100644 --- a/dedust_api_client/src/v2/types.rs +++ b/crates/dedust/src/v2/types.rs @@ -1,3 +1,8 @@ +//! Raw DeDust API v2 wire types. +//! +//! Names and fields intentionally mirror the upstream response schema. +#![allow(missing_docs, reason = "raw wire types mirror the upstream API contract")] + use derive_setters::Setters; use serde::Deserialize; use serde_derive::Serialize; diff --git a/dedust_api_client/tests/test_api_v2.rs b/crates/dedust/tests/test_api_v2.rs similarity index 100% rename from dedust_api_client/tests/test_api_v2.rs rename to crates/dedust/tests/test_api_v2.rs diff --git a/dedust_api_client/tests/test_construction.rs b/crates/dedust/tests/test_construction.rs similarity index 100% rename from dedust_api_client/tests/test_construction.rs rename to crates/dedust/tests/test_construction.rs diff --git a/stonfi_api_client/AGENTS.md b/crates/stonfi/AGENTS.md similarity index 93% rename from stonfi_api_client/AGENTS.md rename to crates/stonfi/AGENTS.md index eafcd8b..3f8dd59 100644 --- a/stonfi_api_client/AGENTS.md +++ b/crates/stonfi/AGENTS.md @@ -52,9 +52,9 @@ proves the request path, method, params, and response parsing. ## Live API Notes -Tests in `tests/test_api.rs` hit the live STON.fi API. STON.fi asset metadata -and historical transaction fixtures can drift. Verify the live response before -changing client code. +Tests in `tests/test_api_v1.rs` and `tests/test_export.rs` hit the live STON.fi +API. Asset metadata and historical transaction fixtures can drift. Verify the +live response before changing client code. Known recent contract observations: diff --git a/stonfi_api_client/CHANGELOG.md b/crates/stonfi/CHANGELOG.md similarity index 100% rename from stonfi_api_client/CHANGELOG.md rename to crates/stonfi/CHANGELOG.md diff --git a/stonfi_api_client/Cargo.toml b/crates/stonfi/Cargo.toml similarity index 94% rename from stonfi_api_client/Cargo.toml rename to crates/stonfi/Cargo.toml index 804c3a0..62010d5 100644 --- a/stonfi_api_client/Cargo.toml +++ b/crates/stonfi/Cargo.toml @@ -1,5 +1,6 @@ [package] edition.workspace = true +rust-version.workspace = true license.workspace = true repository.workspace = true name = "stonfi_api_client" diff --git a/stonfi_api_client/README.md b/crates/stonfi/README.md similarity index 98% rename from stonfi_api_client/README.md rename to crates/stonfi/README.md index 988ee76..a92e5f0 100644 --- a/stonfi_api_client/README.md +++ b/crates/stonfi/README.md @@ -12,10 +12,12 @@ workflows, persistence, and fallback behavior. ```toml [dependencies] -stonfi_api_client = "0.8" +stonfi_api_client = "0.9" tokio = { version = "1", features = ["macros", "rt-multi-thread"] } ``` +The minimum supported Rust version (MSRV) is 1.88. + Run requests inside an async Tokio runtime. Pass request parameter structs directly where `Into` or `Into` is implemented, and match response enums with a wildcard arm. diff --git a/stonfi_api_client/src/api_client.rs b/crates/stonfi/src/api_client.rs similarity index 56% rename from stonfi_api_client/src/api_client.rs rename to crates/stonfi/src/api_client.rs index 251b0dc..7f0aef2 100644 --- a/stonfi_api_client/src/api_client.rs +++ b/crates/stonfi/src/api_client.rs @@ -3,16 +3,22 @@ mod builder; use crate::api_client::builder::Builder; use crate::export::ExportApiClient; use crate::v1::V1ApiClient; +/// Default STON.fi base URL used for public export feeds. pub const DEFAULT_API_URL: &str = "https://api.ston.fi"; +/// Default base URL for STON.fi API v1. pub const DEFAULT_API_V1_URL: &str = "https://api.ston.fi/v1"; +/// STON.fi service client with API v1 and public export child clients. #[derive(Clone)] #[non_exhaustive] pub struct StonfiApiClient { + /// STON.fi API v1 execution client. pub v1: V1ApiClient, + /// STON.fi public export-feed execution client. pub export: ExportApiClient, } impl StonfiApiClient { + /// Start configuring a STON.fi client with the default endpoints. pub fn builder() -> Builder { Builder::new() } } diff --git a/stonfi_api_client/src/api_client/builder.rs b/crates/stonfi/src/api_client/builder.rs similarity index 87% rename from stonfi_api_client/src/api_client/builder.rs rename to crates/stonfi/src/api_client/builder.rs index 6114ca8..68e56a2 100644 --- a/stonfi_api_client/src/api_client/builder.rs +++ b/crates/stonfi/src/api_client/builder.rs @@ -5,6 +5,7 @@ use api_clients_core::{ApiClientsResult, Executor}; use derive_setters::Setters; use std::sync::Arc; +/// Builder for [`StonfiApiClient`]. #[derive(Setters)] #[setters(prefix = "with_", strip_option)] #[non_exhaustive] @@ -25,6 +26,11 @@ impl Builder { } } + /// Build the configured STON.fi client. + /// + /// # Errors + /// + /// Returns an error if either shared executor cannot be constructed. pub fn build(self) -> ApiClientsResult { let executor = match self.executor { Some(executor) => executor, diff --git a/stonfi_api_client/src/export.rs b/crates/stonfi/src/export.rs similarity index 83% rename from stonfi_api_client/src/export.rs rename to crates/stonfi/src/export.rs index 327dd20..8c5ddd5 100644 --- a/stonfi_api_client/src/export.rs +++ b/crates/stonfi/src/export.rs @@ -9,6 +9,7 @@ pub use request::*; pub use response::*; pub use types::*; +/// Executes typed requests against STON.fi public export feeds. #[derive(Clone)] pub struct ExportApiClient { executor: Arc, @@ -17,6 +18,12 @@ pub struct ExportApiClient { impl ExportApiClient { pub(crate) fn new(executor: Arc) -> Self { Self { executor } } + /// Execute an export-feed request and return its matching response variant. + /// + /// # Errors + /// + /// Returns an error when request serialization, transport, status handling, + /// or response deserialization fails. pub async fn exec(&self, request: REQUEST) -> ApiClientsResult where REQUEST: Into, diff --git a/stonfi_api_client/src/export/request.rs b/crates/stonfi/src/export/request.rs similarity index 80% rename from stonfi_api_client/src/export/request.rs rename to crates/stonfi/src/export/request.rs index a723d93..2de04b3 100644 --- a/stonfi_api_client/src/export/request.rs +++ b/crates/stonfi/src/export/request.rs @@ -1,3 +1,8 @@ +//! Raw STON.fi export request variants and query parameters. +//! +//! Names and fields intentionally mirror the upstream wire contract. +#![allow(missing_docs, reason = "raw request models mirror the upstream API contract")] + use derive_more::From; use derive_setters::Setters; use serde_derive::Serialize; diff --git a/stonfi_api_client/src/export/response.rs b/crates/stonfi/src/export/response.rs similarity index 87% rename from stonfi_api_client/src/export/response.rs rename to crates/stonfi/src/export/response.rs index 3f129ef..8f4a6bd 100644 --- a/stonfi_api_client/src/export/response.rs +++ b/crates/stonfi/src/export/response.rs @@ -1,3 +1,8 @@ +//! Raw STON.fi export response variants. +//! +//! Names and fields intentionally mirror the upstream wire contract. +#![allow(missing_docs, reason = "raw response models mirror the upstream API contract")] + use crate::export::types::{CmcPoolStats, DexscreenerAsset, DexscreenerBlock, DexscreenerEvent, DexscreenerPair}; use derive_more::From; use derive_setters::Setters; diff --git a/stonfi_api_client/src/export/types.rs b/crates/stonfi/src/export/types.rs similarity index 94% rename from stonfi_api_client/src/export/types.rs rename to crates/stonfi/src/export/types.rs index fdb6a80..b5ea8dc 100644 --- a/stonfi_api_client/src/export/types.rs +++ b/crates/stonfi/src/export/types.rs @@ -1,3 +1,8 @@ +//! Raw STON.fi export wire types. +//! +//! Names and fields intentionally mirror the upstream response schema. +#![allow(missing_docs, reason = "raw wire types mirror the upstream API contract")] + use derive_setters::Setters; use serde_derive::Deserialize; diff --git a/crates/stonfi/src/lib.rs b/crates/stonfi/src/lib.rs new file mode 100644 index 0000000..c266d87 --- /dev/null +++ b/crates/stonfi/src/lib.rs @@ -0,0 +1,11 @@ +#![doc = include_str!("../README.md")] +#![warn(missing_docs)] + +/// Re-export of the shared executor and error crate used by this client. +pub use api_clients_core; // re-export +/// Top-level STON.fi client and builder. +pub mod api_client; +/// Public export-feed requests, responses, and wire models. +pub mod export; +/// STON.fi API v1 requests, responses, and wire models. +pub mod v1; diff --git a/stonfi_api_client/src/v1.rs b/crates/stonfi/src/v1.rs similarity index 96% rename from stonfi_api_client/src/v1.rs rename to crates/stonfi/src/v1.rs index bec52cb..aaea3a6 100644 --- a/stonfi_api_client/src/v1.rs +++ b/crates/stonfi/src/v1.rs @@ -9,6 +9,7 @@ pub use request::*; pub use response::*; pub use types::*; +/// Executes typed requests against STON.fi API v1. #[derive(Clone)] pub struct V1ApiClient { executor: Arc, @@ -18,6 +19,12 @@ impl V1ApiClient { pub(crate) fn new(executor: Arc) -> Self { Self { executor } } #[rustfmt::skip] + /// Execute a STON.fi v1 request and return its matching response variant. + /// + /// # Errors + /// + /// Returns an error when request serialization, transport, status handling, + /// or response deserialization fails. pub async fn exec(&self, request: REQUEST) -> ApiClientsResult where REQUEST: Into, diff --git a/stonfi_api_client/src/v1/request.rs b/crates/stonfi/src/v1/request.rs similarity index 98% rename from stonfi_api_client/src/v1/request.rs rename to crates/stonfi/src/v1/request.rs index da96584..c9f0136 100644 --- a/stonfi_api_client/src/v1/request.rs +++ b/crates/stonfi/src/v1/request.rs @@ -1,3 +1,8 @@ +//! Raw STON.fi API v1 request variants and query parameters. +//! +//! Names and fields intentionally mirror the upstream wire contract. +#![allow(missing_docs, reason = "raw request models mirror the upstream API contract")] + use derive_more::From; use derive_setters::Setters; use serde_derive::{Deserialize, Serialize}; diff --git a/stonfi_api_client/src/v1/response.rs b/crates/stonfi/src/v1/response.rs similarity index 97% rename from stonfi_api_client/src/v1/response.rs rename to crates/stonfi/src/v1/response.rs index a831bd4..dce8742 100644 --- a/stonfi_api_client/src/v1/response.rs +++ b/crates/stonfi/src/v1/response.rs @@ -1,3 +1,8 @@ +//! Raw STON.fi API v1 response variants. +//! +//! Names and fields intentionally mirror the upstream wire contract. +#![allow(missing_docs, reason = "raw response models mirror the upstream API contract")] + use crate::v1::request::LiquidityProvisionType; use crate::v1::types::{ Asset, AssetFeeStats, DexStats, Farm, FeeAccrual, FeeWithdrawal, Pool, PoolStats, QueryAsset, Router, diff --git a/stonfi_api_client/src/v1/types.rs b/crates/stonfi/src/v1/types.rs similarity index 99% rename from stonfi_api_client/src/v1/types.rs rename to crates/stonfi/src/v1/types.rs index fca0d24..b5a3f77 100644 --- a/stonfi_api_client/src/v1/types.rs +++ b/crates/stonfi/src/v1/types.rs @@ -1,3 +1,8 @@ +//! Raw STON.fi API v1 wire types. +//! +//! Names and fields intentionally mirror the upstream response schema. +#![allow(missing_docs, reason = "raw wire types mirror the upstream API contract")] + use derive_setters::Setters; use serde_derive::{Deserialize, Serialize}; use std::collections::BTreeMap; diff --git a/stonfi_api_client/tests/test_api_v1.rs b/crates/stonfi/tests/test_api_v1.rs similarity index 100% rename from stonfi_api_client/tests/test_api_v1.rs rename to crates/stonfi/tests/test_api_v1.rs diff --git a/stonfi_api_client/tests/test_export.rs b/crates/stonfi/tests/test_export.rs similarity index 100% rename from stonfi_api_client/tests/test_export.rs rename to crates/stonfi/tests/test_export.rs diff --git a/swap_coffee_api_client/AGENTS.md b/crates/swap_coffee/AGENTS.md similarity index 100% rename from swap_coffee_api_client/AGENTS.md rename to crates/swap_coffee/AGENTS.md diff --git a/swap_coffee_api_client/CHANGELOG.md b/crates/swap_coffee/CHANGELOG.md similarity index 100% rename from swap_coffee_api_client/CHANGELOG.md rename to crates/swap_coffee/CHANGELOG.md diff --git a/swap_coffee_api_client/Cargo.toml b/crates/swap_coffee/Cargo.toml similarity index 94% rename from swap_coffee_api_client/Cargo.toml rename to crates/swap_coffee/Cargo.toml index f764eec..164f677 100644 --- a/swap_coffee_api_client/Cargo.toml +++ b/crates/swap_coffee/Cargo.toml @@ -1,5 +1,6 @@ [package] edition.workspace = true +rust-version.workspace = true license.workspace = true repository.workspace = true name = "swap_coffee_api_client" diff --git a/swap_coffee_api_client/README.md b/crates/swap_coffee/README.md similarity index 95% rename from swap_coffee_api_client/README.md rename to crates/swap_coffee/README.md index eda44ba..6df4cc9 100644 --- a/swap_coffee_api_client/README.md +++ b/crates/swap_coffee/README.md @@ -10,10 +10,12 @@ trade-safety policy; keep those decisions in the application layer. ```toml [dependencies] -swap_coffee_api_client = "0.1" +swap_coffee_api_client = "0.2" tokio = { version = "1", features = ["macros", "rt-multi-thread"] } ``` +The minimum supported Rust version (MSRV) is 1.88. + Run requests inside an async Tokio runtime. Pass request parameter structs directly where `Into` is implemented, and match response enums with a wildcard arm. diff --git a/swap_coffee_api_client/src/api_client.rs b/crates/swap_coffee/src/api_client.rs similarity index 59% rename from swap_coffee_api_client/src/api_client.rs rename to crates/swap_coffee/src/api_client.rs index e493482..9e21d28 100644 --- a/swap_coffee_api_client/src/api_client.rs +++ b/crates/swap_coffee/src/api_client.rs @@ -3,14 +3,18 @@ mod builder; use crate::api_client::builder::Builder; use crate::v1::V1ApiClient; +/// Default base URL for Swap Coffee API v1. pub const DEFAULT_API_V1_URL: &str = "https://backend.swap.coffee/v1"; +/// Swap Coffee service client with a child client for API v1. #[derive(Clone)] #[non_exhaustive] pub struct SwapCoffeeApiClient { + /// Swap Coffee API v1 execution client. pub v1: V1ApiClient, } impl SwapCoffeeApiClient { + /// Start configuring a Swap Coffee client with the default v1 endpoint. pub fn builder() -> Builder { Builder::new() } } diff --git a/swap_coffee_api_client/src/api_client/builder.rs b/crates/swap_coffee/src/api_client/builder.rs similarity index 81% rename from swap_coffee_api_client/src/api_client/builder.rs rename to crates/swap_coffee/src/api_client/builder.rs index c650a88..b2d391b 100644 --- a/swap_coffee_api_client/src/api_client/builder.rs +++ b/crates/swap_coffee/src/api_client/builder.rs @@ -4,6 +4,7 @@ use api_clients_core::{ApiClientsResult, Executor}; use derive_setters::Setters; use std::sync::Arc; +/// Builder for [`SwapCoffeeApiClient`]. #[derive(Setters)] #[setters(prefix = "with_", strip_option)] #[non_exhaustive] @@ -20,6 +21,11 @@ impl Builder { } } + /// Build the configured Swap Coffee client. + /// + /// # Errors + /// + /// Returns an error if the shared executor cannot be constructed. pub fn build(self) -> ApiClientsResult { let executor = match self.executor { Some(executor) => executor, diff --git a/crates/swap_coffee/src/lib.rs b/crates/swap_coffee/src/lib.rs new file mode 100644 index 0000000..558f435 --- /dev/null +++ b/crates/swap_coffee/src/lib.rs @@ -0,0 +1,9 @@ +#![doc = include_str!("../README.md")] +#![warn(missing_docs)] + +/// Re-export of the shared executor and error crate used by this client. +pub use api_clients_core; +/// Top-level Swap Coffee client and builder. +pub mod api_client; +/// Swap Coffee API v1 requests, responses, and wire models. +pub mod v1; diff --git a/swap_coffee_api_client/src/v1.rs b/crates/swap_coffee/src/v1.rs similarity index 73% rename from swap_coffee_api_client/src/v1.rs rename to crates/swap_coffee/src/v1.rs index 600a7cc..7ba40d9 100644 --- a/swap_coffee_api_client/src/v1.rs +++ b/crates/swap_coffee/src/v1.rs @@ -9,6 +9,7 @@ pub use request::*; pub use response::*; pub use types::*; +/// Executes typed requests against Swap Coffee API v1. #[derive(Clone)] pub struct V1ApiClient { executor: Arc, @@ -17,6 +18,12 @@ pub struct V1ApiClient { impl V1ApiClient { pub(crate) fn new(executor: Arc) -> Self { Self { executor } } + /// Execute a Swap Coffee v1 request and return its matching response variant. + /// + /// # Errors + /// + /// Returns an error when request serialization, transport, status handling, + /// or response deserialization fails. pub async fn exec(&self, request: REQUEST) -> ApiClientsResult where REQUEST: Into, diff --git a/swap_coffee_api_client/src/v1/request.rs b/crates/swap_coffee/src/v1/request.rs similarity index 69% rename from swap_coffee_api_client/src/v1/request.rs rename to crates/swap_coffee/src/v1/request.rs index 8d45f16..9ebf89c 100644 --- a/swap_coffee_api_client/src/v1/request.rs +++ b/crates/swap_coffee/src/v1/request.rs @@ -1,3 +1,8 @@ +//! Raw Swap Coffee API v1 request variants and query parameters. +//! +//! Names and fields intentionally mirror the upstream wire contract. +#![allow(missing_docs, reason = "raw request models mirror the upstream API contract")] + use derive_more::From; use derive_setters::Setters; use serde_derive::Serialize; diff --git a/swap_coffee_api_client/src/v1/response.rs b/crates/swap_coffee/src/v1/response.rs similarity index 80% rename from swap_coffee_api_client/src/v1/response.rs rename to crates/swap_coffee/src/v1/response.rs index 752d378..133dc9a 100644 --- a/swap_coffee_api_client/src/v1/response.rs +++ b/crates/swap_coffee/src/v1/response.rs @@ -1,3 +1,8 @@ +//! Raw Swap Coffee API v1 response variants. +//! +//! Names and fields intentionally mirror the upstream wire contract. +#![allow(missing_docs, reason = "raw response models mirror the upstream API contract")] + use crate::v1::types::*; use derive_more::From; use derive_setters::Setters; diff --git a/swap_coffee_api_client/src/v1/types.rs b/crates/swap_coffee/src/v1/types.rs similarity index 92% rename from swap_coffee_api_client/src/v1/types.rs rename to crates/swap_coffee/src/v1/types.rs index 324fc65..ddee071 100644 --- a/swap_coffee_api_client/src/v1/types.rs +++ b/crates/swap_coffee/src/v1/types.rs @@ -1,3 +1,8 @@ +//! Raw Swap Coffee API v1 wire types. +//! +//! Names and fields intentionally mirror the upstream response schema. +#![allow(missing_docs, reason = "raw wire types mirror the upstream API contract")] + use core::str; use derive_setters::Setters; diff --git a/swap_coffee_api_client/tests/test_api_v1.rs b/crates/swap_coffee/tests/test_api_v1.rs similarity index 63% rename from swap_coffee_api_client/tests/test_api_v1.rs rename to crates/swap_coffee/tests/test_api_v1.rs index 3031b55..5958fd9 100644 --- a/swap_coffee_api_client/tests/test_api_v1.rs +++ b/crates/swap_coffee/tests/test_api_v1.rs @@ -1,19 +1,19 @@ use std::vec; -use anyhow::Result; +use anyhow::{Context, Result}; use swap_coffee_api_client::api_client::SwapCoffeeApiClient; use swap_coffee_api_client::unwrap_response; use swap_coffee_api_client::v1::Dexes; use swap_coffee_api_client::v1::V1Request; -fn init_env() -> SwapCoffeeApiClient { +fn init_env() -> Result { let _ = env_logger::builder().filter_level(log::LevelFilter::Debug).try_init(); - SwapCoffeeApiClient::builder().build().unwrap() + Ok(SwapCoffeeApiClient::builder().build()?) } #[tokio::test] async fn test_assets() -> Result<()> { - let client = init_env(); + let client = init_env()?; let request = V1Request::Assets; let response = unwrap_response!(Assets, client.v1.exec(&request).await?)?; assert_ne!(response, vec![]); @@ -22,9 +22,12 @@ async fn test_assets() -> Result<()> { #[tokio::test] async fn test_pools() -> Result<()> { - let client = init_env(); + let client = init_env()?; let response = unwrap_response!(Pools, client.v1.exec(Dexes::new("coffee")).await?)?; - log::debug!("response: {:?}", response[0].pools[0]); - assert_ne!(response[0].pools, vec![]); + let pool = response + .first() + .and_then(|entry| entry.pools.first()) + .context("Swap Coffee response did not include a pool")?; + log::debug!("response: {pool:?}"); Ok(()) } diff --git a/swap_coffee_api_client/tests/test_construction.rs b/crates/swap_coffee/tests/test_construction.rs similarity index 100% rename from swap_coffee_api_client/tests/test_construction.rs rename to crates/swap_coffee/tests/test_construction.rs diff --git a/tonco_api_client/AGENTS.md b/crates/tonco_api_client/AGENTS.md similarity index 94% rename from tonco_api_client/AGENTS.md rename to crates/tonco_api_client/AGENTS.md index 05abb20..965c922 100644 --- a/tonco_api_client/AGENTS.md +++ b/crates/tonco_api_client/AGENTS.md @@ -54,8 +54,8 @@ use tonco_api_client::api_client::ToncoApiClient; #[derive(GraphQLQuery)] #[graphql( - schema_path = "tonco_api_client/src/graphql_schema.json", - query_path = "tonco_api_client/tests/pools.graphql", + schema_path = "crates/tonco_api_client/src/graphql_schema.json", + query_path = "crates/tonco_api_client/tests/pools.graphql", response_derives = "Debug" )] pub struct Pools; diff --git a/tonco_api_client/CHANGELOG.md b/crates/tonco_api_client/CHANGELOG.md similarity index 100% rename from tonco_api_client/CHANGELOG.md rename to crates/tonco_api_client/CHANGELOG.md diff --git a/tonco_api_client/Cargo.toml b/crates/tonco_api_client/Cargo.toml similarity index 94% rename from tonco_api_client/Cargo.toml rename to crates/tonco_api_client/Cargo.toml index 9469b4a..65ed24b 100644 --- a/tonco_api_client/Cargo.toml +++ b/crates/tonco_api_client/Cargo.toml @@ -1,5 +1,6 @@ [package] edition.workspace = true +rust-version.workspace = true license.workspace = true repository.workspace = true name = "tonco_api_client" diff --git a/tonco_api_client/README.md b/crates/tonco_api_client/README.md similarity index 97% rename from tonco_api_client/README.md rename to crates/tonco_api_client/README.md index 222eace..a6a82ac 100644 --- a/tonco_api_client/README.md +++ b/crates/tonco_api_client/README.md @@ -12,11 +12,13 @@ swap APIs. ```toml [dependencies] -tonco_api_client = "0.1" +tonco_api_client = "0.2" serde = { version = "1", features = ["derive"] } tokio = { version = "1", features = ["macros", "rt-multi-thread"] } ``` +The minimum supported Rust version (MSRV) is 1.88. + Run requests inside an async Tokio runtime. `client.graphql.exec` sends the `x-apollo-operation-name` header, unwraps GraphQL `data`, and maps GraphQL `errors` or missing `data` to `ApiClientsError::UnexpectedResponse`. diff --git a/tonco_api_client/src/api_client.rs b/crates/tonco_api_client/src/api_client.rs similarity index 60% rename from tonco_api_client/src/api_client.rs rename to crates/tonco_api_client/src/api_client.rs index b06f601..8b80126 100644 --- a/tonco_api_client/src/api_client.rs +++ b/crates/tonco_api_client/src/api_client.rs @@ -3,14 +3,18 @@ mod builder; use crate::api_client::builder::Builder; use crate::graphql::GraphqlApiClient; +/// Default Tonco Indexer GraphQL endpoint. pub static DEFAULT_GRAPHQL_ENDPOINT: &str = "https://indexer.tonco.io"; +/// Tonco service client with a low-level GraphQL child client. #[derive(Clone)] #[non_exhaustive] pub struct ToncoApiClient { + /// Tonco GraphQL execution client. pub graphql: GraphqlApiClient, } impl ToncoApiClient { + /// Start configuring a Tonco client with the default GraphQL endpoint. pub fn builder() -> Builder { Builder::new() } } diff --git a/tonco_api_client/src/api_client/builder.rs b/crates/tonco_api_client/src/api_client/builder.rs similarity index 82% rename from tonco_api_client/src/api_client/builder.rs rename to crates/tonco_api_client/src/api_client/builder.rs index 0910c26..92b49b2 100644 --- a/tonco_api_client/src/api_client/builder.rs +++ b/crates/tonco_api_client/src/api_client/builder.rs @@ -4,6 +4,7 @@ use api_clients_core::{ApiClientsResult, Executor}; use derive_setters::Setters; use std::sync::Arc; +/// Builder for [`ToncoApiClient`]. #[derive(Setters)] #[setters(prefix = "with_", strip_option)] #[non_exhaustive] @@ -20,6 +21,11 @@ impl Builder { } } + /// Build the configured Tonco client. + /// + /// # Errors + /// + /// Returns an error if the shared executor cannot be constructed. pub fn build(self) -> ApiClientsResult { let executor = match self.executor { Some(executor) => executor, diff --git a/tonco_api_client/src/graphql.rs b/crates/tonco_api_client/src/graphql.rs similarity index 74% rename from tonco_api_client/src/graphql.rs rename to crates/tonco_api_client/src/graphql.rs index 0a8a349..b186797 100644 --- a/tonco_api_client/src/graphql.rs +++ b/crates/tonco_api_client/src/graphql.rs @@ -3,6 +3,7 @@ use graphql_client::Response; use serde::{de, ser}; use std::sync::Arc; +/// Executes caller-provided GraphQL operations against the Tonco Indexer. #[derive(Clone)] pub struct GraphqlApiClient { executor: Arc, @@ -11,6 +12,15 @@ pub struct GraphqlApiClient { impl GraphqlApiClient { pub(crate) fn new(executor: Arc) -> Self { Self { executor } } + /// Execute a serialized GraphQL request and extract its `data` payload. + /// + /// The operation name is sent through the `x-apollo-operation-name` header. + /// + /// # Errors + /// + /// Returns an error when serialization or transport fails, when GraphQL + /// returns errors, when `data` is absent, or when the payload cannot be + /// deserialized as `RSP`. pub async fn exec(&self, op_name: &str, graphql_query: &PARAMS) -> ApiClientsResult where PARAMS: ser::Serialize, diff --git a/tonco_api_client/src/graphql_schema.json b/crates/tonco_api_client/src/graphql_schema.json similarity index 100% rename from tonco_api_client/src/graphql_schema.json rename to crates/tonco_api_client/src/graphql_schema.json diff --git a/crates/tonco_api_client/src/lib.rs b/crates/tonco_api_client/src/lib.rs new file mode 100644 index 0000000..9072404 --- /dev/null +++ b/crates/tonco_api_client/src/lib.rs @@ -0,0 +1,7 @@ +#![doc = include_str!("../README.md")] +#![warn(missing_docs)] + +/// Top-level Tonco client and builder. +pub mod api_client; +/// Low-level GraphQL execution client. +pub mod graphql; diff --git a/tonco_api_client/tests/pools.graphql b/crates/tonco_api_client/tests/pools.graphql similarity index 100% rename from tonco_api_client/tests/pools.graphql rename to crates/tonco_api_client/tests/pools.graphql diff --git a/tonco_api_client/tests/test_construction.rs b/crates/tonco_api_client/tests/test_construction.rs similarity index 100% rename from tonco_api_client/tests/test_construction.rs rename to crates/tonco_api_client/tests/test_construction.rs diff --git a/tonco_api_client/tests/test_graphql.rs b/crates/tonco_api_client/tests/test_graphql.rs similarity index 75% rename from tonco_api_client/tests/test_graphql.rs rename to crates/tonco_api_client/tests/test_graphql.rs index e2f965f..8b04771 100644 --- a/tonco_api_client/tests/test_graphql.rs +++ b/crates/tonco_api_client/tests/test_graphql.rs @@ -1,9 +1,10 @@ +use anyhow::Context; use graphql_client::GraphQLQuery; use tonco_api_client::api_client::ToncoApiClient; -fn init_env() -> ToncoApiClient { +fn init_env() -> anyhow::Result { let _ = env_logger::builder().filter_level(log::LevelFilter::Debug).try_init(); - ToncoApiClient::builder().build().unwrap() + Ok(ToncoApiClient::builder().build()?) } // Use the following commands to update `graphql_schema.json`: @@ -20,12 +21,11 @@ pub struct Pools; // example of using graphql_client to generate query #[tokio::test] async fn test_tonco_pools() -> anyhow::Result<()> { - let client = init_env(); + let client = init_env()?; let query = Pools::build_query(pools::Variables); let response: pools::ResponseData = client.graphql.exec(pools::OPERATION_NAME, &query).await?; - assert!(response.pools.is_some()); - let pools = response.pools.unwrap(); + let pools = response.pools.context("Tonco response did not include pools")?; assert!(!pools.is_empty()); - assert!(pools[0].is_some()); + assert!(pools.first().is_some_and(Option::is_some)); Ok(()) } diff --git a/dedust_api_client/src/lib.rs b/dedust_api_client/src/lib.rs deleted file mode 100644 index a9c284c..0000000 --- a/dedust_api_client/src/lib.rs +++ /dev/null @@ -1,5 +0,0 @@ -#![doc = include_str!("../README.md")] - -pub use api_clients_core; // re-export -pub mod api_client; -pub mod v2; diff --git a/deny.toml b/deny.toml new file mode 100644 index 0000000..3835eab --- /dev/null +++ b/deny.toml @@ -0,0 +1,26 @@ +[graph] +all-features = true + +[advisories] +ignore = [] + +[licenses] +allow = [ + "Apache-2.0", + "BSD-3-Clause", + "CDLA-Permissive-2.0", + "ISC", + "MIT", + "Unicode-3.0", +] +confidence-threshold = 0.8 + +[bans] +multiple-versions = "allow" +wildcards = "deny" + +[sources] +unknown-registry = "deny" +unknown-git = "deny" +allow-registry = ["https://github.com/rust-lang/crates.io-index"] +allow-git = [] diff --git a/stonfi_api_client/src/lib.rs b/stonfi_api_client/src/lib.rs deleted file mode 100644 index 7047933..0000000 --- a/stonfi_api_client/src/lib.rs +++ /dev/null @@ -1,6 +0,0 @@ -#![doc = include_str!("../README.md")] - -pub use api_clients_core; // re-export -pub mod api_client; -pub mod export; -pub mod v1; diff --git a/swap_coffee_api_client/src/lib.rs b/swap_coffee_api_client/src/lib.rs deleted file mode 100644 index 65027a5..0000000 --- a/swap_coffee_api_client/src/lib.rs +++ /dev/null @@ -1,5 +0,0 @@ -#![doc = include_str!("../README.md")] - -pub use api_clients_core; -pub mod api_client; -pub mod v1; diff --git a/tonco_api_client/src/lib.rs b/tonco_api_client/src/lib.rs deleted file mode 100644 index a17ea08..0000000 --- a/tonco_api_client/src/lib.rs +++ /dev/null @@ -1,4 +0,0 @@ -#![doc = include_str!("../README.md")] - -pub mod api_client; -pub mod graphql;