Skip to content

Commit 46b2b78

Browse files
author
Jonathan Claudius
authored
Merge branch 'master' into https_all_the_things
2 parents a9480ed + 469af67 commit 46b2b78

File tree

170 files changed

+2984
-2039
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

170 files changed

+2984
-2039
lines changed

ARCHITECTURE.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ find it useful if you want to contribute to Cargo or if you are
55
interested in the inner workings of Cargo.
66

77
The purpose of Cargo is to formalize a canonical Rust workflow, by automating
8-
the standard tasks associated with distributing software. Cargo simplifies
8+
the standard tasks associated with distributing software. Cargo simplifies
99
structuring a new project, adding dependencies, writing and running unit tests,
1010
and more.
1111

@@ -58,7 +58,7 @@ the local hard drive.
5858

5959
`Resolve` is the representation of a directed acyclic graph of package
6060
dependencies, which uses `PackageId`s for nodes. This is the data
61-
structure that is saved to the lock file. If there is no lockfile,
61+
structure that is saved to the lock file. If there is no lock file,
6262
Cargo constructs a resolve by finding a graph of packages which
6363
matches declared dependency specification according to semver.
6464

@@ -118,14 +118,14 @@ to nightly rustc).
118118

119119
Cargo uses [`env_logger`](https://docs.rs/env_logger/*/env_logger/), so you can set
120120
`RUST_LOG` environment variable to get the logs. This is useful both for diagnosing
121-
bugs in stable Cargo and for local development. Cargo also has internal hierarchical
122-
profiling infrastructure, which is activated via `CARGO_PROFILE` variable
121+
bugs in stable Cargo and for local development. Cargo also has internal hierarchical
122+
profiling infrastructure, which is activated via `CARGO_PROFILE` variable
123123

124124
```
125-
# Outputs all logs with levels debug and higher
125+
# Outputs all logs with levels debug and higher
126126
$ RUST_LOG=debug cargo generate-lockfile
127127
128-
# Don't forget that you can filter by module as well
128+
# Don't forget that you can filter by module as well
129129
$ RUST_LOG=cargo::core::resolver=trace cargo generate-lockfile
130130
131131
# Output first three levels of profiling info

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ working on.
8686
* Include tests that cover all non-trivial code. The existing tests
8787
in `test/` provide templates on how to test Cargo's behavior in a
8888
sandbox-environment. The internal module `testsuite/support` provides a vast amount
89-
of helpers to minimize boilerplate. See [`testsuite/support/mod.rs`] for an
89+
of helpers to minimize boilerplate. See [`testsuite/support/mod.rs`] for an
9090
introduction to writing tests.
9191
* Make sure `cargo test` passes. If you do not have the cross-compilers
9292
installed locally, install them using the instructions returned by
@@ -110,7 +110,7 @@ weekends. If you don't get a reply, you may poke the core developers on [Discord
110110

111111
A merge of Cargo's master-branch and your changes is immediately queued
112112
to be tested after the pull request is made. In case unforeseen
113-
problems are discovered during this step (e.g. a failure on a platform you
113+
problems are discovered during this step (e.g., a failure on a platform you
114114
originally did not develop on), you may ask for guidance. Push additional
115115
commits to your branch to tackle these problems.
116116

src/bin/cargo/cli.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ Some common cargo commands are (see all commands with --list):
194194
doc Build this package's and its dependencies' documentation
195195
new Create a new cargo package
196196
init Create a new cargo package in an existing directory
197-
run Build and execute src/main.rs
197+
run Run a binary or example of the local package
198198
test Run the tests
199199
bench Run the benchmarks
200200
update Update dependencies listed in Cargo.lock

src/bin/cargo/commands/bench.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,14 +46,14 @@ pub fn cli() -> App {
4646
))
4747
.after_help(
4848
"\
49-
The benchmark filtering argument `BENCHNAME` and all the arguments following the
49+
The benchmark filtering argument BENCHNAME and all the arguments following the
5050
two dashes (`--`) are passed to the benchmark binaries and thus to libtest
51-
(rustc's built in unit-test and micro-benchmarking framework). If you're
51+
(rustc's built in unit-test and micro-benchmarking framework). If you're
5252
passing arguments to both Cargo and the binary, the ones after `--` go to the
53-
binary, the ones before go to Cargo. For details about libtest's arguments see
53+
binary, the ones before go to Cargo. For details about libtest's arguments see
5454
the output of `cargo bench -- --help`.
5555
56-
If the --package argument is given, then SPEC is a package id specification
56+
If the `--package` argument is given, then SPEC is a package ID specification
5757
which indicates which package should be benchmarked. If it is not given, then
5858
the current package is benchmarked. For more information on SPEC and its format,
5959
see the `cargo help pkgid` command.
@@ -62,7 +62,7 @@ All packages in the workspace are benchmarked if the `--all` flag is supplied. T
6262
`--all` flag is automatically assumed for a virtual manifest.
6363
Note that `--exclude` has to be specified in conjunction with the `--all` flag.
6464
65-
The --jobs argument affects the building of the benchmark executable but does
65+
The `--jobs` argument affects the building of the benchmark executable but does
6666
not affect how many jobs are used when running the benchmarks.
6767
6868
Compilation can be customized with the `bench` profile in the manifest.

src/bin/cargo/commands/check.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ pub fn cli() -> App {
3434
.arg_message_format()
3535
.after_help(
3636
"\
37-
If the --package argument is given, then SPEC is a package id specification
37+
If the `--package` argument is given, then SPEC is a package ID specification
3838
which indicates which package should be built. If it is not given, then the
3939
current package is built. For more information on SPEC and its format, see the
4040
`cargo help pkgid` command.
@@ -45,7 +45,7 @@ Note that `--exclude` has to be specified in conjunction with the `--all` flag.
4545
4646
Compilation can be configured via the use of profiles which are configured in
4747
the manifest. The default profile for this command is `dev`, but passing
48-
the --release flag will use the `release` profile instead.
48+
the `--release` flag will use the `release` profile instead.
4949
5050
The `--profile test` flag can be used to check unit tests with the
5151
`#[cfg(test)]` attribute.

src/bin/cargo/commands/clean.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ pub fn cli() -> App {
77
.about("Remove artifacts that cargo has generated in the past")
88
.arg_package_spec_simple("Package to clean artifacts for")
99
.arg_manifest_path()
10-
.arg_target_triple("Target triple to clean output for (default all)")
10+
.arg_target_triple("Target triple to clean output for")
1111
.arg_target_dir()
1212
.arg_release("Whether or not to clean release artifacts")
1313
.arg_doc("Whether or not to clean just the documentation directory")
1414
.after_help(
1515
"\
16-
If the --package argument is given, then SPEC is a package id specification
16+
If the `--package` argument is given, then SPEC is a package ID specification
1717
which indicates which package's artifacts should be cleaned out. If it is not
1818
given, then all packages' artifacts are removed. For more information on SPEC
1919
and its format, see the `cargo help pkgid` command.

src/bin/cargo/commands/doc.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ All packages in the workspace are documented if the `--all` flag is supplied. Th
3737
`--all` flag is automatically assumed for a virtual manifest.
3838
Note that `--exclude` has to be specified in conjunction with the `--all` flag.
3939
40-
If the --package argument is given, then SPEC is a package id specification
40+
If the `--package` argument is given, then SPEC is a package ID specification
4141
which indicates which package should be documented. If it is not given, then the
4242
current package is documented. For more information on SPEC and its format, see
4343
the `cargo help pkgid` command.

src/bin/cargo/commands/fetch.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ pub fn cli() -> App {
1010
.arg_target_triple("Fetch dependencies for the target triple")
1111
.after_help(
1212
"\
13-
If a lockfile is available, this command will ensure that all of the git
13+
If a lock file is available, this command will ensure that all of the Git
1414
dependencies and/or registries dependencies are downloaded and locally
1515
available. The network is never touched after a `cargo fetch` unless
16-
the lockfile changes.
16+
the lock file changes.
1717
18-
If the lockfile is not available, then this is the equivalent of
19-
`cargo generate-lockfile`. A lockfile is generated and dependencies are also
18+
If the lock file is not available, then this is the equivalent of
19+
`cargo generate-lockfile`. A lock file is generated and dependencies are also
2020
all updated.
2121
",
2222
)

src/bin/cargo/commands/install.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,13 +63,13 @@ enables overwriting existing binaries. Thus you can reinstall a crate with
6363
6464
Omitting the <crate> specification entirely will
6565
install the crate in the current directory. That is, `install` is equivalent to
66-
the more explicit `install --path .`. This behaviour is deprecated, and no
66+
the more explicit `install --path .`. This behaviour is deprecated, and no
6767
longer supported as of the Rust 2018 edition.
6868
6969
If the source is crates.io or `--git` then by default the crate will be built
70-
in a temporary target directory. To avoid this, the target directory can be
70+
in a temporary target directory. To avoid this, the target directory can be
7171
specified by setting the `CARGO_TARGET_DIR` environment variable to a relative
72-
path. In particular, this can be useful for caching build artifacts on
72+
path. In particular, this can be useful for caching build artifacts on
7373
continuous integration systems.",
7474
)
7575
}

src/bin/cargo/commands/pkgid.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ pub fn cli() -> App {
66
subcommand("pkgid")
77
.about("Print a fully qualified package specification")
88
.arg(Arg::with_name("spec"))
9-
.arg_package("Argument to get the package id specifier for")
9+
.arg_package("Argument to get the package ID specifier for")
1010
.arg_manifest_path()
1111
.after_help(
1212
"\
13-
Given a <spec> argument, print out the fully qualified package id specifier.
13+
Given a <spec> argument, print out the fully qualified package ID specifier.
1414
This command will generate an error if <spec> is ambiguous as to which package
1515
it refers to in the dependency graph. If no <spec> is given, then the pkgid for
1616
the local package is printed.

0 commit comments

Comments
 (0)