@@ -114,8 +114,9 @@ for more information on them.
114
114
115
115
When complete, ` make install ` will place several programs into
116
116
` /usr/local/bin ` : ` rustc ` , the Rust compiler; ` rustdoc ` , the
117
- API-documentation tool; ` cargo ` , the Rust package manager;
118
- and ` rusti ` , the Rust REPL.
117
+ API-documentation tool; ` rustpkg ` , the Rust package manager;
118
+ ` rusti ` , the Rust REPL; and ` rust ` , a tool which acts both as a unified
119
+ interface for them, and for a few common command line scenarios.
119
120
120
121
[ wiki-start ] : https://github.com./mozilla/rust/wiki/Note-getting-started-developing-Rust
121
122
[ tarball ] : http://static.rust-lang.org/dist/rust-0.5.tar.gz
@@ -154,6 +155,22 @@ declaration to appear at the top level of the file: all statements must
154
155
live inside a function. Rust programs can also be compiled as
155
156
libraries, and included in other programs.
156
157
158
+ ## Using the rust tool
159
+
160
+ While using ` rustc ` directly to generate your executables, and then
161
+ running them manually is a perfectly valid way to test your code,
162
+ for smaller projects, prototypes, or if you're a beginner, it might be
163
+ more convenient to use the ` rust ` tool.
164
+
165
+ The ` rust ` tool provides central access to the other rust tools,
166
+ as well as handy shortcuts for directly running source files.
167
+ For example, if you have a file ` foo.rs ` in your current directory,
168
+ ` rust run foo.rs ` would attempt to compile it and, if successful,
169
+ directly run the resulting binary.
170
+
171
+ To get a list of all available commands, simply call ` rust ` without any
172
+ argument.
173
+
157
174
## Editing Rust code
158
175
159
176
There are vim highlighting and indentation scripts in the Rust source
@@ -2184,7 +2201,7 @@ impl Circle for CircleStruct {
2184
2201
}
2185
2202
impl Shape for CircleStruct {
2186
2203
fn area(&self) -> float { pi * square(self.radius) }
2187
- }
2204
+ }
2188
2205
~~~~
2189
2206
2190
2207
Notice that methods of ` Circle ` can call methods on ` Shape ` , as our
0 commit comments