Skip to content

Commit 6df26a3

Browse files
authored
Fix broken intra-doc link (#3186)
1 parent 70d52b3 commit 6df26a3

File tree

3 files changed

+17
-5
lines changed

3 files changed

+17
-5
lines changed

.github/workflows/CI.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,14 @@ jobs:
3434
- uses: Swatinem/rust-cache@v2
3535
with:
3636
save-if: ${{ github.ref == 'refs/heads/main' }}
37-
- name: cargo doc
38-
env:
39-
RUSTDOCFLAGS: "-D rustdoc::all -A rustdoc::private-doc-tests"
40-
run: cargo doc --all-features --no-deps
37+
- name: cargo doc -p axum-core
38+
run: cargo doc --package axum-core --all-features --no-deps
39+
- name: cargo doc -p axum
40+
run: cargo doc --package axum --all-features --no-deps
41+
- name: cargo doc -p axum-extra
42+
run: cargo doc --package axum-extra --all-features --no-deps
43+
env:
44+
RUSTDOCFLAGS: "-D rustdoc::all -A rustdoc::private-doc-tests"
4145

4246
cargo-hack:
4347
runs-on: ubuntu-24.04

axum-extra/CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,13 @@ and this project adheres to [Semantic Versioning].
1010
- **breaking:** Remove unused `async-stream` feature, which was accidentally
1111
introduced as an implicit feature through an optional dependency which was no
1212
longer being used ([#3145])
13-
- **change:** Make the `status` function of rejections a `const` function, such
13+
- **fixed:** Fix a broken link in the documentation of `ErasedJson` ([#3186])
14+
- **changed:** Make the `status` function of rejections a `const` function, such
1415
as `FormRejection`, `QueryRejection` and `MultipartRejection` ([#3168])
1516

1617
[#3145]: https://github.com/tokio-rs/axum/pull/3145
1718
[#3168]: https://github.com/tokio-rs/axum/pull/3168
19+
[#3186]: https://github.com/tokio-rs/axum/pull/3186
1820

1921
# 0.10.0
2022

axum-extra/Cargo.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,12 @@ tracing = ["axum-core/tracing", "axum/tracing"]
4141
typed-header = ["dep:headers"]
4242
typed-routing = ["dep:axum-macros", "dep:percent-encoding", "dep:serde_html_form", "dep:form_urlencoded"]
4343

44+
# Enabled by docs.rs because it uses all-features
45+
__private_docs = [
46+
# Required for the ErasedJson docs to be able to link to axum::Json
47+
"axum/json",
48+
]
49+
4450
[dependencies]
4551
axum = { path = "../axum", version = "0.8.0", default-features = false, features = ["original-uri"] }
4652
axum-core = { path = "../axum-core", version = "0.5.0" }

0 commit comments

Comments
 (0)