@@ -25,7 +25,7 @@ <h1 class="rustup">安装 Rust</h1>
25
25
< p >
26
26
可以运行在 Windows, Linux, Mac OS X, FreeBSD 和 NetBSD 上。
27
27
如果您正在这些平台上,并且看到这句话,请您
28
- < a href ="https://github.com/rust-lang/rust-www/issues/new "> 报告问题(issue)</ a > ,
28
+ < a href ="https://github.com/rust-lang/rust-www/issues/new "> 报告问题(issue)</ a > ,
29
29
并且提供以下信息:
30
30
</ p >
31
31
@@ -38,16 +38,16 @@ <h1 class="rustup">安装 Rust</h1>
38
38
39
39
<!-- duplicate the default cross-platform instructions -->
40
40
< div >
41
- < p > To install Rust, if you are running Unix, < br /> run the following
42
- in your terminal, then follow the onscreen instructions. </ p >
41
+ < p > 要安装 Rust 时,如果您正在使用 Unix, < br /> 请在终端中运行以下命令,
42
+ 然后按照屏幕上的提示进行操作。 </ p >
43
43
< pre > curl https://sh.rustup.rs -sSf | sh</ pre >
44
44
</ div >
45
45
46
46
< hr />
47
47
48
48
< div >
49
49
< p >
50
- 您正在使用的是 Windows 操作系统< br /> 下载并运行
50
+ 如果您正在使用 Windows 操作系统, < br /> 下载并运行
51
51
< a href ="https://win.rustup.rs "> rustup‑init.exe</ a >
52
52
然后按照屏幕上的说明进行操作。
53
53
</ p >
@@ -56,16 +56,16 @@ <h1 class="rustup">安装 Rust</h1>
56
56
57
57
< div id ="platform-instructions-default " class ="instructions ">
58
58
< div >
59
- < p > To install Rust, if you are running Unix, < br /> run the following
60
- in your terminal, then follow the onscreen instructions. </ p >
59
+ < p > 要安装 Rust 时,如果您正在使用 Unix, < br /> 请在终端中运行以下命令,
60
+ 然后按照屏幕上的提示进行操作。 </ p >
61
61
< pre > curl https://sh.rustup.rs -sSf | sh</ pre >
62
62
</ div >
63
63
64
64
< hr />
65
65
66
66
< div >
67
67
< p >
68
- 您正在使用的是 Windows 操作系统< br /> 下载并运行
68
+ 如果您正在使用 Windows 操作系统, < br /> 下载并运行
69
69
< a href ="https://win.rustup.rs "> rustup‑init.exe</ a >
70
70
然后按照屏幕上的说明进行操作。
71
71
</ p >
@@ -78,7 +78,7 @@ <h1 class="rustup">安装 Rust</h1>
78
78
< div >
79
79
< div class ="release-version "> Rust < span > {{ site.stable }}</ span > </ div >
80
80
< a href ="{{ site.stable_blog }} ">
81
- < div class ="release-date "> {{ site.stable_date | date: "%Y 年 %-m 月 %-d日 " }}</ div >
81
+ < div class ="release-date "> {{ site.stable_date | date: "%Y 年 %-m 月 %-d 日 " }}</ div >
82
82
</ a >
83
83
84
84
< br >
@@ -101,23 +101,21 @@ <h3>使用 <code>rustup</code> 管理工具链</h3>
101
101
< p >
102
102
Rust 由
103
103
< a href ="https://github.com/rust-lang-nursery/rustup.rs "> < code > rustup</ code > </ a >
104
- 工具来安装和管理。 Rust 有一个6周的
104
+ 工具来安装和管理。 Rust 有一个 6 周的
105
105
< a href ="https://github.com/rust-lang/rfcs/blob/master/text/0507-release-channels.md ">
106
106
快速发布过程
107
107
</ a > 并且支持
108
108
< a href ="https://forge.rust-lang.org/platform-support.html ">
109
109
大量的平台
110
110
</ a > ,所以任何时候都有很多 Rust 构建可用。
111
- < code > rustup</ code > manages these builds in a consistent way on every
112
- platform that Rust supports, enabling installation of Rust from the
113
- beta and nightly release channels as well as support for additional
114
- cross-compilation targets
111
+ < code > rustup</ code > 在 Rust 支持的每一个平台上以一致的方式管理这些构建,
112
+ 并可以从 beta 和 nightly 发布渠道安装 Rust,且支持额外的交叉编译目标平台。
115
113
</ p >
116
114
117
115
< p >
118
- For more information see the
116
+ 更多信息请查看
119
117
< a href ="https://github.com/rust-lang-nursery/rustup.rs/blob/master/README.md "> < code > rustup</ code >
120
- documentation</ a > .
118
+ documentation</ a > 。
121
119
</ p >
122
120
123
121
< h3 > 配置 < code > PATH</ code > 环境变量</ h3 >
@@ -131,19 +129,15 @@ <h3>配置 <code>PATH</code> 环境变量</h3>
131
129
< code > %USERPROFILE%\.cargo\bin</ code >
132
130
</ span > 目录,
133
131
并且您能够在这里找到 Rust 工具链,包括
134
- < code > rustc</ code > 、< code > cargo</ code > 及 < code > rustup</ code > 。
132
+ < code > rustc</ code > 、< code > cargo</ code > 及 < code > rustup</ code > 。
135
133
</ p >
136
134
137
135
< p >
138
- Accordingly, it is customary for Rust developers to include this
139
- directory in their
136
+ 因此,Rust 开发者们通常会将此目录放入
140
137
< a href ="https://en.wikipedia.org/wiki/PATH_(variable) "> < code > PATH</ code >
141
- environment variable</ a > . During installation, < code > rustup</ code > ,
142
- will attempt to configure
143
- < code > PATH</ code > , but because of differences between platforms,
144
- command shells, and bugs in < code > rustup</ code > , the modifications
145
- to < code > PATH</ code > may not take effect until the console is
146
- restarted, or the user logged out, or may not succeed at all.
138
+ 环境变量</ a > 。在安装时,< code > rustup</ code > 会尝试配置 < code > PATH</ code > ,
139
+ 但是因为不同平台、命令行之间的差异,以及 < code > rustup</ code > 的 bug,对于
140
+ < code > PATH</ code > 的修改将会在重启终端、用户登出之后生效,或者有可能完全不会生效。
147
141
</ p >
148
142
149
143
< p >
0 commit comments