wasmCloud Component
wasmCloud is an open source Cloud Native Computing Foundation (CNCF) project that enables teams to build, manage, and scale polyglot Wasm apps across any cloud, K8s, or edge. This crate provides pre-generated interfaces and idiomatic wrappers that aid in building WebAssembly components via the wasm32-wasip2 target.
⚠️ This crate is highly experimental and likely to experience breaking changes frequently. The host itself is relatively stable, but the APIs and public members of this crate are not guaranteed to be stable and may change in a backwards-incompatible way.
Usage
This crate is a collection of wasi and wasmcloud interfaces that can be used at runtime in a Wasm component running in wasmCloud. It can be imported in a Rust application and used directly rather than generating bindings manually in code.
// This crate can be used with `wit_bindgen` for interoperability with WIT types
// wit_bindgen::generate!({
// with: {
// "wasi:http/types@0.2.1": wasmcloud_component::wasi::http::types,
// "wasi:io/streams@0.2.1": wasmcloud_component::wasi::io::streams,
// },
// generate_all
// });
use Read;
use Deserialize;
use json;
use debug;
use ;
use ;
;
// The `http::Server` trait is a wrapper around `wasi:http/incoming-handler` that implements
// the `handle` function with the standard `http` crate.
export!;