Project Templates
Cloudflare Workers Template
Files included:
wrangler.jsonc: Wrangler configurationpackage.json: Node.js dependencies (for Wrangler)src/index.js: JavaScript entry pointwasm-app/: Rust WASM module source
Build with:
cd wasm-app
cargo build --target wasm32-unknown-unknown --release
Run locally:
npx wrangler dev
Deploy:
npx wrangler deploy
Fastly Compute Template
Files included:
fastly.toml: Fastly service configurationCargo.toml: Rust project configurationsrc/main.rs: Application entry pointsrc/lib.rs: WASM module
Build with:
cargo build --target wasm32-wasi --release
Run locally:
fastly compute serve
Deploy:
fastly compute deploy
Spin Template
Files included:
spin.toml: Spin application manifesthownCargo.toml: Rust project configurationsrc/lib.rs: Application entry point
Build with:
spin build
Run locally:
spin up
Deploy:
spin deploy
Cloud Run Template
Files included:
Dockerfile: Container image definitionCargo.toml: Rust project configurationsrc/main.rs: HTTP server entry pointsrc/uzumibi.rs: Uzumibi integration
Build with:
cargo build --release
Run locally:
cargo run
Deploy:
gcloud builds submit --tag gcr.io/PROJECT_ID/app
gcloud run deploy --image gcr.io/PROJECT_ID/app