wasm-compose

A Bytecode Alliance project

A WebAssembly component composing library.

Crates.io version Download docs.rs docs

Overview

wasm-compose is a library for composing WebAssembly components from other WebAssembly components.

It is made available as the compose subcommand of wasm-tools.

Implementation status

A quick note on the implementation status of the component model proposal:

At this time of this writing, no WebAssembly runtimes have fully implemented the component model proposal.

Wasmtime has implementation efforts underway to support it, but it's still a work-in-progress.

Usage

With a configuration file present, run the compose command without any options to compose a component:

sh wasm-tools compose

Configuration

See configuring wasm-compose for more information on authoring configuration files.

Example

See the example directory for a complete example of composing WebAssembly components together.

License

This project is licensed under the Apache 2.0 license with the LLVM exception. See LICENSE for more details.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this project by you, as defined in the Apache-2.0 license, shall be licensed as above, without any additional terms or conditions.