53 releases (1 stable)

new 1.0.0 Apr 17, 2024
1.0.0-alpha.1 Mar 18, 2024
0.33.0 Jan 26, 2024
0.32.1 Dec 28, 2023
0.2.1 Mar 26, 2021

#1228 in WebAssembly

Download history 275/week @ 2023-12-23 276/week @ 2023-12-30 535/week @ 2024-01-06 396/week @ 2024-01-13 302/week @ 2024-01-20 339/week @ 2024-01-27 328/week @ 2024-02-03 638/week @ 2024-02-10 526/week @ 2024-02-17 645/week @ 2024-02-24 482/week @ 2024-03-02 1251/week @ 2024-03-09 1295/week @ 2024-03-16 726/week @ 2024-03-23 1140/week @ 2024-03-30 720/week @ 2024-04-06

4,206 downloads per month
Used in 5 crates

Apache-2.0

110KB
2K SLoC

Crates.io Documentation Rustdocs

wasmCloud Control Interface Client

This library is a convenient API for interacting with the lattice control interface. This is a Rust crate that implements the lattice control protocol as described in the wasmCloud reference documentation.

The lattice control interface provides a way for clients to interact with the lattice to issue control commands and queries. This interface is a message broker protocol that supports functionality like starting and stopping components and providers, declaring link definitions, monitoring lattice events, holding auctions to determine scheduling compatibility, and more.


lib.rs:

Control Interface Client

This library provides a client API for consuming the wasmCloud control interface over a NATS connection. This library can be used by multiple types of tools, and is also used by the control interface capability provider and the wash CLI

Usage

All of the [Client] functions are handled by a wasmCloud host running in the specified lattice. Each function returns a Result<CtlResponse<T>> wrapper around the actual response type. The outer result should be handled for protocol (timeouts, no hosts available) and deserialization errors (invalid response payload). The inner result is the actual response from the host(s) and should be handled for application-level errors.

Dependencies

~30–47MB
~845K SLoC