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🦀
- Host: GitHub
- URL: https://github.com/codeforreal1/webassembly-rust
- Owner: codeforreal1
- Created: 2024-07-21T15:25:17.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-01-21T13:44:45.000Z (11 months ago)
- Last Synced: 2025-01-21T14:36:18.811Z (11 months ago)
- Language: TypeScript
- Homepage:
- Size: 159 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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