Slipstream Rust SDK (Grid)
Overview
This is a library for using host functions from the Slipstream runtime. It's more or less a wrapper for linked Wasm imports.
Features
- kvs. Provides access to the native in-runtime key-value store. You should be able to manage keys, values, and stores from within your functions. Note: stores are based on namespace set within a function. This allows for multiple stores per function, persisting instance state.
- ws. Provides server and client connections for modules.
We have plans to enable a few other things such as message queues in the near future. Stay tuned!
Example
Here's a simple example of a function that stores a username and a vector of bytes in the key-value store:
use ;
use ;
Find more examples here.