1
1
---
2
2
layout: pt-BR/default
3
- title: Installation · The Rust Programming Language
3
+ title: Instalação · A Linguagem de Programação Rust
4
4
---
5
- < h1 class ="rustup "> Install Rust</ h1 >
5
+ < h1 class ="rustup "> Instale Rust</ h1 >
6
6
7
7
< div class ="row rustup-row ">
8
8
< div class ="col-md-8 instr-column ">
9
9
< div id ="platform-instructions-unix " class ="instructions " style ="display: none; ">
10
- < p > To install Rust, run the following in your terminal, then follow the onscreen instructions .</ p >
10
+ < p > Para instalar Rust, rode o seguinte no seu terminal e então siga as instruções na tela .</ p >
11
11
< pre > curl https://sh.rustup.rs -sSf | sh</ pre >
12
12
</ div >
13
13
14
14
< div id ="platform-instructions-win " class ="instructions " style ="display: none; ">
15
15
< p >
16
- To install Rust, download and run
16
+ Para instalar Rust, baixe e rode
17
17
< a href ="https://win.rustup.rs "> rustup‑init.exe</ a >
18
- then follow the onscreen instructions .
18
+ e então siga as instruções na tela .
19
19
</ p >
20
20
</ div >
21
21
22
- < div id ="platform-instructions-android " class ="instructions " style ="display: none; ">
23
- < p > It looks like you are running Android.</ p >
22
+ < div id ="platform-instructions-android " class ="instructions " style ="display: none; ">
23
+ < p > Parece que você está usando Android.</ p >
24
24
< p >
25
- The Rust compiler does not run on Android directly (yet ),
26
- but it does make it easy to cross-compile < em > to </ em > Android.
27
- Install Rust on a supported host platform and
25
+ O compilador Rust não executa em Android diretamente (ainda ),
26
+ mas ele facilita fazer compliação cruzada < em > para </ em > Android.
27
+ Instale Rust em uma plataforma suportada e
28
28
< a href ="https://github.com/rust-lang-nursery/rustup.rs/#cross-compilation ">
29
- follow the cross-compilation instructions
29
+ siga as instruções de compilação cruzada
30
30
</ a >
31
- to build Rust applications for Android.
31
+ para construir aplicações Rust para Android.
32
32
</ p >
33
33
</ div >
34
34
35
35
< div id ="platform-instructions-unknown " class ="instructions " style ="display: none; ">
36
- < p > I don't recognize your platform .</ p >
36
+ < p > Não reconheci sua plataforma .</ p >
37
37
< p >
38
- Rust runs on Windows, Linux, Mac OS X, FreeBSD and NetBSD. If
39
- you are on one of these platforms and are seeing this then please
40
- < a href ="https://github.com/rust-lang/rust-www/issues/new "> report an issue </ a > ,
41
- along with the following values :
38
+ Rust roda em Windows, Linux, Mac OS X, FreeBSD e NetBSD. se
39
+ você está em uma dessas plataformas e está vendo isso então por favor
40
+ < a href ="https://github.com/rust-lang/rust-www/issues/new "> reporte um problema </ a > ,
41
+ junto com os seguintes valores :
42
42
< div >
43
43
< div > navigator.platform:</ div >
44
44
< div id ="nav-plat "> </ div >
@@ -50,18 +50,18 @@ <h1 class="rustup">Install Rust</h1>
50
50
51
51
< div id ="platform-instructions-default " class ="instructions ">
52
52
< div >
53
- < p > To install Rust, if you are running Unix,< br /> run the following
54
- in your terminal, then follow the onscreen instructions .</ p >
53
+ < p > Para instalar Rust, se você está rodando Unix,< br /> então rode o seguinte no seu terminal
54
+ e então siga as instruções na tela .</ p >
55
55
< pre > curl https://sh.rustup.rs -sSf | sh</ pre >
56
56
</ div >
57
57
58
58
< hr />
59
59
60
60
< div >
61
61
< p >
62
- If you are running Windows,< br /> download and run
62
+ Se você está rodando Windows,< br /> baixe e rode
63
63
< a href ="https://win.rustup.rs "> rustup‑init.exe</ a >
64
- then follow the onscreen instructions .
64
+ e então siga as instruções na tela .
65
65
</ p >
66
66
</ div >
67
67
</ div >
@@ -78,118 +78,115 @@ <h1 class="rustup">Install Rust</h1>
78
78
< br >
79
79
80
80
< a id ="platform-button " style ="display: none; " href ="# ">
81
- click or press "n" to cycle platforms
81
+ clique ou aperte "n" para mudar a plataforma
82
82
</ a >
83
83
</ div >
84
84
</ div >
85
85
86
86
</ div >
87
87
88
- < h2 > Notes about Rust installation </ h2 >
88
+ < h2 > Notas sobre a instalação de Rust </ h2 >
89
89
90
90
< div class ="row ">
91
91
< div class ="col-md-12 ">
92
92
93
- < h3 > Toolchain management with < code > rustup</ code > </ h3 >
93
+ < h3 > Gerenciamento de toolchain com < code > rustup</ code > </ h3 >
94
94
95
95
< p >
96
- Rust is installed and managed by the
96
+ Rust é instalada e gerenciada pela ferramenta
97
97
< a href ="https://github.com/rust-lang-nursery/rustup.rs "> < code > rustup</ code > </ a >
98
- tool . Rust has a 6-week
98
+ . Rust tem um
99
99
< a href ="https://github.com/rust-lang/rfcs/blob/master/text/0507-release-channels.md ">
100
- rapid release process
101
- </ a > and supports a
100
+ processo de lançamento rápido
101
+ </ a > de 6 semanas e suporta um
102
102
< a href ="https://forge.rust-lang.org/platform-support.html ">
103
- great number of platforms
104
- </ a > , so there are many builds of Rust available at any time.
105
- < code > rustup</ code > manages these builds in a consistent way on every
106
- platform that Rust supports, enabling installation of Rust from the
107
- beta and nightly release channels as well as support for additional
108
- cross-compilation targets
103
+ grande número de plataformas
104
+ </ a > , então existem muitas versões de Rust disponíveis ao mesmo tempo.
105
+ < code > rustup</ code > gerencia estas versões de maneira consistente em
106
+ todas as plataformas que Rust suporta, permitindo instalar Rust dos
107
+ canais de lançamento beta e nightly e suporta mais alvos de compilação cruzada.
109
108
</ p >
110
109
111
110
< p >
112
- For more information see the
111
+ para mais informações veja a documentação de
113
112
< a href ="https://github.com/rust-lang-nursery/rustup.rs/blob/master/README.md "> < code > rustup</ code >
114
- documentation </ a > .
113
+ </ a > .
115
114
</ p >
116
115
117
- < h3 > Configuring the < code > PATH</ code > environment variable </ h3 >
116
+ < h3 > Configurando a variável de ambiente < code > PATH</ code > </ h3 >
118
117
119
118
< p >
120
- In the Rust development environment, all tools are installed to the
119
+ No ambiente de desenvolvimento Rust, todas as ferramentas são instalados no diretório
121
120
< span class ="platform-specific not-win " style ="display: inline; ">
122
121
< code > ~/.cargo/bin</ code >
123
122
</ span >
124
123
< span class ="platform-specific win " style ="display: none; ">
125
124
< code > %USERPROFILE%\.cargo\bin</ code >
126
- </ span > directory ,
127
- and this is where you will find the Rust toolchain, including
128
- < code > rustc</ code > , < code > cargo</ code > , and < code > rustup</ code > .
125
+ </ span > ,
126
+ e aqui você encontrará a toolchain Rust, incluindo
127
+ < code > rustc</ code > , < code > cargo</ code > , e < code > rustup</ code > .
129
128
</ p >
130
129
131
130
< p >
132
- Accordingly, it is customary for Rust developers to include this
133
- directory in their
131
+ Portanto, é comum que desenvolvedores Rust incluam este diretório na sua variável de ambiente
134
132
< a href ="https://en.wikipedia.org/wiki/PATH_(variable) "> < code > PATH</ code >
135
- environment variable </ a > . During installation, < code > rustup</ code > ,
136
- will attempt to configure
137
- < code > PATH</ code > , but because of differences between platforms ,
138
- command shells, and bugs in < code > rustup</ code > , the modifications
139
- to < code > PATH</ code > may not take effect until the console is
140
- restarted, or the user logged out, or may not succeed at all .
133
+ </ a > . Durante a instalação < code > rustup</ code >
134
+ tentará configurar a variável
135
+ < code > PATH</ code > mas, devido às diferenças entre plataformas ,
136
+ shells de comando, e bugs no < code > rustup</ code > , as modificações
137
+ a < code > PATH</ code > podem não ter efeito até que o terminal seja reiniciado,
138
+ ou o usuário faça logout, ou podem simplesmente não ter sucesso .
141
139
</ p >
142
140
143
141
< p >
144
- If, after installation, running < code > rustc --version</ code > in the
145
- console fails, this is the most likely reason .
142
+ Se, depois da instalação, executar < code > rustc --version</ code > no terminal falhar,
143
+ esta é a razão mais provável .
146
144
</ p >
147
145
148
146
< div class ="platform-specific win ">
149
147
150
- < h3 > Windows considerations </ h3 >
148
+ < h3 > Considerações no Windows </ h3 >
151
149
<!-- This anchor is probably linked in the wild and should not be broken -->
152
150
< a id ="win-foot "> </ a >
153
151
154
152
< p >
155
- On Windows, Rust additionally requires the C++ build tools
156
- for Visual Studio 2013 or later. The easiest way to acquire the build
157
- tools is by installing
153
+ No Windows, Rust requer ainda as ferramentas de build de C++ para
154
+ Visual Studio 2013 ou posterior. A maneira mais fácil de obter as
155
+ ferramentas de build é instalando
158
156
< a href ="http://landinghub.visualstudio.com/visual-cpp-build-tools ">
159
157
Microsoft Visual C++ Build Tools 2015
160
158
</ a >
161
- which provides just the Visual C++ build tools. Alternately, you
162
- can < a href ="https://www.visualstudio.com/downloads/ "> install </ a >
163
- Visual Studio 2015 or Visual Studio 2013 and during install select
164
- the "C++ tools".
159
+ que provê apenas as ferramentas de build Visual C++. Alternativamente, você
160
+ pode < a href ="https://www.visualstudio.com/downloads/ "> instalar </ a >
161
+ Visual Studio 2015 ou Visual Studio 2013 e durante a instalação selecionar
162
+ "C++ tools".
165
163
</ p >
166
164
167
165
< p >
168
- For further information about configuring Rust on Windows see the
169
- < a href ="https://github.com/rust-lang-nursery/rustup.rs/blob/master/README.md#working-with-rust-on-windows "> Windows-specific < code > rustup</ code >
170
- documentation </ a > .
166
+ Para mais informações sobre configurar Rust no Windows veja a documentação
167
+ < a href ="https://github.com/rust-lang-nursery/rustup.rs/blob/master/README.md#working-with-rust-on-windows "> específica para windows do < code > rustup</ code >
168
+ </ a > .
171
169
</ p >
172
170
173
171
</ div >
174
172
175
173
</ div >
176
174
</ div >
177
175
178
- < h2 > Other installation methods </ h3 >
176
+ < h2 > Outros métodos de instalação </ h3 >
179
177
180
178
< div class ="row ">
181
179
< div class ="col-md-12 ">
182
180
< p >
183
- The installation described above , via
184
- < code > rustup</ code > , is the preferred way to install Rust for most developers,
185
- but Rust can be
186
- < a href ="other-installers.html "> installed via other methods </ a >
187
- as well .
181
+ A instalação descrita acima , via
182
+ < code > rustup</ code > , é a maneira preferida de instalar Rust para a maioria dos desenvolvedores
183
+ mas Rust pode ser
184
+ < a href ="other-installers.html "> instalada por outros métodos </ a >
185
+ também .
188
186
</ p >
189
187
</ div >
190
188
</ div >
191
-
189
+
192
190
< script type ="text/javascript ">
193
191
{ % include rustup . js % }
194
192
</ script >
195
-
0 commit comments