An open API service indexing awesome lists of open source software.

https://github.com/codeforreal1/webassembly-rust

A png image compression app using Web Assembly in Rust🦀
https://github.com/codeforreal1/webassembly-rust

Last synced: 9 months ago
JSON representation

A png image compression app using Web Assembly in Rust🦀

Awesome Lists containing this project

README

          

# Png image compression app using Web-Assembly & Rust

A png image compression app that compresses image fully locally on browser using Web Assembly.

### Building

This project uses `cargo-run-bin` to use `wasm-pack` to build from `Cargo.toml` instead of using it globally. This makes sure there's no any "It works on my machine" drama. So make sure to install [cargo-run-bin](https://crates.io/crates/cargo-run-bin) globally:

```
> cargo install cargo-run-bin

> cargo bin --install
```

You can now compile web-assembly code using:

```
> cargo wasmpack build

> make wasm.build
```

### Flow