Registry / web-framework / product-os-router

product-os-router

JSON →
library0.0.43rscratesunverified

Fully featured router leveraging Axum and Tower with helper methods for HTTP, HTTPS, WebSocket, and SSE servers.

# Cargo.toml [dependencies] product-os-router = "0.0.43"
INSTALL
IMPORT
SIG · PRODUCT-OS-ROUTER
P
product-os-router
web-frameworkrustv0.0.43
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Router
use product_os_router::Router;

Create a basic HTTP server with routing.

use product_os_router::Router; #[tokio::main] async fn main() { let app = Router::new().get("/", || async { "Hello" }); axum::Server::bind(&"0.0.0.0:3000".parse().unwrap()) .serve(app.into_make_service()) .await .unwrap(); }
Debug
Known issues
gotchaRequires tokio runtime for async execution.
fix
Add #[tokio::main] or manually create a tokio runtime.
affects: >=0.0.0
Upgrade
Version history
0.0.43latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
product-os-router — cargo add product-os-router · libregistry