class
Analyzer::Rust::Warp
- Analyzer::Rust::Warp
- Analyzer::Rust::RustEngine
- Analyzer
- Reference
- Object
Overview
Warp analyzer (tree-sitter port). Warp expresses each endpoint
as one let_declaration whose value is a chain of filter
combinators:
let get_user = warp::path("users")
.and(warp::path::param::<u32>())
.and(warp::path::end())
.and(warp::get())
.map(handler);
The analyzer walks every let_declaration, inspects its value
subtree for the warp::* call shapes, and assembles a single
Endpoint from them.
Defined in:
analyzer/analyzers/rust/warp.crConstant Summary
-
ROUTE_FN_EVIDENCE_RE =
Regex.union("warp::path(", "warp::path!") -
Precompiled union for collect_warp_mounts' per-function-body evidence check, so it costs a single PCRE2 match instead of two naive substring scans.