Rust worker, cannot build default project

New project, ran
pnpm create cloudflare workers worker-rust
pnpm create cloudflare workers worker-rust
and I'm trying to run
pnpm wrangler dev
pnpm wrangler dev
but I get an error
Running custom build: cargo install -q worker-build && worker-build --release
error[E0658]: use of unstable library feature 'bool_to_option'
Running custom build: cargo install -q worker-build && worker-build --release
error[E0658]: use of unstable library feature 'bool_to_option'
I'll add my toml to a separate post
1 Reply
bret_pat
bret_pat14mo ago
my wrangler.toml
name = "" # todo
main = "build/worker/shim.mjs"
compatibility_date = "2022-01-20"

[vars]
WORKERS_RS_VERSION = "0.0.16"

[build]
command = "cargo install -q worker-build && worker-build --release"
name = "" # todo
main = "build/worker/shim.mjs"
compatibility_date = "2022-01-20"

[vars]
WORKERS_RS_VERSION = "0.0.16"

[build]
command = "cargo install -q worker-build && worker-build --release"
Seems like I needed to update my local version of rust. I think i've got it solved