From abadd62469df98cb152145b0a7e917cc3851dc77 Mon Sep 17 00:00:00 2001 From: MohammadHossein Sabourifar Date: Mon, 15 Dec 2025 10:41:11 +0330 Subject: [PATCH] fix: remove invalid pinned version in build command Templates currently generate: command = "cargo install -q worker-build@^0.7 && worker-build --release" Modern versions of Cargo reject the incomplete version specifier `@0.7`, causing: error: invalid value 'worker-build@0.7' ... unexpected end of input while parsing minor version number Change to unpinned install to use the latest compatible worker-build: command = "cargo install -q worker-build && worker-build --release" This resolves Cargo syntax errors on fresh Windows (and other) projects without affecting existing functionality. --- templates/hello-world-http/wrangler.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/hello-world-http/wrangler.toml b/templates/hello-world-http/wrangler.toml index 1cce2142..0f19d792 100644 --- a/templates/hello-world-http/wrangler.toml +++ b/templates/hello-world-http/wrangler.toml @@ -3,4 +3,4 @@ main = "build/index.js" compatibility_date = "{{ "now" | date: "%Y-%m-%d" }}" [build] -command = "cargo install -q worker-build@^0.7 && worker-build --release" \ No newline at end of file +command = "cargo install -q worker-build && worker-build --release"