https://github.com/wezm/deno-rust-wasm
Template repository for building a Rust project for deployment to Deno Deploy
https://github.com/wezm/deno-rust-wasm
deno rust wasm
Last synced: 4 months ago
JSON representation
Template repository for building a Rust project for deployment to Deno Deploy
- Host: GitHub
- URL: https://github.com/wezm/deno-rust-wasm
- Owner: wezm
- License: 0bsd
- Created: 2022-09-17T06:34:10.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-09-17T07:58:19.000Z (almost 4 years ago)
- Last Synced: 2025-03-25T07:04:23.623Z (over 1 year ago)
- Topics: deno, rust, wasm
- Language: Makefile
- Homepage:
- Size: 4.88 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Deno Rust Wasm Template
=======================
This is a template repository for a Rust project that is compiled to Wasm for
[Deno]. Use it to build a project in Rust to run with Deno and deploy to
[Deno Deploy].
Usage
-----
### Dependencies
* [Rust] with `wasm32-unknown-unknown` target installed
* [Deno]
* [wasm-bindgen]
* `make` (GNU make or BSD make will work)
### Tasks
After cloning the repo the following tasks are available:
* `make` — build the project
* `make run` — run the web server, building if necessary
* `make test` — run the integration tests
Deployment
----------
There are a few ways to deploy a project using this template to Deno Deploy:
* Manually with `deployctl`
* [Automatic git integration](https://deno.com/deploy/docs/projects#git-integration)
* GitHub Actions
The easiest, whilst also providing preview deployments is probably the
Automatic git integration. To do this there needs to be no build step so the
`build` directory must be committed to the repository.
[Rust]: https://www.rust-lang.org/
[wasm-bindgen]: https://github.com/rustwasm/wasm-bindgen
[Deno]: https://deno.land/
[Deno Deploy]: https://deno.com/deploy