wit-pack package icon
wasmer/wit-pack
Public
wasmer run wasmer/wit-pack

WIT Pack

Continuous integration

(API Docs | User Docs)

Import your WebAssembly code just like any other dependency.

Getting Started

The easiest way to get started by installing with the wit-pack CLI.

$ cargo install --git https://github.com/wasmerio/wit-pack
$ wit-pack --version
wit-pack-cli 0.2.3

The wit-pack command accepts input in the form of Pirita containers, so let's download a container we can generate bindings for.

$ curl -O https://registry-cdn.wapm.dev/packages/wasmer/wit-pack/wit-pack-0.2.3.webc

Now we've got everything we need to generate Python bindings to the wit-pack package.

$ wit-pack python wit-pack-0.2.3.webc --out-dir ./py
$ tree ./py
./py
├── MANIFEST.in
├── pyproject.toml
└── wit_pack
    ├── bindings
    │   ├── __init__.py
    │   └── wit_pack
    │       ├── bindings.py
    │       ├── __init__.py
    │       └── wit-pack-wasm
    ├── commands
    │   ├── __init__.py
    │   └── wit-pack-wasm.wasm
    ├── __init__.py
    └── py.typed

4 directories, 10 files

We can generate JavaScript bindings with a similar command

$ wit-pack js wit-pack-0.2.3.webc --out-dir ./js
$ tree ./js
./js
├── package.json
└── src
    ├── index.d.ts
    ├── index.js
    └── wit-pack
        ├── index.d.ts
        ├── index.js
        ├── intrinsics.js
        ├── wit-pack.d.ts
        ├── wit-pack.js
        └── wit-pack-wasm

2 directories, 9 files

License

This project is licensed under the MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT).

It is recommended to always use cargo crev to verify the trustworthiness of each of your dependencies, including this one.

The WebAssembly interface to wit-pack.


Github
More packages
The WebAssembly interface to wit-pack.
ayushjha avatar
ayushjha
ayushjha avatar
ayushjha
The WebAssembly interface to wit-pack.
Michael Bryan
Michael Bryan
Michael Bryan
Michael Bryan
The WebAssembly interface to wasmer-pack.
A code generator that lets you treat WebAssembly modules like native dependencies.
आयुष झा (Ayush Jha)
आयुष झा (Ayush Jha)
आयुष झा (Ayush Jha)
आयुष झा (Ayush Jha)
A code generator that lets you treat WebAssembly modules like native dependencies.
A code generator that lets you treat WebAssembly modules like native dependencies.
ayushjha avatar
ayushjha
ayushjha avatar
ayushjha
baran/testing-pack-resovution website
A code generator that lets you treat WebAssembly modules like native dependencies.
Michael Bryan
Michael Bryan
Michael Bryan
Michael Bryan
A code generator that lets you treat WebAssembly modules like native dependencies.
A code generator that lets you treat WebAssembly modules like native dependencies.
habuayush avatar
habuayush
habuayush avatar
habuayush

Making software universally accessible