Skip to content

Commit cf749de

Browse files
committed
components/crate-sidebar: Show Rust Edition requirement if set
1 parent 918e0b5 commit cf749de

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

app/components/crate-sidebar.hbs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,13 @@
2222
{{svg-jar "rust"}}
2323
<span>
2424
v{{@version.msrv}}
25-
<EmberTooltip @text="Minimum Supported Rust Version" />
25+
26+
<EmberTooltip>
27+
&quot;Minimum Supported Rust Version&quot;
28+
{{#if @version.edition}}
29+
<div local-class="edition">requires Rust Edition {{@version.edition}}</div>
30+
{{/if}}
31+
</EmberTooltip>
2632
</span>
2733
</div>
2834
{{/if}}

app/components/crate-sidebar.module.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@
4040
}
4141
}
4242

43+
.edition {
44+
margin-top: var(--space-2xs);
45+
}
46+
4347
.license {
4448
a {
4549
color: var(--main-color);

0 commit comments

Comments
 (0)