Skip to content
This repository has been archived by the owner on Feb 27, 2024. It is now read-only.

fermyon/spin-componentize

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

IMPORTANT: This repo is no longer under development.

All development of spin-componentize has been moved into the Spin repo.

spin-componentize

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.

Building

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.

Testing

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.

Wit and Adapters

spin-componentize and the abi conformance tests use component adapters built from wasmtime.

See the adapters README for more information.

About

Spin module->component converter

Resources

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published