anderejd / Electron Wasm Rust Example
Licence: other
A minimal Electron + WebAssembly (WASM) + 🦀 Rust example.
Stars: ✭ 227
Programming Languages
javascript
184084 projects - #8 most used programming language
rust
11053 projects
Projects that are alternatives of or similar to Electron Wasm Rust Example
Wasm By Example
Wasm By Example is a website with a set of hands-on introduction examples and tutorials for WebAssembly (Wasm)
Stars: ✭ 226 (-0.44%)
Mutual labels: example, webassembly
Opengl cmake skeleton
❤️ A ready to use cmake skeleton using GLFW, Glew and glm. 👍
Stars: ✭ 118 (-48.02%)
Mutual labels: example, webassembly
widgets playground
Showcase example for https://github.com/therecipe/qt
Stars: ✭ 50 (-77.97%)
Mutual labels: example, webassembly
Made With Webassembly
A showcase of awesome production applications, side projects, and use cases made with WebAssembly (Wasm). 👷
Stars: ✭ 132 (-41.85%)
Mutual labels: example, webassembly
go-wasm-examples
Some small examples of using Go and WebAssembly
Stars: ✭ 22 (-90.31%)
Mutual labels: example, webassembly
Webassembly Examples
From Simple To Complex. A complete collection of webassembly examples.
Stars: ✭ 177 (-22.03%)
Mutual labels: example, webassembly
Image Upload Example
Demonstration of how to upload images from the ImagePicker, using a node backend to upload to S3
Stars: ✭ 214 (-5.73%)
Mutual labels: example
Graphql Go Example
Example use of https://github.com/graph-gophers/graphql-go
Stars: ✭ 222 (-2.2%)
Mutual labels: example
Customasm
💻 An assembler for custom, user-defined instruction sets! https://hlorenzi.github.io/customasm/web/
Stars: ✭ 211 (-7.05%)
Mutual labels: webassembly
Ppci
A compiler for ARM, X86, MSP430, xtensa and more implemented in pure Python
Stars: ✭ 210 (-7.49%)
Mutual labels: webassembly
Learn To Send Email Via Google Script Html No Server
📧 An Example of using an HTML form (e.g: "Contact Us" on a website) to send Email without a Backend Server (using a Google Script) perfect for static websites that need to collect data.
Stars: ✭ 2,718 (+1097.36%)
Mutual labels: example
Javascript Total
Сборник практических вопросов, задач разного уровня сложности, сниппетов (утилит), паттерны проектирования, а также полезные ссылки по JavaScript
Stars: ✭ 214 (-5.73%)
Mutual labels: example
Wasm Worker
Move a WebAssembly module into its own thread
Stars: ✭ 215 (-5.29%)
Mutual labels: webassembly
Asm Dom
A minimal WebAssembly virtual DOM to build C++ SPA (Single page applications)
Stars: ✭ 2,604 (+1047.14%)
Mutual labels: webassembly
Porcupine
On-device wake word detection powered by deep learning.
Stars: ✭ 2,606 (+1048.02%)
Mutual labels: webassembly
Flvplayer
🍭 FlvPlayer.js is a JavaScript player for decode flv to the canvas
Stars: ✭ 210 (-7.49%)
Mutual labels: webassembly
Serverless Analytics
Track website visitors with Serverless Analytics using Kinesis, Lambda, and TypeScript.
Stars: ✭ 219 (-3.52%)
Mutual labels: example
Way Of Life
Conway's game of life implemented in JavaScript & WebAssembly, rendered to canvas.
Stars: ✭ 218 (-3.96%)
Mutual labels: webassembly
electron-wasm-rust-example
A minimal Electron + WebAssembly (WASM) + Rust example.
This example application is based on:
- https://gist.github.com/jarek-foksa/0f6e82bdaf8fb1962c9e14035a8725e4
- https://github.com/rustwasm/wasm-bindgen/tree/master/examples/without-a-bundler
- https://github.com/anderejd/wasm-bindgen-minimal-example
Rust setup
- Install Rust https://www.rust-lang.org/
- Add the WASM target,
rustup target add wasm32-unknown-unknown
- Install wasm-bindgen, the same version as in this Cargo.toml,
cargo install -f --version 0.2.47 wasm-bindgen-cli
NPM setup
- Install Node.js & NPM
- Clone this repository
git clone [email protected]:anderejd/electron-wasm-rust-example.git
- Enter the new directory
cd electron-wasm-rust-example
- Download/install npm dependencies (Electron) for this example,
npm install
https://electronjs.org/docs/tutorial/installation
Build the Rust code into WASM
Use the build.sh
or build.ps1
script to build the WebAssembly module.
Run the app during development
npm start
Packaging the application for end-users
TODO: Depend on and add scripts(?) for https://github.com/electron-userland/electron-builder, see issue #7.
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].