wasabi-generator

Crates.iowasabi-generator
lib.rswasabi-generator
version0.0.1
sourcesrc
created_at2019-02-14 23:55:33.00816
updated_at2019-02-14 23:55:33.00816
descriptionA crate that generates bindings and wrappers for wasabi-generated wasm files
homepagehttps://github.com/appcypher/wasabi
repositoryhttps://github.com/appcypher/wasabi
max_upload_size
id114855
size3,111
Stephen Akinyemi (appcypher)

documentation

https://github.com/appcypher/wasabi

README

THE GENERATOR

These are all ideas on how the final system could look like. Everything is still very much a work in progress.

wacc / wa++

wacc and wa++ commands are supposed to serve as a drop-in replacement for clang and clang++ respectively. They contain code needed for handling wasabi-specific arguments as well as passing proper flags to clang for wasm compilation.

One of wasabi-specific arguments is the --gen flag. It generates the necessary bindgen for a wasabi-generated wasm file and

  • Generating js wrapper code.
    wacc test.c -o test.wasm --gen=web
    
  • Generating wasmer wrapper code. It also determines the host data needed and creates a cargo project that can run the wasm file.
    wa++ test.cpp -o test.wasm --gen=wasmer
    
  • Generating nodejs wrapper code.
    wacc test.c -o test.wasm --gen=node
    

refs

  1. Compilation Flags
Commit count: 45

cargo fmt