Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/scristobal/game-of-wasm
Game of Life, inside a Web Component running on Web Asssembly
https://github.com/scristobal/game-of-wasm
gameoflife rust typescript wasm webassembly webcomponents
Last synced: about 5 hours ago
JSON representation
Game of Life, inside a Web Component running on Web Asssembly
- Host: GitHub
- URL: https://github.com/scristobal/game-of-wasm
- Owner: scristobal
- Created: 2022-08-21T14:14:57.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-09-17T19:05:31.000Z (about 2 months ago)
- Last Synced: 2024-09-17T23:32:43.042Z (about 2 months ago)
- Topics: gameoflife, rust, typescript, wasm, webassembly, webcomponents
- Language: JavaScript
- Homepage: https://game-of-wasm.messy.page/
- Size: 852 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# Rust-WASM experiments 🦀 🕸
This repo is a playground for experimentation with the interplay between Rust, Web Assembly and Web Components.
There is an implementation og Conway's Game of Life written in Rust and compiled to WASM, wrapped in a web component. The code is adapted from the Rust-WASM book, with a few tweaks/updates.
## 🪁 Try it
The repo is deployed here: .
## 🏗️ Build it
Clone the repo and make sure you have Rust and wasm-bindgen installed.
The repo has two main components:
- A Rust implementation of Conways' Game of Life `/`
- A sample page and web component wrapper under `site/`You need to build the Rust project first and then bring it into the sample site. To do so, simply run `just build`
You will need the `wasm32-unknown-unknown` target and `wasm-bindgen-cli` installed.