Introducing Waxosuit

A secure, cloud-native exosuit for WebAssembly

The Waxosuit Robot
use guest::prelude::*;call_handler!(handle_call);pub fn handle_call(ctx: &CapabilitiesContext, 
cmd: &Command) -> Result<Event>
{
match cmd.payload {
Some(ref p) => match p.type_url.as_ref() {
http::TYPE_URL_HTTP_REQUEST =>
get_sensor_details(ctx, p.value.as_slice()),
core::TYPE_URL_HEALTH_REQUEST => Ok(Event::success()),
_ => Ok(Event::bad_dispatch(&p.type_url)),
},
None => Ok(http::Response::bad_request().as_event(true, None)),
}
}

In relentless pursuit of elegant simplicity. Tinkerer, writer of tech, fantasy, and sci-fi. Converting napkin drawings into code for @CapitalOne