1
1
---
2
2
layout : zh-CN/default
3
- title : Other Installation Methods · Rust 程序设计语言
3
+ title : 其他安装方法 · Rust 程序设计语言
4
4
---
5
5
6
- # Other Rust Installation Methods
6
+ # 其他安装 Rust 的方法
7
7
8
- - [ Which installer should you use? ] ( #which )
9
- - [ Other ways to install ` rustup ` ] ( #more-rustup )
10
- - [ Standalone installers ] ( #standalone )
11
- - [ Source code ] ( #source )
8
+ - [ 您应该使用哪个安装程序? ] ( #which )
9
+ - [ 安装 ` rustup ` 的其他方法 ] ( #more-rustup )
10
+ - [ 独立安装程序 ] ( #standalone )
11
+ - [ 源代码 ] ( #source )
12
12
13
- ## Which installer should you use?
13
+ ## 您应该使用哪个安装程序?
14
14
<span id =" which " ></span >
15
15
16
- Rust runs on many platforms, and there are many ways to install Rust. If you
17
- want to install Rust in the most straightforward, recommended way, then follow
18
- the instructions on the main [ installation page] .
16
+ Rust 在许多平台上运行,并且有很多方法来安装 Rust 。
17
+ 如果您想要安装 Rust 最简单,推荐的方法,
18
+ 然后参照主要的 [ 安装页面 ] [ installation page ] 上的说明。
19
19
20
20
That page describes installation via [ ` rustup ` ] , a tool that manages multiple
21
21
Rust toolchains in a consistent way across all platforms Rust supports. Why
@@ -48,28 +48,28 @@ available, not the compiler itself; that is, they are cross-compilation targets
48
48
only; Rust code can run on those platforms, but they do not run the compiler
49
49
itself. Such targets can be installed with the ` rustup target add ` command.
50
50
51
- ## Other ways to install ` rustup `
51
+ ## 安装 ` rustup ` 的其他方法
52
52
<span id =" rustup " ></span >
53
53
54
- The way to install ` rustup ` differs by platform:
54
+ 安装 ` rustup ` 的方式因平台而异:
55
55
56
- * On Unix, run ` curl https://sh.rustup.rs -sSf | sh ` in your
57
- shell. This downloads and runs [ ` rustup-init.sh ` ] , which in turn
58
- downloads and runs the correct version of the ` rustup-init `
59
- executable for your platform.
60
- * On Windows, download and run [ ` rustup-init.exe ` ] .
56
+ * 在 Unix 上,在您的终端运行 ` curl https://sh.rustup.rs -sSf | sh ` 。
57
+ 它将会下载并运行 [ ` rustup-init.sh ` ] ,它为您的平台下载并运行
58
+ ` rustup-init ` 可执行文件的正确版本。
59
+ * 在 Windows 上,下载并运行 [ ` rustup-init.exe ` ] .
61
60
62
- ` rustup-init ` can be configured interactively, and all options can additionally
63
- be controlled by command-line arguments, which can be passed through the shell
64
- script. Pass ` --help ` to ` rustup-init ` as follows to display the arguments
61
+ Pass ` --help ` to ` rustup-init ` as follows to display the arguments
65
62
` rustup-init ` accepts:
66
63
64
+ ` rustup-init ` 可以交互式配置,所有选项都可以由命令行参数控制,
65
+ 可以通过 shell 脚本传递。 将` --help ` 传递给` rustup-init ` ,
66
+ 以下是 ` rustup-init ` 接受的参数:
67
+
67
68
```
68
69
curl https://sh.rustup.rs -sSf | sh -s -- --help
69
70
```
70
71
71
- If you prefer not to use the shell script, you may directly download
72
- ` rustup-init ` for the platform of your choice:
72
+ 如果您不想使用 shell 脚本,可以选择合适您使用平台的 ` rustup-init ` 直接下载:
73
73
74
74
<div class =" rustup-init-table " >
75
75
{% for column in site.data.platforms.rustup %}
@@ -89,7 +89,7 @@ If you prefer not to use the shell script, you may directly download
89
89
{% endfor %}
90
90
</div >
91
91
92
- ## Standalone installers
92
+ ## 独立安装程序
93
93
<span id =" standalone " ></span >
94
94
95
95
The official Rust standalone installers contain a single release of Rust, and
@@ -100,10 +100,10 @@ installers (`.msi`), and Mac installers (`.pkg`). These installers come with
100
100
documentation, but do not provide access to additional cross-targets like
101
101
` rustup ` does.
102
102
103
- The most common reasons to use these are:
103
+ 使用独立安装程序的最常见原因是:
104
104
105
- - Offline installation
106
- - Prefering a more platform-integrated, graphical installer on Windows
105
+ - 离线安装
106
+ - 热衷在 Windows 上使用更多平台集成的图形安装程序
107
107
108
108
Each of these binaries is signed with the [ Rust signing key] , which is
109
109
[ available on keybase.io] , by the Rust build infrastructure, with
@@ -145,27 +145,27 @@ Past releases can be found in [the archives].
145
145
146
146
{% endfor %}
147
147
148
- ## Source code
148
+ ## 源代码
149
149
<span id =" source " ></span >
150
150
151
151
<div class =" installer-table " >
152
152
<div >
153
153
<div>
154
- <span>Stable</span>
154
+ <span>稳定版( Stable) </span>
155
155
<a href="https://static.rust-lang.org/dist/rustc-{{ site.stable }}-src.tar.gz">.tar.gz</a>
156
156
<a href="https://static.rust-lang.org/dist/rustc-{{ site.stable }}-src.tar.gz.asc">.asc</a>
157
157
</div>
158
158
</div >
159
159
<div >
160
160
<div>
161
- <span>Beta</span>
161
+ <span>测试版( Beta) </span>
162
162
<a href="https://static.rust-lang.org/dist/rustc-beta-src.tar.gz">.tar.gz</a>
163
163
<a href="https://static.rust-lang.org/dist/rustc-beta-src.gz.asc">.asc</a>
164
164
</div>
165
165
</div >
166
166
<div >
167
167
<div>
168
- <span>Nightly</span>
168
+ <span>开发版( Nightly) </span>
169
169
<a href="https://static.rust-lang.org/dist/rustc-nightly-src.tar.gz">.tar.gz</a>
170
170
<a href="https://static.rust-lang.org/dist/rustc-nightly-src.tar.gz.asc">.asc</a>
171
171
</div>
0 commit comments