reqwest_dav-0.3.3/.cargo_vcs_info.json0000644000000001360000000000100133630ustar { "git": { "sha1": "e38eb74b7e32c9a57a1c405178b3f62992ad4d01" }, "path_in_vcs": "" }reqwest_dav-0.3.3/.github/workflows/rust.yml000064400000000000000000000004141046102023000172670ustar 00000000000000name: Rust on: push: branches: [ "master" ] pull_request: branches: [ "master" ] env: CARGO_TERM_COLOR: always jobs: build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - name: Run check run: cargo check --verbose reqwest_dav-0.3.3/.gitignore000064400000000000000000000000541046102023000141420ustar 00000000000000/target /Cargo.lock .idea/ *.iml .vscode/ reqwest_dav-0.3.3/Cargo.lock0000644000002011770000000000100113460ustar # This file is automatically @generated by Cargo. # It is not intended for manual editing. version = 4 [[package]] name = "aho-corasick" version = "1.1.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ddd31a130427c27518df266943a5308ed92d4b226cc639f5a8f1002816174301" dependencies = [ "memchr", ] [[package]] name = "android_system_properties" version = "0.1.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "819e7219dbd41043ac279b19830f2efc897156490d7fd6ea916720117ee66311" dependencies = [ "libc", ] [[package]] name = "anyhow" version = "1.0.102" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7f202df86484c868dbad7eaa557ef785d5c66295e41b460ef922eca0723b842c" [[package]] name = "assert-json-diff" version = "2.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "47e4f2b81832e72834d7518d8487a0396a28cc408186a2e8854c0f98011faf12" dependencies = [ "serde", "serde_json", ] [[package]] name = "async-trait" version = "0.1.89" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9035ad2d096bed7955a320ee7e2230574d28fd3c3a0f186cbea1ff3c7eed5dbb" dependencies = [ "proc-macro2", "quote", "syn", ] [[package]] name = "atomic-waker" version = "1.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1505bd5d3d116872e7271a6d4e16d81d0c8570876c8de68093a09ac269d8aac0" [[package]] name = "autocfg" version = "1.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c08606f8c3cbf4ce6ec8e28fb0014a2c086708fe954eaa885384a6165172e7e8" [[package]] name = "aws-lc-rs" version = "1.16.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d9a7b350e3bb1767102698302bc37256cbd48422809984b98d292c40e2579aa9" dependencies = [ "aws-lc-sys", "zeroize", ] [[package]] name = "aws-lc-sys" version = "0.37.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b092fe214090261288111db7a2b2c2118e5a7f30dc2569f1732c4069a6840549" dependencies = [ "cc", "cmake", "dunce", "fs_extra", ] [[package]] name = "base64" version = "0.22.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "72b3254f16251a8381aa12e40e3c4d2f0199f8c6508fbecb9d91f575e0fbb8c6" [[package]] name = "bitflags" version = "2.11.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "843867be96c8daad0d758b57df9392b6d8d271134fce549de6ce169ff98a92af" [[package]] name = "block-buffer" version = "0.10.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3078c7629b62d3f0439517fa394996acacc5cbc91c5a20d8c658e77abd503a71" dependencies = [ "generic-array", ] [[package]] name = "bumpalo" version = "3.20.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5d20789868f4b01b2f2caec9f5c4e0213b41e3e5702a50157d699ae31ced2fcb" [[package]] name = "bytes" version = "1.11.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1e748733b7cbc798e1434b6ac524f0c1ff2ab456fe201501e6497c8417a4fc33" [[package]] name = "cc" version = "1.2.56" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "aebf35691d1bfb0ac386a69bac2fde4dd276fb618cf8bf4f5318fe285e821bb2" dependencies = [ "find-msvc-tools", "jobserver", "libc", "shlex", ] [[package]] name = "cesu8" version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6d43a04d8753f35258c91f8ec639f792891f748a1edbd759cf1dcea3382ad83c" [[package]] name = "cfg-if" 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 = "613afe47fcd5fac7ccf1db93babcb082c5994d996f20b8b159f2ad1658eb5724" [[package]] name = "chrono" version = "0.4.44" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c673075a2e0e5f4a1dde27ce9dee1ea4558c7ffe648f576438a20ca1d2acc4b0" dependencies = [ "iana-time-zone", "js-sys", "num-traits", "serde", "wasm-bindgen", "windows-link", ] [[package]] name = "cmake" version = "0.1.57" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "75443c44cd6b379beb8c5b45d85d0773baf31cce901fe7bb252f4eff3008ef7d" dependencies = [ "cc", ] [[package]] name = "combine" version = "4.6.7" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ba5a308b75df32fe02788e748662718f03fde005016435c444eea572398219fd" dependencies = [ "bytes", "memchr", ] [[package]] name = "core-foundation" version = "0.9.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "91e195e091a93c46f7102ec7818a2aa394e1e1771c3ab4825963fa03e45afb8f" dependencies = [ "core-foundation-sys", "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.2.17" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "59ed5838eebb26a2bb2e58f6d5b5316989ae9d08bab10e0e6d103e656d1b0280" dependencies = [ "libc", ] [[package]] name = "crypto-common" version = "0.1.7" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "78c8292055d1c1df0cce5d180393dc8cce0abec0a7102adb6c7b1eef6016d60a" dependencies = [ "generic-array", "typenum", ] [[package]] name = "deadpool" version = "0.12.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0be2b1d1d6ec8d846f05e137292d0b89133caf95ef33695424c09568bdd39b1b" dependencies = [ "deadpool-runtime", "lazy_static", "num_cpus", "tokio", ] [[package]] name = "deadpool-runtime" version = "0.1.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "092966b41edc516079bdf31ec78a2e0588d1d0c08f78b91d8307215928642b2b" [[package]] name = "digest" version = "0.10.7" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9ed9a281f7bc9b7576e61468ba615a66a5c8cfdff42420a70aa82701a3b1e292" dependencies = [ "block-buffer", "crypto-common", ] [[package]] name = "digest_auth" version = "0.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3054f4e81d395e50822796c5e99ca522e6ba7be98947d6d4b0e5e61640bdb894" dependencies = [ "digest", "hex", "md-5", "rand 0.8.5", "sha2", ] [[package]] name = "displaydoc" version = "0.2.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "97369cbbc041bc366949bc74d34658d6cda5621039731c6310521892a3a20ae0" dependencies = [ "proc-macro2", "quote", "syn", ] [[package]] name = "dunce" version = "1.0.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "92773504d58c093f6de2459af4af33faa518c13451eb8f2b5698ed3d36e7c813" [[package]] name = "encoding_rs" version = "0.8.35" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "75030f3c4f45dafd7586dd6780965a8c7e8e285a5ecb86713e63a79c5b2766f3" dependencies = [ "cfg-if", ] [[package]] name = "equivalent" version = "1.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "877a4ace8713b0bcf2a4e7eec82529c029f1d0619886d18145fea96c3ffe5c0f" [[package]] name = "errno" version = "0.3.14" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "39cab71617ae0d63f51a36d69f866391735b51691dbda63cf6f96d042b63efeb" dependencies = [ "libc", "windows-sys 0.61.2", ] [[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.9" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5baebc0774151f905a1a2cc41989300b1e6fbb29aff0ceffa1064fdd3088d582" [[package]] name = "fnv" version = "1.0.7" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1" [[package]] name = "foldhash" version = "0.1.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d9c4f5dac5e15c24eb999c26181a6ca40b39fe946cbe4c263c7209467bc83af2" [[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" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "cb4cb245038516f5f85277875cdaa4f7d2c9a0fa0468de06ed190163b1581fcf" 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.32" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8b147ee9d1f6d097cef9ce628cd2ee62288d963e16fb287bd9286455b241382d" dependencies = [ "futures-channel", "futures-core", "futures-executor", "futures-io", "futures-sink", "futures-task", "futures-util", ] [[package]] name = "futures-channel" version = "0.3.32" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "07bbe89c50d7a535e539b8c17bc0b49bdb77747034daa8087407d655f3f7cc1d" dependencies = [ "futures-core", "futures-sink", ] [[package]] name = "futures-core" version = "0.3.32" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7e3450815272ef58cec6d564423f6e755e25379b217b0bc688e295ba24df6b1d" [[package]] name = "futures-executor" version = "0.3.32" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "baf29c38818342a3b26b5b923639e7b1f4a61fc5e76102d4b1981c6dc7a7579d" dependencies = [ "futures-core", "futures-task", "futures-util", ] [[package]] name = "futures-io" version = "0.3.32" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "cecba35d7ad927e23624b22ad55235f2239cfa44fd10428eecbeba6d6a717718" [[package]] name = "futures-macro" version = "0.3.32" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e835b70203e41293343137df5c0664546da5745f82ec9b84d40be8336958447b" dependencies = [ "proc-macro2", "quote", "syn", ] [[package]] name = "futures-sink" version = "0.3.32" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c39754e157331b013978ec91992bde1ac089843443c49cbc7f46150b0fad0893" [[package]] name = "futures-task" version = "0.3.32" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "037711b3d59c33004d3856fbdc83b99d4ff37a24768fa1be9ce3538a1cde4393" [[package]] name = "futures-util" version = "0.3.32" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "389ca41296e6190b48053de0321d02a77f32f8a5d2461dd38762c0593805c6d6" dependencies = [ "futures-channel", "futures-core", "futures-io", "futures-macro", "futures-sink", "futures-task", "memchr", "pin-project-lite", "slab", ] [[package]] name = "generic-array" version = "0.14.7" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "85649ca51fd72272d7821adaf274ad91c288277713d9c18820d8499a7ff69e9a" dependencies = [ "typenum", "version_check", ] [[package]] name = "getrandom" version = "0.2.17" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ff2abc00be7fca6ebc474524697ae276ad847ad0a6b3faa4bcb027e9a4614ad0" dependencies = [ "cfg-if", "js-sys", "libc", "wasi", "wasm-bindgen", ] [[package]] name = "getrandom" version = "0.3.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "899def5c37c4fd7b2664648c28120ecec138e4d395b459e5ca34f9cce2dd77fd" dependencies = [ "cfg-if", "js-sys", "libc", "r-efi", "wasip2", "wasm-bindgen", ] [[package]] name = "getrandom" version = "0.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "139ef39800118c7683f2fd3c98c1b23c09ae076556b435f8e9064ae108aaeeec" dependencies = [ "cfg-if", "libc", "r-efi", "wasip2", "wasip3", ] [[package]] name = "h2" version = "0.4.13" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2f44da3a8150a6703ed5d34e164b875fd14c2cdab9af1252a9a1020bde2bdc54" dependencies = [ "atomic-waker", "bytes", "fnv", "futures-core", "futures-sink", "http", "indexmap", "slab", "tokio", "tokio-util", "tracing", ] [[package]] name = "hashbrown" version = "0.15.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9229cfe53dfd69f0609a49f65461bd93001ea1ef889cd5529dd176593f5338a1" dependencies = [ "foldhash", ] [[package]] name = "hashbrown" version = "0.16.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "841d1cc9bed7f9236f321df977030373f4a4163ae1a7dbfe1a51a2c1a51d9100" [[package]] name = "heck" version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea" [[package]] name = "hermit-abi" version = "0.5.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "fc0fef456e4baa96da950455cd02c081ca953b141298e41db3fc7e36b1da849c" [[package]] name = "hex" version = "0.4.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70" [[package]] name = "http" version = "1.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e3ba2a386d7f85a81f119ad7498ebe444d2e22c2af0b86b069416ace48b3311a" dependencies = [ "bytes", "itoa", ] [[package]] name = "http-body" version = "1.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1efedce1fb8e6913f23e0c92de8e62cd5b772a67e7b3946df930a62566c93184" dependencies = [ "bytes", "http", ] [[package]] name = "http-body-util" version = "0.1.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b021d93e26becf5dc7e1b75b1bed1fd93124b374ceb73f43d4d4eafec896a64a" dependencies = [ "bytes", "futures-core", "http", "http-body", "pin-project-lite", ] [[package]] name = "httparse" version = "1.10.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6dbf3de79e51f3d586ab4cb9d5c3e2c14aa28ed23d180cf89b4df0454a69cc87" [[package]] name = "httpdate" version = "1.0.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "df3b46402a9d5adb4c86a0cf463f42e19994e3ee891101b1841f30a545cb49a9" [[package]] name = "hyper" version = "1.8.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2ab2d4f250c3d7b1c9fcdff1cece94ea4e2dfbec68614f7b87cb205f24ca9d11" dependencies = [ "atomic-waker", "bytes", "futures-channel", "futures-core", "h2", "http", "http-body", "httparse", "httpdate", "itoa", "pin-project-lite", "pin-utils", "smallvec", "tokio", "want", ] [[package]] name = "hyper-rustls" version = "0.27.7" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e3c93eb611681b207e1fe55d5a71ecf91572ec8a6705cdb6857f7d8d5242cf58" 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.20" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "96547c2556ec9d12fb1578c4eaf448b04993e7fb79cbaad930a656880a6bdfa0" dependencies = [ "base64", "bytes", "futures-channel", "futures-util", "http", "http-body", "hyper", "ipnet", "libc", "percent-encoding", "pin-project-lite", "socket2", "system-configuration", "tokio", "tower-service", "tracing", "windows-registry", ] [[package]] name = "iana-time-zone" version = "0.1.65" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e31bc9ad994ba00e440a8aa5c9ef0ec67d5cb5e5cb0cc7f8b744a35b389cc470" dependencies = [ "android_system_properties", "core-foundation-sys", "iana-time-zone-haiku", "js-sys", "log", "wasm-bindgen", "windows-core", ] [[package]] name = "iana-time-zone-haiku" version = "0.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f31827a206f56af32e590ba56d5d2d085f558508192593743f16b2306495269f" dependencies = [ "cc", ] [[package]] name = "icu_collections" version = "2.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4c6b649701667bbe825c3b7e6388cb521c23d88644678e83c0c4d0a621a34b43" dependencies = [ "displaydoc", "potential_utf", "yoke", "zerofrom", "zerovec", ] [[package]] name = "icu_locale_core" version = "2.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "edba7861004dd3714265b4db54a3c390e880ab658fec5f7db895fae2046b5bb6" dependencies = [ "displaydoc", "litemap", "tinystr", "writeable", "zerovec", ] [[package]] name = "icu_normalizer" version = "2.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5f6c8828b67bf8908d82127b2054ea1b4427ff0230ee9141c54251934ab1b599" dependencies = [ "icu_collections", "icu_normalizer_data", "icu_properties", "icu_provider", "smallvec", "zerovec", ] [[package]] name = "icu_normalizer_data" version = "2.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7aedcccd01fc5fe81e6b489c15b247b8b0690feb23304303a9e560f37efc560a" [[package]] name = "icu_properties" version = "2.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "020bfc02fe870ec3a66d93e677ccca0562506e5872c650f893269e08615d74ec" dependencies = [ "icu_collections", "icu_locale_core", "icu_properties_data", "icu_provider", "zerotrie", "zerovec", ] [[package]] name = "icu_properties_data" version = "2.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "616c294cf8d725c6afcd8f55abc17c56464ef6211f9ed59cccffe534129c77af" [[package]] name = "icu_provider" version = "2.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "85962cf0ce02e1e0a629cc34e7ca3e373ce20dda4c4d7294bbd0bf1fdb59e614" dependencies = [ "displaydoc", "icu_locale_core", "writeable", "yoke", "zerofrom", "zerotrie", "zerovec", ] [[package]] name = "id-arena" version = "2.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3d3067d79b975e8844ca9eb072e16b31c3c1c36928edf9c6789548c524d0d954" [[package]] name = "idna" version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3b0875f23caa03898994f6ddc501886a45c7d3d62d04d2d90788d47be1b1e4de" dependencies = [ "idna_adapter", "smallvec", "utf8_iter", ] [[package]] name = "idna_adapter" version = "1.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3acae9609540aa318d1bc588455225fb2085b9ed0c4f6bd0d9d5bcd86f1a0344" dependencies = [ "icu_normalizer", "icu_properties", ] [[package]] name = "indexmap" version = "2.13.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7714e70437a7dc3ac8eb7e6f8df75fd8eb422675fc7678aff7364301092b1017" dependencies = [ "equivalent", "hashbrown 0.16.1", "serde", "serde_core", ] [[package]] name = "ipnet" version = "2.11.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "469fb0b9cefa57e3ef31275ee7cacb78f2fdca44e4765491884a2b119d4eb130" [[package]] name = "iri-string" version = "0.7.10" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c91338f0783edbd6195decb37bae672fd3b165faffb89bf7b9e6942f8b1a731a" dependencies = [ "memchr", "serde", ] [[package]] name = "itoa" version = "1.0.17" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "92ecc6618181def0457392ccd0ee51198e065e016d1d527a7ac1b6dc7c1f09d2" [[package]] name = "jni" version = "0.21.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1a87aa2bb7d2af34197c04845522473242e1aa17c12f4935d5856491a7fb8c97" dependencies = [ "cesu8", "cfg-if", "combine", "jni-sys", "log", "thiserror 1.0.69", "walkdir", "windows-sys 0.45.0", ] [[package]] name = "jni-sys" version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8eaf4bc02d17cbdd7ff4c7438cafcdf7fb9a4613313ad11b4f8fefe7d3fa0130" [[package]] name = "jobserver" version = "0.1.34" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9afb3de4395d6b3e67a780b6de64b51c978ecf11cb9a462c66be7d4ca9039d33" dependencies = [ "getrandom 0.3.4", "libc", ] [[package]] name = "js-sys" version = "0.3.91" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b49715b7073f385ba4bc528e5747d02e66cb39c6146efb66b781f131f0fb399c" dependencies = [ "once_cell", "wasm-bindgen", ] [[package]] name = "lazy_static" version = "1.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bbd2bcb4c963f2ddae06a2efc7e9f3591312473c50c6685e1f298068316e66fe" [[package]] name = "leb128fmt" version = "0.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "09edd9e8b54e49e587e4f6295a7d29c3ea94d469cb40ab8ca70b288248a81db2" [[package]] name = "libc" version = "0.2.182" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6800badb6cb2082ffd7b6a67e6125bb39f18782f793520caee8cb8846be06112" [[package]] name = "linux-raw-sys" version = "0.12.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "32a66949e030da00e8c7d4434b251670a91556f4144941d37452769c25d58a53" [[package]] name = "litemap" version = "0.8.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6373607a59f0be73a39b6fe456b8192fcc3585f602af20751600e974dd455e77" [[package]] name = "log" version = "0.4.29" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5e5032e24019045c762d3c0f28f5b6b8bbf38563a65908389bf7978758920897" [[package]] name = "lru-slab" version = "0.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "112b39cec0b298b6c1999fee3e31427f74f676e4cb9879ed1a121b43661a4154" [[package]] name = "md-5" version = "0.10.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d89e7ee0cfbedfc4da3340218492196241d89eefb6dab27de5df917a6d2e78cf" dependencies = [ "cfg-if", "digest", ] [[package]] name = "memchr" version = "2.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f8ca58f447f06ed17d5fc4043ce1b10dd205e060fb3ce5b979b8ed8e59ff3f79" [[package]] name = "mime" version = "0.3.17" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6877bb514081ee2a7ff5ef9de3281f14a4dd4bceac4c09388074a6b5df8a139a" [[package]] name = "mio" version = "1.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a69bcab0ad47271a0234d9422b131806bf3968021e5dc9328caf2d4cd58557fc" dependencies = [ "libc", "wasi", "windows-sys 0.61.2", ] [[package]] name = "native-tls" version = "0.2.18" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "465500e14ea162429d264d44189adc38b199b62b1c21eea9f69e4b73cb03bbf2" dependencies = [ "libc", "log", "openssl", "openssl-probe", "openssl-sys", "schannel", "security-framework", "security-framework-sys", "tempfile", ] [[package]] name = "num-traits" version = "0.2.19" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841" dependencies = [ "autocfg", ] [[package]] name = "num_cpus" version = "1.17.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "91df4bbde75afed763b708b7eee1e8e7651e02d97f6d5dd763e89367e957b23b" dependencies = [ "hermit-abi", "libc", ] [[package]] name = "once_cell" version = "1.21.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "42f5e15c9953c5e4ccceeb2e7382a716482c34515315f7b03532b8b4e8393d2d" [[package]] name = "openssl" version = "0.10.75" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "08838db121398ad17ab8531ce9de97b244589089e290a384c900cb9ff7434328" dependencies = [ "bitflags", "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", ] [[package]] name = "openssl-probe" version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7c87def4c32ab89d880effc9e097653c8da5d6ef28e6b539d313baaacfbafcbe" [[package]] name = "openssl-sys" version = "0.9.111" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "82cab2d520aa75e3c58898289429321eb788c3106963d0dc886ec7a5f4adc321" dependencies = [ "cc", "libc", "pkg-config", "vcpkg", ] [[package]] name = "percent-encoding" version = "2.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9b4f627cb1b25917193a259e49bdad08f671f8d9708acfd5fe0a8c1455d87220" [[package]] name = "pin-project-lite" version = "0.2.17" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a89322df9ebe1c1578d689c92318e070967d1042b512afbe49518723f4e6d5cd" [[package]] name = "pin-utils" version = "0.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8b870d8c151b6f2fb93e84a13146138f05d02ed11c7e7c54f8826aaaf7c9f184" [[package]] name = "pkg-config" version = "0.3.32" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7edddbd0b52d732b21ad9a5fab5c704c14cd949e5e9a1ec5929a24fded1b904c" [[package]] name = "potential_utf" version = "0.1.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b73949432f5e2a09657003c25bca5e19a0e9c84f8058ca374f49e0ebe605af77" dependencies = [ "zerovec", ] [[package]] name = "ppv-lite86" version = "0.2.21" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "85eae3c4ed2f50dcfe72643da4befc30deadb458a9b590d720cde2f2b1e97da9" dependencies = [ "zerocopy", ] [[package]] name = "prettyplease" version = "0.2.37" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "479ca8adacdd7ce8f1fb39ce9ecccbfe93a3f1344b3d0d97f20bc0196208f62b" dependencies = [ "proc-macro2", "syn", ] [[package]] name = "proc-macro2" version = "1.0.106" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8fd00f0bb2e90d81d1044c2b32617f68fcb9fa3bb7640c23e9c748e53fb30934" dependencies = [ "unicode-ident", ] [[package]] name = "quinn" version = "0.11.9" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b9e20a958963c291dc322d98411f541009df2ced7b5a4f2bd52337638cfccf20" dependencies = [ "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.13" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f1906b49b0c3bc04b5fe5d86a77925ae6524a19b816ae38ce1e426255f1d8a31" dependencies = [ "aws-lc-rs", "bytes", "getrandom 0.3.4", "lru-slab", "rand 0.9.2", "ring", "rustc-hash", "rustls", "rustls-pki-types", "slab", "thiserror 2.0.18", "tinyvec", "tracing", "web-time", ] [[package]] name = "quinn-udp" version = "0.5.14" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "addec6a0dcad8a8d96a771f815f0eaf55f9d1805756410b39f5fa81332574cbd" dependencies = [ "cfg_aliases", "libc", "once_cell", "socket2", "tracing", "windows-sys 0.60.2", ] [[package]] name = "quote" version = "1.0.44" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "21b2ebcf727b7760c461f091f9f0f539b77b8e87f2fd88131e7f1b433b3cece4" dependencies = [ "proc-macro2", ] [[package]] name = "r-efi" version = "5.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "69cdb34c158ceb288df11e18b4bd39de994f6657d83847bdffdbd7f346754b0f" [[package]] name = "rand" version = "0.8.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "34af8d1a0e25924bc5b7c43c079c942339d8f0a8b57c39049bef581b46327404" dependencies = [ "libc", "rand_chacha 0.3.1", "rand_core 0.6.4", ] [[package]] name = "rand" version = "0.9.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6db2770f06117d490610c7488547d543617b21bfa07796d7a12f6f1bd53850d1" dependencies = [ "rand_chacha 0.9.0", "rand_core 0.9.5", ] [[package]] name = "rand_chacha" version = "0.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e6c10a63a0fa32252be49d21e7709d4d4baf8d231c2dbce1eaa8141b9b127d88" dependencies = [ "ppv-lite86", "rand_core 0.6.4", ] [[package]] name = "rand_chacha" version = "0.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d3022b5f1df60f26e1ffddd6c66e8aa15de382ae63b3a0c1bfc0e4d3e3f325cb" dependencies = [ "ppv-lite86", "rand_core 0.9.5", ] [[package]] name = "rand_core" version = "0.6.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c" dependencies = [ "getrandom 0.2.17", ] [[package]] name = "rand_core" version = "0.9.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "76afc826de14238e6e8c374ddcc1fa19e374fd8dd986b0d2af0d02377261d83c" dependencies = [ "getrandom 0.3.4", ] [[package]] name = "regex" version = "1.12.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e10754a14b9137dd7b1e3e5b0493cc9171fdd105e0ab477f51b72e7f3ac0e276" dependencies = [ "aho-corasick", "memchr", "regex-automata", "regex-syntax", ] [[package]] name = "regex-automata" version = "0.4.14" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6e1dd4122fc1595e8162618945476892eefca7b88c52820e74af6262213cae8f" dependencies = [ "aho-corasick", "memchr", "regex-syntax", ] [[package]] name = "regex-syntax" version = "0.8.10" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "dc897dd8d9e8bd1ed8cdad82b5966c3e0ecae09fb1907d58efaa013543185d0a" [[package]] name = "reqwest" version = "0.13.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ab3f43e3283ab1488b624b44b0e988d0acea0b3214e694730a055cb6b2efa801" dependencies = [ "base64", "bytes", "encoding_rs", "futures-core", "h2", "http", "http-body", "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_urlencoded", "sync_wrapper", "tokio", "tokio-native-tls", "tokio-rustls", "tower", "tower-http", "tower-service", "url", "wasm-bindgen", "wasm-bindgen-futures", "web-sys", ] [[package]] name = "reqwest_dav" version = "0.3.3" dependencies = [ "async-trait", "chrono", "digest_auth", "http", "httpdate", "reqwest", "serde", "serde-xml-rs", "serde_derive", "serde_json", "tokio", "url", "wiremock", ] [[package]] name = "ring" version = "0.17.14" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a4689e6c2294d81e88dc6261c768b63bc4fcdb852be6d1352498b114f61383b7" dependencies = [ "cc", "cfg-if", "getrandom 0.2.17", "libc", "untrusted", "windows-sys 0.52.0", ] [[package]] name = "rustc-hash" version = "2.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "357703d41365b4b27c590e3ed91eabb1b663f07c4c084095e60cbed4362dff0d" [[package]] name = "rustix" version = "1.1.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b6fe4565b9518b83ef4f91bb47ce29620ca828bd32cb7e408f0062e9930ba190" dependencies = [ "bitflags", "errno", "libc", "linux-raw-sys", "windows-sys 0.61.2", ] [[package]] name = "rustls" version = "0.23.37" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "758025cb5fccfd3bc2fd74708fd4682be41d99e5dff73c377c0646c6012c73a4" dependencies = [ "aws-lc-rs", "once_cell", "rustls-pki-types", "rustls-webpki", "subtle", "zeroize", ] [[package]] name = "rustls-native-certs" version = "0.8.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "612460d5f7bea540c490b2b6395d8e34a953e52b491accd6c86c8164c5932a63" dependencies = [ "openssl-probe", "rustls-pki-types", "schannel", "security-framework", ] [[package]] name = "rustls-pki-types" version = "1.14.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "be040f8b0a225e40375822a563fa9524378b9d63112f53e19ffff34df5d33fdd" dependencies = [ "web-time", "zeroize", ] [[package]] name = "rustls-platform-verifier" version = "0.6.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1d99feebc72bae7ab76ba994bb5e121b8d83d910ca40b36e0921f53becc41784" 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.9" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d7df23109aa6c1567d1c575b9952556388da57401e4ace1d15f79eedad0d8f53" dependencies = [ "aws-lc-rs", "ring", "rustls-pki-types", "untrusted", ] [[package]] name = "rustversion" version = "1.0.22" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b39cdef0fa800fc44525c84ccb54a029961a8215f9619753635a9c0d2538d46d" [[package]] name = "ryu" version = "1.0.23" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9774ba4a74de5f7b1c1451ed6cd5285a32eddb5cccb8cc655a4e50009e06477f" [[package]] name = "same-file" version = "1.0.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "93fc1dc3aaa9bfed95e02e6eadabb4baf7e3078b0bd1b4d7b6b0b68378900502" dependencies = [ "winapi-util", ] [[package]] name = "schannel" version = "0.1.28" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "891d81b926048e76efe18581bf793546b4c0eaf8448d72be8de2bbee5fd166e1" dependencies = [ "windows-sys 0.61.2", ] [[package]] name = "security-framework" version = "3.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b7f4bc775c73d9a02cde8bf7b2ec4c9d12743edf609006c7facc23998404cd1d" dependencies = [ "bitflags", "core-foundation 0.10.1", "core-foundation-sys", "libc", "security-framework-sys", ] [[package]] name = "security-framework-sys" version = "2.17.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6ce2691df843ecc5d231c0b14ece2acc3efb62c0a398c7e1d875f3983ce020e3" dependencies = [ "core-foundation-sys", "libc", ] [[package]] name = "semver" version = "1.0.27" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d767eb0aabc880b29956c35734170f26ed551a859dbd361d140cdbeca61ab1e2" [[package]] name = "serde" version = "1.0.228" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9a8e94ea7f378bd32cbbd37198a4a91436180c5bb472411e48b5ec2e2124ae9e" dependencies = [ "serde_core", "serde_derive", ] [[package]] name = "serde-xml-rs" version = "0.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "fb3aa78ecda1ebc9ec9847d5d3aba7d618823446a049ba2491940506da6e2782" dependencies = [ "log", "serde", "thiserror 1.0.69", "xml-rs", ] [[package]] name = "serde_core" version = "1.0.228" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "41d385c7d4ca58e59fc732af25c3983b67ac852c1a25000afe1175de458b67ad" dependencies = [ "serde_derive", ] [[package]] name = "serde_derive" version = "1.0.228" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d540f220d3187173da220f885ab66608367b6574e925011a9353e4badda91d79" dependencies = [ "proc-macro2", "quote", "syn", ] [[package]] name = "serde_json" version = "1.0.149" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "83fc039473c5595ace860d8c4fafa220ff474b3fc6bfdb4293327f1a37e94d86" dependencies = [ "itoa", "memchr", "serde", "serde_core", "zmij", ] [[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", ] [[package]] name = "sha2" version = "0.10.9" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a7507d819769d01a365ab707794a4084392c824f54a7a6a7862f8c3d0892b283" dependencies = [ "cfg-if", "cpufeatures", "digest", ] [[package]] name = "shlex" version = "1.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64" [[package]] name = "slab" version = "0.4.12" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0c790de23124f9ab44544d7ac05d60440adc586479ce501c1d6d7da3cd8c9cf5" [[package]] name = "smallvec" version = "1.15.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "67b1b7a3b5fe4f1376887184045fcf45c69e92af734b7aaddc05fb777b6fbd03" [[package]] name = "socket2" version = "0.6.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "86f4aa3ad99f2088c990dfa82d367e19cb29268ed67c574d10d0a4bfe71f07e0" dependencies = [ "libc", "windows-sys 0.60.2", ] [[package]] name = "stable_deref_trait" version = "1.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6ce2be8dc25455e1f91df71bfa12ad37d7af1092ae736f3a6cd0e37bc7810596" [[package]] name = "subtle" version = "2.6.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "13c2bddecc57b384dee18652358fb23172facb8a2c51ccc10d74c157bdea3292" [[package]] name = "syn" version = "2.0.117" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e665b8803e7b1d2a727f4023456bbbbe74da67099c585258af0ad9c5013b9b99" dependencies = [ "proc-macro2", "quote", "unicode-ident", ] [[package]] name = "sync_wrapper" version = "1.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0bf256ce5efdfa370213c1dabab5935a12e49f2c58d15e9eac2870d3b4f27263" dependencies = [ "futures-core", ] [[package]] name = "synstructure" version = "0.13.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "728a70f3dbaf5bab7f0c4b1ac8d7ae5ea60a4b5549c8a5914361c99147a709d2" dependencies = [ "proc-macro2", "quote", "syn", ] [[package]] name = "system-configuration" version = "0.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a13f3d0daba03132c0aa9767f98351b3488edc2c100cda2d2ec2b04f3d8d3c8b" dependencies = [ "bitflags", "core-foundation 0.9.4", "system-configuration-sys", ] [[package]] name = "system-configuration-sys" version = "0.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8e1d1b10ced5ca923a1fcb8d03e96b8d3268065d724548c0211415ff6ac6bac4" dependencies = [ "core-foundation-sys", "libc", ] [[package]] name = "tempfile" version = "3.26.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "82a72c767771b47409d2345987fda8628641887d5466101319899796367354a0" dependencies = [ "fastrand", "getrandom 0.4.1", "once_cell", "rustix", "windows-sys 0.61.2", ] [[package]] name = "thiserror" version = "1.0.69" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b6aaf5339b578ea85b50e080feb250a3e8ae8cfcdff9a461c9ec2904bc923f52" dependencies = [ "thiserror-impl 1.0.69", ] [[package]] name = "thiserror" version = "2.0.18" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4288b5bcbc7920c07a1149a35cf9590a2aa808e0bc1eafaade0b80947865fbc4" dependencies = [ "thiserror-impl 2.0.18", ] [[package]] name = "thiserror-impl" version = "1.0.69" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4fee6c4efc90059e10f81e6d42c60a18f76588c3d74cb83a0b242a2b6c7504c1" dependencies = [ "proc-macro2", "quote", "syn", ] [[package]] name = "thiserror-impl" version = "2.0.18" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ebc4ee7f67670e9b64d05fa4253e753e016c6c95ff35b89b7941d6b856dec1d5" dependencies = [ "proc-macro2", "quote", "syn", ] [[package]] name = "tinystr" version = "0.8.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "42d3e9c45c09de15d06dd8acf5f4e0e399e85927b7f00711024eb7ae10fa4869" dependencies = [ "displaydoc", "zerovec", ] [[package]] name = "tinyvec" version = "1.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bfa5fdc3bce6191a1dbc8c02d5c8bffcf557bafa17c124c5264a458f1b0613fa" 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.49.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "72a2903cd7736441aac9df9d7688bd0ce48edccaadf181c3b90be801e81d3d86" dependencies = [ "bytes", "libc", "mio", "pin-project-lite", "socket2", "tokio-macros", "windows-sys 0.61.2", ] [[package]] name = "tokio-macros" version = "2.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "af407857209536a95c8e56f8231ef2c2e2aff839b22e07a1ffcbc617e9db9fa5" dependencies = [ "proc-macro2", "quote", "syn", ] [[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", ] [[package]] name = "tokio-rustls" version = "0.26.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1729aa945f29d91ba541258c8df89027d5792d85a8841fb65e8bf0f4ede4ef61" dependencies = [ "rustls", "tokio", ] [[package]] name = "tokio-util" version = "0.7.18" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9ae9cec805b01e8fc3fd2fe289f89149a9b66dd16786abd8b19cfa7b48cb0098" dependencies = [ "bytes", "futures-core", "futures-sink", "pin-project-lite", "tokio", ] [[package]] name = "tower" version = "0.5.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ebe5ef63511595f1344e2d5cfa636d973292adc0eec1f0ad45fae9f0851ab1d4" dependencies = [ "futures-core", "futures-util", "pin-project-lite", "sync_wrapper", "tokio", "tower-layer", "tower-service", ] [[package]] name = "tower-http" version = "0.6.8" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d4e6559d53cc268e5031cd8429d05415bc4cb4aefc4aa5d6cc35fbf5b924a1f8" dependencies = [ "bitflags", "bytes", "futures-util", "http", "http-body", "iri-string", "pin-project-lite", "tower", "tower-layer", "tower-service", ] [[package]] name = "tower-layer" version = "0.3.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "121c2a6cda46980bb0fcd1647ffaf6cd3fc79a013de288782836f6df9c48780e" [[package]] name = "tower-service" version = "0.3.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8df9b6e13f2d32c91b9bd719c00d1958837bc7dec474d94952798cc8e69eeec3" [[package]] name = "tracing" version = "0.1.44" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "63e71662fa4b2a2c3a26f570f037eb95bb1f85397f3cd8076caed2f026a6d100" dependencies = [ "pin-project-lite", "tracing-core", ] [[package]] name = "tracing-core" version = "0.1.36" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "db97caf9d906fbde555dd62fa95ddba9eecfd14cb388e4f491a66d74cd5fb79a" dependencies = [ "once_cell", ] [[package]] name = "try-lock" version = "0.2.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e421abadd41a4225275504ea4d6566923418b7f05506fbc9c0fe86ba7396114b" [[package]] name = "typenum" version = "1.19.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "562d481066bde0658276a35467c4af00bdc6ee726305698a55b86e61d7ad82bb" [[package]] name = "unicode-ident" version = "1.0.24" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75" [[package]] name = "unicode-xid" version = "0.2.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ebc1c04c71510c7f702b52b7c350734c9ff1295c464a03335b00bb84fc54f853" [[package]] name = "untrusted" version = "0.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8ecb6da28b8a351d773b68d5825ac39017e680750f980f3a1a85cd8dd28a47c1" [[package]] name = "url" version = "2.5.8" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ff67a8a4397373c3ef660812acab3268222035010ab8680ec4215f38ba3d0eed" dependencies = [ "form_urlencoded", "idna", "percent-encoding", "serde", ] [[package]] name = "utf8_iter" version = "1.0.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b6c140620e7ffbb22c2dee59cafe6084a59b5ffc27a8859a5f0d494b5d52b6be" [[package]] name = "vcpkg" version = "0.2.15" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "accd4ea62f7bb7a82fe23066fb0957d48ef677f6eeb8215f372f52e48bb32426" [[package]] name = "version_check" version = "0.9.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0b928f33d975fc6ad9f86c8f283853ad26bdd5b10b7f1542aa2fa15e2289105a" [[package]] name = "walkdir" version = "2.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "29790946404f91d9c5d06f9874efddea1dc06c5efe94541a7d6863108e3a5e4b" dependencies = [ "same-file", "winapi-util", ] [[package]] name = "want" version = "0.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bfa7760aed19e106de2c7c0b581b509f2f25d3dacaf737cb82ac61bc6d760b0e" dependencies = [ "try-lock", ] [[package]] name = "wasi" version = "0.11.1+wasi-snapshot-preview1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ccf3ec651a847eb01de73ccad15eb7d99f80485de043efb2f370cd654f4ea44b" [[package]] name = "wasip2" version = "1.0.2+wasi-0.2.9" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9517f9239f02c069db75e65f174b3da828fe5f5b945c4dd26bd25d89c03ebcf5" dependencies = [ "wit-bindgen", ] [[package]] name = "wasip3" version = "0.4.0+wasi-0.3.0-rc-2026-01-06" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5428f8bf88ea5ddc08faddef2ac4a67e390b88186c703ce6dbd955e1c145aca5" dependencies = [ "wit-bindgen", ] [[package]] name = "wasm-bindgen" version = "0.2.114" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6532f9a5c1ece3798cb1c2cfdba640b9b3ba884f5db45973a6f442510a87d38e" dependencies = [ "cfg-if", "once_cell", "rustversion", "wasm-bindgen-macro", "wasm-bindgen-shared", ] [[package]] name = "wasm-bindgen-futures" version = "0.4.64" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e9c5522b3a28661442748e09d40924dfb9ca614b21c00d3fd135720e48b67db8" dependencies = [ "cfg-if", "futures-util", "js-sys", "once_cell", "wasm-bindgen", "web-sys", ] [[package]] name = "wasm-bindgen-macro" version = "0.2.114" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "18a2d50fcf105fb33bb15f00e7a77b772945a2ee45dcf454961fd843e74c18e6" dependencies = [ "quote", "wasm-bindgen-macro-support", ] [[package]] name = "wasm-bindgen-macro-support" version = "0.2.114" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "03ce4caeaac547cdf713d280eda22a730824dd11e6b8c3ca9e42247b25c631e3" dependencies = [ "bumpalo", "proc-macro2", "quote", "syn", "wasm-bindgen-shared", ] [[package]] name = "wasm-bindgen-shared" version = "0.2.114" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "75a326b8c223ee17883a4251907455a2431acc2791c98c26279376490c378c16" dependencies = [ "unicode-ident", ] [[package]] name = "wasm-encoder" version = "0.244.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "990065f2fe63003fe337b932cfb5e3b80e0b4d0f5ff650e6985b1048f62c8319" dependencies = [ "leb128fmt", "wasmparser", ] [[package]] name = "wasm-metadata" version = "0.244.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bb0e353e6a2fbdc176932bbaab493762eb1255a7900fe0fea1a2f96c296cc909" dependencies = [ "anyhow", "indexmap", "wasm-encoder", "wasmparser", ] [[package]] name = "wasmparser" version = "0.244.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "47b807c72e1bac69382b3a6fb3dbe8ea4c0ed87ff5629b8685ae6b9a611028fe" dependencies = [ "bitflags", "hashbrown 0.15.5", "indexmap", "semver", ] [[package]] name = "web-sys" version = "0.3.91" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "854ba17bb104abfb26ba36da9729addc7ce7f06f5c0f90f3c391f8461cca21f9" dependencies = [ "js-sys", "wasm-bindgen", ] [[package]] name = "web-time" version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5a6580f308b1fad9207618087a65c04e7a10bc77e02c8e84e9b00dd4b12fa0bb" dependencies = [ "js-sys", "wasm-bindgen", ] [[package]] name = "webpki-root-certs" version = "1.0.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "804f18a4ac2676ffb4e8b5b5fa9ae38af06df08162314f96a68d2a363e21a8ca" dependencies = [ "rustls-pki-types", ] [[package]] name = "winapi-util" version = "0.1.11" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c2a7b1c03c876122aa43f3020e6c3c3ee5c05081c9a00739faf7503aeba10d22" dependencies = [ "windows-sys 0.61.2", ] [[package]] name = "windows-core" version = "0.62.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b8e83a14d34d0623b51dce9581199302a221863196a1dde71a7663a4c2be9deb" dependencies = [ "windows-implement", "windows-interface", "windows-link", "windows-result", "windows-strings", ] [[package]] name = "windows-implement" version = "0.60.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "053e2e040ab57b9dc951b72c264860db7eb3b0200ba345b4e4c3b14f67855ddf" dependencies = [ "proc-macro2", "quote", "syn", ] [[package]] name = "windows-interface" version = "0.59.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3f316c4a2570ba26bbec722032c4099d8c8bc095efccdc15688708623367e358" dependencies = [ "proc-macro2", "quote", "syn", ] [[package]] name = "windows-link" version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5" [[package]] name = "windows-registry" version = "0.6.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "02752bf7fbdcce7f2a27a742f798510f3e5ad88dbe84871e5168e2120c3d5720" dependencies = [ "windows-link", "windows-result", "windows-strings", ] [[package]] name = "windows-result" version = "0.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7781fa89eaf60850ac3d2da7af8e5242a5ea78d1a11c49bf2910bb5a73853eb5" dependencies = [ "windows-link", ] [[package]] name = "windows-strings" version = "0.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7837d08f69c77cf6b07689544538e017c1bfcf57e34b4c0ff58e6c2cd3b37091" dependencies = [ "windows-link", ] [[package]] name = "windows-sys" version = "0.45.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "75283be5efb2831d37ea142365f009c02ec203cd29a3ebecbc093d52315b66d0" dependencies = [ "windows-targets 0.42.2", ] [[package]] name = "windows-sys" 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.60.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f2f500e4d28234f72040990ec9d39e3a6b950f9f22d3dba18416c35882612bcb" dependencies = [ "windows-targets 0.53.5", ] [[package]] name = "windows-sys" version = "0.61.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ae137229bcbd6cdf0f7b80a31df61766145077ddf49416a728b02cb3921ff3fc" dependencies = [ "windows-link", ] [[package]] name = "windows-targets" version = "0.42.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8e5180c00cd44c9b1c88adb3693291f1cd93605ded80c250a75d472756b4d071" dependencies = [ "windows_aarch64_gnullvm 0.42.2", "windows_aarch64_msvc 0.42.2", "windows_i686_gnu 0.42.2", "windows_i686_msvc 0.42.2", "windows_x86_64_gnu 0.42.2", "windows_x86_64_gnullvm 0.42.2", "windows_x86_64_msvc 0.42.2", ] [[package]] name = "windows-targets" 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.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4945f9f551b88e0d65f3db0bc25c33b8acea4d9e41163edf90dcd0b19f9069f3" dependencies = [ "windows-link", "windows_aarch64_gnullvm 0.53.1", "windows_aarch64_msvc 0.53.1", "windows_i686_gnu 0.53.1", "windows_i686_gnullvm 0.53.1", "windows_i686_msvc 0.53.1", "windows_x86_64_gnu 0.53.1", "windows_x86_64_gnullvm 0.53.1", "windows_x86_64_msvc 0.53.1", ] [[package]] name = "windows_aarch64_gnullvm" version = "0.42.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "597a5118570b68bc08d8d59125332c54f1ba9d9adeedeef5b99b02ba2b0698f8" [[package]] name = "windows_aarch64_gnullvm" version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "32a4622180e7a0ec044bb555404c800bc9fd9ec262ec147edd5989ccd0c02cd3" [[package]] name = "windows_aarch64_gnullvm" version = "0.53.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a9d8416fa8b42f5c947f8482c43e7d89e73a173cead56d044f6a56104a6d1b53" [[package]] name = "windows_aarch64_msvc" version = "0.42.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e08e8864a60f06ef0d0ff4ba04124db8b0fb3be5776a5cd47641e942e58c4d43" [[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.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b9d782e804c2f632e395708e99a94275910eb9100b2114651e04744e9b125006" [[package]] name = "windows_i686_gnu" version = "0.42.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c61d927d8da41da96a81f029489353e68739737d3beca43145c8afec9a31a84f" [[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.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "960e6da069d81e09becb0ca57a65220ddff016ff2d6af6a223cf372a506593a3" [[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.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "fa7359d10048f68ab8b09fa71c3daccfb0e9b559aed648a8f95469c27057180c" [[package]] name = "windows_i686_msvc" version = "0.42.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "44d840b6ec649f480a41c8d80f9c65108b92d89345dd94027bfe06ac444d1060" [[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.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1e7ac75179f18232fe9c285163565a57ef8d3c89254a30685b57d83a38d326c2" [[package]] name = "windows_x86_64_gnu" version = "0.42.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8de912b8b8feb55c064867cf047dda097f92d51efad5b491dfb98f6bbb70cb36" [[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.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9c3842cdd74a865a8066ab39c8a7a473c0778a3f29370b5fd6b4b9aa7df4a499" [[package]] name = "windows_x86_64_gnullvm" version = "0.42.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "26d41b46a36d453748aedef1486d5c7a85db22e56aff34643984ea85514e94a3" [[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.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0ffa179e2d07eee8ad8f57493436566c7cc30ac536a3379fdf008f47f6bb7ae1" [[package]] name = "windows_x86_64_msvc" version = "0.42.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9aec5da331524158c6d1a4ac0ab1541149c0b9505fde06423b02f5ef0106b9f0" [[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.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d6bbff5f0aada427a1e5a6da5f1f98158182f26556f345ac9e04d36d0ebed650" [[package]] name = "wiremock" version = "0.6.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "08db1edfb05d9b3c1542e521aea074442088292f00b5f28e435c714a98f85031" dependencies = [ "assert-json-diff", "base64", "deadpool", "futures", "http", "http-body-util", "hyper", "hyper-util", "log", "once_cell", "regex", "serde", "serde_json", "tokio", "url", ] [[package]] name = "wit-bindgen" version = "0.51.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d7249219f66ced02969388cf2bb044a09756a083d0fab1e566056b04d9fbcaa5" dependencies = [ "wit-bindgen-rust-macro", ] [[package]] name = "wit-bindgen-core" version = "0.51.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ea61de684c3ea68cb082b7a88508a8b27fcc8b797d738bfc99a82facf1d752dc" dependencies = [ "anyhow", "heck", "wit-parser", ] [[package]] name = "wit-bindgen-rust" version = "0.51.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b7c566e0f4b284dd6561c786d9cb0142da491f46a9fbed79ea69cdad5db17f21" dependencies = [ "anyhow", "heck", "indexmap", "prettyplease", "syn", "wasm-metadata", "wit-bindgen-core", "wit-component", ] [[package]] name = "wit-bindgen-rust-macro" version = "0.51.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0c0f9bfd77e6a48eccf51359e3ae77140a7f50b1e2ebfe62422d8afdaffab17a" dependencies = [ "anyhow", "prettyplease", "proc-macro2", "quote", "syn", "wit-bindgen-core", "wit-bindgen-rust", ] [[package]] name = "wit-component" version = "0.244.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9d66ea20e9553b30172b5e831994e35fbde2d165325bec84fc43dbf6f4eb9cb2" dependencies = [ "anyhow", "bitflags", "indexmap", "log", "serde", "serde_derive", "serde_json", "wasm-encoder", "wasm-metadata", "wasmparser", "wit-parser", ] [[package]] name = "wit-parser" version = "0.244.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ecc8ac4bc1dc3381b7f59c34f00b67e18f910c2c0f50015669dde7def656a736" dependencies = [ "anyhow", "id-arena", "indexmap", "log", "semver", "serde", "serde_derive", "serde_json", "unicode-xid", "wasmparser", ] [[package]] name = "writeable" version = "0.6.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9edde0db4769d2dc68579893f2306b26c6ecfbe0ef499b013d731b7b9247e0b9" [[package]] name = "xml-rs" version = "0.8.28" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3ae8337f8a065cfc972643663ea4279e04e7256de865aa66fe25cec5fb912d3f" [[package]] name = "yoke" version = "0.8.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "72d6e5c6afb84d73944e5cedb052c4680d5657337201555f9f2a16b7406d4954" dependencies = [ "stable_deref_trait", "yoke-derive", "zerofrom", ] [[package]] name = "yoke-derive" version = "0.8.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b659052874eb698efe5b9e8cf382204678a0086ebf46982b79d6ca3182927e5d" dependencies = [ "proc-macro2", "quote", "syn", "synstructure", ] [[package]] name = "zerocopy" version = "0.8.40" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a789c6e490b576db9f7e6b6d661bcc9799f7c0ac8352f56ea20193b2681532e5" dependencies = [ "zerocopy-derive", ] [[package]] name = "zerocopy-derive" version = "0.8.40" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f65c489a7071a749c849713807783f70672b28094011623e200cb86dcb835953" dependencies = [ "proc-macro2", "quote", "syn", ] [[package]] name = "zerofrom" version = "0.1.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "50cc42e0333e05660c3587f3bf9d0478688e15d870fab3346451ce7f8c9fbea5" dependencies = [ "zerofrom-derive", ] [[package]] name = "zerofrom-derive" version = "0.1.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d71e5d6e06ab090c67b5e44993ec16b72dcbaabc526db883a360057678b48502" dependencies = [ "proc-macro2", "quote", "syn", "synstructure", ] [[package]] name = "zeroize" version = "1.8.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b97154e67e32c85465826e8bcc1c59429aaaf107c1e4a9e53c8d8ccd5eff88d0" [[package]] name = "zerotrie" version = "0.2.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2a59c17a5562d507e4b54960e8569ebee33bee890c70aa3fe7b97e85a9fd7851" dependencies = [ "displaydoc", "yoke", "zerofrom", ] [[package]] name = "zerovec" version = "0.11.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6c28719294829477f525be0186d13efa9a3c602f7ec202ca9e353d310fb9a002" dependencies = [ "yoke", "zerofrom", "zerovec-derive", ] [[package]] name = "zerovec-derive" version = "0.11.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "eadce39539ca5cb3985590102671f2567e659fca9666581ad3411d59207951f3" dependencies = [ "proc-macro2", "quote", "syn", ] [[package]] name = "zmij" version = "1.0.21" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b8848ee67ecc8aedbaf3e4122217aff892639231befc6a1b58d29fff4c2cabaa" reqwest_dav-0.3.3/Cargo.toml0000644000000034140000000000100113630ustar # THIS FILE IS AUTOMATICALLY GENERATED BY CARGO # # When uploading crates to the registry Cargo will automatically # "normalize" Cargo.toml files for maximal compatibility # with all versions of Cargo and also rewrite `path` dependencies # to registry (e.g., crates.io) dependencies. # # If you are reading this file be aware that the original Cargo.toml # will likely look very different (and much more reasonable). # See Cargo.toml.orig for the original contents. [package] edition = "2021" name = "reqwest_dav" version = "0.3.3" build = false autolib = false autobins = false autoexamples = false autotests = false autobenches = false description = "An async webdav client with tokio and reqwest" readme = "README.md" keywords = [ "http", "request", "client", "webdav", ] license = "MIT OR Apache-2.0" repository = "https://github.com/niuhuan/reqwest_dav" resolver = "2" [features] default = ["reqwest/default"] native-tls = ["reqwest/native-tls"] rustls-tls = ["reqwest/rustls"] rustls-tls-no-provider = ["reqwest/rustls-no-provider"] [lib] name = "reqwest_dav" path = "src/lib.rs" [dependencies.async-trait] version = "0.1" [dependencies.chrono] version = "0.4" features = ["serde"] [dependencies.digest_auth] version = "0.3" [dependencies.http] version = "1.0" [dependencies.httpdate] version = "1.0" [dependencies.reqwest] version = "0.13" features = ["form"] default-features = false [dependencies.serde] version = "1.0" [dependencies.serde-xml-rs] version = "0.6" [dependencies.serde_derive] version = "1.0" [dependencies.serde_json] version = "1.0" [dependencies.tokio] version = "1" features = ["sync"] [dependencies.url] version = "2.3" [dev-dependencies.tokio] version = "1" features = [ "rt", "macros", ] [dev-dependencies.wiremock] version = "0.6" reqwest_dav-0.3.3/Cargo.toml.orig000064400000000000000000000016121046102023000150420ustar 00000000000000[package] name = "reqwest_dav" version = "0.3.3" edition = "2021" description = "An async webdav client with tokio and reqwest" keywords = ["http", "request", "client", "webdav"] readme = "README.md" license = "MIT OR Apache-2.0" repository = "https://github.com/niuhuan/reqwest_dav" resolver = "2" [dependencies] digest_auth = "0.3" reqwest = { version = "0.13", default-features = false, features = ["form"] } url = "2.3" tokio = { version = "1", features = ["sync"] } http = "1.0" chrono = { version = "0.4", features = ["serde"] } serde = "1.0" serde_derive = "1.0" serde-xml-rs = "0.6" serde_json = "1.0" async-trait = "0.1" httpdate = "1.0" [dev-dependencies] tokio = { version = "1", features = ["rt", "macros"] } wiremock = "0.6" [features] default = ["reqwest/default"] native-tls = ["reqwest/native-tls"] rustls-tls = ["reqwest/rustls"] rustls-tls-no-provider = ["reqwest/rustls-no-provider"] reqwest_dav-0.3.3/LICENSE-APACHE000064400000000000000000000251211046102023000141000ustar 00000000000000 Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Definitions. "License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. "Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. "Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. "You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License. "Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files. "Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types. "Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below). "Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof. "Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution." "Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work. 2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form. 3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed. 4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions: (a) You must give any other recipients of the Work or Derivative Works a copy of this License; and (b) You must cause any modified files to carry prominent notices stating that You changed the files; and (c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and (d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License. 5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions. 6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file. 7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License. 8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages. 9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. END OF TERMS AND CONDITIONS APPENDIX: How to apply the Apache License to your work. To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives. Copyright 2016 Sean McArthur Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. reqwest_dav-0.3.3/LICENSE-MIT000064400000000000000000000020411046102023000136040ustar 00000000000000Copyright (c) 2016 Sean McArthur Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. reqwest_dav-0.3.3/README.md000064400000000000000000000030251046102023000134320ustar 00000000000000Reqwest dav ============ [![crates.io](https://img.shields.io/crates/v/reqwest_dav.svg)](https://crates.io/crates/reqwest_dav) [![Documentation](https://docs.rs/reqwest_dav/badge.svg)](https://docs.rs/reqwest_dav) [![MIT/Apache-2 licensed](https://img.shields.io/crates/l/reqwest.svg)](./LICENSE-APACHE) [![CI](https://github.com/niuhuan/reqwest_dav/workflows/Rust/badge.svg)](https://github.com/niuhuan/reqwest_dav/actions?query=workflow%3ARust) An async webdav client for rust with tokio and reqwest ## Features - [x] Authentication - [x] Basic - [x] Digest - [x] Files management - [x] Get - [x] Put - [x] Mv - [x] Cp - [x] Delete - [x] Mkcol - [x] List ## Examples ```rust use crate::{Auth, ClientBuilder, Depth, Error}; #[tokio::test] async fn it_works() -> Result<(), Error> { // build a client let client = ClientBuilder::new() .set_host("http://server".to_string()) .set_auth(Auth::Basic("username".to_owned(), "password".to_owned())) .build()?; // list files println!( "{}", serde_json::to_string(&client.list("/remote.php/dav/files/username", Depth::Infinity).await?).unwrap() ); // delete a file client.delete("1.txt").await.unwrap(); Ok(()) } ``` ## Tips - `set_host` can use "http://server/remote.php/dav/files/username", but the list method return value from server usually the full path excluding the protocol and domain name, like `/remote.php/dav/files/username/bookmarks.txt`, you can use it according to your own server or needs. reqwest_dav-0.3.3/src/authentication.rs000064400000000000000000000262661046102023000163430ustar 00000000000000//! Implements the authentication logic for the server. use crate::types::Error; use crate::{Auth, Client, DecodeError, StatusMismatchedError}; use digest_auth::{AuthContext, HttpMethod}; use http::Method; use reqwest::RequestBuilder; use std::ops::Deref; use url::Url; impl Client { /// Apply the current auth method to the request. pub(crate) async fn apply_authentication( &self, mut builder: RequestBuilder, method: &Method, url: &Url, ) -> Result { match &self.auth { Auth::Anonymous => {} Auth::Basic(username, password) => { builder = builder.basic_auth(username, Some(password)); } Auth::Digest(username, password) => { self.setup_digest_auth_if_not_initialized(method, url) .await?; let mut context = AuthContext::new(username, password, url.path()); context.method = HttpMethod::from(method.to_string()); let mut digest_state_lock = self.digest_auth.lock().await; match digest_state_lock.as_mut() { // This should be unreachable unless a silent error occurs in the setup_digest_auth_if_not_initialized function. None => return Err(Error::MissingAuthContext), Some(state) => { let response = state.respond(&context)?; builder = builder.header("Authorization", response.to_header_string()); } } } }; Ok(builder) } /// Get the setup status of the digest auth context. /// /// Self contained in a function to make the lock bounds limited and clear. async fn is_digest_auth_initialized(&self) -> bool { self.digest_auth.lock().await.deref().is_some() } /// Setup the digest auth context if it is not already setup. async fn setup_digest_auth_if_not_initialized( &self, method: &Method, url: &Url, ) -> Result<(), Error> { if !self.is_digest_auth_initialized().await { self.probe_server_for_digest_auth(method, url).await?; } Ok(()) } /// Make a request with the intention of getting a 401 error and updating the authorisation. async fn probe_server_for_digest_auth(&self, method: &Method, url: &Url) -> Result<(), Error> { let response = self .agent .request(method.clone(), url.as_str()) .send() .await?; let code = response.status().as_u16(); if code == 401 { let headers = response.headers(); let www_auth = headers .get("www-authenticate") .ok_or(Error::Decode(DecodeError::NoAuthHeaderInResponse))? .to_str()?; self.update_auth_context(www_auth).await?; Ok(()) } else { Err(Error::Decode(DecodeError::StatusMismatched( StatusMismatchedError { response_code: code, expected_code: 401, }, ))) } } /// Update the authentication context which right now is just /// for digest authentication. async fn update_auth_context(&self, auth_header: &str) -> Result<(), Error> { let auth_context = digest_auth::parse(auth_header)?; let mut session_auth = self.digest_auth.lock().await; *session_auth = Some(auth_context); Ok(()) } } #[cfg(test)] mod tests { use crate::{Auth, Client, ClientBuilder, Depth}; use std::time::Duration; use wiremock::matchers::{basic_auth, header_exists, method}; use wiremock::{Mock, MockServer, ResponseTemplate}; fn setup_digest_client(host: String) -> Client { let reqwest_client = reqwest::ClientBuilder::new() .timeout(Duration::from_secs(10)) .build() .unwrap(); ClientBuilder::new() .set_host(host) .set_auth(Auth::Digest("user".to_owned(), "password".to_owned())) .set_agent(reqwest_client) .build() .unwrap() } #[tokio::test] async fn can_update_auth_context_with_valid_header() { let client = setup_digest_client("http://example.com".to_owned()); let auth_header = "Digest realm=\"example.com\", qop=\"auth\", nonce=\"dcd98b7102dd2f0e8b11d0f600bfb0c093\", opaque=\"5ccc069c403ebaf9f0171e9517f40e41\""; client.update_auth_context(auth_header).await.unwrap(); let auth_context = client.digest_auth.lock().await; assert!(auth_context.is_some()); // not concerned with all fields as that is handled by the digest crate. Just make sure something matches. assert_eq!(auth_context.as_ref().unwrap().realm, "example.com"); } #[tokio::test] async fn can_updated_existing_auth_context() { let client = setup_digest_client("http://example.com".to_owned()); let auth_header = "Digest realm=\"example.com\", qop=\"auth\", nonce=\"dcd98b7102dd2f0e8b11d0f600bfb0c093\", opaque=\"5ccc069c403ebaf9f0171e9517f40e41\""; client.update_auth_context(auth_header).await.unwrap(); let auth_header_2 = "Digest realm=\"example.com\", qop=\"auth\", nonce=\"notthesame\", opaque=\"5ccc069c403ebaf9f0171e9517f40e41\""; client.update_auth_context(auth_header_2).await.unwrap(); let auth_context = client.digest_auth.lock().await; assert!(auth_context.is_some()); // not concerned with all fields as that is handled by the digest crate. Just make sure something matches. assert_eq!(auth_context.as_ref().unwrap().nonce, "notthesame"); } #[tokio::test] async fn returns_error_on_bad_header() { let client = setup_digest_client("http://example.com".to_owned()); let auth_header = "Digest realm=\"example.com\", qop=\"auth\", opaque=\"5ccc069c403ebaf9f0171e9517f40e41\""; let result = client.update_auth_context(auth_header).await; assert!(result.is_err()); let auth_context = client.digest_auth.lock().await; assert!(auth_context.is_none()); } #[tokio::test] async fn adds_digest_header_to_request() { let client = setup_digest_client("http://example.com".to_owned()); let method = http::Method::GET; let url = url::Url::parse("http://example.com").unwrap(); // add digest manually so we don't make a request at this stage. client.update_auth_context("Digest realm=\"example.com\", qop=\"auth\", nonce=\"dcd98b7102dd2f0e8b11d0f600bfb0c093\", opaque=\"5ccc069c403ebaf9f0171e9517f40e41\"").await.unwrap(); let builder = client.agent.request(method.clone(), url.as_str()); let builder = client .apply_authentication(builder, &method, &url) .await .unwrap(); let request = builder.build().unwrap(); let headers = request.headers(); let auth_header = headers.get("Authorization").unwrap().to_str().unwrap(); assert!(auth_header.starts_with("Digest")); } #[tokio::test] async fn increments_nc_on_requests() { let client = setup_digest_client("http://example.com".to_owned()); // add digest manually so we don't make a request at this stage. client.update_auth_context("Digest realm=\"example.com\", qop=\"auth\", nonce=\"dcd98b7102dd2f0e8b11d0f600bfb0c093\", opaque=\"5ccc069c403ebaf9f0171e9517f40e41\"").await.unwrap(); let method = http::Method::GET; let url = url::Url::parse("http://example.com").unwrap(); let builder = client.agent.request(method.clone(), url.as_str()); let builder = client .apply_authentication(builder, &method, &url) .await .unwrap(); let request = builder.build().unwrap(); let headers = request.headers(); let auth_header = headers.get("Authorization").unwrap().to_str().unwrap(); assert!(auth_header.contains("nc=00000001")); let builder = client.agent.request(method.clone(), url.as_str()); let builder = client .apply_authentication(builder, &method, &url) .await .unwrap(); let request = builder.build().unwrap(); let headers = request.headers(); let auth_header = headers.get("Authorization").unwrap().to_str().unwrap(); assert!(auth_header.contains("nc=00000002")); } #[tokio::test] async fn will_query_server_for_digest_auth_if_not_initialized() { let mock_server = MockServer::start().await; let server_digest_header = "Digest realm=\"example.com\", qop=\"auth\", nonce=\"dcd98b7102dd2f0e8b11d0f600bfb0c093\", opaque=\"5ccc069c403ebaf9f0171e9517f40e41\""; // just always pass for now. Mock::given(method("GET")) .and(header_exists("Authorization")) .respond_with(wiremock::ResponseTemplate::new(200)) .expect(1) .mount(&mock_server) .await; Mock::given(method("GET")) .respond_with( wiremock::ResponseTemplate::new(401) .append_header("WWW-Authenticate", server_digest_header), ) .expect(1) .mount(&mock_server) .await; println!("Running mock server at {}", mock_server.uri()); let client = setup_digest_client(mock_server.uri()); let result = client.get_raw("/").await; assert!(result.is_ok()); mock_server.verify().await; } #[tokio::test] async fn digest_initialisation_will_match_the_method_and_url() { let mock_server = MockServer::start().await; let server_digest_header = "Digest realm=\"example.com\", qop=\"auth\", nonce=\"dcd98b7102dd2f0e8b11d0f600bfb0c093\", opaque=\"5ccc069c403ebaf9f0171e9517f40e41\""; // just always pass for now. Mock::given(method("PROPFIND")) .and(header_exists("Authorization")) .respond_with(wiremock::ResponseTemplate::new(200)) .expect(1) .mount(&mock_server) .await; Mock::given(method("PROPFIND")) .respond_with( wiremock::ResponseTemplate::new(401) .append_header("WWW-Authenticate", server_digest_header), ) .expect(1) .mount(&mock_server) .await; println!("Running mock server at {}", mock_server.uri()); let client = setup_digest_client(mock_server.uri()); let result = client.list_raw("/", Depth::Number(1)).await; assert!(result.is_ok()); mock_server.verify().await; } #[tokio::test] async fn test_basic_auth() { let mock_server = MockServer::start().await; Mock::given(basic_auth("user", "password")) .respond_with(ResponseTemplate::new(200)) .expect(1..) .mount(&mock_server) .await; let client = ClientBuilder::new() .set_host(mock_server.uri()) .set_auth(Auth::Basic("user".to_owned(), "password".to_owned())) .build() .unwrap(); let response = client.get_raw("/").await.unwrap(); assert_eq!(response.status().as_u16(), 200); } } reqwest_dav-0.3.3/src/lib.rs000064400000000000000000000234621046102023000140650ustar 00000000000000use std::collections::HashMap; use std::fmt::Debug; use std::sync::Arc; use digest_auth::WwwAuthenticateHeader; use reqwest::header::{HeaderMap, HeaderValue}; use reqwest::{Body, Method, RequestBuilder, Response}; use tokio::sync::Mutex; use url::Url; use crate::types::list_cmd::{ListEntity, ListMultiStatus, ListResponse}; pub use crate::types::*; pub mod types; mod authentication; pub mod re_exports; #[derive(Debug, Clone)] pub struct Client { pub agent: reqwest::Client, pub host: String, pub auth: Auth, pub digest_auth: Arc>>, } #[derive(Debug, Clone)] pub struct ClientBuilder { agent: Option, host: Option, auth: Option, } impl Client { /// Main function that creates the RequestBuilder, sets the method, url and the basic_auth pub async fn start_request(&self, method: Method, path: &str) -> Result { let url = Url::parse(&format!( "{}/{}", self.host.trim_end_matches("/"), path.trim_start_matches("/") ))?; let mut builder = self.agent.request(method.clone(), url.as_str()); builder = self.apply_authentication(builder, &method, &url).await?; Ok(builder) } pub async fn get_raw(&self, path: &str) -> Result { Ok(self.start_request(Method::GET, path).await?.send().await?) } /// Get a file from Webdav server /// /// Use absolute path to the webdav server file location pub async fn get(&self, path: &str) -> Result { self.get_raw(path).await?.dav2xx().await } pub async fn put_raw>(&self, path: &str, body: B) -> Result { Ok(self .start_request(Method::PUT, path) .await? .headers({ let mut map = HeaderMap::new(); map.insert( "content-type", HeaderValue::from_str("application/octet-stream")?, ); map }) .body(body) .send() .await?) } /// Upload a file/zip on Webdav server /// /// It can be any type of file as long as it is transformed to a vector of bytes (Vec). /// This can be achieved with **std::fs::File** or **zip-rs** for sending zip files. /// /// Use absolute path to the webdav server folder location pub async fn put>(&self, path: &str, body: B) -> Result<(), Error> { self.put_raw(path, body).await?.dav2xx().await?; Ok(()) } pub async fn delete_raw(&self, path: &str) -> Result { Ok(self .start_request(Method::DELETE, path) .await? .send() .await?) } /// Deletes the collection, file, folder or zip archive at the given path on Webdav server /// /// Use absolute path to the webdav server file location pub async fn delete(&self, path: &str) -> Result<(), Error> { self.delete_raw(path).await?.dav2xx().await?; Ok(()) } pub async fn mkcol_raw(&self, path: &str) -> Result { Ok(self .start_request(Method::from_bytes(b"MKCOL").unwrap(), path) .await? .send() .await?) } /// Creates a directory on Webdav server /// /// Use absolute path to the webdav server file location pub async fn mkcol(&self, path: &str) -> Result<(), Error> { self.mkcol_raw(path).await?.dav2xx().await?; Ok(()) } pub async fn unzip_raw(&self, path: &str) -> Result { Ok(self .start_request(Method::POST, path) .await? .form(&{ let mut params = HashMap::new(); params.insert("method", "UNZIP"); params }) .send() .await?) } /// Unzips the .zip archieve on Webdav server /// /// Use absolute path to the webdav server file location pub async fn unzip(&self, path: &str) -> Result<(), Error> { self.unzip_raw(path).await?.dav2xx().await?; Ok(()) } pub async fn mv_raw(&self, from: &str, to: &str) -> Result { let base = Url::parse(&self.host)?; let mv_to = format!( "{}/{}", base.path().trim_end_matches("/"), to.trim_start_matches("/") ); Ok(self .start_request(Method::from_bytes(b"MOVE")?, from) .await? .headers({ let mut map = HeaderMap::new(); map.insert("destination", HeaderValue::from_str(&mv_to)?); map }) .send() .await?) } /// Rename or move a collection, file, folder on Webdav server /// /// If the file location changes it will move the file, if only the file name changes it will rename it. /// /// Use absolute path to the webdav server file location pub async fn mv(&self, from: &str, to: &str) -> Result<(), Error> { self.mv_raw(from, to).await?.dav2xx().await?; Ok(()) } pub async fn cp_raw(&self, from: &str, to: &str, overwrite: bool) -> Result { let base = Url::parse(&self.host)?; let cp_to = format!( "{}/{}", base.path().trim_end_matches("/"), to.trim_start_matches("/") ); Ok(self .start_request(Method::from_bytes(b"COPY")?, from) .await? .headers({ let mut map = HeaderMap::new(); map.insert("destination", HeaderValue::from_str(&cp_to)?); map.insert( "overwrite", match overwrite { true => HeaderValue::from_str("T")?, false => HeaderValue::from_str("F")?, }, ); map }) .send() .await?) } /// Copy a collection, file, folder on Webdav server /// /// Use absolute path to the webdav server file location pub async fn cp(&self, from: &str, to: &str) -> Result<(), Error> { self.cp_raw(from, to, true).await?.dav2xx().await?; Ok(()) } pub async fn list_raw(&self, path: &str, depth: Depth) -> Result { let body = r#" "#; Ok(self .start_request(Method::from_bytes(b"PROPFIND").unwrap(), path) .await? .headers({ let mut map = HeaderMap::new(); map.insert( "depth", HeaderValue::from_str(&match depth { Depth::Number(value) => format!("{}", value), Depth::Infinity => "infinity".to_owned(), })?, ); map.insert( "content-type", HeaderValue::from_str("text/xml; charset=\"utf-8\"")?, ); map }) .body(body) .send() .await?) } pub async fn list_rsp(&self, path: &str, depth: Depth) -> Result, Error> { let reqwest_response = self.list_raw(path, depth).await?; let code = reqwest_response.status(); if code.is_success() { let response = reqwest_response.text().await?; let result: Result = serde_xml_rs::from_str(&response); match result { Ok(mul) => Ok(mul.responses), Err(e) => { println!("Error: {}", e); Err(e.into()) } } } else { Err(Error::Decode(DecodeError::StatusMismatched( StatusMismatchedError { response_code: code.as_u16(), expected_code: 207, }, ))) } } /// List files and folders at the given path on Webdav server /// /// Depth of "0" applies only to the resource, "1" to the resource and it's children, "infinity" to the resource and all it's children recursively /// The result will contain an xml list with the remote folder contents. /// /// Use absolute path to the webdav server folder location pub async fn list(&self, path: &str, depth: Depth) -> Result, Error> { let responses = self.list_rsp(path, depth).await?; responses.into_iter().map(ListEntity::try_from).collect() } } impl ClientBuilder { pub fn new() -> Self { Self { agent: None, host: None, auth: None, } } pub fn set_agent(mut self, agent: reqwest::Client) -> Self { self.agent = Some(agent); self } pub fn set_host(mut self, host: String) -> Self { self.host = Some(host); self } pub fn set_auth(mut self, auth: Auth) -> Self { self.auth = Some(auth); self } pub fn build(self) -> Result { Ok(Client { agent: if let Some(agent) = self.agent { agent } else { reqwest::Client::new() }, host: self .host .ok_or(Error::Decode(DecodeError::FieldNotFound(FieldError { field: "host".to_owned(), })))?, auth: if let Some(auth) = self.auth { auth } else { Auth::Anonymous }, digest_auth: Arc::new(Default::default()), }) } } reqwest_dav-0.3.3/src/re_exports.rs000064400000000000000000000005711046102023000155050ustar 00000000000000pub mod reqwest { pub use reqwest::*; } pub mod async_trait { pub use async_trait::*; } pub mod serde { pub use serde::*; } pub mod serde_derive { pub use serde_derive::*; } pub mod serde_xml_rs { pub use serde_xml_rs::*; } pub mod serde_json { pub use serde_json::*; } pub mod url { pub use url::*; } pub mod tokio { pub use tokio::*; } reqwest_dav-0.3.3/src/types/list_cmd.rs000064400000000000000000000615771046102023000162720ustar 00000000000000//! Types and serialisation expected for the PROPFIND command. use crate::types::{DecodeError, Error, FieldError}; use chrono::{DateTime, Utc}; use serde_derive::{Deserialize, Serialize}; #[derive(Debug, Clone, Serialize, Deserialize)] pub struct ListMultiStatus { #[serde(rename = "response")] pub responses: Vec, } #[derive(Debug, Clone, Serialize, Deserialize)] pub struct ListResponse { pub href: String, #[serde(rename = "propstat")] pub prop_stat: Vec, } #[derive(Debug, Clone, Serialize, Deserialize)] pub struct ListPropStat { pub status: String, pub prop: ListProp, } #[derive(Debug, Clone, Serialize, Deserialize, Default)] pub struct ListResourceType { pub collection: Option<()>, #[serde(rename = "redirectref")] pub redirect_ref: Option<()>, // TODO: Pretty sure this is in the wrong place. #[serde(rename = "redirect-lifetime")] pub redirect_lifetime: Option<()>, #[serde(rename = "addressbook", default)] pub address_book: Option<()>, } #[derive(Debug, Clone, Serialize, Deserialize)] pub struct ListProp { #[serde(rename = "getlastmodified", deserialize_with = "http_time", default)] pub last_modified: Option>, #[serde(rename = "resourcetype", default)] pub resource_type: ListResourceType, #[serde( rename = "quota-used-bytes", deserialize_with = "empty_number", default )] pub quota_used_bytes: Option, #[serde( rename = "quota-available-bytes", deserialize_with = "empty_number", default )] pub quota_available_bytes: Option, #[serde(rename = "getetag")] pub tag: Option, #[serde( rename = "getcontentlength", deserialize_with = "empty_number", default )] pub content_length: Option, #[serde(rename = "getcontenttype")] pub content_type: Option, #[serde(rename = "calendar-data")] pub calendar_data: Option, } #[derive(Debug, Clone, Serialize, Deserialize)] pub enum ListEntity { File(ListFile), Folder(ListFolder), } #[derive(Debug, Clone, Serialize, Deserialize)] pub struct ListFile { pub href: String, pub last_modified: DateTime, pub content_length: i64, pub content_type: String, pub tag: Option, } #[derive(Debug, Clone, Serialize, Deserialize)] pub struct ListFolder { pub href: String, pub last_modified: DateTime, pub quota_used_bytes: Option, pub quota_available_bytes: Option, pub tag: Option, pub address_book: bool, } fn status_is_ok(status: &str) -> bool { let code = status.split_whitespace().nth(1); match code { Some(code) => code.starts_with("2"), None => false, } } impl TryFrom for ListEntity { type Error = crate::types::Error; fn try_from(response: ListResponse) -> Result { let valid_prop_stat = response .prop_stat .into_iter() .filter(|prop_stat| status_is_ok(&prop_stat.status)) .next(); match valid_prop_stat { Some(ListPropStat { prop, .. }) if prop.resource_type.collection.is_some() => { Ok(ListEntity::Folder(ListFolder { href: response.href, last_modified: if let Some(last_modified) = prop.last_modified { last_modified } else { // When using Next Cloud's carddav, there maybe no `addressbook` flag, and no `getlastmodified` at all. // return Err(Error::Decode(DecodeError::FieldNotFound(FieldError { // field: "last_modified".to_owned(), // }))); let naive_date = chrono::NaiveDate::from_ymd_opt(1970, 1, 1).unwrap(); let naive_date_date_time = naive_date.and_hms_opt(0, 0, 0).unwrap(); DateTime::::from_naive_utc_and_offset(naive_date_date_time, Utc) }, quota_used_bytes: prop.quota_used_bytes, quota_available_bytes: prop.quota_available_bytes, tag: prop.tag, address_book: prop.resource_type.address_book.is_some(), })) } Some(ListPropStat { prop, .. }) if prop.resource_type.redirect_ref.is_some() || prop.resource_type.redirect_lifetime.is_some() => { Err(Error::Decode(DecodeError::FieldNotSupported(FieldError { field: "redirect_ref".to_owned(), }))) } Some(ListPropStat { prop, .. }) => Ok(ListEntity::File(ListFile { href: response.href, last_modified: prop.last_modified.ok_or_else(|| { Error::Decode(DecodeError::FieldNotFound(FieldError { field: "last_modified".to_owned(), })) })?, content_length: prop.content_length.unwrap_or(0), content_type: prop.content_type.unwrap_or("".to_string()), tag: prop.tag, })), None => Err(Error::Decode(DecodeError::FieldNotFound(FieldError { field: "propstat with valid status".to_owned(), }))), } } } fn http_time<'de, D>(d: D) -> Result>, D::Error> where D: serde::Deserializer<'de>, { let value: Option = serde::Deserialize::deserialize(d)?; match value { None => Ok(None), Some(value) if value.is_empty() => Ok(None), Some(value) => match httpdate::parse_http_date(&value) { Ok(system_time) => Ok(Some(DateTime::::from(system_time))), Err(_) => Err(serde::de::Error::invalid_value( serde::de::Unexpected::Str(&value), &"a valid HTTP date", )), }, } } fn empty_number<'de, D>(d: D) -> Result, D::Error> where D: serde::Deserializer<'de>, { let value: Option = serde::Deserialize::deserialize(d)?; match value { None => Ok(None), Some(value) if value.is_empty() => Ok(None), Some(value) => match value.parse::() { Ok(number) => Ok(Some(number)), Err(_) => Err(serde::de::Error::invalid_value( serde::de::Unexpected::Str(&value), &"a valid number", )), }, } } #[cfg(test)] mod tests { use super::*; use crate::list_cmd::ListEntity::Folder; #[test] fn parse_single_prop_stat_folder() { let xml = r#" /remote.php/dav/files/admin HTTP/1.1 200 OK Wed, 10 Apr 2019 14:00:00 GMT "5cafae80b1e3e" httpd/unix-directory "#; let parsed: ListMultiStatus = serde_xml_rs::from_str(xml).unwrap(); assert_eq!(parsed.responses.len(), 1); let response = parsed.responses[0].clone(); let list_entity = ListEntity::try_from(response).unwrap(); match list_entity { ListEntity::Folder(folder) => { assert_eq!(folder.href, "/remote.php/dav/files/admin"); assert_eq!(folder.last_modified.timestamp(), 1554904800); assert_eq!(folder.quota_used_bytes, None); assert_eq!(folder.quota_available_bytes, None); assert_eq!(folder.tag, Some("\"5cafae80b1e3e\"".to_string())); } _ => panic!("expected folder"), } } #[test] fn parse_single_prop_stat_file() { let xml = r#" /remote.php/dav/files/admin/file.txt HTTP/1.1 200 OK file.txt Wed, 10 Apr 2019 14:00:00 GMT "5cafae80b1e3e" application/text 1234 "#; let parsed: ListMultiStatus = serde_xml_rs::from_str(xml).unwrap(); assert_eq!(parsed.responses.len(), 1); let response = parsed.responses[0].clone(); let list_entity = ListEntity::try_from(response).unwrap(); match list_entity { ListEntity::File(file) => { assert_eq!(file.href, "/remote.php/dav/files/admin/file.txt"); assert_eq!(file.last_modified.timestamp(), 1554904800); assert_eq!(file.tag, Some("\"5cafae80b1e3e\"".to_string())); assert_eq!(file.content_length, 1234); assert_eq!(file.content_type, "application/text"); } _ => panic!("expected folder"), } } /// Seen these cases in the wild so lets test for them. #[test] fn parse_multi_prop_stat_file() { let xml = r#" /remote.php/dav/files/admin/file.txt HTTP/1.1 200 OK file.txt Wed, 10 Apr 2019 14:00:00 GMT "5cafae80b1e3e" 1234 application/text HTTP/1.1 404 Not Found "#; let parsed: ListMultiStatus = serde_xml_rs::from_str(xml).unwrap(); assert_eq!(parsed.responses.len(), 1); let response = parsed.responses[0].clone(); let list_entity = ListEntity::try_from(response).unwrap(); match list_entity { ListEntity::File(file) => { assert_eq!(file.href, "/remote.php/dav/files/admin/file.txt"); assert_eq!(file.last_modified.timestamp(), 1554904800); assert_eq!(file.tag, Some("\"5cafae80b1e3e\"".to_string())); assert_eq!(file.content_length, 1234); assert_eq!(file.content_type, "application/text"); } _ => panic!("expected folder"), } } #[test] fn parse_multi_prop_stat_folder() { let xml = r#" /remote.php/dav/files/admin HTTP/1.1 200 OK Wed, 10 Apr 2019 14:00:00 GMT "5cafae80b1e3e" httpd/unix-directory HTTP/1.1 404 Not Found "#; let parsed: ListMultiStatus = serde_xml_rs::from_str(xml).unwrap(); assert_eq!(parsed.responses.len(), 1); let response = parsed.responses[0].clone(); let list_entity = ListEntity::try_from(response).unwrap(); match list_entity { ListEntity::Folder(folder) => { assert_eq!(folder.href, "/remote.php/dav/files/admin"); assert_eq!(folder.last_modified.timestamp(), 1554904800); assert_eq!(folder.quota_used_bytes, None); assert_eq!(folder.quota_available_bytes, None); assert_eq!(folder.tag, Some("\"5cafae80b1e3e\"".to_string())); } _ => panic!("expected folder"), } } #[test] fn parse_multi_prop_stat_folder_with_empty_props() { let xml = r#" /remote.php/dav/files/admin HTTP/1.1 200 OK Wed, 10 Apr 2019 14:00:00 GMT "5cafae80b1e3e" httpd/unix-directory HTTP/1.1 404 Not Found "#; let parsed: ListMultiStatus = serde_xml_rs::from_str(xml).unwrap(); assert_eq!(parsed.responses.len(), 1); let response = parsed.responses[0].clone(); let list_entity = ListEntity::try_from(response).unwrap(); match list_entity { ListEntity::Folder(folder) => { assert_eq!(folder.href, "/remote.php/dav/files/admin"); assert_eq!(folder.last_modified.timestamp(), 1554904800); assert_eq!(folder.quota_used_bytes, None); assert_eq!(folder.quota_available_bytes, None); assert_eq!(folder.tag, Some("\"5cafae80b1e3e\"".to_string())); } _ => panic!("expected folder"), } } #[test] fn parse_single_prop_stat_with_empty_last_modified() { let xml = r#" /remote.php/dav/files/admin HTTP/1.1 200 OK "5cafae80b1e3e" httpd/unix-directory "#; let parsed: ListMultiStatus = serde_xml_rs::from_str(xml).unwrap(); assert_eq!(parsed.responses.len(), 1); let response = parsed.responses[0].clone(); assert_eq!(response.prop_stat.get(0).unwrap().prop.last_modified, None); } #[test] fn parse_redirect_ref_unsupported() { let xml = r#" /remote.php/dav/files/admin/file.txt HTTP/1.1 200 OK file.txt Wed, 10 Apr 2019 14:00:00 GMT "5cafae80b1e3e" application/text 1234 "#; let parsed: ListMultiStatus = serde_xml_rs::from_str(xml).unwrap(); assert_eq!(parsed.responses.len(), 1); let response = parsed.responses[0].clone(); let list_entity = ListEntity::try_from(response); assert!(list_entity.is_err()); } /// Pretty sure this isn't where the redirect-lifetime response should be /// but testing this for consistency with the existing library. #[test] fn parse_redirect_lifetime_unsupported() { let xml = r#" /remote.php/dav/files/admin/file.txt HTTP/1.1 200 OK file.txt Wed, 10 Apr 2019 14:00:00 GMT "5cafae80b1e3e" application/text 1234 "#; let parsed: ListMultiStatus = serde_xml_rs::from_str(xml).unwrap(); assert_eq!(parsed.responses.len(), 1); let response = parsed.responses[0].clone(); let list_entity = ListEntity::try_from(response); assert!(list_entity.is_err()); } /// test list for nextcloud carddav #[test] fn parse_carddav() { let xml = r#" /nextcloud/remote.php/dav/addressbooks/users/admin/ HTTP/1.1 200 OK /nextcloud/remote.php/dav/addressbooks/users/admin/kontakte/ HTTP/1.1 200 OK /nextcloud/remote.php/dav/addressbooks/users/admin/z-server-generated--system/Database:admin.vcf Sat, 12 Apr 2025 08:55:06 GMT 10525 "9441c12dec6940919f049ef893dad0cd" text/vcard; charset=utf-8 HTTP/1.1 200 OK "#; let parsed: ListMultiStatus = serde_xml_rs::from_str(xml).unwrap(); assert_eq!(parsed.responses.len(), 3); let response = parsed.responses[1].clone(); let list_entity = ListEntity::try_from(response).unwrap(); if let Folder(folder) = list_entity { assert!(folder.address_book) } else { panic!("not folder") } } #[test] fn parse_calendar_data_prop() { let xml = r#" /remote.php/dav/calendars/user/personal/B3EECE08-5E62-407D-BD49-D8DCA03AC866.ics "df71b3a3de483d6b5bccde1571d77639" Tue, 12 Aug 2025 18:15:25 GMT 561 text/calendar; charset=utf-8; component=vevent BEGIN:VCALENDAR PRODID:-//IDN nextcloud.com//Calendar app 5.3.8//EN CALSCALE:GREGORIAN VERSION:2.0 BEGIN:VEVENT CREATED:20250812T181515Z DTSTAMP:20250812T181525Z LAST-MODIFIED:20250812T181525Z SEQUENCE:2 UID:29a07f82-706a-47eb-9d3b-3836d82851f6 DTSTART;TZID=Europe/Moscow:20250812T220015 DTEND;TZID=Europe/Moscow:20250812T230015 STATUS:CONFIRMED SUMMARY:Test event END:VEVENT BEGIN:VTIMEZONE TZID:Europe/Moscow BEGIN:STANDARD TZOFFSETFROM:+0300 TZOFFSETTO:+0300 TZNAME:MSK DTSTART:19700101T000000 END:STANDARD END:VTIMEZONE END:VCALENDAR HTTP/1.1 200 OK "#; let parsed: ListMultiStatus = serde_xml_rs::from_str(xml).unwrap(); assert_eq!(parsed.responses.len(), 1); let response = parsed.responses[0].clone(); let list_entity = ListEntity::try_from(response.clone()).unwrap(); match list_entity { ListEntity::File(file) => { assert_eq!(file.href, "/remote.php/dav/calendars/user/personal/B3EECE08-5E62-407D-BD49-D8DCA03AC866.ics"); assert_eq!(file.last_modified.timestamp(), 1755022525); assert_eq!( file.tag, Some("\"df71b3a3de483d6b5bccde1571d77639\"".to_string()) ); assert_eq!(file.content_length, 561); assert_eq!( file.content_type, "text/calendar; charset=utf-8; component=vevent" ); } _ => panic!("expected folder"), } assert_eq!(response.prop_stat.len(), 1); let list_prop_stat = response.prop_stat[0].clone(); assert_eq!(list_prop_stat.status, "HTTP/1.1 200 OK"); assert!(list_prop_stat.prop.last_modified.is_some()); assert_eq!( list_prop_stat.prop.last_modified.unwrap().timestamp(), 1755022525 ); assert!(list_prop_stat.prop.calendar_data.is_some()); assert_eq!( list_prop_stat.prop.calendar_data.unwrap(), r#"BEGIN:VCALENDAR PRODID:-//IDN nextcloud.com//Calendar app 5.3.8//EN CALSCALE:GREGORIAN VERSION:2.0 BEGIN:VEVENT CREATED:20250812T181515Z DTSTAMP:20250812T181525Z LAST-MODIFIED:20250812T181525Z SEQUENCE:2 UID:29a07f82-706a-47eb-9d3b-3836d82851f6 DTSTART;TZID=Europe/Moscow:20250812T220015 DTEND;TZID=Europe/Moscow:20250812T230015 STATUS:CONFIRMED SUMMARY:Test event END:VEVENT BEGIN:VTIMEZONE TZID:Europe/Moscow BEGIN:STANDARD TZOFFSETFROM:+0300 TZOFFSETTO:+0300 TZNAME:MSK DTSTART:19700101T000000 END:STANDARD END:VTIMEZONE END:VCALENDAR"# ); } } reqwest_dav-0.3.3/src/types/mod.rs000064400000000000000000000152301046102023000152340ustar 00000000000000pub mod list_cmd; use std::fmt; use std::fmt::{Debug, Display, Formatter}; use reqwest::Response; use serde_derive::{Deserialize, Serialize}; pub enum Error { Reqwest(reqwest::Error), ReqwestDecode(ReqwestDecodeError), Decode(DecodeError), MissingAuthContext, } pub enum DecodeError { DigestAuth(digest_auth::Error), NoAuthHeaderInResponse, SerdeXml(serde_xml_rs::Error), FieldNotSupported(FieldError), FieldNotFound(FieldError), StatusMismatched(StatusMismatchedError), Server(ServerError), } #[derive(Debug)] pub struct FieldError { pub field: String, } #[derive(Debug)] pub struct StatusMismatchedError { pub response_code: u16, pub expected_code: u16, } #[derive(Debug)] pub struct ServerError { pub response_code: u16, pub exception: String, pub message: String, } #[derive(Debug)] pub enum ReqwestDecodeError { Url(url::ParseError), HeaderToString(reqwest::header::ToStrError), InvalidHeaderValue(reqwest::header::InvalidHeaderValue), InvalidMethod(http::method::InvalidMethod), } impl Debug for Error { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { let mut builder = f.debug_struct("reqwest_dav::Error"); match self { Error::Reqwest(err) => { builder.field("kind", &"Reqwest"); builder.field("source", err); } Error::ReqwestDecode(err) => { builder.field("kind", &"ReqwestDecode"); builder.field("source", err); } Error::Decode(err) => { builder.field("kind", &"Decode"); builder.field("source", err); } Error::MissingAuthContext => { builder.field("kind", &"MissingAuthContext"); } } builder.finish() } } impl Display for Error { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { let mut builder = f.debug_struct("reqwest_dav::Error"); match self { Error::Reqwest(err) => { builder.field("kind", &"Reqwest"); builder.field("source", err); } Error::ReqwestDecode(err) => { builder.field("kind", &"ReqwestDecode"); builder.field("source", err); } Error::Decode(err) => { builder.field("kind", &"Decode"); builder.field("source", err); } Error::MissingAuthContext => { builder.field( "kind", &"Tried to make a digest request without a valid context.", ); } } builder.finish() } } impl Debug for DecodeError { fn fmt(&self, f: &mut Formatter<'_>) -> fmt::Result { match self { Self::DigestAuth(arg0) => f.debug_tuple("DigestAuth").field(arg0).finish(), Self::SerdeXml(arg0) => f.debug_tuple("SerdeXml").field(arg0).finish(), Self::FieldNotSupported(arg0) => f.debug_tuple("NotSupported").field(arg0).finish(), Self::FieldNotFound(arg0) => f.debug_tuple("NotFound").field(arg0).finish(), Self::StatusMismatched(arg0) => f.debug_tuple("StatusMismatched").field(arg0).finish(), Self::Server(arg0) => f.debug_tuple("Server").field(arg0).finish(), Self::NoAuthHeaderInResponse => f.debug_tuple("NoAuthHeaderInResponse").finish(), } } } impl Display for DecodeError { fn fmt(&self, f: &mut Formatter<'_>) -> fmt::Result { match self { Self::DigestAuth(arg0) => f.debug_tuple("DigestAuth").field(arg0).finish(), Self::SerdeXml(arg0) => f.debug_tuple("SerdeXml").field(arg0).finish(), Self::FieldNotSupported(arg0) => f.debug_tuple("NotSupported").field(arg0).finish(), Self::FieldNotFound(arg0) => f.debug_tuple("NotFound").field(arg0).finish(), Self::StatusMismatched(arg0) => f.debug_tuple("StatusMismatched").field(arg0).finish(), Self::Server(arg0) => f.debug_tuple("Server").field(arg0).finish(), Self::NoAuthHeaderInResponse => f.debug_tuple("NoAuthHeaderInResponse").finish(), } } } impl std::error::Error for Error {} impl From for Error { fn from(error: url::ParseError) -> Self { Error::ReqwestDecode(ReqwestDecodeError::Url(error)) } } impl From for Error { fn from(error: reqwest::Error) -> Self { Error::Reqwest(error) } } impl From for Error { fn from(error: reqwest::header::ToStrError) -> Self { Error::ReqwestDecode(ReqwestDecodeError::HeaderToString(error)) } } impl From for Error { fn from(error: reqwest::header::InvalidHeaderValue) -> Self { Error::ReqwestDecode(ReqwestDecodeError::InvalidHeaderValue(error)) } } impl From for Error { fn from(error: http::method::InvalidMethod) -> Self { Error::ReqwestDecode(ReqwestDecodeError::InvalidMethod(error)) } } impl From for Error { fn from(error: digest_auth::Error) -> Self { Error::Decode(DecodeError::DigestAuth(error)) } } impl From for Error { fn from(error: serde_xml_rs::Error) -> Self { Error::Decode(DecodeError::SerdeXml(error)) } } #[derive(Debug, Clone, Serialize, Deserialize)] struct DavErrorTmp { pub exception: String, pub message: String, } #[async_trait::async_trait] pub trait Dav2xx { async fn dav2xx(self) -> Result; } #[async_trait::async_trait] impl Dav2xx for Response { async fn dav2xx(self) -> Result { let code = self.status().as_u16(); if code / 100 == 2 { Ok(self) } else { let text = self.text().await?; let tmp: DavErrorTmp = match serde_xml_rs::from_str(&text) { Ok(tmp) => tmp, Err(_) => { return Err(Error::Decode(DecodeError::Server(ServerError { response_code: code, exception: "server exception and parse error".to_owned(), message: text, }))) } }; Err(Error::Decode(DecodeError::Server(ServerError { response_code: code, exception: tmp.exception, message: tmp.message, }))) } } } #[derive(Debug, Clone)] pub enum Auth { Anonymous, Basic(String, String), Digest(String, String), } #[derive(Debug, Clone)] pub enum Depth { Number(i64), Infinity, }