Registry / networking / matchit

matchit

JSON →
library0.9.2rscratesunverified

A high performance, zero-copy URL router.

# Cargo.toml [dependencies] matchit = "0.9.2"
INSTALL
IMPORT
SIG · MATCHIT
M
matchit
networkingrustv0.9.2
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 matchit::Router;

Demonstrates URL routing with matchit.

use matchit::Router; fn main() { let mut router = Router::new(); router.insert("/users/:id", "user_handler").unwrap(); let matched = router.at("/users/42").unwrap(); println!("Matched: {:?}", matched); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.9.2latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
matchit — cargo add matchit · libregistry