diff --git a/app/components/crate-sidebar.hbs b/app/components/crate-sidebar.hbs index 80ccfe2e84b..a05a1c14984 100644 --- a/app/components/crate-sidebar.hbs +++ b/app/components/crate-sidebar.hbs @@ -37,7 +37,23 @@

Install

-

Add the following line to your Cargo.toml file:

+

Run the following Cargo command in your project directory:

+ {{#if (is-clipboard-supported)}} + + {{this.cargoAddCommand}} + {{svg-jar "copy" aria-hidden="true" local-class="copy-icon"}} + + {{else}} + + {{this.cargoAddCommand}} + + {{/if}} + +

Or add the following line to your Cargo.toml:

{{#if (is-clipboard-supported)}}