Skip to content
This repository was archived by the owner on Sep 30, 2020. It is now read-only.

Commit 71de260

Browse files
authored
Merge pull request #12 from rust-lang/master
17.4.12.13.44
2 parents 0fd9afd + f320ba0 commit 71de260

File tree

21 files changed

+355
-215
lines changed

21 files changed

+355
-215
lines changed

_data/team.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ people:
131131
teams:
132132
- name: Core team
133133
responsibility: "overall direction of the project, subteam leadership, cross-cutting concerns"
134-
members: [brson, alexcrichton, wycats, steveklabnik, nikomatsakis, aturon, pcwalton, erickt]
134+
members: [brson, alexcrichton, wycats, steveklabnik, nikomatsakis, aturon, erickt, carols10cents, nrc]
135135
- name: Language design team
136136
responsibility: "designing new language features"
137137
members: [eddyb, nrc, pnkfelix, nikomatsakis, aturon, withoutboats]
@@ -167,7 +167,7 @@ teams:
167167
168168
- name: Rust team alumni
169169
responsibility: "enjoying a leisurely retirement"
170-
members: [Gankro, huonw]
170+
members: [Gankro, huonw, pcwalton]
171171

172172
# Information on sites to get profile information from
173173
sites:

_data/users.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,11 @@
162162
url: http://faraday.io
163163
logo: faraday.svg
164164
how: "<a href='https://github.com/faradayio/credentials_to_env'>Securely transferring credentials.</a>"
165+
-
166+
name: GiGa infosystems GmbH
167+
url: https://www.giga-infosystems.com
168+
logo: giga.svg
169+
how: "Rust serves us as our primary tool for rewriting our database for 3d geological models."
165170
-
166171
name: Gremlin Inc
167172
url: https://www.gremlininc.com
@@ -182,6 +187,11 @@
182187
url: https://line.me/
183188
logo: line.png
184189
how: "For a configuration agent."
190+
-
191+
name: Linkerd
192+
url: https://linkerd.io/
193+
logo: linkerd.svg
194+
how: "<a href='https://blog.buoyant.io/2017/03/29/introducing-linkerd-tcp/'>We're using Rust to extend the Linkerd Service Mesh with a lightweight TCP/TLS load balancer, linkerd-tcp.</a>"
185195
-
186196
name: Linki Tools
187197
url: http://linki.tools/

_includes/example.rs

