Skip to content

Commit

Permalink
Support worker 0.4.0 (#56)
Browse files Browse the repository at this point in the history
* support worker 0.4.0

* update worker version in example
  • Loading branch information
JorritSalverda authored Sep 27, 2024
1 parent d5cbd67 commit 062dd07
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build-worker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,16 @@ jobs:
node-version-file: '.nvmrc'

- name: Install Wrangler
run: npm install -g wrangler@3.52.0
run: npm install -g wrangler@3.78.7

- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: 1.76.0
toolchain: 1.81.0
target: wasm32-unknown-unknown
override: true

- name: Run Wrangler build
run: |
cd example &&
cd example &&
npx wrangler publish --dry-run --outdir=dist
2 changes: 1 addition & 1 deletion adapter/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ crate-type = ["cdylib", "lib"]

[dependencies]
axum = { version = "^0.7.1", default-features = false }
worker = { version = "^0.2.0" }
worker = { version = "^0.4.0" }
axum-wasm-macros = "^0.1.0"
futures = "0.3.29"

Expand Down
4 changes: 2 additions & 2 deletions example/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "todo-worker"
version = "0.0.0"
edition = "2021"
rust-version = "1.70.0"
rust-version = "1.81.0"

[lib]
crate-type = ["cdylib", "rlib"]
Expand All @@ -19,7 +19,7 @@ serde_json = "1.0.116"
tower-service = "0.3.2"
url = "2.5.0"
wasm-bindgen-futures = "0.4.34"
worker = "^0.2.0"
worker = "^0.4.0"

# The `console_error_panic_hook` crate provides better debugging of panics by
# logging them with `console.error`. This is great for development, but requires
Expand Down
2 changes: 1 addition & 1 deletion example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@
"devDependencies": {
"wrangler": "^2.0.0"
}
}
}
4 changes: 2 additions & 2 deletions example/wrangler.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
workers_dev = true
compatibility_date = "2023-11-29"
compatibility_date = "2024-09-22"

main = "build/worker/shim.mjs"
name = "axum-cloudflare-adapter"

[vars]
WORKERS_RS_VERSION = "0.1.0"
WORKERS_RS_VERSION = "0.4.0"

[build]
command = "cargo install -q worker-build && worker-build --release"

0 comments on commit 062dd07

Please sign in to comment.