selium-atlas-protocol 0.2.3

Selium module for indexing and discovering resources with URIs
Documentation

Atlas

The atlas is a directory service for discovering resources.

Crate structure

This service has 3 crates:

  • selium-atlas (client/) - client library that guests consume
  • selium-atlas-protocol (protocol/) - wire protocol
  • selium-atlas-server (server/) - WASM module run by the host

Usage

Compile the selium-atlas-server component to WebAssembly and install in the Runtime's work directory:

cargo build --release --target wasm32-unknown-unknown -p selium-atlas-server
cp target/wasm32-unknown-unknown/release/selium_atlas_server.wasm /path/to/selium-runtime/work/modules/

The selium-atlas-server component should be added to the Selium Runtime's initialisation args:

selium-runtime \
  --work-dir /path/to/selium-runtime/work \
  --module "path=selium_atlas_server.wasm;capabilities=ChannelLifecycle,ChannelReader,ChannelWriter"