Registry / web-framework / path-tree

path-tree

JSON →
library0.8.3rscratesunverified

path-tree is a lightweight high performance HTTP request router for Rust

# Cargo.toml [dependencies] path-tree = "0.8.3"
INSTALL
IMPORT
SIG · PATH-TREE
P
path-tree
web-frameworkrustv0.8.3
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.

PathTree
use path_tree::PathTree;

Create a path tree and match a route.

use path_tree::PathTree; fn main() { let mut tree = PathTree::new(); tree.insert("/users/:id", "user_handler"); if let Some((handler, params)) = tree.find("/users/42") { println!("Handler: {}, id: {}", handler, params["id"]); } }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.8.3latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
5 hits · last 30 days
node
4
Amazon
1
Resources
path-tree — cargo add path-tree · libregistry