The waSCC Actor SDK is used by Rust developers building cloud-native workloads for the wasm32-unknown-unknown
target. Using waSCC to host your WebAssembly module frees you from the burden of manually implementing traditional non-functional requirements and boilerplate that typically bogs down development time. waSCC lets you focus solely on writing the business logic in a portable, secure wasm module that can run anywhere there's a waSCC host.
For more documentation, tutorials, and examples, please check out the wascc website.
```rust extern crate wascc_actor as actor;
use actor::prelude::*;
actorhandlers!{ codec::http::OPHANDLEREQUEST => helloworld, codec::core::OPHEALTHREQUEST => health }
fn helloworld(req: codec::http::Request) -> ReceiveResult {
// Utilize capabilities here
// ...
Ok(vec![])
}
fn health(_req: codec::core::HealthRequest) -> ReceiveResult { Ok(vec![]) } ```
If you want more functionality beyond the simple println
call, then you can
sign your modules with the wascc:logging
capability and you'll be able to use the idiomatic Rust log
macros like debug!
, warn!
, trace!
, etc.