All development of spin-componentize has been moved into the Spin repo.
This library converts a Spin module to a component.
Note that although the world specifies both inbound-redis
and inbound-http
exports, spin-componentize
will only export either or both according to what
the original module exported.
This crate requires a Rust installation v1.68 or later and a couple of Wasm targets:
rustup target add wasm32-wasi
rustup target add wasm32-unknown-unknown
Note that this is currently only a library and does not yet have a CLI interface, although that would be easy to add if desired.
To test whether the spin componentize process produces wasm components that can be used with wasmtime, we run "abi conformance" testing. These tests are run with a plain cargo test
invocation.
spin-componentize and the abi conformance tests use component adapters built from wasmtime.
See the adapters README for more information.