Skip to content

Commit da45802

Browse files
committed
Some documentation fixes (#3027)
1 parent 8bc326c commit da45802

File tree

7 files changed

+10
-9
lines changed

7 files changed

+10
-9
lines changed

axum-core/Cargo.toml

-1
Original file line numberDiff line numberDiff line change
@@ -57,4 +57,3 @@ allowed = [
5757

5858
[package.metadata.docs.rs]
5959
all-features = true
60-
rustdoc-args = ["--cfg", "docsrs"]

axum-core/src/extract/rejection.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ define_rejection! {
4242
#[body = "Failed to buffer the request body"]
4343
/// Encountered some other error when buffering the body.
4444
///
45-
/// This can _only_ happen when you're using [`tower_http::limit::RequestBodyLimitLayer`] or
45+
/// This can _only_ happen when you're using [`tower_http::limit::RequestBodyLimitLayer`] or
4646
/// otherwise wrapping request bodies in [`http_body_util::Limited`].
4747
pub struct LengthLimitError(Error);
4848
}

axum-extra/Cargo.toml

-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@ tower-http = { version = "0.6.0", features = ["map-response-body", "timeout"] }
8484

8585
[package.metadata.docs.rs]
8686
all-features = true
87-
rustdoc-args = ["--cfg", "docsrs"]
8887

8988
[package.metadata.cargo-public-api-crates]
9089
allowed = [

axum-extra/src/extract/multipart.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ use std::{
7575
/// to keep `Field`s around from previous loop iterations. That will minimize the risk of runtime
7676
/// errors.
7777
///
78-
/// # Differences between this and `axum::extract::Multipart`
78+
/// # Differences between this and `axum::extract::Multipart`
7979
///
8080
/// `axum::extract::Multipart` uses lifetimes to enforce field exclusivity at compile time, however
8181
/// that leads to significant usability issues such as `Field` not being `'static`.

axum-extra/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
//! `query` | Enables the `Query` extractor | No
2424
//! `tracing` | Log rejections from built-in extractors | Yes
2525
//! `typed-routing` | Enables the `TypedPath` routing utilities | No
26-
//! `typed-header` | Enables the `TypedHeader` extractor and response | No
26+
//! `typed-header` | Enables the `TypedHeader` extractor and response | No
2727
//!
2828
//! [`axum`]: https://crates.io/crates/axum
2929

axum-macros/Cargo.toml

-1
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,3 @@ allowed = []
4343

4444
[package.metadata.docs.rs]
4545
all-features = true
46-
rustdoc-args = ["--cfg", "docsrs"]

axum/Cargo.toml

+7-3
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,13 @@ tower-log = ["tower/log"]
3737
tracing = ["dep:tracing", "axum-core/tracing"]
3838
ws = ["dep:hyper", "tokio", "dep:tokio-tungstenite", "dep:sha1", "dep:base64"]
3939

40-
# Required for intra-doc links to resolve correctly
41-
__private_docs = ["tower/full", "dep:tower-http"]
40+
__private_docs = [
41+
# We re-export some docs from axum-core via #[doc(inline)],
42+
# but they need the same sort of treatment as below to be complete
43+
"axum-core/__private_docs",
44+
# Enables upstream things linked to in docs
45+
"tower/full", "dep:tower-http",
46+
]
4247

4348
[dependencies]
4449
async-trait = "0.1.67"
@@ -128,7 +133,6 @@ uuid = { version = "1.0", features = ["serde", "v4"] }
128133

129134
[package.metadata.docs.rs]
130135
all-features = true
131-
rustdoc-args = ["--cfg", "docsrs"]
132136

133137
[dev-dependencies.tower]
134138
package = "tower"

0 commit comments

Comments
 (0)