http-api-problem 0.60.0

A library to create HTTP error response content for APIs based on RFC 7807
Documentation
Build #2226127 2025-06-14 13:42:32
# rustc version
rustc 1.89.0-nightly (8da623945 2025-06-13)# docs.rs version
docsrs 0.6.0 (d2911047 2025-05-28)# build log
[INFO] running `Command { std: "docker" "create" "-v" "/home/cratesfyi/workspace/builds/http-api-problem-0.60.0/target:/opt/rustwide/target:rw,Z" "-v" "/home/cratesfyi/workspace/builds/http-api-problem-0.60.0/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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "rustdoc" "--lib" "-Zrustdoc-map" "--all-features" "--config" "build.rustdocflags=[\"--cfg\", \"docsrs\", \"--cfg\", \"doc_cfg\", \"-Z\", \"unstable-options\", \"--emit=invocation-specific\", \"--resource-suffix\", \"-20250613-1.89.0-nightly-8da623945\", \"--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" "--config" "build.rustdocflags=[\"-Zmetrics-dir=/opt/rustwide/target/metrics\"]", 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] f13c254ae4f47b3e9a5a58ec2e9a2ea99a7ecb41fdfbff2d2c8a06e9c6257204
[INFO] running `Command { std: "docker" "start" "-a" "f13c254ae4f47b3e9a5a58ec2e9a2ea99a7ecb41fdfbff2d2c8a06e9c6257204", kill_on_drop: false }`
[INFO] [stderr] warning: lifetime flowing from input to output with different syntax can be confusing
[INFO] [stderr]    --> src/api_error.rs:450:27
[INFO] [stderr]     |
[INFO] [stderr] 450 |     pub fn detail_message(&self) -> Option<Cow<str>> {
[INFO] [stderr]     |                           ^^^^^            -------- the lifetime gets resolved as `'_`
[INFO] [stderr]     |                           |
[INFO] [stderr]     |                           this lifetime flows to the output
[INFO] [stderr]     |
[INFO] [stderr]     = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default
[INFO] [stderr] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths
[INFO] [stderr]     |
[INFO] [stderr] 450 |     pub fn detail_message(&self) -> Option<Cow<'_, str>> {
[INFO] [stderr]     |                                                +++
[INFO] [stderr] 
[INFO] [stderr] warning: `http-api-problem` (lib) generated 1 warning (run `cargo fix --lib -p http-api-problem` to apply 1 suggestion)
[INFO] [stderr]     Scraping http-api-problem v0.60.0 (/opt/rustwide/workdir)
[INFO] [stderr]  Documenting http-api-problem v0.60.0 (/opt/rustwide/workdir)
[INFO] [stderr] warning: unresolved link to `axum_core::response::response`
[INFO] [stderr]    --> src/api_error.rs:471:36
[INFO] [stderr]     |
[INFO] [stderr] 471 |     /// Creates an axum [Response](axum_core::response::response) containing a problem JSON.
[INFO] [stderr]     |                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no item named `response` in module `response`
[INFO] [stderr]     |
[INFO] [stderr]     = note: `#[warn(rustdoc::broken_intra_doc_links)]` on by default
[INFO] [stderr] 
[INFO] [stderr] warning: `http-api-problem` (lib doc) generated 1 warning
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 3.28s
[INFO] [stderr]    Generated /opt/rustwide/target/x86_64-unknown-linux-gnu/doc/http_api_problem/index.html
[INFO] running `Command { std: "docker" "inspect" "f13c254ae4f47b3e9a5a58ec2e9a2ea99a7ecb41fdfbff2d2c8a06e9c6257204", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "f13c254ae4f47b3e9a5a58ec2e9a2ea99a7ecb41fdfbff2d2c8a06e9c6257204", kill_on_drop: false }`
[INFO] [stdout] f13c254ae4f47b3e9a5a58ec2e9a2ea99a7ecb41fdfbff2d2c8a06e9c6257204