loom-gateway · crate
Source declarations, signatures and documentation for crate.
Source: sigil/weave/tools/loom-gateway/src/lib.rs. SHA-256: e5ba2cd1c33e438f4b1d507d959e50b4cf120709993f8804b7991d9020d11af2.
This reference follows declared source modules, retains conditional attributes, and includes public declarations and implementation methods. Private-module re-exports and trait resolution require the compiler; this is a source reference, not a claim that every listed item is a root import. Function bodies and constant values are omitted.
pub use error::ApiError;
pub use error::ApiError;Source line: 38.
pub use state::AppState;
pub use state::AppState;Source line: 39.
pub use worker::{spawn as spawn_worker, WorkerRequest};
pub use worker::{spawn as spawn_worker, WorkerRequest};Source line: 40.
::router
Build the axum [Router] for the gateway.
pub fn router(state: AppState) -> Router;Source line: 53.
::serve
Convenience: spawn the worker thread, build the router, bind + serve.
workdir is the loom repo root containing .loom/.
pub async fn serve(
workdir: PathBuf,
default_branch: String,
addr: SocketAddr,
gateway_token: String,
) -> anyhow::Result<()>;Source line: 83.