10 releases

0.4.3 May 5, 2024
0.2.9 Apr 29, 2023
0.2.8 Feb 20, 2023
0.2.6 Sep 20, 2022
0.2.0 Jan 20, 2022

#224 in WebSocket

Download history 4/week @ 2024-02-26 3/week @ 2024-03-11 36/week @ 2024-03-25 3/week @ 2024-04-01 88/week @ 2024-04-29 39/week @ 2024-05-06

127 downloads per month

MIT/Apache

73KB
1K SLoC

stateroom-cli

This module implements a command-line interface for building and serving Stateroom services.

Installation

cargo install stateroom-cli

Commands

The stateroom command is new even relative to the other parts of Stateroom, so expect this list to grow over time and commands may be renamed or combined over time.

stateroom dev

By default, the command dev will:

  • Build the current module as a wasm32-wasi target.
  • Locate the wasm output.
  • Run a local server that exposes it on port 8080.

It can also be configured using a stateroom.toml file to serve static files and build a client-side WebAssembly module. See cli_opts.rs for

stateroom serve

The command serve [path/to/service.wasm] will set up a server for an existing WebAssembly file.

Dependencies

~29–42MB
~680K SLoC