This is a template to get started with Cloudflare workers written in Rust.
- Only Rust, you don't need to write code in any other language.
- Ready to use
- Queue events prepared
- Fetch events set up
- Custom panic configured (using the log provided by Cloudflare)
- Automatic Deploy with GitHub Actions
- Nix environment for comfortable working
Important
You must check the Cargo.toml
, wrangler.toml
and src/lib.rs
files.
To remove the comments you need to implement
Rename the project in the Cargo.toml
and wrangler.toml
files.
To build and deploy this project, you will need the following:
Important
To test the worker locally, see the official documentation
This project is configured to deploy automatically using GitHub Actions workflows. For it to work correctly, you must set up the following secrets on GitHub:
CLOUDFLARE_ACCOUNT_ID
: ID of your Cloudflare account.CLOUDFLARE_API_TOKEN
: Cloudflare API token.