Skip to content

Commit be412aa

Browse files
committed
docs: unstable docs for cargo package --list json
1 parent 1c89fe2 commit be412aa

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/doc/src/reference/unstable.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ Each new feature described below should explain how to use it.
123123
* [package-workspace](#package-workspace) --- Allows for packaging and publishing multiple crates in a workspace.
124124
* [native-completions](#native-completions) --- Move cargo shell completions to native completions.
125125
* [warnings](#warnings) --- controls warning behavior; options for allowing or denying warnings.
126+
* [package list JSON format](#package-list-json-format) --- JSON format for `cargo package --list`.
126127

127128
## allow-features
128129

@@ -1882,6 +1883,16 @@ Specify which packages participate in [feature unification](../reference/feature
18821883
* `package` _(unimplemented)_: Dependency features are considered on a package-by-package basis,
18831884
preferring duplicate builds of dependencies when different sets of features are activated by the packages.
18841885

1886+
## package list JSON format
1887+
1888+
* Tracking Issue: [#11666](https://github.com/rust-lang/cargo/issues/11666)
1889+
1890+
The `--list json` flag value in `cargo package` emits machine-readable JSON
1891+
information about each file included in a package.
1892+
Requires `-Zunstable-options`.
1893+
See [`cargo package --list`](../commands/cargo-package.md#option-cargo-package---list[fmt])
1894+
for more information.
1895+
18851896
# Stabilized and removed features
18861897

18871898
## Compile progress

0 commit comments

Comments
 (0)