mirror of
https://github.com/rust-lang/book.git
synced 2026-11-30 20:14:32 -06:00
Merge pull request #221 from spastorino/executables
Executables are binary executable files
This commit is contained in:
@@ -223,10 +223,10 @@ $ cd hello_cargo
|
|||||||
```
|
```
|
||||||
|
|
||||||
We passed the `--bin` argument to `cargo new` because our goal is to make an
|
We passed the `--bin` argument to `cargo new` because our goal is to make an
|
||||||
executable application, as opposed to a library. Executables are often called
|
executable application, as opposed to a library. Executables are binary
|
||||||
*binaries* (as in `/usr/bin`, if you’re on a Unix system). We've given
|
executable files often called just *binaries*. We've given `hello_cargo`
|
||||||
`hello_cargo` as the name for our project, and Cargo creates its files in a
|
as the name for our project, and Cargo creates its files in a directory
|
||||||
directory of the same name that we can then go into.
|
of the same name that we can then go into.
|
||||||
|
|
||||||
If we list the files in the `hello_cargo` directory, we can see that Cargo has
|
If we list the files in the `hello_cargo` directory, we can see that Cargo has
|
||||||
generated two files and one directory for us: a `Cargo.toml` and a `src`
|
generated two files and one directory for us: a `Cargo.toml` and a `src`
|
||||||
|
|||||||
Reference in New Issue
Block a user