Skip to content

Commit f02b7ac

Browse files
Nemo157syphar
authored andcommitted
Add a disclaimer about how limited our feature metadata is
1 parent c3c3059 commit f02b7ac

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

templates/crate/features.html

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,14 @@
5353

5454
<div class="pure-u-1 pure-u-sm-17-24 pure-u-md-19-24 package-details" id="main">
5555
<h1>{{ metadata.name }}</h1>
56+
<div class="info">
57+
There is very little structured metadata to build this page
58+
from currently. You should check the
59+
<a href="/{{ metadata.name }}/{{ metadata.version_or_latest }}/{{ metadata.target_name }}/">main library docs</a>,
60+
<a href="/crate/{{ metadata.name }}/{{ metadata.version_or_latest }}/">readme</a>, or
61+
<a href="/crate/{{ metadata.name }}/{{ metadata.version_or_latest }}/source/Cargo.toml.orig">Cargo.toml</a>
62+
in case the author documented the features in them.
63+
</div>
5664
{%- if features -%}
5765
<p>This version has <b>{{ features | length }}</b> feature flags, <b data-id="default-feature-len">{{ default_len }}</b> of them enabled by <b>default</b>.</p>
5866
{%- for feature in features -%}

0 commit comments

Comments
 (0)