#webassembly #wasm #wasi #wascc #wapc

bin+lib wascc-host

WebAssembly Secure Capabilities Connector (waSCC) Host Runtime

15 releases (4 breaking)

✓ Uses Rust 2018 edition

new 0.5.3 Mar 24, 2020
0.5.2 Mar 12, 2020
0.4.0 Mar 3, 2020
0.3.2 Feb 25, 2020
0.1.5 Dec 20, 2019

#31 in WebAssembly

Download history 40/week @ 2019-12-09 32/week @ 2019-12-16 14/week @ 2019-12-23 2/week @ 2019-12-30 17/week @ 2020-01-06 17/week @ 2020-01-13 64/week @ 2020-01-20 50/week @ 2020-01-27 51/week @ 2020-02-03 30/week @ 2020-02-10 77/week @ 2020-02-17 140/week @ 2020-02-24 206/week @ 2020-03-02 426/week @ 2020-03-09 508/week @ 2020-03-16

583 downloads per month

Apache-2.0

225KB
1.5K SLoC

crates.io  travis  license  documentation

waSCC Host

The WebAssembly Secure Capabilities Connector (waSCC) host library allows consumers to add actor modules, portable capability providers, and native capability providers to a single runtime host and provide each of those modules with their own unique, per-capability configuration. This allows actors to each have their own separate message broker subscriptions, key-value stores, HTTP server ports, etc.

For more information on concepts, architecture, and tutorials, check out wascc.dev.

Examples

To run the examples, simply issue the following command (assuming you have the latest version of Rust installed) from the root wascc-host directory:

$ RUST_LOG=info,cranelift_wasm=warn cargo run --example [example name]

Where the example name is the name (without the .rs) of any of the examples in the examples folder.

Pre-Requisites - For the subscriber example, you will need an instance of NATS running locally. For the kvcounter example, you will need Redis running locally on the default port.

WARNING - This API is experimental and subject to breaking changes.

NOTE - All of these examples use native capability providers, and therefore utilize the linux dynamic libraries (.so files). To use these examples on a Mac, you will need to manully build Mac dynamic libraries (.dylib files) and modify the examples to read those files instead.

waSCC on Kubernetes

Looking to deploy waSCC actors on Kubernetes? Check out the krustlet project.

Dependencies

~31MB
~683K SLoC