From 974db853edc8337481010b55d5217d592f6a45c6 Mon Sep 17 00:00:00 2001 From: Mikolaj Wielgus <58011230+mikwielgus@users.noreply.github.com> Date: Sun, 26 Jul 2026 22:21:23 +0200 Subject: [PATCH] Make infobox about limited feature metadata clearer I have clarified the message that tells the user about feature metadata support being limited and linked to the relevant Rust RFC. I saw this message for the first time when I was looking for the best way to document feature flags in my published crate. It made me mistakenly doubt that I have misconfigured my crate by failing to supply proper metadata for display on this page. I realized that this is not the case only after a Web search that brought me to this Rust users forum thread: https://users.rust-lang.org/t/what-does-there-is-very-little-structured-metadata-to-build-this-page-from-currently-on-the-crate-features-page-mean/137618 Turns out, I wasn't the only person who had difficulty understanding this message. I believe this improved version will remove the ambiguity. I have tested its appearance on my local machine and I'm satisfied with it. --- .../bin/docs_rs_web/templates/crate/features.html | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/crates/bin/docs_rs_web/templates/crate/features.html b/crates/bin/docs_rs_web/templates/crate/features.html index 428936486..90fad417b 100644 --- a/crates/bin/docs_rs_web/templates/crate/features.html +++ b/crates/bin/docs_rs_web/templates/crate/features.html @@ -53,12 +53,17 @@

{{ metadata.name }}

- There is very little structured metadata to build this page - from currently. You should check the - main library docs, - readme, or + There is currently very little information to present on + this page because Docs.rs has only limited support for + extracting structured feature metadata from Cargo crates. + This issue is tracked in + Rust RFC #3416. + Check this library's + main docs, + readme, and Cargo.toml - in case the author documented the features in them. + in case its authors have documentation for features + available there instead.
{%- if let Some(features) = sorted_features -%} {%- if features.is_empty() -%}