Skip to content

docs.rs failed to build axum 0.8.5 and axum-extra 0.10.2 #3504

@aleksanderkrauze

Description

@aleksanderkrauze

If you go to see docs for latest version of axum (https://docs.rs/axum) or axum-extra (https://docs.rs/axum-extra), both of them were released yesterday, you will be greeted with message that docs.rs failed to build those crates.

Here are build logs for axum:

# rustc version
rustc 1.92.0-nightly (4082d6a3f 2025-09-27)# docs.rs version
docsrs 0.6.0 (f42173de 2025-09-12)# build log
[INFO] running `Command { std: "docker" "create" "-v" "/home/cratesfyi/workspace-builder/builds/axum-0.8.5/target:/opt/rustwide/target:rw,Z" "-v" "/home/cratesfyi/workspace-builder/builds/axum-0.8.5/source:/opt/rustwide/workdir:ro,Z" "-v" "/home/cratesfyi/workspace-builder/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/home/cratesfyi/workspace-builder/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "DOCS_RS=1" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "6442450944" "--cpus" "6" "--user" "1001:1001" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "rustdoc" "--lib" "-Zrustdoc-map" "--all-features" "--config" "build.rustdocflags=[\"--cfg\", \"docsrs\", \"-Z\", \"unstable-options\", \"--emit=invocation-specific\", \"--resource-suffix\", \"-20250927-1.92.0-nightly-4082d6a3f\", \"--static-root-path\", \"/-/rustdoc.static/\", \"--cap-lints\", \"warn\", \"--extern-html-root-takes-precedence\"]" "--offline" "-Zunstable-options" "--config=doc.extern-map.registries.crates-io=\"https://docs.rs/{pkg_name}/{version}/x86_64-unknown-linux-gnu\"" "-Zrustdoc-scrape-examples" "-j6" "--target" "x86_64-unknown-linux-gnu", kill_on_drop: false }`
[INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
[INFO] [stdout] 644fe61b7b310694c47ceeb434a3cc5b9a4003996ddff1faee14f930d6d49274
[INFO] running `Command { std: "docker" "start" "-a" "644fe61b7b310694c47ceeb434a3cc5b9a4003996ddff1faee14f930d6d49274", kill_on_drop: false }`
[INFO] [stderr] warning: target filter specified, but no targets matched; this is a no-op
[INFO] [stderr]  Documenting axum v0.8.5 (/opt/rustwide/workdir)
[INFO] [stderr] error[E0557]: feature has been removed
[INFO] [stderr]    --> src/lib.rs:430:29
[INFO] [stderr]     |
[INFO] [stderr] 430 | #![cfg_attr(docsrs, feature(doc_auto_cfg, doc_cfg))]
[INFO] [stderr]     |                             ^^^^^^^^^^^^ feature has been removed
[INFO] [stderr]     |
[INFO] [stderr]     = note: removed in 1.58.0; see <https://github.com/rust-lang/rust/pull/138907> for more information
[INFO] [stderr]     = note: merged into `doc_cfg`
[INFO] [stderr] 
[INFO] [stderr] error: Compilation failed, aborting rustdoc
[INFO] [stderr] 
[INFO] [stderr] For more information about this error, try `rustc --explain E0557`.
[INFO] [stderr] error: could not document `axum`
[INFO] running `Command { std: "docker" "inspect" "644fe61b7b310694c47ceeb434a3cc5b9a4003996ddff1faee14f930d6d49274", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "644fe61b7b310694c47ceeb434a3cc5b9a4003996ddff1faee14f930d6d49274", kill_on_drop: false }`
[INFO] [stdout] 644fe61b7b310694c47ceeb434a3cc5b9a4003996ddff1faee14f930d6d49274

and for axum-extra:

# rustc version
rustc 1.92.0-nightly (4082d6a3f 2025-09-27)# docs.rs version
docsrs 0.6.0 (f42173de 2025-09-12)# build log
[INFO] running `Command { std: "docker" "create" "-v" "/home/cratesfyi/workspace/builds/axum-extra-0.10.2/target:/opt/rustwide/target:rw,Z" "-v" "/home/cratesfyi/workspace/builds/axum-extra-0.10.2/source:/opt/rustwide/workdir:ro,Z" "-v" "/home/cratesfyi/workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/home/cratesfyi/workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "DOCS_RS=1" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "6442450944" "--cpus" "6" "--user" "1001:1001" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "rustdoc" "--lib" "-Zrustdoc-map" "--all-features" "--config" "build.rustdocflags=[\"--cfg\", \"docsrs\", \"-Z\", \"unstable-options\", \"--emit=invocation-specific\", \"--resource-suffix\", \"-20250927-1.92.0-nightly-4082d6a3f\", \"--static-root-path\", \"/-/rustdoc.static/\", \"--cap-lints\", \"warn\", \"--extern-html-root-takes-precedence\"]" "--offline" "-Zunstable-options" "--config=doc.extern-map.registries.crates-io=\"https://docs.rs/{pkg_name}/{version}/x86_64-unknown-linux-gnu\"" "-Zrustdoc-scrape-examples" "-j6" "--target" "x86_64-unknown-linux-gnu", kill_on_drop: false }`
[INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
[INFO] [stdout] 4050dca66b4cf14e453f326ae7dc0f5eb9a7bec27ebccbd3198808a12ec24cab
[INFO] running `Command { std: "docker" "start" "-a" "4050dca66b4cf14e453f326ae7dc0f5eb9a7bec27ebccbd3198808a12ec24cab", kill_on_drop: false }`
[INFO] [stderr] warning: target filter specified, but no targets matched; this is a no-op
[INFO] [stderr]  Documenting axum-extra v0.10.2 (/opt/rustwide/workdir)
[INFO] [stderr] error[E0557]: feature has been removed
[INFO] [stderr]   --> src/lib.rs:33:38
[INFO] [stderr]    |
[INFO] [stderr] 33 | #![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
[INFO] [stderr]    |                                      ^^^^^^^^^^^^ feature has been removed
[INFO] [stderr]    |
[INFO] [stderr]    = note: removed in 1.58.0; see <https://github.com/rust-lang/rust/pull/138907> for more information
[INFO] [stderr]    = note: merged into `doc_cfg`
[INFO] [stderr] 
[INFO] [stderr] error: Compilation failed, aborting rustdoc
[INFO] [stderr] 
[INFO] [stderr] For more information about this error, try `rustc --explain E0557`.
[INFO] [stderr] error: could not document `axum-extra`
[INFO] running `Command { std: "docker" "inspect" "4050dca66b4cf14e453f326ae7dc0f5eb9a7bec27ebccbd3198808a12ec24cab", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "4050dca66b4cf14e453f326ae7dc0f5eb9a7bec27ebccbd3198808a12ec24cab", kill_on_drop: false }`
[INFO] [stdout] 4050dca66b4cf14e453f326ae7dc0f5eb9a7bec27ebccbd3198808a12ec24cab

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions