rustwasm-addon icon indicating copy to clipboard operation
rustwasm-addon copied to clipboard

🦀 + 🕸 + 🦊 // A web-extension to reverse a string. Yep.

wasmrust-addon

A web-extension written with Rust, WebAssembly and so on. This project is based on the rust-webpack-template. I also took inspiration in the wonderful Rust and WebAssembly book. What does this extension do? Thanks for asking, it does one thing but it does it terribly well! It reverses what's typed into the input!

:warning: There is a bug with wasm-bindgen > 0.2.34, make sure you have wasm-bindgen and wasm-bindgen-cli 0.2.34 installed. I am not actually sure how I did that but if you are a Rust user, you should be able to figure it out. Sorry.

Getting started

After having cloned the repository, install the dependencies:

$ npm i

Compile the project in dev mode (with watch mode enabled):

$ npm run dev

You can use web-ext to see the extension in action (with watch mode):

$ npm run web-ext-run

Building the extension

After having cloned the repository, install the dependencies:

$ npm i

Compile the project and generate both the extension and sources zip files. The dist-zip/ folder will contain both zip files and the dist/ folder will contain the compiled code of the extension:

$ npm run build:release