| Crates.io | wasabi |
| lib.rs | wasabi |
| version | 0.0.1 |
| created_at | 2019-02-14 23:43:46.507006+00 |
| updated_at | 2019-02-14 23:43:46.507006+00 |
| description | A crate that generates bindings and wrappers for wasabi-generated wasm files |
| homepage | https://github.com/appcypher/wasabi |
| repository | https://github.com/appcypher/wasabi |
| max_upload_size | |
| id | 114853 |
| size | 60,997 |
Wasabi is supposed to be a WebAssembly-focused way of generating wasm files from C/C++ code.
Clone the repository and its submodules.
git clone --recurse-submodules https://github.com/appcypher/wasabi.git
cd wasabi
Wasabi is a rust project so it depends on rustc and cargo.
curl https://sh.rustup.rs -sSf | sh
Build wasabi and its dependencies.
bash setup.sh install
This command does the following:
llvm repository and builds it using steps defined in wasmception. This step may take a while.musl repository.wasabi project.wacc, wa++ and wasabi.After a successful install you should be able to use the setup.sh script through the wasabi command.
wasabi --help
Use wacc or wa++ command
wacc test.c -o test.wasm
wa++ test.cpp -o test.wasm -Wl,--export=func --gen=web