seanmonstar/warp
59.4
Adequate · 14 November 2026
9.9k
lines of production code
Rust
primary language
5
measurements over time
What this system is
Features
Added ECC and RSA certificate/key examples for TLS configuration
The examples/tls directory now includes sample certificate and private key files supporting both Elliptic Curve (ECC) and RSA algorithms. Specifically, cert.ecc.pem and key.ecc provide an ECC pair, while cert.pem and key.rsa provide an RSA pair, allowing users to choose their preferred cryptographic algorithm when configuring TLS in the example setup.
examples/tls · high confidence
New examples directory with comprehensive usage guides
The \examples\ directory now includes a \README.md\ and a wide range of new example files demonstrating core and advanced \warp\ features. These include basic routing (\hello.rs\, \routing.rs\), body and header parsing (\body.rs\, \headers.rs\), static file serving (\file.rs\, \dir.rs\), and compression (\compression.rs\). New examples also cover WebSockets (\websockets.rs\, \websockets\_chat.rs\), Server-Sent Events (\sse.rs\, \sse\_chat.rs\), TLS configuration (\tls.rs\), and custom HTTP methods (\custom\_methods.rs\). Additional examples show how to handle rejections (\rejections.rs\), integrate with Handlebars templates (\handlebars\_template.rs\), use Unix sockets (\unix\_socket.rs\), implement tracing diagnostics (\tracing.rs\), and build a full CRUD application (\todos.rs\).
examples · high confidence
Behavioural changes
Filter system refactored to use async futures and a new Rejection model
The \src/filter\ module has been completely rewritten to replace the synchronous \Filter\ trait with an asynchronous, \std::future::Future\-based architecture. This change introduces a new \Rejection\ system for handling errors, replacing the previous \FilterResult\ mechanism, and adds new combinators such as \and\_then\, \then\, \or\_else\, \recover\, and \boxed\ to support the new async flow. Additionally, the module now provides \warp::service()\ to convert a \Filter\ into a Tower \Service\, enabling integration with broader middleware ecosystems.
src/filter · high confidence
Major internal refactor to support hyper 1.0 and async body handling
The internal architecture has been significantly restructured to support the hyper 1.0 upgrade. This includes a new \bodyt\ module that wraps \http\_body\_util\ types to manage request and response bodies, replacing the previous \WarpBody\ wrapper. The \handler\ and \router\ modules have been removed in favor of a direct \Filter\-to-\Service\ conversion via the new \service\ module. Additionally, the \route\ module now uses scoped thread-locals to manage request state, and the \tls\ module has been updated to use \tokio\_rustls\ for TLS configuration.
src · high confidence
Major rewrite of the filter system for warp v0.4
The \src/filters\ module has been completely rewritten to support the new warp v0.4 architecture. This change introduces a new set of built-in filters including \addr::remote\, \any\, \body\ (with \json\, \bytes\, \stream\, \aggregate\, and \content\_length\_limit\), \compression\ (gzip, deflate, brotli), \cookie\, \cors\, \ext\, \fs\ (file and dir with path sanitization), \header\, \host\, \log\, \method\, \multipart\, \path\, \query\, \reply\, \sse\, \trace\, and \ws\. The implementation shifts to using \futures-util\ and \http-body-util\, and introduces a new \Filter\ trait structure with \FilterBase\ and \WrapSealed\ for wrapping filters. The \fs\ filters now include path sanitization to prevent directory traversal attacks by rejecting paths with backslashes or colons on Windows. The \body\ filters now use \http\_body\_util::BodyDataStream\ and \BodyExt\ for body extraction. The \cors\ filter has been reworked to use a builder pattern. The \log\ filter now uses the \log\ crate instead of \tracing\ for default logging. The \method\ filters now return \Infallible\ errors for the \method()\ filter. The \multipart\ filter now uses the \multer\ crate. The \path\ filter has been reworked to use a new \path!\ macro. The \query\ filter has been reworked to use the \serde\_urlencoded\ crate. The \reply\ filter has been reworked to use the \http\ crate's \Response\ type. The \sse\ filter has been reworked to use the \tokio\_util\ crate. The \trace\ filter has been reworked to use the \tracing\ crate. The \ws\ filter has been reworked to use the \tokio-tungstenite\ crate.
src/filters · high confidence
Test coverage
Added comprehensive test coverage for core Warp filters and utilities
Added new test files in the \tests/\ directory to verify the behavior of key Warp components. These tests cover request address extraction (\tests/addr.rs\), body parsing including JSON, form, and stream handling with content-length limits (\tests/body.rs\), cookie extraction (\tests/cookie.rs\), CORS policy enforcement (\tests/cors.rs\), request extensions (\tests/ext.rs\), filter composition and tuple flattening (\tests/filter.rs\), static file serving and directory indexing (\tests/fs.rs\), header matching (\tests/header.rs\), host authority matching (\tests/host.rs\), HTTP method routing (\tests/method.rs\), multipart form data (\tests/multipart.rs\), path segment matching and parameters (\tests/path.rs\), query string parsing (\tests/query.rs\), HTTP redirects (\tests/redirect.rs\), reply header manipulation (\tests/reply\_with.rs\), tracing integration (\tests/tracing.rs\), and WebSocket handshake and message handling (\tests/ws.rs\).
tests · high confidence
Dependencies
Warp 0.4.3: Major dependency overhaul and feature unification
This release updates the warp crate to version 0.4.3, performing a comprehensive migration of its underlying dependencies. The HTTP stack has been upgraded from hyper 0.11 to hyper 1, accompanied by the adoption of hyper-util 0.1.12 and the http 1.0 crate, replacing the older http 0.1 types. Asynchronous primitives have shifted from the legacy futures 0.1 crate to futures-util 0.3 and futures-channel 0.3.17. The TLS implementation has been standardized on tokio-rustls (commented out in the diff but referenced in commit history as the target), and multipart handling now uses the multer crate. Additionally, the dependency structure has been significantly refactored: hyper, hyper-util, tokio-tungstenite, multer, and futures-channel are now optional dependencies controlled by specific features (server, websocket, multipart, test), allowing users to reduce binary size by disabling unused capabilities. Dev-dependencies have also been updated, including pretty\_env\_logger to 0.5 and the addition of tracing-subscriber and tracing-log.
(dependencies) · high confidence
Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.
How this codebase got here
Score
- CAI 59 → 59 (+0.7)
- Rubric changed (rubric-2026.10.5 → rubric-2026.11.4) — scores are not directly comparable.
Lenses
- Code Health 72 → 71 (-0.9)
- Architecture 87 → 99 (+11.8)
- Maturity 52 → 51 (-0.2)
- Readiness 66 → 64 (-1.7)
- Security 55 → 58 (+2.4)
- Performance 100 → 100 (+0.0)
Resolved (6)
- Inverted test pyramid
- Off-boarding risk: anonymized user #1
- Projects may be oversized for their cohesion
- Rotate the exposed credentials — git history can't be un-committed
- Secret: private-key (examples/tls/key.ecc)
- Secret: private-key (examples/tls/key.rsa)
New (42)
- Edited copies of one member (3 members, 14+ corresponding lines) (src/filters/compression.rs)
- Edited copies of one member (3 members, 17+ corresponding lines) (src/filter/and.rs)
- Edited copies of one member (3 members, 6+ corresponding lines) (src/filters/ws.rs)
- Edited copy of a member (10 corresponding lines) (src/filter/map.rs)
- Edited copy of a member (10 corresponding lines) (src/filters/body.rs)
- Edited copy of a member (14 corresponding lines) (src/tls.rs)
- Edited copy of a member (17 corresponding lines) (src/filters/header.rs)
- Edited copy of a member (30 corresponding lines) (src/filter/or.rs)
- Edited copy of a member (8 corresponding lines) (src/filters/multipart.rs)
- Event::fmt (cognitive 16) (src/filters/sse.rs)
- Further sole-owners (lower concentration)
- Low coverage: src/bodyt.rs (src/bodyt.rs)
- Low coverage: src/error.rs (src/error.rs)
- Low coverage: src/filter/and.rs (src/filter/and.rs)
- Low coverage: src/filter/and_then.rs (src/filter/and_then.rs)
- Low coverage: src/filter/boxed.rs (src/filter/boxed.rs)
- Low coverage: src/filter/map.rs (src/filter/map.rs)
- Low coverage: src/filter/map_err.rs (src/filter/map_err.rs)
- Low coverage: src/filter/or.rs (src/filter/or.rs)
- Low coverage: src/filter/or_else.rs (src/filter/or_else.rs)
- …and 22 more
Changes since last survey
- 3 commits — 1 feature/other, 2 fixes
By area
- (root) — 1 commit
- examples/todos.rs — 1 commit
- src/filters — 1 commit
Notable commits
- fix: chore: fix deprecations from examples (#1172)
- fix: fix: SSE types strip all line endings (#1171)
- change: v0.4.4
Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.
Survey your own repository
seanmonstar/warp was measured the same way every project in this corpus was: the same rubric, at a pinned commit, with the result published in full. Point a surveyor at a repository you know and see whether you agree with it.
About this page
- The score is its most recent published measurement, taken on 14 November 2026 at a pinned commit. It is not a live figure and does not change until the project is measured again.
- Measured at commit ddfed68da2f4d01c4709b2e131e522981721d02c — the exact code this score is about.
- Scored under rubric-2026.11.4 — the same rubric and the same method as every other entry in this index.
- Measured by Canine Code Analyzer (cca.canine.dev) using cca measure-2026.11.65+preprod-e1a3b69fc8ee.