#websocket

bin+lib stateroom-cli

Command-line tool for developing Stateroom applications

8 releases

0.2.8 Feb 20, 2023
0.2.7 Feb 20, 2023
0.2.6 Sep 20, 2022
0.2.4 Aug 22, 2022
0.2.0 Jan 20, 2022

#945 in Command line utilities

Download history 1/week @ 2022-12-03 2/week @ 2022-12-10 7/week @ 2022-12-24 3/week @ 2023-01-07 9/week @ 2023-01-14 11/week @ 2023-01-21 20/week @ 2023-01-28 25/week @ 2023-02-04 14/week @ 2023-02-11 67/week @ 2023-02-18 8/week @ 2023-02-25

79 downloads per month

MIT/Apache

88KB
1.5K 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

~50MB
~1M SLoC