Repository Analysis

tokio-rs/axum

HTTP routing and request-handling library for Rust that focuses on ergonomics and modularity

7.4 Low AI signal View on GitHub
7.4
Adjusted Score
7.4
Raw Score
100%
Time Factor
2026-05-27
Last Push
26,081
Stars
Rust
Language
54,952
Lines of Code
419
Files
413
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 0HIGH 0MEDIUM 1LOW 412

Pattern Findings

413 matches across 2 categories. Click a row to expand file-level details.

Over-Commented Block412 hits · 402 pts
SeverityFileLineSnippet
LOWaxum-core/src/body.rs61 /// This is useful in cases where a body is required to construct a
LOWaxum-core/src/lib.rs1//! Core types and traits for [`axum`].
LOWaxum-core/src/response/append_headers.rs1use super::{IntoResponse, IntoResponseParts, Response, ResponseParts, TryIntoHeaderError};
LOWaxum-core/src/response/append_headers.rs21/// (
LOWaxum-core/src/response/into_response_parts.rs1use super::{IntoResponse, Response};
LOWaxum-core/src/response/into_response_parts.rs21/// impl<'a> IntoResponseParts for SetHeader<'a> {
LOWaxum-core/src/response/into_response_parts.rs41/// }
LOWaxum-core/src/response/into_response_parts.rs61/// (
LOWaxum-core/src/response/mod.rs21};
LOWaxum-core/src/response/mod.rs41/// // two fallible functions with different error types
LOWaxum-core/src/response/mod.rs61///
LOWaxum-core/src/response/mod.rs81/// ```
LOWaxum-core/src/response/mod.rs141///
LOWaxum-core/src/response/mod.rs181
LOWaxum-core/src/response/into_response.rs21/// # Implementing `IntoResponse`
LOWaxum-core/src/response/into_response.rs41/// }
LOWaxum-core/src/response/into_response.rs61/// # let _: Router = app;
LOWaxum-core/src/response/into_response.rs81/// pin::Pin,
LOWaxum-core/src/response/into_response.rs101/// // Now we can implement `IntoResponse` directly for `MyBody`
LOWaxum-core/src/extract/default_body_limit.rs1use self::private::DefaultBodyLimitService;
LOWaxum-core/src/extract/default_body_limit.rs21/// [`RequestExt::with_limited_body`] or [`RequestExt::into_limited_body`]
LOWaxum-core/src/extract/default_body_limit.rs41/// ```
LOWaxum-core/src/extract/default_body_limit.rs61/// // this route has a different limit
LOWaxum-core/src/extract/default_body_limit.rs81
LOWaxum-core/src/extract/default_body_limit.rs101 /// Router,
LOWaxum-core/src/extract/default_body_limit.rs121 kind: DefaultBodyLimitKind::Disable,
LOWaxum-core/src/extract/default_body_limit.rs141 /// let app: Router<()> = Router::new()
LOWaxum-core/src/extract/default_body_limit.rs161 /// # Example
LOWaxum-core/src/extract/rejection.rs41 #[status = PAYLOAD_TOO_LARGE]
LOWaxum-core/src/extract/mod.rs41/// Extractors that implement `FromRequestParts` cannot consume the request body and can thus be
LOWaxum-core/src/extract/mod.rs61 state: &S,
LOWaxum-core/src/extract/from_ref.rs1/// Used to do reference-to-value conversions thus not consuming the input value.
LOWaxum-core/src/ext_traits/request.rs21 /// ```
LOWaxum-core/src/ext_traits/request.rs41 /// async fn from_request(req: Request, _state: &S) -> Result<Self, Self::Rejection> {
LOWaxum-core/src/ext_traits/request.rs61 /// Ok(Self(payload))
LOWaxum-core/src/ext_traits/request.rs81 ///
LOWaxum-core/src/ext_traits/request.rs101 /// let requires_state = req.extract_with_state::<RequiresState, _, _>(state).await?;
LOWaxum-core/src/ext_traits/request.rs121 /// ```
LOWaxum-core/src/ext_traits/request.rs141 /// Json, RequestExt,
LOWaxum-core/src/ext_traits/request.rs161 ///
LOWaxum-core/src/ext_traits/request.rs181
LOWaxum-core/src/ext_traits/request.rs201 ///
LOWaxum-core/src/ext_traits/request.rs221 ///
LOWaxum-core/src/ext_traits/request_parts.rs21 /// response::{Response, IntoResponse},
LOWaxum-core/src/ext_traits/request_parts.rs41 /// .await
LOWaxum-core/src/ext_traits/request_parts.rs61 /// This is just a convenience for `E::from_request_parts(parts, state)`.
LOWaxum-core/src/ext_traits/request_parts.rs81 /// {
LOWaxum/src/service_ext.rs1use crate::error_handling::HandleError;
LOWaxum/src/service_ext.rs21 /// associated `ConnectInfo` in a request extension such that [`ConnectInfo`]
LOWaxum/src/lib.rs1//! axum is an HTTP routing and request-handling library that focuses on ergonomics and modularity.
LOWaxum/src/lib.rs21//! transport layer independence is not a goal, at least for the time being.
LOWaxum/src/lib.rs41//! }
LOWaxum/src/lib.rs61//! async fn root() {}
LOWaxum/src/lib.rs81//! ```rust
LOWaxum/src/lib.rs101//! Anything that implements [`IntoResponse`] can be returned from handlers.
LOWaxum/src/lib.rs121//! }
LOWaxum/src/lib.rs141//!
LOWaxum/src/lib.rs161//! use axum::{
LOWaxum/src/lib.rs181//! // ...
LOWaxum/src/lib.rs201//! struct AppState {
352 more matches not shown…
Self-Referential Comments1 hit · 3 pts
SeverityFileLineSnippet
MEDIUM.github/workflows/release-plz.yml38 # Create a PR with the new versions and changelog, preparing the next release.