blueprint-router 0.2.0-alpha.2

Job routing utilities for the Blueprint SDK
docs.rs failed to build blueprint-router-0.2.0-alpha.2
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.
Visit the last successful build: blueprint-router-0.1.0-alpha.6

blueprint-router

Job routing layer for Blueprint runtimes.

blueprint-router maps incoming JobId values to async handlers and is the dispatch core used by blueprint-runner.

What to use it for

  • Registering job handlers by ID
  • Composing route tables for service job surfaces
  • Dispatching calls from heterogeneous producer sources

Example

use blueprint_router::Router;

async fn echo() -> &'static str { "ok" }

let router = Router::new().route(0, echo);

Related links