From 39b66be896db4cde487a9e859b4ea8fa29920626 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Thu, 13 Jun 2024 01:48:25 +0000 Subject: [PATCH] Update Rust crate worker to 0.3.0 (#362) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [worker](https://togithub.com/cloudflare/workers-rs) | workspace.dependencies | minor | `0.2.0` -> `0.3.0` | --- ### Release Notes
cloudflare/workers-rs (worker) ### [`v0.3.0`](https://togithub.com/cloudflare/workers-rs/releases/tag/v0.3.0) [Compare Source](https://togithub.com/cloudflare/workers-rs/compare/v0.2.0...v0.3.0) #### What's Changed - Rust-friendly [DigestStream](https://developers.cloudflare.com/workers/runtime-apis/web-crypto/#constructors) API (see [example](https://togithub.com/cloudflare/workers-rs/blob/main/examples/digest/src/lib.rs)) by [@​dakom](https://togithub.com/dakom) in [https://github.com/cloudflare/workers-rs/pull/529](https://togithub.com/cloudflare/workers-rs/pull/529) - Introduce cargo generate templates and update getting started by [@​kflansburg](https://togithub.com/kflansburg) in [https://github.com/cloudflare/workers-rs/pull/559](https://togithub.com/cloudflare/workers-rs/pull/559) > \[!TIP] > You can now get started in seconds by running `cargo generate cloudflare/workers-rs`! - Implement Send, Sync and Clone for some Durable Object types for better `axum` ergonomics by [@​avsaase](https://togithub.com/avsaase) in [https://github.com/cloudflare/workers-rs/pull/563](https://togithub.com/cloudflare/workers-rs/pull/563) - Hyperdrive binding by [@​avsaase](https://togithub.com/avsaase) in [https://github.com/cloudflare/workers-rs/pull/566](https://togithub.com/cloudflare/workers-rs/pull/566) > \[!TIP] > You can now use [Workers Hyperdrive](https://developers.cloudflare.com/hyperdrive/get-started/) to speed up connections to your SQL database using `tokio-postgres`. Check out our updated [example](https://togithub.com/cloudflare/workers-rs/blob/main/examples/tokio-postgres/src/lib.rs). - Add MSRV to `worker` crate by [@​KianNH](https://togithub.com/KianNH) in [https://github.com/cloudflare/workers-rs/pull/570](https://togithub.com/cloudflare/workers-rs/pull/570) > \[!CAUTION] > Rust 1.75 or greater is now required due to use of `impl Trait` in trait method return type. - Use `u64` for R2 range requests by [@​kflansburg](https://togithub.com/kflansburg) in [https://github.com/cloudflare/workers-rs/pull/564](https://togithub.com/cloudflare/workers-rs/pull/564) > \[!CAUTION] > In order to support range requests larger than 4GB, `worker_sys::R2Range` now accepts `f64` instead of `u32`. `worker::Range` options have changed to make the functionality more clear and now accept `u64` instead of `u32`. - Add `encodeBody` and `cf` to ResponseInit. Adopt builder pattern. by [@​kflansburg](https://togithub.com/kflansburg) in [https://github.com/cloudflare/workers-rs/pull/568](https://togithub.com/cloudflare/workers-rs/pull/568) > \[!CAUTION] > This change removes `ResponseInit`, which is replaced by an idiomatic `ResponseBuilder` pattern, all other APIs should remain unchanged. In addition, the `encodeBody` property is now available to support returning pre-compressed data. #### New Contributors - [@​sachaos](https://togithub.com/sachaos) made their first contribution in [https://github.com/cloudflare/workers-rs/pull/572](https://togithub.com/cloudflare/workers-rs/pull/572) - [@​thiskevinwang](https://togithub.com/thiskevinwang) made their first contribution in [https://github.com/cloudflare/workers-rs/pull/575](https://togithub.com/cloudflare/workers-rs/pull/575) **Full Changelog**: https://github.com/cloudflare/workers-rs/compare/v0.2.0...v0.3.0
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/spiraldb/vortex). Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- Cargo.lock | 12 ++++++------ Cargo.toml | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index e2ba998a77..026aa48a4a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -6238,9 +6238,9 @@ dependencies = [ [[package]] name = "worker" -version = "0.2.0" +version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "aa130f6f7e5a0b716e0f5472d412fe97962ded204d76ddaf3eeba7360dfcae93" +checksum = "d58b567e8b518469c73c8d7e4798d5abcd7db76a1b33121fffd36ac6fa62da05" dependencies = [ "async-trait", "bytes", @@ -6284,9 +6284,9 @@ dependencies = [ [[package]] name = "worker-macros" -version = "0.2.0" +version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6a0f7f15151a77dca96813d0eff10ab9b29114533fae0267d00c466c13081e69" +checksum = "15db63b1b56564beca160a5265169730a109fc85c21e858f184bb9e39afbfe44" dependencies = [ "async-trait", "proc-macro2", @@ -6300,9 +6300,9 @@ dependencies = [ [[package]] name = "worker-sys" -version = "0.2.0" +version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "14ee9baa2ef3c7dea0e2165ff8aaad15e4c4cedb2d30a7deefd4999cd0ae96a3" +checksum = "5c1082d3b324dd37fe9b25b1aa61a938e343d035650708986bf9d0aa9a020c84" dependencies = [ "cfg-if", "js-sys", diff --git a/Cargo.toml b/Cargo.toml index 30be15cffb..b32c5004c6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -102,7 +102,7 @@ tokio = "1.37.0" uninit = "0.6.2" uuid = "1.8.0" walkdir = "2.5.0" -worker = "0.2.0" +worker = "0.3.0" zigzag = "0.1.0" [workspace.lints.rust]