diff --git a/src/bin/cargo/cli.rs b/src/bin/cargo/cli.rs index 617b8e07329..3b2f2f99ab0 100644 --- a/src/bin/cargo/cli.rs +++ b/src/bin/cargo/cli.rs @@ -194,7 +194,7 @@ Some common cargo commands are (see all commands with --list): doc Build this package's and its dependencies' documentation new Create a new cargo package init Create a new cargo package in an existing directory - run Build and execute src/main.rs + run Run a binary or example of the local package test Run the tests bench Run the benchmarks update Update dependencies listed in Cargo.lock diff --git a/src/bin/cargo/commands/run.rs b/src/bin/cargo/commands/run.rs index fc8401d5615..3f37fc0910b 100644 --- a/src/bin/cargo/commands/run.rs +++ b/src/bin/cargo/commands/run.rs @@ -8,7 +8,7 @@ pub fn cli() -> App { // subcommand aliases are handled in aliased_command() // .alias("r") .setting(AppSettings::TrailingVarArg) - .about("Run the main binary of the local package (src/main.rs)") + .about("Run a binary or example of the local package") .arg(Arg::with_name("args").multiple(true)) .arg_targets_bin_example( "Name of the bin target to run", diff --git a/src/doc/man/cargo-run.adoc b/src/doc/man/cargo-run.adoc index ab417257d87..21bec850c62 100644 --- a/src/doc/man/cargo-run.adoc +++ b/src/doc/man/cargo-run.adoc @@ -13,7 +13,7 @@ cargo-run - Run the current package == DESCRIPTION -Build the the main binary of the local package (`src/main.rs`) and run it. +Run a binary or example of the local package. All the arguments following the two dashes (`--`) are passed to the binary to run. If you're passing arguments to both Cargo and the binary, the ones after @@ -77,7 +77,7 @@ include::section-exit-status.adoc[] == EXAMPLES -. Build the local package and run its main target: +. Build the local package and run its main target (assuming only one binary): cargo run diff --git a/src/doc/man/cargo.adoc b/src/doc/man/cargo.adoc index 69f879bac2c..8fbbac8ddb6 100644 --- a/src/doc/man/cargo.adoc +++ b/src/doc/man/cargo.adoc @@ -45,7 +45,7 @@ man:cargo-fix[1]:: Automatically fix lint warnings reported by rustc. man:cargo-run[1]:: - Run a binary of the local package. + Run a binary or example of the local package. man:cargo-rustc[1]:: Compile a package, and pass extra options to the compiler. diff --git a/src/doc/man/generated/cargo-metadata.html b/src/doc/man/generated/cargo-metadata.html index 1aa0ee71420..271a8ea97ec 100644 --- a/src/doc/man/generated/cargo-metadata.html +++ b/src/doc/man/generated/cargo-metadata.html @@ -68,7 +68,9 @@

OUTPUT FORMAT

{ /* The name of the dependency. */ "name": "bitflags", - /* The source ID of the dependency. */ + /* The source ID of the dependency. May be null, see + description for the package source. + */ "source": "registry+https://github.com/rust-lang/crates.io-index", /* The version requirement for the dependency. Dependencies without a version requirement have a value of "*". @@ -91,7 +93,12 @@

OUTPUT FORMAT

/* The target platform for the dependency. null if not a target dependency. */ - "target": "cfg(windows)" + "target": "cfg(windows)", + /* A string of the URL of the registry this dependency is from. + If not specified or null, the dependency is from the default + registry (crates.io). + */ + "registry": null } ], /* Array of Cargo targets. */ diff --git a/src/doc/man/generated/cargo-run.html b/src/doc/man/generated/cargo-run.html index b8f21c335cd..b102bfbba55 100644 --- a/src/doc/man/generated/cargo-run.html +++ b/src/doc/man/generated/cargo-run.html @@ -14,7 +14,7 @@

SYNOPSIS

DESCRIPTION

-

Build the the main binary of the local package (src/main.rs) and run it.

+

Run a binary or example of the local package.

All the arguments following the two dashes (--) are passed to the binary to @@ -321,7 +321,7 @@

