|
5 | 5 | <title>rustup.rs - The Rust toolchain installer</title>
|
6 | 6 | <meta name="keywords" content="Rust, Rust programming language, rustlang, rust-lang, Mozilla Rust, rustup">
|
7 | 7 | <meta name="description" content="The Rust toolchain installer">
|
8 |
| - |
9 | 8 | <link rel="stylesheet" href="normalize.css">
|
10 | 9 | <link rel="stylesheet" href="rustup.css">
|
11 | 10 |
|
|
27 | 26 | <p>Run the following in your terminal, then follow the onscreen instructions.</p>
|
28 | 27 | <div class="copy-container">
|
29 | 28 | <pre>curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh</pre>
|
30 |
| - <button class="copy-button" title="Copy curl command to clipboard to download Rustup" type="button" onclick="handle_copy_button_click()"> |
| 29 | + <button id="copy-button-unix" class="copy-button" title="Copy curl command to clipboard to download Rustup" type="button"> |
31 | 30 | <div class="copy-icon">
|
32 | 31 | <svg width="24" height="25" viewBox="0 0 24 25" xmlns="http://www.w3.org/2000/svg" alt="Copy curl command to clipboard to download Rustup">
|
33 | 32 | <path d="M18 20h2v3c0 1-1 2-2 2H2c-.998 0-2-1-2-2V5c0-.911.755-1.667 1.667-1.667h5A3.323 3.323 0 0110 0a3.323 3.323 0 013.333 3.333h5C19.245 3.333 20 4.09 20 5v8.333h-2V9H2v14h16v-3zM3 7h14c0-.911-.793-1.667-1.75-1.667H13.5c-.957 0-1.75-.755-1.75-1.666C11.75 2.755 10.957 2 10 2s-1.75.755-1.75 1.667c0 .911-.793 1.666-1.75 1.666H4.75C3.793 5.333 3 6.09 3 7z"></path><path d="M4 19h6v2H4zM12 11H4v2h8zM4 17h4v-2H4zM15 15v-3l-4.5 4.5L15 21v-3l8.027-.032L23 15z"></path>
|
34 | 33 | </svg>
|
35 | 34 | </div>
|
36 |
| - <div id="copy-status-message" class="copy-button-text"></div> |
| 35 | + <div id="copy-status-message-unix" class="copy-button-text"></div> |
37 | 36 | </button>
|
38 | 37 | </div>
|
39 | 38 | <p class="other-platforms-help">You appear to be running Unix. If not, <a class="default-platform-button" href="#">display all supported installers</a>.</p>
|
|
46 | 45 | then follow the onscreen instructions.
|
47 | 46 | </p>
|
48 | 47 | <p>If you're a Windows Subsystem for Linux user run the following in your terminal, then follow the onscreen instructions to install Rust.</p>
|
49 |
| - <pre>curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh</pre> |
| 48 | + <div class="copy-container"> |
| 49 | + <pre>curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh</pre> |
| 50 | + <button id="copy-button-win32" class="copy-button" title="Copy curl command to clipboard to download Rustup" type="button"> |
| 51 | + <div class="copy-icon"> |
| 52 | + <svg width="24" height="25" viewBox="0 0 24 25" xmlns="http://www.w3.org/2000/svg" alt="Copy curl command to clipboard to download Rustup"> |
| 53 | + <path d="M18 20h2v3c0 1-1 2-2 2H2c-.998 0-2-1-2-2V5c0-.911.755-1.667 1.667-1.667h5A3.323 3.323 0 0110 0a3.323 3.323 0 013.333 3.333h5C19.245 3.333 20 4.09 20 5v8.333h-2V9H2v14h16v-3zM3 7h14c0-.911-.793-1.667-1.75-1.667H13.5c-.957 0-1.75-.755-1.75-1.666C11.75 2.755 10.957 2 10 2s-1.75.755-1.75 1.667c0 .911-.793 1.666-1.75 1.666H4.75C3.793 5.333 3 6.09 3 7z"></path><path d="M4 19h6v2H4zM12 11H4v2h8zM4 17h4v-2H4zM15 15v-3l-4.5 4.5L15 21v-3l8.027-.032L23 15z"></path> |
| 54 | + </svg> |
| 55 | + </div> |
| 56 | + <div id="copy-status-message-win32" class="copy-button-text"></div> |
| 57 | + </button> |
| 58 | + </div> |
50 | 59 | <p class="other-platforms-help">You appear to be running Windows 32-bit. If not, <a class="default-platform-button" href="#">display all supported installers</a>.</p>
|
51 | 60 | </div>
|
52 | 61 |
|
|
57 | 66 | then follow the onscreen instructions.
|
58 | 67 | </p>
|
59 | 68 | <p>If you're a Windows Subsystem for Linux user run the following in your terminal, then follow the onscreen instructions to install Rust.</p>
|
60 |
| - <pre>curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh</pre> |
| 69 | + <div class="copy-container"> |
| 70 | + <pre>curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh</pre> |
| 71 | + <button id="copy-button-win64" class="copy-button" title="Copy curl command to clipboard to download Rustup" type="button"> |
| 72 | + <div class="copy-icon"> |
| 73 | + <svg width="24" height="25" viewBox="0 0 24 25" xmlns="http://www.w3.org/2000/svg" alt="Copy curl command to clipboard to download Rustup"> |
| 74 | + <path d="M18 20h2v3c0 1-1 2-2 2H2c-.998 0-2-1-2-2V5c0-.911.755-1.667 1.667-1.667h5A3.323 3.323 0 0110 0a3.323 3.323 0 013.333 3.333h5C19.245 3.333 20 4.09 20 5v8.333h-2V9H2v14h16v-3zM3 7h14c0-.911-.793-1.667-1.75-1.667H13.5c-.957 0-1.75-.755-1.75-1.666C11.75 2.755 10.957 2 10 2s-1.75.755-1.75 1.667c0 .911-.793 1.666-1.75 1.666H4.75C3.793 5.333 3 6.09 3 7z"></path><path d="M4 19h6v2H4zM12 11H4v2h8zM4 17h4v-2H4zM15 15v-3l-4.5 4.5L15 21v-3l8.027-.032L23 15z"></path> |
| 75 | + </svg> |
| 76 | + </div> |
| 77 | + <div id="copy-status-message-win64" class="copy-button-text"></div> |
| 78 | + </button> |
| 79 | + </div> |
61 | 80 | <p class="other-platforms-help">You appear to be running Windows 64-bit. If not, <a class="default-platform-button" href="#">display all supported installers</a>.</p>
|
62 | 81 | </div>
|
63 | 82 |
|
|
81 | 100 | <!-- duplicate the default cross-platform instructions -->
|
82 | 101 | <div>
|
83 | 102 | <p>If you are running Unix,<br/>run the following in your terminal, then follow the onscreen instructions.</p>
|
84 |
| - <pre>curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh</pre> |
| 103 | + <div class="copy-container"> |
| 104 | + <pre>curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh</pre> |
| 105 | + <button id="copy-button-unknown" class="copy-button" title="Copy curl command to clipboard to download Rustup" type="button"> |
| 106 | + <div class="copy-icon"> |
| 107 | + <svg width="24" height="25" viewBox="0 0 24 25" xmlns="http://www.w3.org/2000/svg" alt="Copy curl command to clipboard to download Rustup"> |
| 108 | + <path d="M18 20h2v3c0 1-1 2-2 2H2c-.998 0-2-1-2-2V5c0-.911.755-1.667 1.667-1.667h5A3.323 3.323 0 0110 0a3.323 3.323 0 013.333 3.333h5C19.245 3.333 20 4.09 20 5v8.333h-2V9H2v14h16v-3zM3 7h14c0-.911-.793-1.667-1.75-1.667H13.5c-.957 0-1.75-.755-1.75-1.666C11.75 2.755 10.957 2 10 2s-1.75.755-1.75 1.667c0 .911-.793 1.666-1.75 1.666H4.75C3.793 5.333 3 6.09 3 7z"></path><path d="M4 19h6v2H4zM12 11H4v2h8zM4 17h4v-2H4zM15 15v-3l-4.5 4.5L15 21v-3l8.027-.032L23 15z"></path> |
| 109 | + </svg> |
| 110 | + </div> |
| 111 | + <div id="copy-status-message-unknown" class="copy-button-text"></div> |
| 112 | + </button> |
| 113 | + </div> |
85 | 114 | </div>
|
86 | 115 |
|
87 | 116 | <hr/>
|
|
110 | 139 | <div>
|
111 | 140 | <p>To install Rust, if you are running Unix,<br/>run the following
|
112 | 141 | in your terminal, then follow the onscreen instructions.</p>
|
113 |
| - <pre>curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh</pre> |
| 142 | + <div class="copy-container"> |
| 143 | + <pre>curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh</pre> |
| 144 | + <button id="copy-button-default" class="copy-button" title="Copy curl command to clipboard to download Rustup" type="button"> |
| 145 | + <div class="copy-icon"> |
| 146 | + <svg width="24" height="25" viewBox="0 0 24 25" xmlns="http://www.w3.org/2000/svg" alt="Copy curl command to clipboard to download Rustup"> |
| 147 | + <path d="M18 20h2v3c0 1-1 2-2 2H2c-.998 0-2-1-2-2V5c0-.911.755-1.667 1.667-1.667h5A3.323 3.323 0 0110 0a3.323 3.323 0 013.333 3.333h5C19.245 3.333 20 4.09 20 5v8.333h-2V9H2v14h16v-3zM3 7h14c0-.911-.793-1.667-1.75-1.667H13.5c-.957 0-1.75-.755-1.75-1.666C11.75 2.755 10.957 2 10 2s-1.75.755-1.75 1.667c0 .911-.793 1.666-1.75 1.666H4.75C3.793 5.333 3 6.09 3 7z"></path><path d="M4 19h6v2H4zM12 11H4v2h8zM4 17h4v-2H4zM15 15v-3l-4.5 4.5L15 21v-3l8.027-.032L23 15z"></path> |
| 148 | + </svg> |
| 149 | + </div> |
| 150 | + <div id="copy-status-message-default" class="copy-button-text"></div> |
| 151 | + </button> |
| 152 | + </div> |
114 | 153 | </div>
|
115 | 154 |
|
116 | 155 | <hr/>
|
|
0 commit comments