{"id":15031582,"url":"https://github.com/yamafaktory/rust-wasm-webpack","last_synced_at":"2025-10-04T01:31:08.840Z","repository":{"id":57355851,"uuid":"113735177","full_name":"yamafaktory/rust-wasm-webpack","owner":"yamafaktory","description":"A simple boilerplate to get WebAssembly (WASM) code generated by Rust and bundled by Webpack!","archived":true,"fork":false,"pushed_at":"2019-12-09T16:51:38.000Z","size":1123,"stargazers_count":88,"open_issues_count":8,"forks_count":4,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-01-15T21:26:52.177Z","etag":null,"topics":["rust","rustlang","wasm","webassembly","webpack"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yamafaktory.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-12-10T08:39:58.000Z","updated_at":"2023-01-28T16:25:39.000Z","dependencies_parsed_at":"2022-09-05T21:30:24.210Z","dependency_job_id":null,"html_url":"https://github.com/yamafaktory/rust-wasm-webpack","commit_stats":null,"previous_names":[],"tags_count":19,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yamafaktory%2Frust-wasm-webpack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yamafaktory%2Frust-wasm-webpack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yamafaktory%2Frust-wasm-webpack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yamafaktory%2Frust-wasm-webpack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yamafaktory","download_url":"https://codeload.github.com/yamafaktory/rust-wasm-webpack/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235208944,"owners_count":18953003,"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":["rust","rustlang","wasm","webassembly","webpack"],"created_at":"2024-09-24T20:16:06.117Z","updated_at":"2025-10-04T01:31:03.483Z","avatar_url":"https://github.com/yamafaktory.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# rust-wasm-webpack 🏎️ [![Build Status](https://travis-ci.org/yamafaktory/rust-wasm-webpack.svg?branch=master)](https://travis-ci.org/yamafaktory/rust-wasm-webpack) [![npm version](https://img.shields.io/npm/v/rust-wasm-webpack.svg?style=flat)](https://www.npmjs.com/package/rust-wasm-webpack) [![Standard - JavaScript Style Guide](https://img.shields.io/badge/code%20style-standard-brightgreen.svg)](http://standardjs.com/)\n\nA simple boilerplate to get WebAssembly (WASM) code generated by Rust and bundled by Webpack!\n\nThis project now uses the awesome [rust-native-wasm-loader](https://github.com/dflemstr/rust-native-wasm-loader) 🚀.\n\n## Prerequisite\n\nTo get started, we need to install **rustup**, the Rust toolchain installer:\n\n```sh\ncurl https://sh.rustup.rs -sSf | sh\n```\n\nPlease refer to its [documentation](https://github.com/rust-lang-nursery/rustup.rs).\n\n## Usage\n\n### Setup\n\nFirst, install the necessary NodeJS dependencies:\n\n```sh\nyarn\n```\n\nThe next step will update to the latest Rust nightly, add the `wasm32-unknown-unknown` toolchain and install [wasm-gc](https://github.com/alexcrichton/wasm-gc) from *git*. The latter is a small command to clean a wasm module and remove all unneeded exports, imports, functions, etc.\n\n```sh\nyarn setup\n```\n\n### Build\n\n*You can skip this step and directly launch the dev server.*\n\n```sh\nyarn build\n```\n\n### Launch the dev server\n\n```sh\nyarn start\n```\n\nGo to http://localhost:9000/ and enjoy!\n\n## License\n\nReleased under the [MIT license](https://opensource.org/licenses/MIT) by Davy Duperron.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyamafaktory%2Frust-wasm-webpack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyamafaktory%2Frust-wasm-webpack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyamafaktory%2Frust-wasm-webpack/lists"}