{"id":13694946,"url":"https://github.com/anderejd/electron-wasm-rust-example","last_synced_at":"2026-03-10T18:17:10.055Z","repository":{"id":34587368,"uuid":"180457203","full_name":"anderejd/electron-wasm-rust-example","owner":"anderejd","description":"A minimal Electron + WebAssembly (WASM) + 🦀 Rust example.","archived":false,"fork":false,"pushed_at":"2022-12-08T21:42:03.000Z","size":123,"stargazers_count":291,"open_issues_count":10,"forks_count":16,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-11-12T21:39:37.499Z","etag":null,"topics":["electron","example","rust","wasm-bindgen","webassembly"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/anderejd.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-APACHE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-04-09T22:13:23.000Z","updated_at":"2024-10-19T18:07:43.000Z","dependencies_parsed_at":"2023-01-15T07:56:31.058Z","dependency_job_id":null,"html_url":"https://github.com/anderejd/electron-wasm-rust-example","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/anderejd%2Felectron-wasm-rust-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anderejd%2Felectron-wasm-rust-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anderejd%2Felectron-wasm-rust-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anderejd%2Felectron-wasm-rust-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/anderejd","download_url":"https://codeload.github.com/anderejd/electron-wasm-rust-example/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252144558,"owners_count":21701434,"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":["electron","example","rust","wasm-bindgen","webassembly"],"created_at":"2024-08-02T17:01:51.821Z","updated_at":"2026-03-10T18:17:09.994Z","avatar_url":"https://github.com/anderejd.png","language":"JavaScript","readme":"electron-wasm-rust-example\n==========================\n\nA minimal Electron + WebAssembly (WASM) + Rust example.\n\n\u003cimg src=\"https://user-images.githubusercontent.com/3704611/55944698-73ff7400-5c49-11e9-82f0-ade167ae2754.png\" width=\"269px\"\u003e\n\nThis example application is based on:\n\n - https://gist.github.com/jarek-foksa/0f6e82bdaf8fb1962c9e14035a8725e4\n - https://github.com/rustwasm/wasm-bindgen/tree/master/examples/without-a-bundler\n - https://github.com/anderejd/wasm-bindgen-minimal-example\n\nRust setup\n----------\n\n 1. Install Rust \u003chttps://www.rust-lang.org/\u003e\n 1. Add the WASM target, `rustup target add wasm32-unknown-unknown`\n 1. Install wasm-bindgen, the __same version__ as in this [Cargo.toml](Cargo.toml), `cargo install -f --version 0.2.47 wasm-bindgen-cli`\n\nNPM setup\n---------\n\n 1. Install Node.js \u0026 NPM\n 1. Clone this repository `git clone git@github.com:anderejd/electron-wasm-rust-example.git`\n 1. Enter the new directory `cd electron-wasm-rust-example`\n 1. Download/install npm dependencies (Electron) for this example, `npm install` \u003chttps://electronjs.org/docs/tutorial/installation\u003e\n\nBuild the Rust code into WASM\n-----------------------------\n\nUse the `build.sh` or `build.ps1` script to build the WebAssembly module.\n\nRun the app during development\n------------------------------\n\n`npm start`\n\nPackaging the application for end-users\n---------------------------------------\n\nTODO: Depend on and add scripts(?) for \u003chttps://github.com/electron-userland/electron-builder\u003e, see issue [#7].\n\n[#7]: https://github.com/anderejd/electron-wasm-rust-example/issues/7\n","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanderejd%2Felectron-wasm-rust-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanderejd%2Felectron-wasm-rust-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanderejd%2Felectron-wasm-rust-example/lists"}