Skip to content

[BUG] wrangler fails to build rust workers project #12076

@UpcraftLP

Description

@UpcraftLP

What versions & operating system are you using?

Wrangler v4.60.0, Windows 11

Please provide a link to a minimal reproduction

https://github.com/cloudflare/workers-rs/tree/main/templates/axum

Describe the Bug

When running npx wrangler dev, wrangler tries to execute cargo install -q worker-build@^0.7 && worker-build --release and somehow the ^ gets removed, leading to a parsing error:

[custom build] error: invalid value 'worker-build@0.7' for '[CRATE[@<VER>]]...': unexpected end of input while parsing minor version number
[custom build] 
[custom build]   tip: if you want to specify SemVer range, add an explicit qualifier, like '^0.7'
[custom build] 
[custom build] For more information, try '--help'.

Please provide any relevant error logs

wrangler-2026-01-23_18-16-47_313.log

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    Status

    Untriaged

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions