selium-remote-client 0.2.1

Selium module for supporting remote clients
docs.rs failed to build selium-remote-client-0.2.1
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.

Remote Client module

Provides users with a client library and CLI for orchestrating Selium applications and servers from afar.

Crate structure

This service has 4 crates:

  • selium-remote-client-cli (cli/) - CLI binary for executing commands via the selium-remote-client lib
  • selium-remote-client (client/) - client library that guests consume
  • selium-remote-client-protocol (protocol/) - wire protocol
  • selium-remote-client-server (server/) - WASM module run by the host

Usage

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

cargo build --release --target wasm32-unknown-unknown -p selium-remote-client-server
cp target/wasm32-unknown-unknown/release/selium_remote_client_server.wasm /path/to/selium-runtime/work/modules/

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

selium-runtime \
  --work-dir /path/to/selium-runtime/work \
  --module "path=selium_remote_client_server.wasm;capabilities=ChannelLifecycle,ChannelReader,ChannelWriter,ProcessLifecycle,NetQuicBind,NetQuicAccept,NetQuicRead,NetQuicWrite;args=utf8:localhost,u16:7000"