Skip to content

Commit

Permalink
Crate/target clarification.
Browse files Browse the repository at this point in the history
  • Loading branch information
ehuss committed Nov 17, 2018
1 parent 6de96b4 commit 091fa8c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/doc/src/appendix/glossary.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ compilation process. This includes linkable libraries and executable binaries.

### Crate

A *crate* is one of the targets in a package. Crates are either libraries or
Every target in a package is a *crate*. Crates are either libraries or
executable binaries. It may loosely refer to either the source code of the
target, or the compiled artifact that the target produces. A crate may also
refer to a compressed package fetched from a registry.
Expand Down Expand Up @@ -103,7 +103,7 @@ See [package id specification](#package).

The meaning of the term *target* depends on the context:

- **Target Crate** — Cargo packages consist of *targets* which correspond to
- **Cargo Target** — Cargo packages consist of *targets* which correspond to
artifacts that will be produced. Packages can have library, binary, example,
test, and benchmark targets. The [list of targets][targets] are configured
in the `Cargo.toml` manifest, often inferred automatically by the [directory
Expand Down

0 comments on commit 091fa8c

Please sign in to comment.