{"id":13473849,"url":"https://github.com/cloudflare/rustwasm-worker-template","last_synced_at":"2025-04-09T05:11:29.659Z","repository":{"id":38973539,"uuid":"176344401","full_name":"cloudflare/rustwasm-worker-template","owner":"cloudflare","description":"A template for kick starting a Cloudflare Worker project using workers-rs. Write your Cloudflare Worker entirely in Rust!","archived":false,"fork":false,"pushed_at":"2024-09-25T22:47:57.000Z","size":36,"stargazers_count":378,"open_issues_count":12,"forks_count":63,"subscribers_count":15,"default_branch":"master","last_synced_at":"2025-04-02T04:04:27.449Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cloudflare.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE_APACHE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-03-18T18:15:11.000Z","updated_at":"2025-03-23T14:18:08.000Z","dependencies_parsed_at":"2024-01-05T20:58:53.846Z","dependency_job_id":"2b9f6fbc-1d15-4b93-8314-e1dbed7a42f4","html_url":"https://github.com/cloudflare/rustwasm-worker-template","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudflare%2Frustwasm-worker-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudflare%2Frustwasm-worker-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudflare%2Frustwasm-worker-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudflare%2Frustwasm-worker-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cloudflare","download_url":"https://codeload.github.com/cloudflare/rustwasm-worker-template/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247980843,"owners_count":21027808,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-07-31T16:01:07.467Z","updated_at":"2025-04-09T05:11:29.646Z","avatar_url":"https://github.com/cloudflare.png","language":"Rust","funding_links":[],"categories":["Rust","Templates \u0026 Examples","Workers"],"sub_categories":["Starter Templates","Recipes"],"readme":"# Getting Started\n\nA template for kick starting a Cloudflare worker project using [`workers-rs`](https://github.com/cloudflare/workers-rs).\n\nThis template is designed for compiling Rust to WebAssembly and publishing the resulting worker to \nCloudflare's [edge infrastructure](https://www.cloudflare.com/network/).\n\n## Usage \n\nThis template starts you off with a `src/lib.rs` file, acting as an entrypoint for requests hitting\nyour Worker. Feel free to add more code in this file, or create Rust modules anywhere else for this\nproject to use. \n\nWith `wrangler`, you can build, test, and deploy your Worker with the following commands: \n\n```bash\n# compiles your project to WebAssembly and will warn of any issues\nwrangler build \n\n# run your Worker in an ideal development workflow (with a local server, file watcher \u0026 more)\nwrangler dev\n\n# deploy your Worker globally to the Cloudflare network (update your wrangler.toml file for configuration)\nwrangler publish\n```\n\nRead the latest `worker` crate documentation here: https://docs.rs/worker\n\n## WebAssembly\n\n`workers-rs` (the Rust SDK for Cloudflare Workers used in this template) is meant to be executed as \ncompiled WebAssembly, and as such so **must** all the code you write and depend upon. All crates and\nmodules used in Rust-based Workers projects have to compile to the `wasm32-unknown-unknown` triple. \n\nRead more about this on the [`workers-rs` project README](https://github.com/cloudflare/workers-rs).\n\n## Issues\n\nIf you have any problems with the `worker` crate, please open an issue on the upstream project \nissue tracker on the [`workers-rs` repository](https://github.com/cloudflare/workers-rs).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcloudflare%2Frustwasm-worker-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcloudflare%2Frustwasm-worker-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcloudflare%2Frustwasm-worker-template/lists"}