Lines changed: 12 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,16 @@
1-
// This code is editable and runnable!
2-
fn main() {
3-
// A simple integer calculator:
4-
// `+` or `-` means add or subtract by 1
5-
// `*` or `/` means multiply or divide by 2
1+
fn main() {
2+
let greetings = ["Hello", "Hola", "Bonjour",
3+
"こんにちは", "您好"];
64

7-
let program = "+ + * - /";
8-
let mut accumulator = 0;
9-
10-
for token in program.chars() {
11-
match token {
12-
'+' => accumulator += 1,
13-
'-' => accumulator -= 1,
14-
'*' => accumulator *= 2,
15-
'/' => accumulator /= 2,
16-
_ => { /* ignore everything else */ }
5+
for (num, greeting) in greetings.iter().enumerate() {
6+
println!("{}", greeting);
7+
match num {
8+
0 => println!("This code is editable and runnable!"),
9+
1 => println!("Este código es editable y ejecutable!"),
10+
2 => println!("Ce code est modifiable et exécutable!"),
11+
3 => println!("このコードは編集して実行出来ます!"),
12+
4 => println!("这段代码是可以编辑并且能够运行的!"),
13+
_ => {},
1714
}
1815
}
19-
20-
println!("The program \"{}\" calculates the value {}",
21-
program, accumulator);
2216
}

_includes/example.rs.html

Lines changed: 13 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,18 @@
11
<pre class='rust'>
22
<span class='kw'>fn</span> main() {
3-
<span class='comment'>// A simple integer calculator:
4-
// `+` or `-` means add or subtract by 1
5-
// `*` or `/` means multiply or divide by 2</span>
3+
<span class='kw'>let</span> greetings = [<span class='string'>"Hello"</span>, <span class='string'>"Hola"<span>, <span class='string'>"Bonjour"</span>,
4+
<span class='string'>"こんにちは"</span>, <span class='string'>"您好"</span>];
65

7-
<span class='kw'>let</span> program = <span class='string'>"+ + * - /"</span>;
8-
<span class='kw'>let</span> <span class='kw'>mut</span> accumulator = <span class='number'>0</span>;
9-
10-
<span class='kw'>for</span> token in program.chars() {
11-
<span class='kw'>match</span> token {
12-
<span class='string'>'+'</span> => accumulator <span class='op'>+=</span> <span class='number'>1</span>,
13-
<span class='string'>'-'</span> => accumulator <span class='op'>-=</span> <span class='number'>1</span>,
14-
<span class='string'>'*'</span> => accumulator <span class='op'>*=</span> <span class='number'>2</span>,
15-
<span class='string'>'/'</span> => accumulator <span class='op'>/=</span> <span class='number'>2</span>,
16-
_ => { <span class='comment'>/* ignore everything else */</span> }
17-
}
18-
}
19-
20-
<span class='prelude-val'>println!</span>(<span class='string'>"The program \"{}\" calculates the value {}"</span>,
21-
program, accumulator);
6+
<span class='kw'>for</span> (num, greeting) in greetings.iter().enumerate() {
7+
<span class='prelude-val'>println!</span>(<span class='string'>"{}"</span>, greeting);
8+
<span class='kw'>match</span> num {
9+
0 => <span class='prelude-val'>println!</span>(<span class='string'>"This code is editable and runnable!"</span>),
10+
1 => <span class='prelude-val'>println!</span>(<span class='string'>"Este código es editable y ejecutable!"</span>),
11+
2 => <span class='prelude-val'>println!</span>(<span class='string'>"Ce code est modifiable et exécutable!"</span>),
12+
3 => <span class='prelude-val'>println!</span>(<span class='string'>"このコードは編集して実行出来ます!"</span>),
13+
4 => <span class='prelude-val'>println!</span>(<span class='string'>"这段代码是可以编辑并且能够运行的!"</span>),
14+
_ => {},
15+
}
16+
}
2217
}
2318
</pre>

_includes/rustup.js

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
var platform_override = null;
22

3-
function android_or_unix() {
4-
return (navigator.appVersion.indexOf("Android") != -1) ? "android" : "unix";
5-
}
6-
73
function detect_platform() {
84
"use strict";
95

@@ -14,11 +10,12 @@ function detect_platform() {
1410
var os = "unknown";
1511

1612
if (navigator.platform == "Linux x86_64") {os = "unix";}
17-
if (navigator.platform == "Linux i686") {os = android_or_unix();}
13+
if (navigator.platform == "Linux i686") {os = "unix";}
1814
if (navigator.platform == "Linux i686 on x86_64") {os = "unix";}
19-
if (navigator.platform == "Linux aarch64") {os = android_or_unix();}
20-
if (navigator.platform == "Linux armv6l") {os = android_or_unix();}
21-
if (navigator.platform == "Linux armv7l") {os = android_or_unix();}
15+
if (navigator.platform == "Linux aarch64") {os = "unix";}
16+
if (navigator.platform == "Linux armv6l") {os = "unix";}
17+
if (navigator.platform == "Linux armv7l") {os = "unix";}
18+
if (navigator.platform == "Linux armv8l") {os = "unix";}
2219
if (navigator.platform == "Linux ppc64") {os = "unix";}
2320
if (navigator.platform == "Linux mips") {os = "unix";}
2421
if (navigator.platform == "Linux mips64") {os = "unix";}
@@ -47,22 +44,18 @@ function adjust_for_platform() {
4744

4845
var unix_div = document.getElementById("platform-instructions-unix");
4946
var win_div = document.getElementById("platform-instructions-win");
50-
var android_div = document.getElementById("platform-instructions-android");
5147
var unknown_div = document.getElementById("platform-instructions-unknown");
5248
var default_div = document.getElementById("platform-instructions-default");
5349

5450
unix_div.style.display = "none";
5551
win_div.style.display = "none";
56-
android_div.style.display = "none";
5752
unknown_div.style.display = "none";
5853
default_div.style.display = "none";
5954

6055
if (platform == "unix") {
6156
unix_div.style.display = "block";
6257
} else if (platform == "win") {
6358
win_div.style.display = "block";
64-
} else if (platform == "android") {
65-
android_div.style.display = "block";
6659
} else if (platform == "unknown") {
6760
unknown_div.style.display = "block";
6861
} else {
@@ -103,8 +96,6 @@ function cycle_platform() {
10396
} else if (platform_override == "win") {
10497
platform_override = "unix";
10598
} else if (platform_override == "unix") {
106-
platform_override = "android";
107-
} else if (platform_override == "android") {
10899
platform_override = "default";
109100
}
110101
adjust_for_platform();

css/style.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,13 +246,14 @@ ul.laundry-list {
246246
padding: none;
247247
margin: none;
248248
width: 100%;
249-
min-height: 340px;
249+
min-height: 300px;
250250
font-size: 13px;
251251
font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
252252
white-space: pre-wrap;
253253
}
254254

255255
#active-code {
256+
margin-top: 1rem;
256257
position: relative;
257258
display: none;
258259
padding: 10px;

en-US/install.html

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -19,19 +19,6 @@ <h1 class="rustup">Install Rust</h1>
1919
</p>
2020
</div>
2121

22-
<div id="platform-instructions-android" class="instructions" style="display: none;">
23-
<p>It looks like you are running Android.</p>
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
28-
<a href="https://github.com/rust-lang-nursery/rustup.rs/#cross-compilation">
29-
follow the cross-compilation instructions
30-
</a>
31-
to build Rust applications for Android.
32-
</p>
33-
</div>
34-
3522
<div id="platform-instructions-unknown" class="instructions" style="display: none;">
3623
<!-- unrecognized platform: ask for help -->
3724
<p>I don't recognize your platform.</p>
@@ -207,7 +194,7 @@ <h2>Other installation methods</h2>
207194
</p>
208195
</div>
209196
</div>
210-
197+
211198
<script type="text/javascript">
212199
{% include rustup.js %}
213200
</script>

es-ES/install.html

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -19,28 +19,6 @@ <h1 class="rustup">Instalar Rust</h1>
1919
</p>
2020
</div>
2121

22-
<div id="platform-instructions-android" class="instructions" style="display: none;">
23-
<p>Parece que estas ejecutando Android.</p>
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
28-
<a href="https://github.com/rust-lang-nursery/rustup.rs/#cross-compilation">
29-
follow the cross-compilation instructions
30-
</a>
31-
to build Rust applications for Android.
32-
</p>
33-
<p>
34-
El compilador de Rust no se puede ejecutar directamente en Android (aún),
35-
pero si puede compilar código <em>para</em> Android.
36-
Instala Rust en una plataforma soportada y
37-
<a href="https://github.com/rust-lang-nursery/rustup.rs/#cross-compilation">
38-
sigue las instrucciones de <i>cross-compilation</i>
39-
</a>
40-
para compilar aplicaciones Rust para Android.
41-
</p>
42-
</div>
43-
4422
<div id="platform-instructions-unknown" class="instructions" style="display: none;">
4523
<!-- unrecognized platform: ask for help -->
4624
<p>No reconozco tu plataforma.</p>

fr-FR/install.html

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -19,19 +19,6 @@ <h1 class="rustup">Installer Rust</h1>
1919
</p>
2020
</div>
2121

22-
<div id="platform-instructions-android" class="instructions" style="display: none;">
23-
<p>Il semble que vous êtes sur Android.</p>
24-
<p>
25-
Le compilateur Rust ne tourne pas (encore) directement sur Android,
26-
mais il rend facile la cross-compilation <em>vers</em> Android.
27-
Installez Rust sur une plate-forme hôte supportée et
28-
<a href="https://github.com/rust-lang-nursery/rustup.rs/#cross-compilation">
29-
suivez les instructions de cross-compilation
30-
</a>
31-
pour compiler des applications Rust pour Android.
32-
</p>
33-
</div>
34-
3522
<div id="platform-instructions-unknown" class="instructions" style="display: none;">
3623
<!-- unrecognized platform: ask for help -->
3724
<p>Je ne reconnais pas votre plate-forme.</p>

fr-FR/user-groups.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ title: Groupe d'utilisateurs Rust &middot; Rust, le langage de programmation
44
---
55

66
# Rust User Groups
7+
78
Dans le monde entier, il existe plus 50 groupes d'utilisateurs Rust représentant
89
quelques 7000 membres répartis dans plus de 20 pays. Les Rustacéens se retrouvant
910
périodiquement dans ces groupes d'utilisateur. C'est une bonne introduction pour se
@@ -64,6 +65,7 @@ mieux, de créer une Pull Request sur cette [forge GitHub](https://github.com/ru
6465
## Danemark
6566

6667
[Copenhangen Rust Group](http://cph.rs), Copenhagen.
68+
6769
## France
6870

6971
[Lille Rust Meetup](https://www.meetup.com/rust-lille/), Lille.
@@ -77,6 +79,7 @@ mieux, de créer une Pull Request sur cette [forge GitHub](https://github.com/ru
7779
[Finland Rust-lang Group](https://www.meetup.com/Finland-Rust-Meetup/), Helsinki.
7880

7981
## Allemagne
82+
8083
[Rust Cologne/Bonn User Group](https://www.meetup.com/Rust-Cologne-Bonn/), Köln.
8184

8285
[Rust Berlin](https://www.meetup.com/Rust-Berlin/), Berlin.

it-IT/install.html

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -19,19 +19,6 @@ <h1 class="rustup">Installa Rust</h1>
1919
</p>
2020
</div>
2121

22-
<div id="platform-instructions-android" class="instructions" style="display: none;">
23-
<p>Sembra che tu sia su un dispostivo Android.</p>
24-
<p>
25-
Il compilatore di Rust non funziona su Android direttamente (per ora)
26-
ma permette di compilare facilmente <em>per</em> Android.
27-
Installa Rust su una piattaforma supportata e
28-
<a href="https://github.com/rust-lang-nursery/rustup.rs/#cross-compilation">
29-
segui le istruzioni per la compilazione incrociata
30-
</a>
31-
per compilare applicazioni Rust per Android
32-
</p>
33-
</div>
34-
3522
<div id="platform-instructions-unknown" class="instructions" style="display: none;">
3623
<!-- unrecognized platform: ask for help -->
3724
<p>Non ho riconosciuto la tua piattaforma.</p>

ja-JP/install.html

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -19,18 +19,6 @@ <h1 class="rustup">Rustのインストール</h1>
1919
</p>
2020
</div>
2121

22-
<div id="platform-instructions-android" class="instructions" style="display: none;">
23-
<p>Androidをお使いのようですね。</p>
24-
<p>
25-
Rustのコンパイラは(まだ)Androidでは直接動きませんが、Android<em></em>クロスコンパイルすることは簡単に出来ます。
26-
Android向けのRustアプリケーションを作るにはRustをサポートされているプラットフォーム上でインストールして
27-
<a href="https://github.com/rust-lang-nursery/rustup.rs/#cross-compilation">
28-
クロスコンパイルのガイド
29-
</a>
30-
に従って下さい。
31-
</p>
32-
</div>
33-
3422
<div id="platform-instructions-unknown" class="instructions" style="display: none;">
3523
<!-- unrecognized platform: ask for help -->
3624
<p>お使いのプラットフォームを認識出来ませんでした。</p>

ko-KR/install.html

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -19,18 +19,6 @@ <h1 class="rustup">Rust 설치</h1>
1919
</p>
2020
</div>
2121

22-
<div id="platform-instructions-android" class="instructions" style="display: none;">
23-
<p>안드로이드를 사용하시는 듯 하네요.</p>
24-
<p>
25-
Rust 컴파일러는 (아직) 안드로이드에서 직접 동작하진 않지만,
26-
안드로이드<em></em> 크로스컴파일하는 것은 쉽게 할 수 있습니다.
27-
안드로이드용 Rust 애플리케이션을 빌드하려면
28-
지원되는 호스트 플랫폼에서 Rust를 설치한 뒤
29-
<a href="https://github.com/rust-lang-nursery/rustup.rs/#cross-compilation">
30-
크로스컴파일 방법을 따르십시오</a>.
31-
</p>
32-
</div>
33-
3422
<div id="platform-instructions-unknown" class="instructions" style="display: none;">
3523
<!-- unrecognized platform: ask for help -->
3624
<p>무슨 플랫폼을 사용하시는지 알아내지 못 했습니다.</p>

pl-PL/install.html

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -19,19 +19,6 @@ <h1 class="rustup">Zainstaluj Rusta</h1>
1919
</p>
2020
</div>
2121

22-
<div id="platform-instructions-android" class="instructions" style="display: none;">
23-
<p>Wygląda na to, że używasz systemu Android.</p>
24-
<p>
25-
Kompilator Rusta nie działa na systemie Android bezpośrednio (jeszcze),
26-
ale pozwala na prostą kompilację <em>na</em> system Android.
27-
Zainstaluj Rusta na wspieranej platformie oraz
28-
<a href="https://github.com/rust-lang-nursery/rustup.rs/#cross-compilation">
29-
kieruj się instrukcjami kompilacji
30-
</a>
31-
aby zbudować aplikację napisaną w języku Rust na system Android.
32-
</p>
33-
</div>
34-
3522
<div id="platform-instructions-unknown" class="instructions" style="display: none;">
3623
<p>Nie rozpoznaję Twojego systemu.</p>
3724
<p>

pt-BR/install.html

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -19,19 +19,6 @@ <h1 class="rustup">Instale Rust</h1>
1919
</p>
2020
</div>
2121

22-
<div id="platform-instructions-android" class="instructions" style="display: none;">
23-
<p>Parece que você está usando Android.</p>
24-
<p>
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-
<a href="https://github.com/rust-lang-nursery/rustup.rs/#cross-compilation">
29-
siga as instruções de compilação cruzada
30-
</a>
31-
para construir aplicações Rust para Android.
32-
</p>
33-
</div>
34-
3522
<div id="platform-instructions-unknown" class="instructions" style="display: none;">
3623
<!-- unrecognized platform: ask for help -->
3724
<p>Não reconheci sua plataforma.</p>
@@ -41,7 +28,7 @@ <h1 class="rustup">Instale Rust</h1>
4128
<a href="https://github.com/rust-lang/rust-www/issues/new">reporte um problema</a>,
4229
junto com os seguintes valores:
4330
</p>
44-
31+
4532
<div>
4633
<div>navigator.platform:</div>
4734
<div id="nav-plat"></div>

0 commit comments

Comments
 (0)