1
1
% はじめる
2
2
<!-- % Getting Started -->
3
3
4
- <!-- This first section of the book will get us going with Rust and its tooling. -->
4
+ <!-- This first chapter of the book will get us going with Rust and its tooling. -->
5
5
<!-- First, we’ll install Rust. Then, the classic ‘Hello World’ program. Finally, -->
6
6
<!-- we’ll talk about Cargo, Rust’s build system and package manager. -->
7
- この一番最初のセクションでRustとツールの使い方をやっていきます 。
7
+ この一番最初の章でRustとツールの使い方をやっていきます 。
8
8
最初にRustをインストールします。そしてお決まりの「Hello World」をやります。
9
9
最後にRustのビルドシステム兼パッケージマネージャのCargoについて話します。
10
10
11
11
<!-- # Installing Rust -->
12
12
# Rustのインストール
13
13
14
14
<!-- The first step to using Rust is to install it. Generally speaking, you’ll need -->
15
- <!-- an Internet connection to run the commands in this chapter , as we’ll be -->
15
+ <!-- an Internet connection to run the commands in this section , as we’ll be -->
16
16
<!-- downloading Rust from the internet. -->
17
17
Rustを使い始める最初のステップはインストールです。
18
- この章のコマンドでインターネットからRustのダウンロードをするのでインターネットへの接続が必要でしょう 。
18
+ このセクションでは、コマンドでインターネットからRustのダウンロードをするのでインターネットへの接続が必要でしょう 。
19
19
20
20
<!-- We’ll be showing off a number of commands using a terminal, and those lines all -->
21
21
<!-- start with `$`. We don't need to type in the `$`s, they are there to indicate -->
@@ -61,6 +61,7 @@ Rustのサポートレベルは3階級に分かれていて、それぞれ違う
61
61
62
62
| Target | std | rustc| cargo| notes |
63
63
| -------------------------------| -----| -----| -----| ----------------------------|
64
+ | ` i686-pc-windows-msvc ` | ✓ | ✓ | ✓ | 32-bit MSVC (Windows 7+) |
64
65
| ` x86_64-pc-windows-msvc ` | ✓ | ✓ | ✓ | 64-bit MSVC (Windows 7+) |
65
66
| ` i686-pc-windows-gnu ` | ✓ | ✓ | ✓ | 32-bit MinGW (Windows 7+) |
66
67
| ` x86_64-pc-windows-gnu ` | ✓ | ✓ | ✓ | 64-bit MinGW (Windows 7+) |
@@ -92,7 +93,13 @@ Rustのサポートレベルは3階級に分かれていて、それぞれ違う
92
93
93
94
| Target | std | rustc| cargo| notes |
94
95
| -------------------------------| -----| -----| -----| ----------------------------|
95
- | ` i686-pc-windows-msvc ` | ✓ | ✓ | ✓ | 32-bit MSVC (Windows 7+) |
96
+ | ` x86_64-unknown-linux-musl ` | ✓ | | | 64-bit Linux with MUSL |
97
+ | ` arm-linux-androideabi ` | ✓ | | | ARM Android |
98
+ | ` arm-unknown-linux-gnueabi ` | ✓ | ✓ | | ARM Linux (2.6.18+) |
99
+ | ` arm-unknown-linux-gnueabihf ` | ✓ | ✓ | | ARM Linux (2.6.18+) |
100
+ | ` aarch64-unknown-linux-gnu ` | ✓ | | | ARM64 Linux (2.6.18+) |
101
+ | ` mips-unknown-linux-gnu ` | ✓ | | | MIPS Linux (2.6.18+) |
102
+ | ` mipsel-unknown-linux-gnu ` | ✓ | | | MIPS (LE) Linux (2.6.18+) |
96
103
97
104
<!-- ### Tier 3 -->
98
105
### 3級
@@ -110,28 +117,25 @@ Rustのサポートレベルは3階級に分かれていて、それぞれ違う
110
117
111
118
| Target | std | rustc| cargo| notes |
112
119
| -------------------------------| -----| -----| -----| ----------------------------|
113
- | ` x86_64-unknown-linux-musl ` | ✓ | | | 64-bit Linux with MUSL |
114
- | ` arm-linux-androideabi ` | ✓ | | | ARM Android |
115
120
| ` i686-linux-android ` | ✓ | | | 32-bit x86 Android |
116
121
| ` aarch64-linux-android ` | ✓ | | | ARM64 Android |
117
- | ` arm-unknown-linux-gnueabi ` | ✓ | ✓ | | ARM Linux (2.6.18+) |
118
- | ` arm-unknown-linux-gnueabihf ` | ✓ | ✓ | | ARM Linux (2.6.18+) |
119
- | ` aarch64-unknown-linux-gnu ` | ✓ | | | ARM64 Linux (2.6.18+) |
120
- | ` mips-unknown-linux-gnu ` | ✓ | | | MIPS Linux (2.6.18+) |
121
- | ` mipsel-unknown-linux-gnu ` | ✓ | | | MIPS (LE) Linux (2.6.18+) |
122
122
| ` powerpc-unknown-linux-gnu ` | ✓ | | | PowerPC Linux (2.6.18+) |
123
+ | ` powerpc64-unknown-linux-gnu ` | ✓ | | | PPC64 Linux (2.6.18+) |
124
+ | ` powerpc64le-unknown-linux-gnu ` | ✓ | | | PPC64LE Linux (2.6.18+) |
125
+ | ` armv7-unknown-linux-gnueabihf ` | ✓ | | | ARMv7 Linux (2.6.18+) |
123
126
| ` i386-apple-ios ` | ✓ | | | 32-bit x86 iOS |
124
127
| ` x86_64-apple-ios ` | ✓ | | | 64-bit x86 iOS |
125
128
| ` armv7-apple-ios ` | ✓ | | | ARM iOS |
126
129
| ` armv7s-apple-ios ` | ✓ | | | ARM iOS |
127
130
| ` aarch64-apple-ios ` | ✓ | | | ARM64 iOS |
128
- | ` i686-unknown-freebsd ` | ✓ | ✓ | | 32-bit FreeBSD |
129
- | ` x86_64-unknown-freebsd ` | ✓ | ✓ | | 64-bit FreeBSD |
131
+ | ` i686-unknown-freebsd ` | ✓ | ✓ | ✓ | 32-bit FreeBSD |
132
+ | ` x86_64-unknown-freebsd ` | ✓ | ✓ | ✓ | 64-bit FreeBSD |
130
133
| ` x86_64-unknown-openbsd ` | ✓ | ✓ | | 64-bit OpenBSD |
131
134
| ` x86_64-unknown-netbsd ` | ✓ | ✓ | | 64-bit NetBSD |
132
135
| ` x86_64-unknown-bitrig ` | ✓ | ✓ | | 64-bit Bitrig |
133
136
| ` x86_64-unknown-dragonfly ` | ✓ | ✓ | | 64-bit DragonFlyBSD |
134
137
| ` x86_64-rumprun-netbsd ` | ✓ | | | 64-bit NetBSD Rump Kernel |
138
+ | ` x86_64-sun-solaris ` | ✓ | ✓ | | 64-bit Solaris/SunOS |
135
139
| ` i686-pc-windows-msvc ` (XP) | ✓ | | | Windows XP support |
136
140
| ` x86_64-pc-windows-msvc ` (XP) | ✓ | | | Windows XP support |
137
141
@@ -151,47 +155,20 @@ LinuxかMacを使っているなら以下を入力するだけです
151
155
$ curl -sSf https://static.rust-lang.org/rustup.sh | sh
152
156
```
153
157
154
- <!-- This will download a script, and stat the installation. If it all goes well, -->
158
+ <!-- This will download a script, and start the installation. If it all goes well, -->
155
159
<!-- you’ll see this appear: -->
156
160
このコマンドでスクリプトをダウンロードしインストールを始めます。
157
161
全て上手くいったら以下が表示される筈です。
158
162
159
163
``` text
160
- Welcome to Rust.
161
-
162
- This script will download the Rust compiler and its package manager, Cargo, and
163
- install them to /usr/local. You may install elsewhere by running this script
164
- with the --prefix=<path> option.
165
-
166
- The installer will run under ‘sudo’ and may ask you for your password. If you do
167
- not want the script to run ‘sudo’ then pass it the --disable-sudo flag.
168
-
169
- You may uninstall later by running /usr/local/lib/rustlib/uninstall.sh,
170
- or by running this script again with the --uninstall flag.
171
-
172
- Continue? (y/N)
164
+ Rust is ready to roll.
173
165
```
174
166
175
167
> 訳注:
176
- >
177
- >
168
+ >
169
+ >
178
170
> ``` text
179
- > Rustへようこそ。
180
- >
181
- > このスクリプトはRustコンパイラとそのパッケージマネージャCargoをダウンロードし、/usr/local
182
- > へとインストールします。--prefix=<path> オプションを使うことで他の場所へインストール
183
- > 出来ます。
184
- >
185
- > インストーラは「sudo」下で走るのでパスワードを尋きます。もし'sudo'を使ってほしくないなら
186
- > --disable-sudo フラグを渡します。
187
- >
188
- > You may uninstall later by running /usr/local/lib/rustlib/uninstall.sh,
189
- > or by running this script again with the --uninstall flag.
190
- >
191
- > /usr/local/lib/rustlib/uninstall.shを実行するかこのスクリプトに--uninstallフラグを
192
- > 付けて実行することで後程アンインストール出来ます。
193
- >
194
- > 続けますか? (y/N)
171
+ > Rustを使う準備ができました。
195
172
> ```
196
173
197
174
<!-- From here, press `y` for ‘yes’, and then follow the rest of the prompts. -->
@@ -208,7 +185,7 @@ Windowsを使っているなら適切な[インストーラ][install-page]をダ
208
185
<!-- ## Uninstalling -->
209
186
## アンインストール
210
187
211
- <!-- Uninstalling Rust is as easy as installing it. On Linux or Mac, just run -->
188
+ <!-- Uninstalling Rust is as easy as installing it. On Linux or Mac, run -->
212
189
<!-- the uninstall script: -->
213
190
Rustのアンインストールはインストールと同じくらい簡単です。
214
191
LinuxかMacならアンインストールスクリプトを使うだけです。
0 commit comments