docs(wit): document capability and component contracts
This commit is contained in:
@@ -1,4 +1,12 @@
|
||||
//! Example service that exercises persistent, service-scoped Host KV.
|
||||
//!
|
||||
//! Input uses the test protocol `get:<key>`, `set:<key>:<value>`, or
|
||||
//! `delete:<key>`. Production Components should define an application-specific
|
||||
//! request format instead of copying this colon-delimited probe protocol.
|
||||
|
||||
mod bindings {
|
||||
// `generate_all` emits both the service export and imported KV module from
|
||||
// the exact versions selected in `wit/world.wit`.
|
||||
wit_bindgen::generate!({
|
||||
path: "wit",
|
||||
world: "kv-probe-component",
|
||||
|
||||
@@ -4,12 +4,12 @@ schema_version = 1
|
||||
name = "wasmeld:kv"
|
||||
version = "0.1.0"
|
||||
source = "path+../../wit/kv"
|
||||
sha256 = "6dc3a84dc03c7104aa8b305518466c95e4440e1031c4bef3b59843f40f24d0fb"
|
||||
sha256 = "10dc81b1f04bd9c8f7b324a96e0c1d24d5af0c2dabfc723d003b8729cfd933d9"
|
||||
replaced = true
|
||||
|
||||
[[package]]
|
||||
name = "wasmeld:service"
|
||||
version = "0.1.0"
|
||||
source = "path+../../wit/service"
|
||||
sha256 = "d5497307bbcd1e159f7707f385b488a6f2e26362d5256d5bc1080ac603a51305"
|
||||
sha256 = "1b2069606ccbf5202789667570bc824f702f34b147aa38e81c2ab677444ffa0e"
|
||||
replaced = true
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
package component:kv-probe@0.1.0;
|
||||
|
||||
/// Base service exports plus the exact persistent KV Host capability used by
|
||||
/// this Component.
|
||||
world kv-probe-component {
|
||||
include wasmeld:service/service-component@0.1.0;
|
||||
import wasmeld:kv/store@0.1.0;
|
||||
|
||||
Reference in New Issue
Block a user