Skip to content
Draft
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
5 changes: 2 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,8 @@ jobs:
- name: Build worker
working-directory: examples/cf-workers
run: |
# worker-build ^0.7 to match worker 0.7.x in Cargo.toml.
# worker-build 0.8+ requires worker 0.8+ (a separate upgrade).
cargo install worker-build --version "^0.7"
# worker-build ^0.8 to match worker 0.8.x in Cargo.toml.
cargo install worker-build --version "^0.8"
worker-build --release

- name: Write .dev.vars
Expand Down
82 changes: 58 additions & 24 deletions Cargo.lock

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

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter"] }

# Cloudflare Workers
# worker 0.7.5+ requires wasm-streams 0.5, which needs reqwest 0.13.2+ (via object_store 0.14)
worker = "0.7.5"
# Bumping the major requires a matching worker-build (see examples/cf-workers/wrangler.toml).
worker = "0.8"
wasm-bindgen = "0.2"
wasm-bindgen-futures = "0.4"
js-sys = "0.3"
Expand Down
2 changes: 2 additions & 0 deletions crates/cf-workers/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ Provides everything needed to run the multistore proxy on Cloudflare Workers: a

This crate only compiles for `wasm32-unknown-unknown`.

Depend on the same `worker` major version as this crate (see its `Cargo.toml`) so your Worker entrypoint and multistore resolve to a single `worker` copy in the bundle.

## Feature Flags

- `azure` — Azure Blob Storage backend support
Expand Down
5 changes: 2 additions & 3 deletions examples/cf-workers/wrangler.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@ main = "build/worker/shim.mjs"
name = "multistore"

[build]
# worker-build ^0.7 to match worker 0.7.x in Cargo.toml.
# worker-build 0.8+ requires worker 0.8+ (a separate upgrade).
command = "cargo install worker-build --version '^0.7' && worker-build --release"
# worker-build ^0.8 to match worker 0.8.x in Cargo.toml.
command = "cargo install worker-build --version '^0.8' && worker-build --release"

[vars]
VIRTUAL_HOST_DOMAIN = "s3.local"
Expand Down
Loading