{"id":16848808,"url":"https://github.com/yoav-lavi/deno-deploy-rust-template","last_synced_at":"2025-04-11T06:40:45.059Z","repository":{"id":41533001,"uuid":"510073098","full_name":"yoav-lavi/deno-deploy-rust-template","owner":"yoav-lavi","description":"A template for creating Deno Deploy projects in Rust","archived":false,"fork":false,"pushed_at":"2022-07-24T19:58:05.000Z","size":57,"stargazers_count":13,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-25T04:34:59.690Z","etag":null,"topics":["deno","deno-deploy","rust","template"],"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/yoav-lavi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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}},"created_at":"2022-07-03T16:13:30.000Z","updated_at":"2024-07-10T18:22:10.000Z","dependencies_parsed_at":"2022-08-26T23:42:10.563Z","dependency_job_id":null,"html_url":"https://github.com/yoav-lavi/deno-deploy-rust-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/yoav-lavi%2Fdeno-deploy-rust-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yoav-lavi%2Fdeno-deploy-rust-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yoav-lavi%2Fdeno-deploy-rust-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yoav-lavi%2Fdeno-deploy-rust-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yoav-lavi","download_url":"https://codeload.github.com/yoav-lavi/deno-deploy-rust-template/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248358549,"owners_count":21090401,"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":["deno","deno-deploy","rust","template"],"created_at":"2024-10-13T13:12:41.610Z","updated_at":"2025-04-11T06:40:45.037Z","avatar_url":"https://github.com/yoav-lavi.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n  \u003ch1\u003e\n    \u003ccode\u003edeno-deploy-rust-template\u003c/code\u003e\n  \u003c/h1\u003e\n\u003c/div\u003e\n\n\u003cp align=\"center\"\u003e\nA template for creating \u003ca href=\"https://deno.com/deploy\"\u003eDeno Deploy\u003c/a\u003e projects in Rust\n\u003c/p\u003e\n\n## Prerequisites\n\n- [`cargo-generate`](https://github.com/cargo-generate/cargo-generate)\n- [`cargo-make`](https://github.com/sagiegurari/cargo-make#installation)\n\n\u003cdetails\u003e\n  \u003csummary\u003ePrerequisites for usage without \u003ccode\u003ecargo-make\u003c/code\u003e\u003c/summary\u003e\n  \u003cbr\u003e\n  \u003cul\u003e\n    \u003cli\u003e\u003ca href=\"https://github.com/cargo-generate/cargo-generate\"\u003e\u003ccode\u003ecargo-generate\u003c/code\u003e\u003c/a\u003e\u003c/li\u003e\n    \u003cli\u003e\u003ca href=\"https://rustwasm.github.io/wasm-bindgen/reference/cli.html\"\u003e\u003ccode\u003ewasm-bindgen-cli\u003c/code\u003e\u003c/a\u003e\u003c/li\u003e\n    \u003cli\u003e\u003ca href=\"https://deno.land\"\u003e\u003ccode\u003edeno\u003c/code\u003e\u003c/a\u003e\u003c/li\u003e\n    \u003cli\u003e\u003ca href=\"https://github.com/denoland/deployctl\"\u003e\u003ccode\u003edeployctl\u003c/code\u003e\u003c/a\u003e\u003c/li\u003e\n  \u003c/ul\u003e\n\u003c/details\u003e\n\n## Usage\n\n\u003e **Note**\n\u003e\n\u003e If using `cargo make`, any commands requiring `deno` will attempt to install `deno` via `cargo`, if it is not already installed and in your `$PATH`.\n\u003e If you want to install `deno` via other means and haven't already, do so before running any `cargo make` commands.\n\n### Using this template\n\n```sh\ncargo generate gh:yoav-lavi/deno-deploy-rust-template\n```\n\n### Building your project\n\n```sh\ncargo make build-wasm\n```\n\n\u003cdetails\u003e\n  \u003csummary\u003eManual command\u003c/summary\u003e\n  \u003cbr\u003e\n  \u003cpre\u003erustup target add wasm32-unknown-unknown\u003cbr\u003e\u0026\u0026 cargo build --release --target wasm32-unknown-unknown\u003cbr\u003e\u0026\u0026 wasm-bindgen target/wasm32-unknown-unknown/release/{{crate_name}}.wasm --target deno --out-dir build/\u003c/pre\u003e\n\u003c/details\u003e\n\n### Deploying to Deno Deploy\n\n\u003e **Note**\n\u003e\n\u003e Create a new token in the Deno Deploy (under \"Access Tokens\") and use it in place of `...` in `DENO_DEPLOY_TOKEN=...`\n\u003e\n\u003e If `~/.deno/bin` is not in your `$PATH`, you will need to add it for this command to work\n\n```sh\nDENO_DEPLOY_TOKEN=... cargo make deploy\n```\n\n\u003cdetails\u003e\n  \u003csummary\u003eManual command\u003c/summary\u003e\n  \u003cbr\u003e\n  \u003cpre\u003edeployctl deploy --token=... --project={{deno-deploy-project-name}} src/index.ts --exclude \"target/\"\u003c/pre\u003e\n\u003c/details\u003e\n\n### Running your project with Deno\n\n```sh\ncargo make run\n```\n\n\u003cdetails\u003e\n  \u003csummary\u003eManual command\u003c/summary\u003e\n  \u003cbr\u003e\n  \u003cpre\u003edeno run --allow-read --allow-net --allow-env src/index.ts\u003c/pre\u003e\n\u003c/details\u003e\n\n### Running tests\n\n```sh\ncargo make test-rust\ncargo make test-integration\n```\n\n\u003cdetails\u003e\n  \u003csummary\u003eManual command\u003c/summary\u003e\n  \u003cbr\u003e\n  \u003cpre\u003ecargo test --target wasm32-unknown-unknown\u003cbr\u003edeno test --allow-read --allow-net --allow-env tests/integration.ts\u003c/pre\u003e\n\u003c/details\u003e\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyoav-lavi%2Fdeno-deploy-rust-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyoav-lavi%2Fdeno-deploy-rust-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyoav-lavi%2Fdeno-deploy-rust-template/lists"}