workers-rs icon indicating copy to clipboard operation
workers-rs copied to clipboard

`cargo` on cloudflare workers

Open LoryPelli opened this issue 6 months ago • 2 comments

Do I really need to build and deploy locally, because on cloudflare workers run it says cargo command not found?

LoryPelli avatar Jul 16 '25 08:07 LoryPelli

There are various ways to deploy Rust directly that handle running the workers-rs project, although I haven't used one of these exact workflows to recommend here unfortnuately. If running locally you need cargo, which comes with Rust, which involves running curl https://sh.rustup.rs | sh && rustup target add wasm32-unknown-unknown.

guybedford avatar Jul 24 '25 23:07 guybedford

There are various ways to deploy Rust directly that handle running the workers-rs project, although I haven't used one of these exact workflows to recommend here unfortnuately. If running locally you need cargo, which comes with Rust, which involves running curl https://sh.rustup.rs | sh && rustup target add wasm32-unknown-unknown.

I already do it locally

LoryPelli avatar Jul 25 '25 05:07 LoryPelli