mirror of
https://github.com/rust-lang/book.git
synced 2026-11-30 21:31:17 -06:00
Merge pull request #222 from spastorino/bullets
Use bullets instead of starting point 3 and 4 from nowhere
This commit is contained in:
@@ -285,8 +285,8 @@ Cargo has generated a "Hello World!" for you, just like the one we wrote
|
|||||||
earlier! So that part is the same. The differences between our previous project
|
earlier! So that part is the same. The differences between our previous project
|
||||||
and the project generated by Cargo that we've seen so far are:
|
and the project generated by Cargo that we've seen so far are:
|
||||||
|
|
||||||
1. Our code goes in the `src` directory
|
- Our code goes in the `src` directory
|
||||||
2. The top level contains a `Cargo.toml` configuration file
|
- The top level contains a `Cargo.toml` configuration file
|
||||||
|
|
||||||
Cargo expects your source files to live inside the `src` directory so that the
|
Cargo expects your source files to live inside the `src` directory so that the
|
||||||
top-level project directory is just for READMEs, license information,
|
top-level project directory is just for READMEs, license information,
|
||||||
@@ -360,9 +360,9 @@ Hello, world!
|
|||||||
|
|
||||||
So a few more differences we've now seen:
|
So a few more differences we've now seen:
|
||||||
|
|
||||||
3. Instead of using `rustc`, build a project using `cargo build` (or build and
|
- Instead of using `rustc`, build a project using `cargo build` (or build and
|
||||||
run it in one step with `cargo run`)
|
run it in one step with `cargo run`)
|
||||||
4. Instead of the result of the build being put in the same directory as our
|
- Instead of the result of the build being put in the same directory as our
|
||||||
code, Cargo will put it in the `target/debug` directory.
|
code, Cargo will put it in the `target/debug` directory.
|
||||||
|
|
||||||
The other advantage of using Cargo is that the commands are the same no matter
|
The other advantage of using Cargo is that the commands are the same no matter
|
||||||
|
|||||||
Reference in New Issue
Block a user