Skip to content

augustocdias/rust-wasm-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A Simple Web Assembly Image Processing Test

This is a simple test to process images using web assembly. It was made using Rust and the the library image

Building

Requirements

Building and Running

  1. Run wasm-pack on the root of the project. This will generate the pkg directory, which contains the bindings from rust to javascript.
  2. Go to www folder and run npm install
  3. Go to pkg folder and run npm link
  4. Go to www folder and run npm link rust-wasm-test
  5. Inside www folder, run npm run start
  6. Navigate to http://localhost:8080

I've mapped it to support only BMP, PNG, and GIF(without animation) formats. I've tried JPEG, but it seems the underlying library from image called jpeg-decoder does not work in WASM.

About

simple wasm - rust test

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE_APACHE
MIT
LICENSE_MIT

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published