Skip to main content

Crate omnia_wasi_config

Crate omnia_wasi_config 

Source
Expand description

§Omnia WASI Config

This crate provides the Config interface for the Omnia runtime.

§Interface

Implements the wasi:config WIT interface.

§Backend

  • Default: Wraps wasmtime-wasi-config to provide configuration values from the host environment or configuration files.

§Usage

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

use omnia::runtime;
use omnia_wasi_config::ConfigDefault;

omnia::runtime!({
    "config": ConfigDefault,
});

§License

MIT OR Apache-2.0

§WASI Config Service

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

Re-exports§

pub use wasmtime_wasi_config;

Macros§

omnia_wasi_view
Implementation of the WasiConfigView trait for the store context.

Structs§

ConfigDefault
Default implementation for wasi:config.
WasiConfig
Host-side service for wasi:config.

Traits§

WasiConfigCtx
A trait which provides internal WASI Config context.
WasiConfigView
A trait which provides internal WASI Config state.