Expand description
Server setup: options, router construction and the serve loop.
Structs§
- Interactive
- Whether the browser runtime (signals/shards/WebSocket) is available.
- Server
Options - Where and how to serve.
Functions§
- browser_
url - URL to open for a bound address (
0.0.0.0/::are not browsable → localhost). - bundle_
candidates - Directories searched for the Topcoat asset bundle (the browser runtime),
in order.
exe_diris the directory of the running executable. - router
- Build the router.
Some(bundle)enables live mode;Noneserves the static dashboard. - serve
- Bind and serve until the process is killed.