EXAMPLES

  1. -

    Build the local package and run its main target:

    +

    Build the local package and run its main target (assuming only one binary):

    cargo run
    diff --git a/src/doc/man/generated/cargo.html b/src/doc/man/generated/cargo.html index 63ae81406ea..92cfbfdd3c6 100644 --- a/src/doc/man/generated/cargo.html +++ b/src/doc/man/generated/cargo.html @@ -60,7 +60,7 @@

    Build Commands

    cargo-run(1)
    -

    Run a binary of the local package.

    +

    Run a binary or example of the local package.

    cargo-rustc(1)
    diff --git a/src/etc/man/cargo-metadata.1 b/src/etc/man/cargo-metadata.1 index 7cbbf73a848..b646ef7b25b 100644 --- a/src/etc/man/cargo-metadata.1 +++ b/src/etc/man/cargo-metadata.1 @@ -2,12 +2,12 @@ .\" Title: cargo-metadata .\" Author: [see the "AUTHOR(S)" section] .\" Generator: Asciidoctor 1.5.8 -.\" Date: 2018-12-23 +.\" Date: 2019-01-05 .\" Manual: \ \& .\" Source: \ \& .\" Language: English .\" -.TH "CARGO\-METADATA" "1" "2018-12-23" "\ \&" "\ \&" +.TH "CARGO\-METADATA" "1" "2019-01-05" "\ \&" "\ \&" .ie \n(.g .ds Aq \(aq .el .ds Aq ' .ss \n[.ss] 0 @@ -82,7 +82,9 @@ The output has the following format: { /* The name of the dependency. */ "name": "bitflags", - /* The source ID of the dependency. */ + /* The source ID of the dependency. May be null, see + description for the package source. + */ "source": "registry+https://github.com/rust\-lang/crates.io\-index", /* The version requirement for the dependency. Dependencies without a version requirement have a value of "*". @@ -105,7 +107,12 @@ The output has the following format: /* The target platform for the dependency. null if not a target dependency. */ - "target": "cfg(windows)" + "target": "cfg(windows)", + /* A string of the URL of the registry this dependency is from. + If not specified or null, the dependency is from the default + registry (crates.io). + */ + "registry": null } ], /* Array of Cargo targets. */ diff --git a/src/etc/man/cargo-run.1 b/src/etc/man/cargo-run.1 index 8362133f43a..e8c1ba7bb9f 100644 --- a/src/etc/man/cargo-run.1 +++ b/src/etc/man/cargo-run.1 @@ -2,12 +2,12 @@ .\" Title: cargo-run .\" Author: [see the "AUTHOR(S)" section] .\" Generator: Asciidoctor 1.5.8 -.\" Date: 2018-12-20 +.\" Date: 2019-02-05 .\" Manual: \ \& .\" Source: \ \& .\" Language: English .\" -.TH "CARGO\-RUN" "1" "2018-12-20" "\ \&" "\ \&" +.TH "CARGO\-RUN" "1" "2019-02-05" "\ \&" "\ \&" .ie \n(.g .ds Aq \(aq .el .ds Aq ' .ss \n[.ss] 0 @@ -34,7 +34,7 @@ cargo\-run \- Run the current package \fBcargo run [\fIOPTIONS\fP] [\-\- \fIARGS\fP]\fP .SH "DESCRIPTION" .sp -Build the the main binary of the local package (\fBsrc/main.rs\fP) and run it. +Run a binary or example of the local package. .sp All the arguments following the two dashes (\fB\-\-\fP) are passed to the binary to run. If you\(cqre passing arguments to both Cargo and the binary, the ones after @@ -328,7 +328,7 @@ Cargo failed to complete. . sp -1 . IP " 1." 4.2 .\} -Build the local package and run its main target: +Build the local package and run its main target (assuming only one binary): .sp .if n .RS 4 .nf diff --git a/src/etc/man/cargo.1 b/src/etc/man/cargo.1 index a1a5be5bc73..d838976ae62 100644 --- a/src/etc/man/cargo.1 +++ b/src/etc/man/cargo.1 @@ -2,12 +2,12 @@ .\" Title: cargo .\" Author: [see the "AUTHOR(S)" section] .\" Generator: Asciidoctor 1.5.8 -.\" Date: 2018-12-20 +.\" Date: 2019-02-05 .\" Manual: \ \& .\" Source: \ \& .\" Language: English .\" -.TH "CARGO" "1" "2018-12-20" "\ \&" "\ \&" +.TH "CARGO" "1" "2019-02-05" "\ \&" "\ \&" .ie \n(.g .ds Aq \(aq .el .ds Aq ' .ss \n[.ss] 0 @@ -85,7 +85,7 @@ Automatically fix lint warnings reported by rustc. .sp \fBcargo\-run\fP(1) .RS 4 -Run a binary of the local package. +Run a binary or example of the local package. .RE .sp \fBcargo\-rustc\fP(1)