File tree 10 files changed +35
-21
lines changed
10 files changed +35
-21
lines changed Original file line number Diff line number Diff line change @@ -194,7 +194,7 @@ Some common cargo commands are (see all commands with --list):
194
194
doc Build this package's and its dependencies' documentation
195
195
new Create a new cargo package
196
196
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
198
198
test Run the tests
199
199
bench Run the benchmarks
200
200
update Update dependencies listed in Cargo.lock
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ pub fn cli() -> App {
8
8
// subcommand aliases are handled in aliased_command()
9
9
// .alias("r")
10
10
. setting ( AppSettings :: TrailingVarArg )
11
- . about ( "Run the main binary of the local package (src/main.rs) " )
11
+ . about ( "Run a binary or example of the local package" )
12
12
. arg ( Arg :: with_name ( "args" ) . multiple ( true ) )
13
13
. arg_targets_bin_example (
14
14
"Name of the bin target to run" ,
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ cargo-run - Run the current package
13
13
14
14
== DESCRIPTION
15
15
16
- Build the the main binary of the local package (`src/main.rs`) and run it .
16
+ Run a binary or example of the local package.
17
17
18
18
All the arguments following the two dashes (`--`) are passed to the binary to
19
19
run. If you're passing arguments to both Cargo and the binary, the ones after
@@ -77,7 +77,7 @@ include::section-exit-status.adoc[]
77
77
78
78
== EXAMPLES
79
79
80
- . Build the local package and run its main target:
80
+ . Build the local package and run its main target (assuming only one binary) :
81
81
82
82
cargo run
83
83
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ man:cargo-fix[1]::
45
45
Automatically fix lint warnings reported by rustc.
46
46
47
47
man:cargo-run[1]::
48
- Run a binary of the local package.
48
+ Run a binary or example of the local package.
49
49
50
50
man:cargo-rustc[1]::
51
51
Compile a package, and pass extra options to the compiler.
Original file line number Diff line number Diff line change @@ -68,7 +68,9 @@ <h2 id="cargo_metadata_output_format">OUTPUT FORMAT</h2>
68
68
{
69
69
/* The name of the dependency. */
70
70
"name": "bitflags",
71
- /* The source ID of the dependency. */
71
+ /* The source ID of the dependency. May be null, see
72
+ description for the package source.
73
+ */
72
74
"source": "registry+https://github.com/rust-lang/crates.io-index",
73
75
/* The version requirement for the dependency.
74
76
Dependencies without a version requirement have a value of "*".
@@ -91,7 +93,12 @@ <h2 id="cargo_metadata_output_format">OUTPUT FORMAT</h2>
91
93
/* The target platform for the dependency.
92
94
null if not a target dependency.
93
95
*/
94
- "target": "cfg(windows)"
96
+ "target": "cfg(windows)",
97
+ /* A string of the URL of the registry this dependency is from.
98
+ If not specified or null, the dependency is from the default
99
+ registry (crates.io).
100
+ */
101
+ "registry": null
95
102
}
96
103
],
97
104
/* Array of Cargo targets. */
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ <h2 id="cargo_run_synopsis">SYNOPSIS</h2>
14
14
< h2 id ="cargo_run_description "> DESCRIPTION</ h2 >
15
15
< div class ="sectionbody ">
16
16
< div class ="paragraph ">
17
- < p > Build the the main binary of the local package ( < code > src/main.rs </ code > ) and run it .</ p >
17
+ < p > Run a binary or example of the local package.</ p >
18
18
</ div >
19
19
< div class ="paragraph ">
20
20
< p > All the arguments following the two dashes (< code > --</ code > ) are passed to the binary to
@@ -321,7 +321,7 @@ <h2 id="cargo_run_examples">EXAMPLES</h2>
321
321
< div class ="olist arabic ">
322
322
< ol class ="arabic ">
323
323
< li >
324
- < p > Build the local package and run its main target:</ p >
324
+ < p > Build the local package and run its main target (assuming only one binary) :</ p >
325
325
< div class ="literalblock ">
326
326
< div class ="content ">
327
327
< pre > cargo run</ pre >
Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ <h3 id="_build_commands">Build Commands</h3>
60
60
</ dd >
61
61
< dt class ="hdlist1 "> < a href ="commands/cargo-run.html "> cargo-run(1)</ a > </ dt >
62
62
< dd >
63
- < p > Run a binary of the local package.</ p >
63
+ < p > Run a binary or example of the local package.</ p >
64
64
</ dd >
65
65
< dt class ="hdlist1 "> < a href ="commands/cargo-rustc.html "> cargo-rustc(1)</ a > </ dt >
66
66
< dd >
Original file line number Diff line number Diff line change 2
2
.\" Title: cargo-metadata
3
3
.\" Author: [see the "AUTHOR(S)" section]
4
4
.\" Generator: Asciidoctor 1.5.8
5
- .\" Date: 2018-12-23
5
+ .\" Date: 2019-01-05
6
6
.\" Manual: \ \&
7
7
.\" Source: \ \&
8
8
.\" Language: English
9
9
.\"
10
- .TH "CARGO\- METADATA" "1" "2018-12-23 " "\ \& " "\ \& "
10
+ .TH "CARGO\- METADATA" "1" "2019-01-05 " "\ \& " "\ \& "
11
11
.ie \n( .g .ds Aq \(aq
12
12
.el .ds Aq '
13
13
.ss \n[ .ss ] 0
@@ -82,7 +82,9 @@ The output has the following format:
82
82
{
83
83
/* The name of the dependency. */
84
84
"name": "bitflags",
85
- /* The source ID of the dependency. */
85
+ /* The source ID of the dependency. May be null, see
86
+ description for the package source.
87
+ */
86
88
"source": "registry+https://github.com/rust\- lang/crates.io\- index",
87
89
/* The version requirement for the dependency.
88
90
Dependencies without a version requirement have a value of "*".
@@ -105,7 +107,12 @@ The output has the following format:
105
107
/* The target platform for the dependency.
106
108
null if not a target dependency.
107
109
*/
108
- "target": "cfg(windows)"
110
+ "target": "cfg(windows)",
111
+ /* A string of the URL of the registry this dependency is from.
112
+ If not specified or null, the dependency is from the default
113
+ registry (crates.io).
114
+ */
115
+ "registry": null
109
116
}
110
117
],
111
118
/* Array of Cargo targets. */
Original file line number Diff line number Diff line change 2
2
.\" Title: cargo-run
3
3
.\" Author: [see the "AUTHOR(S)" section]
4
4
.\" Generator: Asciidoctor 1.5.8
5
- .\" Date: 2018-12-20
5
+ .\" Date: 2019-02-05
6
6
.\" Manual: \ \&
7
7
.\" Source: \ \&
8
8
.\" Language: English
9
9
.\"
10
- .TH "CARGO\- RUN" "1" "2018-12-20 " "\ \& " "\ \& "
10
+ .TH "CARGO\- RUN" "1" "2019-02-05 " "\ \& " "\ \& "
11
11
.ie \n( .g .ds Aq \(aq
12
12
.el .ds Aq '
13
13
.ss \n[ .ss ] 0
@@ -34,7 +34,7 @@ cargo\-run \- Run the current package
34
34
\fB cargo run [ \fI OPTIONS \fP ] [\-\- \fI ARGS \fP ]\fP
35
35
.SH "DESCRIPTION"
36
36
.sp
37
- Build the the main binary of the local package ( \fB src/main.rs \fP ) and run it .
37
+ Run a binary or example of the local package.
38
38
.sp
39
39
All the arguments following the two dashes (\fB \-\- \fP ) are passed to the binary to
40
40
run. If you\(cq re passing arguments to both Cargo and the binary, the ones after
@@ -328,7 +328,7 @@ Cargo failed to complete.
328
328
. sp -1
329
329
. IP " 1." 4.2
330
330
.\}
331
- Build the local package and run its main target:
331
+ Build the local package and run its main target (assuming only one binary) :
332
332
.sp
333
333
.if n .RS 4
334
334
.nf
Original file line number Diff line number Diff line change 2
2
.\" Title: cargo
3
3
.\" Author: [see the "AUTHOR(S)" section]
4
4
.\" Generator: Asciidoctor 1.5.8
5
- .\" Date: 2018-12-20
5
+ .\" Date: 2019-02-05
6
6
.\" Manual: \ \&
7
7
.\" Source: \ \&
8
8
.\" Language: English
9
9
.\"
10
- .TH "CARGO" "1" "2018-12-20 " "\ \& " "\ \& "
10
+ .TH "CARGO" "1" "2019-02-05 " "\ \& " "\ \& "
11
11
.ie \n( .g .ds Aq \(aq
12
12
.el .ds Aq '
13
13
.ss \n[ .ss ] 0
@@ -85,7 +85,7 @@ Automatically fix lint warnings reported by rustc.
85
85
.sp
86
86
\fB cargo \- run \fP (1)
87
87
.RS 4
88
- Run a binary of the local package.
88
+ Run a binary or example of the local package.
89
89
.RE
90
90
.sp
91
91
\fB cargo \- rustc \fP (1)
You can’t perform that action at this time.
0 commit comments