Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,11 @@ updates:
prefix: "chore"
include: "scope"
- package-ecosystem: "cargo"
directory: "/"
# The test worker is its own package with its own lock, outside the
# workspace; bump both together so their `worker` versions stay in step.
directories:
- "/"
- "/crates/sqlx-cloudflare-d1/tests/worker"
schedule:
interval: "weekly"
open-pull-requests-limit: 10
Expand Down
50 changes: 25 additions & 25 deletions crates/sqlx-cloudflare-d1/tests/worker/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion crates/sqlx-cloudflare-d1/tests/worker/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ crate-type = ["cdylib"]
[dependencies]
sqlx-cloudflare-d1 = { path = "../.." }
sqlx = { version = "0.9", default-features = false, features = ["derive", "macros"] }
worker = { version = "0.8.6", features = ["d1"] }
worker = { version = "0.9.0", features = ["d1"] }
serde_json = "1"
futures-util = { version = "0.3", default-features = false }

Expand Down
45 changes: 22 additions & 23 deletions crates/sqlx-cloudflare-do/tests/worker/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion crates/sqlx-cloudflare-do/tests/worker/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ crate-type = ["cdylib"]
[dependencies]
sqlx-cloudflare-do = { path = "../.." }
sqlx = { version = "0.9", default-features = false, features = ["derive", "macros"] }
worker = "0.8.6"
worker = "0.9.0"
# `#[durable_object]` expands to code that names `wasm_bindgen` directly.
wasm-bindgen = "0.2"
serde_json = "1"
Expand Down
23 changes: 22 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,28 @@
# The integration tests: `worker-build` turns the test Worker into
# a wasm module and its JavaScript shim, and `wrangler dev --local`
# serves it against a local D1 -- no Cloudflare account involved.
pkgs.worker-build
# worker-build must match the `worker` the Workers use, and refuses
# a newer one: nixpkgs has 0.8.7, we are on `worker` 0.9. Drop the
# override once nixpkgs catches up.
#
# nixpkgs builds the -sys crates against system libraries, and
# zstd-sys finds no libzstd; let it build its own instead.
(pkgs.worker-build.overrideAttrs (old: rec {
version = "0.9.0";
src = pkgs.fetchFromGitHub {
owner = "cloudflare";
repo = "workers-rs";
tag = "v${version}";
hash = "sha256-zmeQp7db2rwfECp9p5NthKvzsZFnQPFO+eueIhFsIwE=";
fetchSubmodules = true;
};
cargoDeps = pkgs.rustPlatform.fetchCargoVendor {
inherit src;
name = "worker-build-${version}-vendor";
hash = "sha256-EbRwSrxRys2EcDfB88apmH5Rm0NUWLKtmGPS77fAhpI=";
};
dontCargoUseSystemLibs = true;
}))
pkgs.wrangler
pkgs.nodejs
];
Expand Down