wasabi

Crates.iowasabi
lib.rswasabi
version0.0.1
sourcesrc
created_at2019-02-14 23:43:46.507006
updated_at2019-02-14 23:43:46.507006
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
id114853
size60,997
Stephen Akinyemi (appcypher)

documentation

https://github.com/appcypher/wasabi

README

Wasabi Logo

WASABI

Wasabi is supposed to be a WebAssembly-focused way of generating wasm files from C/C++ code.

BUILDING THE PROJECT

BSD (macOS, ...) and Linux

  • 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:

    • clones the llvm repository and builds it using steps defined in wasmception. This step may take a while.
    • clones musl repository.
    • builds the wasabi project.
    • installs necessary commands like 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
    

Windows

  • N/A

ATTRIBUTIONS

Commit count: 45

cargo fmt