cloudflare / templates

A collection of starter templates and examples for Cloudflare Workers and Pages
https://cloudflareworkers.com
MIT License
1k stars 638 forks source link

worker-rust example does not work #75

Closed Ponjimon closed 2 years ago

Ponjimon commented 2 years ago

Expected Behavior It works

Actual Behavior It throws an error:

✘ [ERROR] No loader is configured for ".rs" files: src/lib.rs

✘ [ERROR] Build failed with 1 error:

  error: No loader is configured for ".rs" files: src/lib.rs

Steps to Reproduce

  1. Run npm init cloudflare project_name worker-rust and cd project_name
  2. (Run npm run build and notice that there is no build script contrary to what the documentation states)
  3. Run npm run dev and it will throw the above error