Skip to content

Commit 9b5af41

Browse files
committed
docs: Document cargo script
1 parent cc5c03a commit 9b5af41

74 files changed

Lines changed: 184 additions & 192 deletions

Some content is hidden

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

src/doc/man/cargo.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ cargo --- The Rust package manager
77
## SYNOPSIS
88

99
`cargo` [_options_] _command_ [_args_]\
10+
`cargo` [_options_] _script_ [_args_]\
1011
`cargo` [_options_] `--version`\
1112
`cargo` [_options_] `--list`\
1213
`cargo` [_options_] `--help`\
@@ -232,7 +233,11 @@ stable yet and may be subject to change.
232233
mkdir foo && cd foo
233234
cargo init .
234235

235-
6. Learn about a command's options and usage:
236+
6. Run a script
237+
238+
cargo task.rs --action
239+
240+
7. Learn about a command's options and usage:
236241

237242
cargo help clean
238243

src/doc/man/generated_txt/cargo-add.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,8 +164,9 @@ OPTIONS
164164

165165
Manifest Options
166166
--manifest-path path
167-
Path to the Cargo.toml file. By default, Cargo searches for the
168-
Cargo.toml file in the current directory or any parent directory.
167+
Path to the Cargo.toml or cargo script file. By default, Cargo
168+
searches for the Cargo.toml file in the current directory or any
169+
parent directory.
169170

170171
-p spec, --package spec
171172
Add dependencies to only the specified package.

src/doc/man/generated_txt/cargo-bench.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -335,8 +335,9 @@ OPTIONS
335335

336336
Manifest Options
337337
--manifest-path path
338-
Path to the Cargo.toml file. By default, Cargo searches for the
339-
Cargo.toml file in the current directory or any parent directory.
338+
Path to the Cargo.toml or cargo script file. By default, Cargo
339+
searches for the Cargo.toml file in the current directory or any
340+
parent directory.
340341

341342
--ignore-rust-version
342343
Ignore rust-version specification in packages.

src/doc/man/generated_txt/cargo-build.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -259,8 +259,9 @@ OPTIONS
259259

260260
Manifest Options
261261
--manifest-path path
262-
Path to the Cargo.toml file. By default, Cargo searches for the
263-
Cargo.toml file in the current directory or any parent directory.
262+
Path to the Cargo.toml or cargo script file. By default, Cargo
263+
searches for the Cargo.toml file in the current directory or any
264+
parent directory.
264265

265266
--ignore-rust-version
266267
Ignore rust-version specification in packages.

src/doc/man/generated_txt/cargo-check.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -253,8 +253,9 @@ OPTIONS
253253

254254
Manifest Options
255255
--manifest-path path
256-
Path to the Cargo.toml file. By default, Cargo searches for the
257-
Cargo.toml file in the current directory or any parent directory.
256+
Path to the Cargo.toml or cargo script file. By default, Cargo
257+
searches for the Cargo.toml file in the current directory or any
258+
parent directory.
258259

259260
--ignore-rust-version
260261
Ignore rust-version specification in packages.

src/doc/man/generated_txt/cargo-clean.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,9 @@ OPTIONS
104104

105105
Manifest Options
106106
--manifest-path path
107-
Path to the Cargo.toml file. By default, Cargo searches for the
108-
Cargo.toml file in the current directory or any parent directory.
107+
Path to the Cargo.toml or cargo script file. By default, Cargo
108+
searches for the Cargo.toml file in the current directory or any
109+
parent directory.
109110

110111
--locked
111112
Asserts that the exact same dependencies and versions are used as

src/doc/man/generated_txt/cargo-doc.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,8 +228,9 @@ OPTIONS
228228

229229
Manifest Options
230230
--manifest-path path
231-
Path to the Cargo.toml file. By default, Cargo searches for the
232-
Cargo.toml file in the current directory or any parent directory.
231+
Path to the Cargo.toml or cargo script file. By default, Cargo
232+
searches for the Cargo.toml file in the current directory or any
233+
parent directory.
233234

234235
--ignore-rust-version
235236
Ignore rust-version specification in packages.

src/doc/man/generated_txt/cargo-fetch.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,9 @@ OPTIONS
8181

8282
Manifest Options
8383
--manifest-path path
84-
Path to the Cargo.toml file. By default, Cargo searches for the
85-
Cargo.toml file in the current directory or any parent directory.
84+
Path to the Cargo.toml or cargo script file. By default, Cargo
85+
searches for the Cargo.toml file in the current directory or any
86+
parent directory.
8687

8788
--locked
8889
Asserts that the exact same dependencies and versions are used as

src/doc/man/generated_txt/cargo-fix.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -327,8 +327,9 @@ OPTIONS
327327

328328
Manifest Options
329329
--manifest-path path
330-
Path to the Cargo.toml file. By default, Cargo searches for the
331-
Cargo.toml file in the current directory or any parent directory.
330+
Path to the Cargo.toml or cargo script file. By default, Cargo
331+
searches for the Cargo.toml file in the current directory or any
332+
parent directory.
332333

333334
--ignore-rust-version
334335
Ignore rust-version specification in packages.

src/doc/man/generated_txt/cargo-generate-lockfile.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,9 @@ OPTIONS
4343

4444
Manifest Options
4545
--manifest-path path
46-
Path to the Cargo.toml file. By default, Cargo searches for the
47-
Cargo.toml file in the current directory or any parent directory.
46+
Path to the Cargo.toml or cargo script file. By default, Cargo
47+
searches for the Cargo.toml file in the current directory or any
48+
parent directory.
4849

4950
--ignore-rust-version
5051
Ignore rust-version specification in packages.

0 commit comments

Comments
 (0)