Skip to content

Commit 918e0b5

Browse files
committed
components/version-list: Show Rust Edition requirement if set
1 parent dd77e02 commit 918e0b5

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

app/components/version-list/row.hbs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,13 @@
7171
<span local-class="msrv">
7272
{{svg-jar "rust"}}
7373
v{{@version.msrv}}
74+
75+
<EmberTooltip>
76+
&quot;Minimum Supported Rust Version&quot;
77+
{{#if @version.edition}}
78+
<div local-class="edition">requires Rust Edition {{@version.edition}}</div>
79+
{{/if}}
80+
</EmberTooltip>
7481
</span>
7582
{{/if}}
7683

app/components/version-list/row.module.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,10 @@
212212
}
213213
}
214214

215+
.edition {
216+
margin-top: var(--space-2xs);
217+
}
218+
215219
.bytes {
216220
font-variant-numeric: tabular-nums;
217221
text-transform: none;

0 commit comments

Comments
 (0)