Registry / web-framework / trillium-router

trillium-router

JSON →
library0.5.1rscratesunverified

A router for the trillium.rs web framework, providing request routing and handler dispatch.

# Cargo.toml [dependencies] trillium-router = "0.5.1"
INSTALL
IMPORT
SIG · TRILLIUM-ROUTER
T
trillium-router
web-frameworkrustv0.5.1
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 trillium_router::Router;

Creates a basic router with a single route and runs it with the smol runtime.

use trillium_router::Router; fn main() { let router = Router::new() .get("/", |_| async move { "Hello, world!" }); trillium_smol::run(router); }
Debug
Known issues
gotchaRequires an async runtime like smol or tokio to run the server.
fix
Add a runtime dependency (e.g., trillium-smol) and call trillium_smol::run.
affects: >=0.5.0
Upgrade
Version history
0.5.1latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
15 hits · last 30 days
node
14
OpenAI (training)
1
Resources
trillium-router — cargo add trillium-router · libregistry