diff --git a/_config.yml b/_config.yml index 81b9ab3fb..c7480ffd6 100644 --- a/_config.yml +++ b/_config.yml @@ -2,6 +2,17 @@ name: The Rust Programming Language stable: "1.13.0" stable_date: "2016-11-10" stable_blog: "/2016/11/10/Rust-1.13.html" +stable_full_version: "rustc 1.13.0 (2c6933acc 2016-11-07)" beta: "1.14" beta_date: "2016-12-22" nightly: "1.15" +channels: + - name: "stable" + vers: "1.13.0" + package: "1.13.0" + - name: "beta" + vers: "1.14" + package: "beta" + - name: "nightly" + vers: "1.15" + package: "nightly" diff --git a/_includes/rustup.js b/_includes/rustup.js new file mode 100644 index 000000000..dc268c73c --- /dev/null +++ b/_includes/rustup.js @@ -0,0 +1,147 @@ +var platform_override = null; + +function detect_platform() { + "use strict"; + + if (platform_override) { + return platform_override; + } + + var os = "unknown"; + + if (navigator.platform == "Linux x86_64") {os = "unix";} + if (navigator.platform == "Linux i686") {os = "unix";} + if (navigator.platform == "Linux i686 on x86_64") {os = "unix";} + if (navigator.platform == "Linux aarch64") {os = "unix";} + if (navigator.platform == "Linux armv6l") {os = "unix";} + if (navigator.platform == "Linux armv7l") {os = "unix";} + if (navigator.platform == "Mac") {os = "unix";} + if (navigator.platform == "Win32") {os = "win";} + if (navigator.platform == "FreeBSD x86_64") {os = "unix";} + if (navigator.platform == "FreeBSD amd64") {os = "unix";} + + if (navigator.platform == "Linux armv7l" + && navigator.appVersion.indexOf("Android") != -1 ) { + os = "android"; + } + + // I wish I knew by now, but I don't. Try harder. + if (os == "unknown") { + if (navigator.appVersion.indexOf("Win")!=-1) {os = "win";} + if (navigator.appVersion.indexOf("Mac")!=-1) {os = "unix";} + } + + return os; +} + +function adjust_for_platform() { + "use strict"; + + var platform = detect_platform(); + + var unix_div = document.getElementById("platform-instructions-unix"); + var win_div = document.getElementById("platform-instructions-win"); + var android_div = document.getElementById("platform-instructions-android"); + var unknown_div = document.getElementById("platform-instructions-unknown"); + var default_div = document.getElementById("platform-instructions-default"); + + unix_div.style.display = "none"; + win_div.style.display = "none"; + android_div.style.display = "none"; + unknown_div.style.display = "none"; + default_div.style.display = "none"; + + if (platform == "unix") { + unix_div.style.display = "block"; + } else if (platform == "win") { + win_div.style.display = "block"; + } else if (platform == "android") { + android_div.style.display = "block"; + } else if (platform == "unknown") { + unknown_div.style.display = "block"; + } else { + default_div.style.display = "block"; + } + + var platform_specific = document.getElementsByClassName("platform-specific"); + for (var el of platform_specific) { + var el_is_not_win = el.className.indexOf("not-win") !== -1; + var el_is_inline = el.tagName.toLowerCase() == "span"; + var el_visible_style = "block"; + if (el_is_inline) { + el_visible_style = "inline"; + } + if (platform == "win") { + if (el_is_not_win) { + el.style.display = "none"; + } else { + el.style.display = el_visible_style; + } + } else { + if (el_is_not_win) { + el.style.display = el_visible_style; + } else { + el.style.display = "none"; + } + } + } +} + +function cycle_platform() { + if (platform_override == null) { + platform_override = "default"; + } else if (platform_override == "default") { + platform_override = "unknown"; + } else if (platform_override == "unknown") { + platform_override = "win"; + } else if (platform_override == "win") { + platform_override = "unix"; + } else if (platform_override == "unix") { + platform_override = "android"; + } else if (platform_override == "android") { + platform_override = "default"; + } + adjust_for_platform(); +} + +function set_up_cycle_button() { + var cycle_button = document.getElementById("platform-button"); + cycle_button.onclick = cycle_platform; + + var key="test"; + var idx=0; + var unlocked=false; + + document.onkeypress = function(event) { + if (event.key == "n" && unlocked) { + cycle_platform(); + } + + if (event.key == key[idx]) { + idx += 1; + + if (idx == key.length) { + cycle_button.style.display = "block"; + unlocked = true; + cycle_platform(); + } + } else if (event.key == key[0]) { + idx = 1; + } else { + idx = 0; + } + }; +} + +function fill_in_bug_report_values() { + var nav_plat = document.getElementById("nav-plat"); + var nav_app = document.getElementById("nav-app"); + nav_plat.textContent = navigator.platform; + nav_app.textContent = navigator.appVersion; +} + +(function () { + adjust_for_platform(); + set_up_cycle_button(); + fill_in_bug_report_values(); +}()); diff --git a/_layouts/basic.html b/_layouts/basic.html index 652a987bd..9fb94667f 100644 --- a/_layouts/basic.html +++ b/_layouts/basic.html @@ -27,8 +27,8 @@
- The - - current stable release of Rust, - updated every six weeks and backwards-compatible. -
-Linux (.tar.gz) | -- | - |
Mac (.pkg) | -- | - |
Windows (MSVC ABI †) (.msi) | -- | - |
Windows (GNU ABI †) (.msi) | -- | - |
- | - |
An easy way to install the stable binaries for Linux and Mac is to run this in your shell:
-curl -sSf https://static.rust-lang.org/rustup.sh | sh
- - A preview of the upcoming stable release, intended for testing by - crate authors. Updated every six weeks and as needed. -
-Scheduled for stable release
{{ site.beta_date | date: "%B %-d, %Y" }}.
-
Linux (.tar.gz) | -- | - | |
Mac (.pkg) | -- | - | |
Windows (MSVC ABI †) (.msi) | -- | - | - |
Windows (GNU ABI †) (.msi) | -- | - | |
- | - |
An easy way to install the beta binaries for Linux and Mac is to run this in your shell:
-curl -sSf https://static.rust-lang.org/rustup.sh | sh -s -- --channel=beta
- - The current development branch. - It includes - unstable features - that are not available in the betas or stable releases. -
-Linux (.tar.gz) | -- | - | |
Mac (.pkg) | -- | - | |
Windows (MSVC ABI †) (.msi) | -- | - | - |
Windows (GNU ABI †) (.msi) | -- | - | |
- | - |
An easy way to install the nightly binaries for Linux and Mac is to run this in your shell:
-curl -sSf https://static.rust-lang.org/rustup.sh | sh -s -- --channel=nightly
- - Discover other downloads in the archives. -
-If you installed using the shell script, run this to uninstall:
-curl -sSf https://static.rust-lang.org/rustup.sh | sh -s -- --uninstall
- - † - There are two prominent - ABIs - in use on Windows: the native (MSVC) ABI used by - Visual Studio, - and the GNU ABI used by the - GCC toolchain. - Which version of Rust you need depends largely on what C/C++ libraries you want to interoperate with: - for interop with software produced by Visual Studio use the MSVC build of Rust; for interop with - GNU software built using the - MinGW/MSYS2 toolchain - use the GNU build. -
-- MSVC builds of Rust additionally require the Microsoft Visual - C++ build tools for Visual Studio 2013 or later. - The easiest way to acquire the build tools is by installing - - Microsoft Visual C++ Build Tools 2015 - which provides just the Visual C++ build tools. - Alternately, you can install - Visual Studio 2015 or Visual Studio 2013 and during install select the "C++ tools". - No additional software installation is necessary for basic use of the GNU build. -
-- Rust's support for the MSVC ABI is more mature, and is recommended for typical - uses. -
-Rust is a systems programming language @@ -14,21 +14,11 @@ See who's using Rust.
To install Rust, if you are running Unix,
run the following
+ in your terminal, then follow the onscreen instructions.
curl https://sh.rustup.rs -sSf | sh+
+ If you are running Windows,
download and run
+ rustup‑init.exe
+ then follow the onscreen instructions.
+
rustup
+ Rust is installed and managed by the
+ rustup
+ tool. Rust has a 6-week
+
+ rapid release process
+ and supports a
+
+ great number of platforms
+ , so there are many builds of Rust available at any time.
+ rustup
manages these builds in a consistent way on every
+ platform that Rust supports, enabling installation of Rust from the
+ beta and nightly release channels as well as support for additional
+ cross-compilation targets
+
+ For more information see the
+ rustup
+ documentation.
+
PATH
environment variable
+ In the Rust development environment, all tools are installed to the
+
+ ~/.cargo/bin
+
+ directory,
+ and this is where you will find the Rust toolchain, including
+ rustc
, cargo
, and rustup
.
+
+ Accordingly, it is customary for Rust developers to include this
+ directory in their
+ PATH
+ environment variable. During installation, rustup
,
+ will attempt to configure
+ PATH
, but because of differences between platforms,
+ command shells, and bugs in rustup
, the modifications
+ to PATH
may not take effect until the console is
+ restarted, or the user logged out, or may not succeed at all.
+
+ If, after installation, running rustc --version
in the
+ console fails, this is the most likely reason.
+
+ On Windows, Rust additionally requires the C++ build tools + for Visual Studio 2013 or later. The easiest way to acquire the build + tools is by installing + + Microsoft Visual C++ Build Tools 2015 + + which provides just the Visual C++ build tools. Alternately, you + can install + Visual Studio 2015 or Visual Studio 2013 and during install select + the "C++ tools". +
+ +
+ For further information about configuring Rust on Windows see the
+ Windows-specific rustup
+ documentation.
+
+ The installation described above, via
+ rustup
, is the preferred way to install Rust for most developers,
+ but Rust can be
+ installed via other methods
+ as well.
+
- - La version stable de Rust, - mise à jour toutes les six semaines et rétrocompatible. -
-Linux (.tar.gz) | -- | - |
Mac (.pkg) | -- | - |
Windows (ABI GNU †) (.msi) | -- | - |
Windows (ABI MSVC †) (.msi) | -- | - |
- | - |
Pour installer facilement les binaires pour Linux et Mac, exécutez dans votre shell :
-curl -sSf https://static.rust-lang.org/rustup.sh | sh
- - Un aperçu de la prochaine version stable pour que les auteurs de - crates puissent tester. Mise à jour toutes les six semaines et au besoin. -
-Programmé pour une version stable le
{{ site.beta_date | date: "%B %-d, %Y" }}.
-
Linux (.tar.gz) | -- | - | |
Mac (.pkg) | -- | - | |
Windows (ABI GNU †) (.msi) | -- | - | |
Windows (ABI MSVC †) (.msi) | -- | - | - |
- | - |
Pour installer facilement les binaires beta pour Linux et Mac, exécutez dans votre shell :
-curl -sSf https://static.rust-lang.org/rustup.sh | sh -s -- --channel=beta
- - La branche de dévelopement courante. - Elle inclut - des éléments non stables - qui ne sont pas disponibles dans les versions beta ou stable. -
-Linux (.tar.gz) | -- | - | |
Mac (.pkg) | -- | - | |
Windows (ABI GNU †) (.msi) | -- | - | |
Windows (ABI MSVC †) (.msi) | -- | - | - |
- | - |
Pour installer facilement les binaires nightly pour Linux et Mac, exécutez dans votre shell :
-curl -sSf https://static.rust-lang.org/rustup.sh | sh -s -- --channel=nightly
- - Découvrez d'autres téléchargements dans les archives. -
-Si vous avez installé Rust en utilisant le script shell, exécutez ceci pour le désinstaller :
-curl -sSf https://static.rust-lang.org/rustup.sh | sh -s -- --uninstall
- - † - Il y a deux principales - ABI - utilisées sur Windows : l'ABI native (MSVC) utilisée par - Visual Studio, - et l'ABI GNU utilisée par la - suite d'outils GCC. - La version de Rust dont vous avez besoin dépend principalement d'avec quelles bibliothèques C/C++ vous voulez interagir : - pour une interopérabilité avec des logiciels générés via Visual Studio utilisez le build MSVC de Rust. Pour une interopérabilité avec - des logiciels GNU produits avec - la suite d'outils MinGW/MSYS2 - utilisez le build GNU. -
-- Les builds MSVC de Rust nécessitent en outre les outils de compilation Microsoft Visual - C++ pour Visual Studio 2013 et plus. - Pour obtenir ces outils de compilation, installez - - Microsoft Visual C++ Build Tools 2015 - qui fournit seulement les outils de compilation Visual C++. - Alternativement, vous pouvez installer - Visual Studio 2015 ou Visual Studio 2013 et pendant l'installation selectionner « C++ tools ». - Il n'est pas nécessaire d'installer d'autres logiciels pour l'utilisation basique du build GNU. -
-- Le support de Rust pour l'ABI GNU est plus mature et est recommandé pour les usages classiques. -
-Rust est un langage de programmation système ultra-rapide, @@ -13,17 +13,11 @@ Montre-moi !
To install Rust, if you are running Unix,
run the following
+ in your terminal, then follow the onscreen instructions.
curl https://sh.rustup.rs -sSf | sh+
+ If you are running Windows,
download and run
+ rustup‑init.exe
+ then follow the onscreen instructions.
+
rustup
+ Rust is installed and managed by the
+ rustup
+ tool. Rust has a 6-week
+
+ rapid release process
+ and supports a
+
+ great number of platforms
+ , so there are many builds of Rust available at any time.
+ rustup
manages these builds in a consistent way on every
+ platform that Rust supports, enabling installation of Rust from the
+ beta and nightly release channels as well as support for additional
+ cross-compilation targets
+
+ For more information see the
+ rustup
+ documentation.
+
PATH
environment variable
+ In the Rust development environment, all tools are installed to the
+
+ ~/.cargo/bin
+
+ directory,
+ and this is where you will find the Rust toolchain, including
+ rustc
, cargo
, and rustup
.
+
+ Accordingly, it is customary for Rust developers to include this
+ directory in their
+ PATH
+ environment variable. During installation, rustup
,
+ will attempt to configure
+ PATH
, but because of differences between platforms,
+ command shells, and bugs in rustup
, the modifications
+ to PATH
may not take effect until the console is
+ restarted, or the user logged out, or may not succeed at all.
+
+ If, after installation, running rustc --version
in the
+ console fails, this is the most likely reason.
+
+ On Windows, Rust additionally requires the C++ build tools + for Visual Studio 2013 or later. The easiest way to acquire the build + tools is by installing + + Microsoft Visual C++ Build Tools 2015 + + which provides just the Visual C++ build tools. Alternately, you + can install + Visual Studio 2015 or Visual Studio 2013 and during install select + the "C++ tools". +
+ +
+ For further information about configuring Rust on Windows see the
+ Windows-specific rustup
+ documentation.
+
+ The installation described above, via
+ rustup
, is the preferred way to install Rust for most developers,
+ but Rust can be
+ installed via other methods
+ as well.
+
- - Rust의 현재 안정 버전입니다. - 6주마다 갱신되며 이전 버전과 호환됩니다. -
-Linux (.tar.gz) | -- | - |
Mac (.pkg) | -- | - |
Windows (GNU ABI †) (.msi) | -- | - |
Windows (MSVC ABI †) (.msi) | -- | - |
- | - |
Linux와 Mac에서는 다음 명령을 셸에 입력해서 쉽게 안정 버전을 설치할 수 있습니다:
-curl -sSf https://static.rust-lang.org/rustup.sh | sh
- - 다음 안정 버전의 맛보기 판으로, 크레이트 개발자가 테스트하는 데 쓰입니다. - 6주마다 및 필요에 따라 갱신됩니다. -
-
{{ site.beta_date | date: "%Y년 %-m월 %-d일" }}에 안정 버전으로 승격될 예정
-
Linux (.tar.gz) | -- | - | |
Mac (.pkg) | -- | - | |
Windows (GNU ABI †) (.msi) | -- | - | |
Windows (MSVC ABI †) (.msi) | -- | - | - |
- | - |
Linux와 Mac에서는 다음 명령을 셸에 입력해서 쉽게 베타 버전을 설치할 수 있습니다:
-curl -sSf https://static.rust-lang.org/rustup.sh | sh -s -- --channel=beta
- - 현재의 개발 브랜치입니다. - 베타나 안정 버전에서 사용할 수 없는 - 불안정한 기능들이 포함됩니다. -
-Linux (.tar.gz) | -- | - | |
Mac (.pkg) | -- | - | |
Windows (GNU ABI †) (.msi) | -- | - | |
Windows (MSVC ABI †) (.msi) | -- | - | - |
- | - |
Linux와 Mac에서는 다음 명령을 셸에 입력해서 쉽게 나이틀리 버전을 설치할 수 있습니다:
-curl -sSf https://static.rust-lang.org/rustup.sh | sh -s -- --channel=nightly
- - 아카이브에서 다른 다운로드를 찾을 수 있습니다. -
-셸 스크립트로 설치했을 경우 다음을 실행해서 삭제할 수 있습니다:
-curl -sSf https://static.rust-lang.org/rustup.sh | sh -s -- --uninstall
- - † - Windows에서는 두 개의 주요 - ABI가 - 사용되고 있는데, 하나는 - Visual Studio가 - 사용하는 네이티브 (MSVC) ABI이고, 다른 하나는 - GCC 툴체인이 - 사용하는 GNU ABI입니다. - 어느 버전의 Rust를 사용할지는 주로 함께 쓰고자 하는 C/C++ 라이브러리가 무엇이냐에 따라 결정됩니다. - Visual Studio에서 만들어진 소프트웨어와 함께 쓰려면 Rust의 MSVC 빌드를 사용하십시오. - MinGW/MSYS2 툴체인으로 빌드된 GNU 소프트웨어와 함께 쓰려면 - GNU 빌드를 사용하십시오. -
-- Rust의 MSVC 빌드는 추가적으로 Visual Studio 2013 또는 이후 버전을 위한 - Microsoft Visual C++ 빌드 도구를 필요로 합니다. - 빌드 도구를 가장 쉽게 받는 방법은 - - Microsoft Visual C++ 빌드 도구 2015를 - 설치하는 것입니다. - 또는 Visual Studio 2015나 Visual Studio 2013을 - 설치하고 - 설치 과정에서 "C++ 도구"를 선택할 수 있습니다. - GNU 빌드의 경우 기본적인 사용에는 별도의 소프트웨어 설치가 필요하지 않습니다. -
-- Rust의 GNU ABI 지원은 MSVC ABI보다 더 성숙해 있으며 일반적인 사용에 권장됩니다. -
-Rust는 @@ -15,21 +15,11 @@ 누가 Rust를 쓰는지 알아 보세요.
To install Rust, if you are running Unix,
run the following
+ in your terminal, then follow the onscreen instructions.
curl https://sh.rustup.rs -sSf | sh+
+ If you are running Windows,
download and run
+ rustup‑init.exe
+ then follow the onscreen instructions.
+
rustup
+ Rust is installed and managed by the
+ rustup
+ tool. Rust has a 6-week
+
+ rapid release process
+ and supports a
+
+ great number of platforms
+ , so there are many builds of Rust available at any time.
+ rustup
manages these builds in a consistent way on every
+ platform that Rust supports, enabling installation of Rust from the
+ beta and nightly release channels as well as support for additional
+ cross-compilation targets
+
+ For more information see the
+ rustup
+ documentation.
+
PATH
environment variable
+ In the Rust development environment, all tools are installed to the
+
+ ~/.cargo/bin
+
+ directory,
+ and this is where you will find the Rust toolchain, including
+ rustc
, cargo
, and rustup
.
+
+ Accordingly, it is customary for Rust developers to include this
+ directory in their
+ PATH
+ environment variable. During installation, rustup
,
+ will attempt to configure
+ PATH
, but because of differences between platforms,
+ command shells, and bugs in rustup
, the modifications
+ to PATH
may not take effect until the console is
+ restarted, or the user logged out, or may not succeed at all.
+
+ If, after installation, running rustc --version
in the
+ console fails, this is the most likely reason.
+
+ On Windows, Rust additionally requires the C++ build tools + for Visual Studio 2013 or later. The easiest way to acquire the build + tools is by installing + + Microsoft Visual C++ Build Tools 2015 + + which provides just the Visual C++ build tools. Alternately, you + can install + Visual Studio 2015 or Visual Studio 2013 and during install select + the "C++ tools". +
+ +
+ For further information about configuring Rust on Windows see the
+ Windows-specific rustup
+ documentation.
+
+ The installation described above, via
+ rustup
, is the preferred way to install Rust for most developers,
+ but Rust can be
+ installed via other methods
+ as well.
+
- O - - atual lançamento estável de rust, - atualizado à cada 6 semanas e compatível com versões anteriores. -
-Linux (.tar.gz) | -- | - |
Mac (.pkg) | -- | - |
Windows (ABI GNU †) (.msi) | -- | - |
Windows (ABI MSVC †) (.msi) | -- | - |
- | - |
Um jeito fácil e rápido de instalar os binários da versão estável no Linux e Mac é rodar isso no seu terminal:
-curl -sSf https://static.rust-lang.org/rustup.sh | sh
- - Uma preview da versão estável que virá, intencionada para teste por - autores de pacotes. Atualizado à cada seis semanas e quando necessário. -
-Esperado lançamento como estável:
{{ site.beta_date | date: '%-d' }} de {{ months[beta_month] }} de {{ site.beta_date | date: '%Y' }}.
-
Linux (.tar.gz) | -- | - | |
Mac (.pkg) | -- | - | |
Windows (ABI GNU †) (.msi) | -- | - | |
Windows (ABI MSVC †) (.msi) | -- | - | - |
- | - |
Um jeito fácil e rápido de instalar os binários da versão beta no Linux e Mac é rodar isso no seu terminal:
-curl -sSf https://static.rust-lang.org/rustup.sh | sh -s -- --channel=beta
- - É o atual ramo de desenvolvimento. - Ele inclui - aspectos instáveis - que não estão disponíveis nos lançamentos estável e beta. -
-Linux (.tar.gz) | -- | - | |
Mac (.pkg) | -- | - | |
Windows (ABI GNU †) (.msi) | -- | - | |
Windows (ABI MSVC †) (.msi) | -- | - | - |
- | - |
Um jeito fácil e rápido de instalar os binários da versão nightly no Linux e Mac é rodar isso no seu terminal:
-curl -sSf https://static.rust-lang.org/rustup.sh | sh -s -- --channel=nightly
- - Descubra outros downloads nos arquivos. -
-- † - Há duas ABIs - principais em uso no Windows: a ABI nativa (MSVC) usada no Visual Studio - e a ABI GNU usada pelo GCC. - Qual versão de Rust você precisa depende enormemente em que tipo de bibliotecas de C/C++ você pretende - interoperar com: - Para interoperar com software compilado com o Visual Studio, use a versão MSVC de Rust; Para interoperar - com software GNU compilado com as ferramentas MinGW/MSYS2, use a - versão GNU. -
-- Versões de MSVC de Rust requerem adicionalmente as ferramentas de desenvolvimento Microsoft Visual C++ - para o Visual Studio 2013 ou superior. - A forma mais fácil de adquirir as ferramentas de desenvolvimento é instalando - - Microsoft Visual C++ Build Tools 2015 que fornece apenas as ferramentas de desenvolvimento - do Visual C++. - Outra alternativa é instalar o Visual Studio 2015 ou Visual Studio 2013 e durante a instalação, - selecione a parte "ferramentas para C++". Nenhum software adicional é necessário para o uso - básico da versão GNU. -
-- O suporte de Rust para a versão GNU é mais madura, e é recomendada para a maior - parte dos usos comuns. -
-Rust é uma linguagem de programação de sistemas @@ -14,21 +14,11 @@ Veja quem está usando Rust.
To install Rust, if you are running Unix,
run the following
+ in your terminal, then follow the onscreen instructions.
curl https://sh.rustup.rs -sSf | sh+
+ If you are running Windows,
download and run
+ rustup‑init.exe
+ then follow the onscreen instructions.
+
rustup
+ Rust is installed and managed by the
+ rustup
+ tool. Rust has a 6-week
+
+ rapid release process
+ and supports a
+
+ great number of platforms
+ , so there are many builds of Rust available at any time.
+ rustup
manages these builds in a consistent way on every
+ platform that Rust supports, enabling installation of Rust from the
+ beta and nightly release channels as well as support for additional
+ cross-compilation targets
+
+ For more information see the
+ rustup
+ documentation.
+
PATH
environment variable
+ In the Rust development environment, all tools are installed to the
+
+ ~/.cargo/bin
+
+ directory,
+ and this is where you will find the Rust toolchain, including
+ rustc
, cargo
, and rustup
.
+
+ Accordingly, it is customary for Rust developers to include this
+ directory in their
+ PATH
+ environment variable. During installation, rustup
,
+ will attempt to configure
+ PATH
, but because of differences between platforms,
+ command shells, and bugs in rustup
, the modifications
+ to PATH
may not take effect until the console is
+ restarted, or the user logged out, or may not succeed at all.
+
+ If, after installation, running rustc --version
in the
+ console fails, this is the most likely reason.
+
+ On Windows, Rust additionally requires the C++ build tools + for Visual Studio 2013 or later. The easiest way to acquire the build + tools is by installing + + Microsoft Visual C++ Build Tools 2015 + + which provides just the Visual C++ build tools. Alternately, you + can install + Visual Studio 2015 or Visual Studio 2013 and during install select + the "C++ tools". +
+ +
+ For further information about configuring Rust on Windows see the
+ Windows-specific rustup
+ documentation.
+
+ The installation described above, via
+ rustup
, is the preferred way to install Rust for most developers,
+ but Rust can be
+ installed via other methods
+ as well.
+
- - Текущая стабильная версия Rust - - , обновляется каждые шесть недель и обратно совместима -
-Linux (.tar.gz) | -- | - |
Mac (.pkg) | -- | - |
Windows (MSVC ABI †) (.msi) | -- | - |
Windows (GNU ABI †) (.msi) | -- | - |
- | - |
Простой способ установить бинарную стабильную версию для Linux и Mac — выполнить эту команду в командной строке:
-curl -sSf https://static.rust-lang.org/rustup.sh | sh
- - Предварительная версия будущих стабильных выпусков, предназначена для - тестирования авторами библиотек. Обновляется каждые шесть недель или по мере необходимости. -
-Стабильный релиз намечен на
{{ site.beta_date }}.
-
Linux (.tar.gz) | -- | - | |
Mac (.pkg) | -- | - | |
Windows (MSVC ABI †) (.msi) | -- | - | - |
Windows (GNU ABI †) (.msi) | -- | - | |
- | - |
Простой способ установить бинарную бета версию для Linux и Mac — выполнить эту команду в командной строке:
-curl -sSf https://static.rust-lang.org/rustup.sh | sh -s -- --channel=beta
- - Текущая ветка разработки. - Включает - нестабильные возможности - которые недоступны в бетах и стабильных релизах. -
-Linux (.tar.gz) | -- | - | |
Mac (.pkg) | -- | - | |
Windows (MSVC ABI †) (.msi) | -- | - | - |
Windows (GNU ABI †) (.msi) | -- | - | |
- | - |
Простой способ установить бинарную nightly версию для Linux и Mac — выполнить эту команду в командной строке:
-curl -sSf https://static.rust-lang.org/rustup.sh | sh -s -- --channel=nightly
- - Вы можете просмотреть другие варианты в архиве. -
-Если для установки вы использовали shell скрипт, то для удаления выполните эту команду:
-curl -sSf https://static.rust-lang.org/rustup.sh | sh -s -- --uninstall
- - † - На Windows существует два известных - ABI - : нативный (MSVC) ABI, который используется в - Visual Studio, - и GNU ABI, который используется в - наборе инструментов GCC. - То, какая версия Rust вам нужна зависит в основном от того, с какими C/C++ библиотеками вы собираетесь взаимодействовать: - для взаимодействия с ПО созданным с помощью Visual Studio используйте MSVC версию Rust; - для ПО GNU, которое было собрано с помощью - MinGW/MSYS2 - используйте GNU версию. -
-- Версия Rust для MSVC дополнительно требует инструменты сборки Microsoft Visual - C++ для Visual Studio 2013 и выше. - Простейший способ получить их — установить - - Microsoft Visual C++ Build Tools 2015 - ,который предоставит вам только иструменты для сборки Visual C++. - Альтернативно, вы можете установить - Visual Studio 2015 или Visual Studio 2013, и, во время установки, поставить галочку на "C++ tools". - Для GNU версии никакого дополнительного ПО не требуется. -
-- Поддержка MSVC ABI более проработана и рекомендуется для обычных пользователей. -
-Rust — безумно быстрый системный язык программирования без segfault'ов и с гарантиями потокобезопасности. @@ -11,21 +11,11 @@ Покажите!
To install Rust, if you are running Unix,
run the following
+ in your terminal, then follow the onscreen instructions.
curl https://sh.rustup.rs -sSf | sh+
+ If you are running Windows,
download and run
+ rustup‑init.exe
+ then follow the onscreen instructions.
+
rustup
+ Rust is installed and managed by the
+ rustup
+ tool. Rust has a 6-week
+
+ rapid release process
+ and supports a
+
+ great number of platforms
+ , so there are many builds of Rust available at any time.
+ rustup
manages these builds in a consistent way on every
+ platform that Rust supports, enabling installation of Rust from the
+ beta and nightly release channels as well as support for additional
+ cross-compilation targets
+
+ For more information see the
+ rustup
+ documentation.
+
PATH
environment variable
+ In the Rust development environment, all tools are installed to the
+
+ ~/.cargo/bin
+
+ directory,
+ and this is where you will find the Rust toolchain, including
+ rustc
, cargo
, and rustup
.
+
+ Accordingly, it is customary for Rust developers to include this
+ directory in their
+ PATH
+ environment variable. During installation, rustup
,
+ will attempt to configure
+ PATH
, but because of differences between platforms,
+ command shells, and bugs in rustup
, the modifications
+ to PATH
may not take effect until the console is
+ restarted, or the user logged out, or may not succeed at all.
+
+ If, after installation, running rustc --version
in the
+ console fails, this is the most likely reason.
+
+ On Windows, Rust additionally requires the C++ build tools + for Visual Studio 2013 or later. The easiest way to acquire the build + tools is by installing + + Microsoft Visual C++ Build Tools 2015 + + which provides just the Visual C++ build tools. Alternately, you + can install + Visual Studio 2015 or Visual Studio 2013 and during install select + the "C++ tools". +
+ +
+ For further information about configuring Rust on Windows see the
+ Windows-specific rustup
+ documentation.
+
+ The installation described above, via
+ rustup
, is the preferred way to install Rust for most developers,
+ but Rust can be
+ installed via other methods
+ as well.
+
- - 当前稳定的版本, - 保持每六周更新一次和后向兼容。 -
-Linux (.tar.gz) | -- | - |
Mac (.pkg) | -- | - |
Windows (GNU ABI 〔注〕) (.msi) | -- | - |
Windows (MSVC ABI 〔注〕) (.msi) | -- | - |
- | - |
也可以快捷的在Linux和Mac系统中的终端运行来安装Rust(稳定绿化版):
-curl -sSf https://static.rust-lang.org/rustup.sh | sh
- - 即将推出的稳定版本,提供为库(crate) 作者测试使用。 - 每六周或必要时更新一次。 -
-预计将于
{{ site.beta_date | date: "%Y 年 %-m 月 %-d 日" }} 推出稳定版
-
Linux (.tar.gz) | -- | - | |
Mac (.pkg) | -- | - | |
Windows (GNU ABI 〔注〕) (.msi) | -- | - | |
Windows (MSVC ABI 〔注〕) (.msi) | -- | - | - |
- | - |
也可以快捷的在Linux和Mac系统中的终端运行来安装Rust(测试绿化版):
-curl -sSf https://static.rust-lang.org/rustup.sh | sh -s -- --channel=beta
- - 当前正在开发的分支。 - 它包括若干 - 不稳定的特性, - 这些特性在稳定版和测试版中都是不支持的。 -
-Linux (.tar.gz) | -- | - | |
Mac (.pkg) | -- | - | |
Windows (GNU ABI 〔注〕) (.msi) | -- | - | |
Windows (MSVC ABI 〔注〕) (.msi) | -- | - | - |
- | - |
也可以快捷的在Linux和Mac系统中的终端运行来安装Rust(开发绿化版):
-curl -sSf https://static.rust-lang.org/rustup.sh | sh -s -- --channel=nightly
- - 这里是一些早期版本的 存档。 -
-- 〔注〕 - 在 Windows 操作系统中有两个可供选择 - ABIs - 的版本。使用已经安装的 (MSVC) ABI 需要 - Visual Studio, - ,而使用 GNU ABI 则需要 - GCC 工具链. - 您选择哪个版本的 Rust 主要取决于您想要互操作的 C/C++ 库: - 与 Visual Studio 生成的软件的 interop 使用 Rust 的 MSVC build; - 用于与使用 - MinGW/MSYS2 工具链 - 构建的GNU软件进行互操作,使用GNU构建。 -
-- MSVC 构建的 Rust 需要 Visual Studio 2013 或更高版本中的 Microsoft Visual C++ 构建工具。 - 获取构建工具的快捷方法是安装 - - Microsoft Visual C++ 构建工具 2015,它仅仅提供 Visual C++ 构建工具。 - 您也可以安装 - Visual Studio 2015 或 Visual Studio 2013 并在安装期间勾选“C++ tools”。 - 对于GNU构建的基本使用则不需要额外的安装。 -
-- Rust 对 GNU ABI 的支持更加成熟,建议作为首选。 -
-Rust 是一种注重高效、安全、并行的系统程序语言。 @@ -11,21 +11,11 @@ 看看谁在使用 Rust
To install Rust, if you are running Unix,
run the following
+ in your terminal, then follow the onscreen instructions.
curl https://sh.rustup.rs -sSf | sh+
+ If you are running Windows,
download and run
+ rustup‑init.exe
+ then follow the onscreen instructions.
+
rustup
+ Rust is installed and managed by the
+ rustup
+ tool. Rust has a 6-week
+
+ rapid release process
+ and supports a
+
+ great number of platforms
+ , so there are many builds of Rust available at any time.
+ rustup
manages these builds in a consistent way on every
+ platform that Rust supports, enabling installation of Rust from the
+ beta and nightly release channels as well as support for additional
+ cross-compilation targets
+
+ For more information see the
+ rustup
+ documentation.
+
PATH
environment variable
+ In the Rust development environment, all tools are installed to the
+
+ ~/.cargo/bin
+
+ directory,
+ and this is where you will find the Rust toolchain, including
+ rustc
, cargo
, and rustup
.
+
+ Accordingly, it is customary for Rust developers to include this
+ directory in their
+ PATH
+ environment variable. During installation, rustup
,
+ will attempt to configure
+ PATH
, but because of differences between platforms,
+ command shells, and bugs in rustup
, the modifications
+ to PATH
may not take effect until the console is
+ restarted, or the user logged out, or may not succeed at all.
+
+ If, after installation, running rustc --version
in the
+ console fails, this is the most likely reason.
+
+ On Windows, Rust additionally requires the C++ build tools + for Visual Studio 2013 or later. The easiest way to acquire the build + tools is by installing + + Microsoft Visual C++ Build Tools 2015 + + which provides just the Visual C++ build tools. Alternately, you + can install + Visual Studio 2015 or Visual Studio 2013 and during install select + the "C++ tools". +
+ +
+ For further information about configuring Rust on Windows see the
+ Windows-specific rustup
+ documentation.
+
+ The installation described above, via
+ rustup
, is the preferred way to install Rust for most developers,
+ but Rust can be
+ installed via other methods
+ as well.
+