Wrangler rustwasm-worker-template fails on the "wrangler preview --watch" step

Hi,

generate wrangler project with --type=rust, modified wrangler.toml accordingly and tried to launch:
wrangler preview --watch just to receive this output:

πŸŒ€  Compiling your project to WebAssembly...
[INFO]: 🎯  Checking for the Wasm target...
[INFO]: πŸŒ€  Compiling to Wasm...
    Finished release [optimized] target(s) in 0.06s
[INFO]: ⬇️  Installing wasm-bindgen...
[INFO]: Optional fields missing from Cargo.toml: 'description', 'repository', and 'license'. These are not necessary, but recommended
[INFO]: ✨   Done in 0.20s
[INFO]: πŸ“¦   Your wasm pkg is ready to publish at ./pkg.
Error: Your JavaScript project is missing a `package.json` file; is `./` the wrong directory?`

What am I missing? Why is it looking for package.json if it’s a rustwasm project?

Thanks!

It looks like a minor bug. Still builds and runs properly the worker.

Thanks, created a github issue in projects repo.

Seems to be fixed in a recent 1.3.1 wrangler release.