|
44 | 44 | {{/if}}
|
45 | 45 | </div>
|
46 | 46 |
|
47 |
| - <div> |
48 |
| - <h2 local-class="heading">Install</h2> |
| 47 | + {{#unless @version.yanked}} |
| 48 | + <div data-test-install> |
| 49 | + <h2 local-class="heading">Install</h2> |
49 | 50 |
|
50 |
| - <p local-class="copy-help">Run the following Cargo command in your project directory:</p> |
51 |
| - {{#if (is-clipboard-supported)}} |
52 |
| - <CopyButton |
53 |
| - @copyText={{this.cargoAddCommand}} |
54 |
| - title="Copy command to clipboard" |
55 |
| - local-class="copy-button" |
56 |
| - > |
57 |
| - <span>{{this.cargoAddCommand}}</span> |
58 |
| - {{svg-jar "copy" aria-hidden="true" local-class="copy-icon"}} |
59 |
| - </CopyButton> |
60 |
| - {{else}} |
61 |
| - <code local-class="copy-fallback"> |
62 |
| - {{this.cargoAddCommand}} |
63 |
| - </code> |
64 |
| - {{/if}} |
| 51 | + <p local-class="copy-help">Run the following Cargo command in your project directory:</p> |
| 52 | + {{#if (is-clipboard-supported)}} |
| 53 | + <CopyButton |
| 54 | + @copyText={{this.cargoAddCommand}} |
| 55 | + title="Copy command to clipboard" |
| 56 | + local-class="copy-button" |
| 57 | + > |
| 58 | + <span>{{this.cargoAddCommand}}</span> |
| 59 | + {{svg-jar "copy" aria-hidden="true" local-class="copy-icon"}} |
| 60 | + </CopyButton> |
| 61 | + {{else}} |
| 62 | + <code local-class="copy-fallback"> |
| 63 | + {{this.cargoAddCommand}} |
| 64 | + </code> |
| 65 | + {{/if}} |
65 | 66 |
|
66 |
| - <p local-class="copy-help">Or add the following line to your Cargo.toml:</p> |
67 |
| - {{#if (is-clipboard-supported)}} |
68 |
| - <CopyButton |
69 |
| - @copyText={{this.tomlSnippet}} |
70 |
| - title="Copy Cargo.toml snippet to clipboard" |
71 |
| - local-class="copy-button" |
72 |
| - > |
73 |
| - <span>{{this.tomlSnippet}}</span> |
74 |
| - {{svg-jar "copy" aria-hidden="true" local-class="copy-icon"}} |
75 |
| - </CopyButton> |
76 |
| - {{else}} |
77 |
| - <code local-class="copy-fallback"> |
78 |
| - {{this.tomlSnippet}} |
79 |
| - </code> |
80 |
| - {{/if}} |
81 |
| - </div> |
| 67 | + <p local-class="copy-help">Or add the following line to your Cargo.toml:</p> |
| 68 | + {{#if (is-clipboard-supported)}} |
| 69 | + <CopyButton |
| 70 | + @copyText={{this.tomlSnippet}} |
| 71 | + title="Copy Cargo.toml snippet to clipboard" |
| 72 | + local-class="copy-button" |
| 73 | + > |
| 74 | + <span>{{this.tomlSnippet}}</span> |
| 75 | + {{svg-jar "copy" aria-hidden="true" local-class="copy-icon"}} |
| 76 | + </CopyButton> |
| 77 | + {{else}} |
| 78 | + <code local-class="copy-fallback"> |
| 79 | + {{this.tomlSnippet}} |
| 80 | + </code> |
| 81 | + {{/if}} |
| 82 | + </div> |
| 83 | + {{/unless}} |
82 | 84 |
|
83 | 85 | <div local-class="links">
|
84 | 86 | {{#if this.showHomepage}}
|
|
0 commit comments