Skip to main content

Crate omnia_wasi_blobstore

Crate omnia_wasi_blobstore 

Source
Expand description

§Omnia WASI Blobstore

This crate provides the Blobstore interface for the Omnia runtime.

§Interface

Implements the wasi:blobstore WIT interface.

§Backend

  • Default: In-memory implementation. Data is not persisted across restarts.

§Usage

Add this crate to your Cargo.toml and use it in your runtime configuration:

use omnia::runtime;
use omnia_wasi_blobstore::BlobstoreDefault;

omnia::runtime!({
    "blobstore": BlobstoreDefault,
});

§License

MIT OR Apache-2.0

§WASI Blobstore Service

This module implements a runtime service for wasi:blobstore (https://github.com/WebAssembly/wasi-blobstore).

Modules§

default_impl
Default in-memory implementation for wasi-blobstore

Macros§

omnia_wasi_view
Implementation of the WasiBlobstoreView trait for the store context.

Structs§

BlobstoreDefault
Default implementation for wasi:blobstore.
ContainerProxy
Proxy for a blobstore container.
OutgoingValue
Outgoing value for a blobstore operation.
StreamObjectNames
Stream of object names with position tracking for paginated reads.
WasiBlobstore
Host-side service for wasi:blobstore.
WasiBlobstoreCtxView
View into WasiBlobstoreCtx implementation and ResourceTable.

Traits§

Container
Providers implement the Container trait to allow the host to interact with different backend containers.
WasiBlobstoreCtx
A trait which provides internal WASI Blobstore context.
WasiBlobstoreView
A trait which provides internal WASI Blobstore state.

Type Aliases§

ContainerMetadata
Error
FutureResult
Result type for asynchronous operations.
IncomingValue
Incoming value for a blobstore operation.
ObjectMetadata
Result
Result type for blobstore operations.