Skip to content

Commit 33b353d

Browse files
authored
Update docs.rs links to 0.8 (#3120)
1 parent 09841ff commit 33b353d

File tree

8 files changed

+24
-24
lines changed

8 files changed

+24
-24
lines changed

axum-core/src/extract/default_body_limit.rs

+6-6
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ use tower_layer::Layer;
6666
///
6767
/// [`Body::poll_frame`]: http_body::Body::poll_frame
6868
/// [`Bytes`]: bytes::Bytes
69-
/// [`Json`]: https://docs.rs/axum/0.7/axum/struct.Json.html
70-
/// [`Form`]: https://docs.rs/axum/0.7/axum/struct.Form.html
69+
/// [`Json`]: https://docs.rs/axum/0.8/axum/struct.Json.html
70+
/// [`Form`]: https://docs.rs/axum/0.8/axum/struct.Form.html
7171
/// [`FromRequest`]: crate::extract::FromRequest
7272
/// [`RequestBodyLimit`]: tower_http::limit::RequestBodyLimit
7373
/// [`RequestExt::with_limited_body`]: crate::RequestExt::with_limited_body
@@ -114,8 +114,8 @@ impl DefaultBodyLimit {
114114
/// ```
115115
///
116116
/// [`Bytes`]: bytes::Bytes
117-
/// [`Json`]: https://docs.rs/axum/0.7/axum/struct.Json.html
118-
/// [`Form`]: https://docs.rs/axum/0.7/axum/struct.Form.html
117+
/// [`Json`]: https://docs.rs/axum/0.8/axum/struct.Json.html
118+
/// [`Form`]: https://docs.rs/axum/0.8/axum/struct.Form.html
119119
pub const fn disable() -> Self {
120120
Self {
121121
kind: DefaultBodyLimitKind::Disable,
@@ -147,8 +147,8 @@ impl DefaultBodyLimit {
147147
/// ```
148148
///
149149
/// [`Bytes::from_request`]: bytes::Bytes
150-
/// [`Json`]: https://docs.rs/axum/0.7/axum/struct.Json.html
151-
/// [`Form`]: https://docs.rs/axum/0.7/axum/struct.Form.html
150+
/// [`Json`]: https://docs.rs/axum/0.8/axum/struct.Json.html
151+
/// [`Form`]: https://docs.rs/axum/0.8/axum/struct.Form.html
152152
pub const fn max(limit: usize) -> Self {
153153
Self {
154154
kind: DefaultBodyLimitKind::Limit(limit),

axum-core/src/extract/from_ref.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
///
88
/// This trait can be derived using `#[derive(FromRef)]`.
99
///
10-
/// [`State`]: https://docs.rs/axum/0.7/axum/extract/struct.State.html
10+
/// [`State`]: https://docs.rs/axum/0.8/axum/extract/struct.State.html
1111
// NOTE: This trait is defined in axum-core, even though it is mainly used with `State` which is
1212
// defined in axum. That allows crate authors to use it when implementing extractors.
1313
pub trait FromRef<T> {

axum-core/src/extract/mod.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
//!
33
//! See [`axum::extract`] for more details.
44
//!
5-
//! [`axum::extract`]: https://docs.rs/axum/0.7/axum/extract/index.html
5+
//! [`axum::extract`]: https://docs.rs/axum/0.8/axum/extract/index.html
66
77
use crate::{body::Body, response::IntoResponse};
88
use http::request::Parts;
@@ -46,11 +46,11 @@ mod private {
4646
///
4747
/// See [`axum::extract`] for more general docs about extractors.
4848
///
49-
/// [`axum::extract`]: https://docs.rs/axum/0.7/axum/extract/index.html
49+
/// [`axum::extract`]: https://docs.rs/axum/0.8/axum/extract/index.html
5050
#[rustversion::attr(
5151
since(1.78),
5252
diagnostic::on_unimplemented(
53-
note = "Function argument is not a valid axum extractor. \nSee `https://docs.rs/axum/0.7/axum/extract/index.html` for details",
53+
note = "Function argument is not a valid axum extractor. \nSee `https://docs.rs/axum/0.8/axum/extract/index.html` for details",
5454
)
5555
)]
5656
pub trait FromRequestParts<S>: Sized {
@@ -75,11 +75,11 @@ pub trait FromRequestParts<S>: Sized {
7575
///
7676
/// See [`axum::extract`] for more general docs about extractors.
7777
///
78-
/// [`axum::extract`]: https://docs.rs/axum/0.7/axum/extract/index.html
78+
/// [`axum::extract`]: https://docs.rs/axum/0.8/axum/extract/index.html
7979
#[rustversion::attr(
8080
since(1.78),
8181
diagnostic::on_unimplemented(
82-
note = "Function argument is not a valid axum extractor. \nSee `https://docs.rs/axum/0.7/axum/extract/index.html` for details",
82+
note = "Function argument is not a valid axum extractor. \nSee `https://docs.rs/axum/0.8/axum/extract/index.html` for details",
8383
)
8484
)]
8585
pub trait FromRequest<S, M = private::ViaRequest>: Sized {

axum-core/src/extract/request_parts.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ where
5353
///
5454
/// Prefer using [`TypedHeader`] to extract only the headers you need.
5555
///
56-
/// [`TypedHeader`]: https://docs.rs/axum/0.7/axum/extract/struct.TypedHeader.html
56+
/// [`TypedHeader`]: https://docs.rs/axum/0.8/axum/extract/struct.TypedHeader.html
5757
impl<S> FromRequestParts<S> for HeaderMap
5858
where
5959
S: Send + Sync,

axum-core/src/response/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
//!
33
//! See [`axum::response`] for more details.
44
//!
5-
//! [`axum::response`]: https://docs.rs/axum/0.7/axum/response/index.html
5+
//! [`axum::response`]: https://docs.rs/axum/0.8/axum/response/index.html
66
77
use crate::body::Body;
88

axum-macros/src/lib.rs

+8-8
Original file line numberDiff line numberDiff line change
@@ -369,9 +369,9 @@ use from_request::Trait::{FromRequest, FromRequestParts};
369369
/// }
370370
/// ```
371371
///
372-
/// [`FromRequest`]: https://docs.rs/axum/0.7/axum/extract/trait.FromRequest.html
373-
/// [`axum::response::Response`]: https://docs.rs/axum/0.7/axum/response/type.Response.html
374-
/// [`axum::extract::rejection::ExtensionRejection`]: https://docs.rs/axum/0.7/axum/extract/rejection/enum.ExtensionRejection.html
372+
/// [`FromRequest`]: https://docs.rs/axum/0.8/axum/extract/trait.FromRequest.html
373+
/// [`axum::response::Response`]: https://docs.rs/axum/0.8/axum/response/type.Response.html
374+
/// [`axum::extract::rejection::ExtensionRejection`]: https://docs.rs/axum/0.8/axum/extract/rejection/enum.ExtensionRejection.html
375375
#[proc_macro_derive(FromRequest, attributes(from_request))]
376376
pub fn derive_from_request(item: TokenStream) -> TokenStream {
377377
expand_with(item, |item| from_request::expand(item, FromRequest))
@@ -420,7 +420,7 @@ pub fn derive_from_request(item: TokenStream) -> TokenStream {
420420
///
421421
/// Use `#[derive(FromRequest)]` for that.
422422
///
423-
/// [`FromRequestParts`]: https://docs.rs/axum/0.7/axum/extract/trait.FromRequestParts.html
423+
/// [`FromRequestParts`]: https://docs.rs/axum/0.8/axum/extract/trait.FromRequestParts.html
424424
#[proc_macro_derive(FromRequestParts, attributes(from_request))]
425425
pub fn derive_from_request_parts(item: TokenStream) -> TokenStream {
426426
expand_with(item, |item| from_request::expand(item, FromRequestParts))
@@ -569,8 +569,8 @@ pub fn derive_from_request_parts(item: TokenStream) -> TokenStream {
569569
/// This macro has no effect when compiled with the release profile. (eg. `cargo build --release`)
570570
///
571571
/// [`axum`]: https://docs.rs/axum/0.7
572-
/// [`Handler`]: https://docs.rs/axum/0.7/axum/handler/trait.Handler.html
573-
/// [`axum::extract::State`]: https://docs.rs/axum/0.7/axum/extract/struct.State.html
572+
/// [`Handler`]: https://docs.rs/axum/0.8/axum/handler/trait.Handler.html
573+
/// [`axum::extract::State`]: https://docs.rs/axum/0.8/axum/extract/struct.State.html
574574
/// [`debug_handler`]: macro@debug_handler
575575
#[proc_macro_attribute]
576576
pub fn debug_handler(_attr: TokenStream, input: TokenStream) -> TokenStream {
@@ -626,7 +626,7 @@ pub fn debug_handler(_attr: TokenStream, input: TokenStream) -> TokenStream {
626626
/// This macro has no effect when compiled with the release profile. (eg. `cargo build --release`)
627627
///
628628
/// [`axum`]: https://docs.rs/axum/latest
629-
/// [`axum::middleware::from_fn`]: https://docs.rs/axum/0.7/axum/middleware/fn.from_fn.html
629+
/// [`axum::middleware::from_fn`]: https://docs.rs/axum/0.8/axum/middleware/fn.from_fn.html
630630
/// [`debug_middleware`]: macro@debug_middleware
631631
#[proc_macro_attribute]
632632
pub fn debug_middleware(_attr: TokenStream, input: TokenStream) -> TokenStream {
@@ -709,7 +709,7 @@ pub fn derive_typed_path(input: TokenStream) -> TokenStream {
709709
/// # let _: axum::Router = app;
710710
/// ```
711711
///
712-
/// [`FromRef`]: https://docs.rs/axum/0.7/axum/extract/trait.FromRef.html
712+
/// [`FromRef`]: https://docs.rs/axum/0.8/axum/extract/trait.FromRef.html
713713
#[proc_macro_derive(FromRef, attributes(from_ref))]
714714
pub fn derive_from_ref(item: TokenStream) -> TokenStream {
715715
expand_with(item, from_ref::expand)

axum-macros/tests/debug_handler/fail/argument_not_extractor.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ error[E0277]: the trait bound `bool: FromRequest<(), axum_core::extract::private
55
| ^^^^ the trait `FromRequestParts<()>` is not implemented for `bool`, which is required by `bool: FromRequest<(), _>`
66
|
77
= note: Function argument is not a valid axum extractor.
8-
See `https://docs.rs/axum/0.7/axum/extract/index.html` for details
8+
See `https://docs.rs/axum/0.8/axum/extract/index.html` for details
99
= help: the following other types implement trait `FromRequestParts<S>`:
1010
`()` implements `FromRequestParts<S>`
1111
`(T1, T2)` implements `FromRequestParts<S>`

axum-macros/tests/from_request/fail/parts_extracting_body.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ error[E0277]: the trait bound `String: FromRequestParts<_>` is not satisfied
55
| ^^^^^^ the trait `FromRequestParts<_>` is not implemented for `String`
66
|
77
= note: Function argument is not a valid axum extractor.
8-
See `https://docs.rs/axum/0.7/axum/extract/index.html` for details
8+
See `https://docs.rs/axum/0.8/axum/extract/index.html` for details
99
= help: the following other types implement trait `FromRequestParts<S>`:
1010
`()` implements `FromRequestParts<S>`
1111
`(T1, T2)` implements `FromRequestParts<S>`

0 commit comments

Comments
 (0)