<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>src/doc/man/cargo-metadata.md - fork/cargo @ 0.87.0</title>
<meta name="description" content="src/doc/man/cargo-metadata.md in fork/cargo at 0.87.0.">
<meta property="og:title" content="src/doc/man/cargo-metadata.md - fork/cargo @ 0.87.0">
<meta property="og:description" content="src/doc/man/cargo-metadata.md in fork/cargo at 0.87.0.">
<meta property="og:type" content="website">
<meta property="og:site_name" content="git.julia.blue">
<link rel="stylesheet" href="/css/style.css?v=62">
<script type="module" src="/js/main.js?v=62"></script>
</head>
<body>
<main data-ref="0.87.0" data-tip="adf9b6ad14cfa10ff680d5806741a144f7163698">
<noscript>
  <div class="callout">
    <p>
      hey! this is a static git repo viewer. commit diffs, file history,
      older commits and other revisions won't load without javascript.
    </p>
    <p>
      you are still able to view source files on branch/tag tips,
      but the experience is degraded.
    </p>
  </div>
</noscript>
<header class="repo"><div>
<h1>fork/cargo</h1>
</div>
<pre class="clone">git clone https://git.julia.blue/fork/cargo</pre>
</header>
<p class="snapshot-commit"><span class="commit-author">Weihang Lo</span><span class="commit-message" data-commit="26f5f3f50ec692eac9efcc3e669387b90954b810">Fix the description of the `&quot;root&quot;` field of the `cargo metadata`'s output (#15182)</span><span class="snapshot-sha sha" data-commit="26f5f3f50ec692eac9efcc3e669387b90954b810">26f5f3f50</span><time datetime="2025-02-13T22:55:25+00:00" title="2025-02-13 22:55:25 +0000">2025-02-13</time></p>
<header class="topbar"><details class="switcher"><summary>0.87.0</summary><div class="menu"><strong>branches</strong><a href="/fork/cargo/ref/master/">master</a><strong>tags</strong><a class="current" href="/fork/cargo/ref/0.87.0/">0.87.0</a><a href="/fork/cargo/ref/0.88.0/">0.88.0</a><a href="/fork/cargo/ref/0.89.0/">0.89.0</a><a href="/fork/cargo/ref/0.90.0/">0.90.0</a><a href="/fork/cargo/ref/0.91.0/">0.91.0</a><a href="/fork/cargo/ref/0.92.0/">0.92.0</a><a href="/fork/cargo/ref/0.93.0/">0.93.0</a><a href="/fork/cargo/ref/home-0.5.12/">home-0.5.12</a><a class="all" href="/fork/cargo/refs">all refs →</a></div></details><nav class="crumbs"><a href="/fork/cargo/">cargo</a> / <a href="/fork/cargo/ref/0.87.0/tree/src/">src</a> / <a href="/fork/cargo/ref/0.87.0/tree/src/doc/">doc</a> / <a href="/fork/cargo/ref/0.87.0/tree/src/doc/man/">man</a> / <span class="cur">cargo-metadata.md</span></nav>
<span class="view-stats"><span>15.8 KiB</span><span>407 lines</span></span><span class="actions"><a class="raw" href="/fork/cargo/raw/a94d3005cc2c454a61985c3c18e691ddcc9269fb/src/doc/man/cargo-metadata.md">raw</a></span></header>
<div class="markdown-view"><input type="radio" name="markdown-view" id="markdown-rendered" checked><label for="markdown-rendered">rendered</label><input type="radio" name="markdown-view" id="markdown-code"><label for="markdown-code">code</label><section class="readme rendered"><h1>cargo-metadata(1)</h1>
<h2>NAME</h2>
<p>cargo-metadata --- Machine-readable metadata about the current package</p>
<h2>SYNOPSIS</h2>
<p><code>cargo metadata</code> [<em>options</em>]</p>
<h2>DESCRIPTION</h2>
<p>Output JSON to stdout containing information about the workspace members and
resolved dependencies of the current package.</p>
<p>The output format is subject to change in future versions of Cargo. It
is recommended to include the <code>--format-version</code> flag to future-proof your code
and ensure the output is in the format you are expecting. For more on the
expectations, see <a href="#compatibility">"Compatibility"</a>.</p>
<p>See the <a href="https://crates.io/crates/cargo_metadata">cargo_metadata crate</a>
for a Rust API for reading the metadata.</p>
<h2>OUTPUT FORMAT</h2>
<h3>Compatibility</h3>
<p>Within the same output format version, the compatibility is maintained, except
some scenarios. The following is a non-exhaustive list of changes that are not
considered as incompatible:</p>
<ul>
<li><strong>Adding new fields</strong> — New fields will be added when needed. Reserving this
helps Cargo evolve without bumping the format version too often.</li>
<li><strong>Adding new values for enum-like fields</strong> — Same as adding new fields. It
keeps metadata evolving without stagnation.</li>
<li><strong>Changing opaque representations</strong> — The inner representations of some
fields are implementation details. For example, fields related to
"Source ID" are treated as opaque identifiers to differentiate packages or
sources. Consumers shouldn't rely on those representations unless specified.</li>
</ul>
<h3>JSON format</h3>
<p>The JSON output has the following format:</p>
<pre class="language-javascript"><a-p>{</a-p>
    <a-c>/* Array of all packages in the workspace.
       It also includes all feature-enabled dependencies unless --no-deps is used.
    */</a-c>
    <a-s>&quot;packages&quot;</a-s>: <a-p>[</a-p>
        <a-p>{</a-p>
            <a-c>/* The name of the package. */</a-c>
            <a-s>&quot;name&quot;</a-s>: <a-s>&quot;my-package&quot;</a-s><a-p>,</a-p>
            <a-c>/* The version of the package. */</a-c>
            <a-s>&quot;version&quot;</a-s>: <a-s>&quot;0.1.0&quot;</a-s><a-p>,</a-p>
            <a-c>/* The Package ID for referring to the
               package within the document and as the `--package` argument to many commands
            */</a-c>
            <a-s>&quot;id&quot;</a-s>: <a-s>&quot;file:///path/to/my-package#0.1.0&quot;</a-s><a-p>,</a-p>
            <a-c>/* The license value from the manifest, or null. */</a-c>
            <a-s>&quot;license&quot;</a-s>: <a-s>&quot;MIT/Apache-2.0&quot;</a-s><a-p>,</a-p>
            <a-c>/* The license-file value from the manifest, or null. */</a-c>
            <a-s>&quot;license_file&quot;</a-s>: <a-s>&quot;LICENSE&quot;</a-s><a-p>,</a-p>
            <a-c>/* The description value from the manifest, or null. */</a-c>
            <a-s>&quot;description&quot;</a-s>: <a-s>&quot;Package description.&quot;</a-s><a-p>,</a-p>
            <a-c>/* The source ID of the package, an &quot;opaque&quot; identifier representing
               where a package is retrieved from. See &quot;Compatibility&quot; above for
               the stability guarantee.

               This is null for path dependencies and workspace members.

               For other dependencies, it is a string with the format:
               - &quot;registry+URL&quot; for registry-based dependencies.
                 Example: &quot;registry+https://github.com/rust-lang/crates.io-index&quot;
               - &quot;git+URL&quot; for git-based dependencies.
                 Example: &quot;git+https://github.com/rust-lang/cargo?rev=5e85ba14aaa20f8133863373404cb0af69eeef2c#5e85ba14aaa20f8133863373404cb0af69eeef2c&quot;
               - &quot;sparse+URL&quot; for dependencies from a sparse registry
                 Example: &quot;sparse+https://my-sparse-registry.org&quot;

               The value after the `+` is not explicitly defined, and may change
               between versions of Cargo and may not directly correlate to other
               things, such as registry definitions in a config file. New source
               kinds may be added in the future which will have different `+`
               prefixed identifiers.
            */</a-c>
            <a-s>&quot;source&quot;</a-s>: <a-co>null</a-co><a-p>,</a-p>
            <a-c>/* Array of dependencies declared in the package&#39;s manifest. */</a-c>
            <a-s>&quot;dependencies&quot;</a-s>: <a-p>[</a-p>
                <a-p>{</a-p>
                    <a-c>/* The name of the dependency. */</a-c>
                    <a-s>&quot;name&quot;</a-s>: <a-s>&quot;bitflags&quot;</a-s><a-p>,</a-p>
                    <a-c>/* The source ID of the dependency. May be null, see
                       description for the package source.
                    */</a-c>
                    <a-s>&quot;source&quot;</a-s>: <a-s>&quot;registry+https://github.com/rust-lang/crates.io-index&quot;</a-s><a-p>,</a-p>
                    <a-c>/* The version requirement for the dependency.
                       Dependencies without a version requirement have a value of &quot;*&quot;.
                    */</a-c>
                    <a-s>&quot;req&quot;</a-s>: <a-s>&quot;^1.0&quot;</a-s><a-p>,</a-p>
                    <a-c>/* The dependency kind.
                       &quot;dev&quot;, &quot;build&quot;, or null for a normal dependency.
                    */</a-c>
                    <a-s>&quot;kind&quot;</a-s>: <a-co>null</a-co><a-p>,</a-p>
                    <a-c>/* If the dependency is renamed, this is the new name for
                       the dependency as a string.  null if it is not renamed.
                    */</a-c>
                    <a-s>&quot;rename&quot;</a-s>: <a-co>null</a-co><a-p>,</a-p>
                    <a-c>/* Boolean of whether or not this is an optional dependency. */</a-c>
                    <a-s>&quot;optional&quot;</a-s>: <a-co>false</a-co><a-p>,</a-p>
                    <a-c>/* Boolean of whether or not default features are enabled. */</a-c>
                    <a-s>&quot;uses_default_features&quot;</a-s>: <a-co>true</a-co><a-p>,</a-p>
                    <a-c>/* Array of features enabled. */</a-c>
                    <a-s>&quot;features&quot;</a-s>: <a-p>[],</a-p>
                    <a-c>/* The target platform for the dependency.
                       null if not a target dependency.
                    */</a-c>
                    <a-s>&quot;target&quot;</a-s>: <a-s>&quot;cfg(windows)&quot;</a-s><a-p>,</a-p>
                    <a-c>/* The file system path for a local path dependency.
                       not present if not a path dependency.
                    */</a-c>
                    <a-s>&quot;path&quot;</a-s>: <a-s>&quot;/path/to/dep&quot;</a-s><a-p>,</a-p>
                    <a-c>/* 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).
                    */</a-c>
                    <a-s>&quot;registry&quot;</a-s>: <a-co>null</a-co><a-p>,</a-p>
                    <a-c>/* (unstable) Boolean flag of whether or not this is a pulbic
                       dependency. This field is only present when
                       `-Zpublic-dependency` is enabled.
                    */</a-c>
                    <a-s>&quot;public&quot;</a-s>: <a-co>false</a-co>
                <a-p>}</a-p>
            <a-p>],</a-p>
            <a-c>/* Array of Cargo targets. */</a-c>
            <a-s>&quot;targets&quot;</a-s>: <a-p>[</a-p>
                <a-p>{</a-p>
                    <a-c>/* Array of target kinds.
                       - lib targets list the `crate-type` values from the
                         manifest such as &quot;lib&quot;, &quot;rlib&quot;, &quot;dylib&quot;,
                         &quot;proc-macro&quot;, etc. (default [&quot;lib&quot;])
                       - binary is [&quot;bin&quot;]
                       - example is [&quot;example&quot;]
                       - integration test is [&quot;test&quot;]
                       - benchmark is [&quot;bench&quot;]
                       - build script is [&quot;custom-build&quot;]
                    */</a-c>
                    <a-s>&quot;kind&quot;</a-s>: <a-p>[</a-p>
                        <a-s>&quot;bin&quot;</a-s>
                    <a-p>],</a-p>
                    <a-c>/* Array of crate types.
                       - lib and example libraries list the `crate-type` values
                         from the manifest such as &quot;lib&quot;, &quot;rlib&quot;, &quot;dylib&quot;,
                         &quot;proc-macro&quot;, etc. (default [&quot;lib&quot;])
                       - all other target kinds are [&quot;bin&quot;]
                    */</a-c>
                    <a-s>&quot;crate_types&quot;</a-s>: <a-p>[</a-p>
                        <a-s>&quot;bin&quot;</a-s>
                    <a-p>],</a-p>
                    <a-c>/* The name of the target.
                       For lib targets, dashes will be replaced with underscores.
                    */</a-c>
                    <a-s>&quot;name&quot;</a-s>: <a-s>&quot;my-package&quot;</a-s><a-p>,</a-p>
                    <a-c>/* Absolute path to the root source file of the target. */</a-c>
                    <a-s>&quot;src_path&quot;</a-s>: <a-s>&quot;/path/to/my-package/src/main.rs&quot;</a-s><a-p>,</a-p>
                    <a-c>/* The Rust edition of the target.
                       Defaults to the package edition.
                    */</a-c>
                    <a-s>&quot;edition&quot;</a-s>: <a-s>&quot;2018&quot;</a-s><a-p>,</a-p>
                    <a-c>/* Array of required features.
                       This property is not included if no required features are set.
                    */</a-c>
                    <a-s>&quot;required-features&quot;</a-s>: <a-p>[</a-p><a-s>&quot;feat1&quot;</a-s><a-p>],</a-p>
                    <a-c>/* Whether the target should be documented by `cargo doc`. */</a-c>
                    <a-s>&quot;doc&quot;</a-s>: <a-co>true</a-co><a-p>,</a-p>
                    <a-c>/* Whether or not this target has doc tests enabled, and
                       the target is compatible with doc testing.
                    */</a-c>
                    <a-s>&quot;doctest&quot;</a-s>: <a-co>false</a-co><a-p>,</a-p>
                    <a-c>/* Whether or not this target should be built and run with `--test`
                    */</a-c>
                    <a-s>&quot;test&quot;</a-s>: <a-co>true</a-co>
                <a-p>}</a-p>
            <a-p>],</a-p>
            <a-c>/* Set of features defined for the package.
               Each feature maps to an array of features or dependencies it
               enables.
            */</a-c>
            <a-s>&quot;features&quot;</a-s>: <a-p>{</a-p>
                <a-s>&quot;default&quot;</a-s>: <a-p>[</a-p>
                    <a-s>&quot;feat1&quot;</a-s>
                <a-p>],</a-p>
                <a-s>&quot;feat1&quot;</a-s>: <a-p>[],</a-p>
                <a-s>&quot;feat2&quot;</a-s>: <a-p>[]</a-p>
            <a-p>},</a-p>
            <a-c>/* Absolute path to this package&#39;s manifest. */</a-c>
            <a-s>&quot;manifest_path&quot;</a-s>: <a-s>&quot;/path/to/my-package/Cargo.toml&quot;</a-s><a-p>,</a-p>
            <a-c>/* Package metadata.
               This is null if no metadata is specified.
            */</a-c>
            <a-s>&quot;metadata&quot;</a-s>: <a-p>{</a-p>
                <a-s>&quot;docs&quot;</a-s>: <a-p>{</a-p>
                    <a-s>&quot;rs&quot;</a-s>: <a-p>{</a-p>
                        <a-s>&quot;all-features&quot;</a-s>: <a-co>true</a-co>
                    <a-p>}</a-p>
                <a-p>}</a-p>
            <a-p>},</a-p>
            <a-c>/* List of registries to which this package may be published.
               Publishing is unrestricted if null, and forbidden if an empty array. */</a-c>
            <a-s>&quot;publish&quot;</a-s>: <a-p>[</a-p>
                <a-s>&quot;crates-io&quot;</a-s>
            <a-p>],</a-p>
            <a-c>/* Array of authors from the manifest.
               Empty array if no authors specified.
            */</a-c>
            <a-s>&quot;authors&quot;</a-s>: <a-p>[</a-p>
                <a-s>&quot;Jane Doe &lt;user@example.com&gt;&quot;</a-s>
            <a-p>],</a-p>
            <a-c>/* Array of categories from the manifest. */</a-c>
            <a-s>&quot;categories&quot;</a-s>: <a-p>[</a-p>
                <a-s>&quot;command-line-utilities&quot;</a-s>
            <a-p>],</a-p>
            <a-c>/* Optional string that is the default binary picked by cargo run. */</a-c>
            <a-s>&quot;default_run&quot;</a-s>: <a-co>null</a-co><a-p>,</a-p>
            <a-c>/* Optional string that is the minimum supported rust version */</a-c>
            <a-s>&quot;rust_version&quot;</a-s>: <a-s>&quot;1.56&quot;</a-s><a-p>,</a-p>
            <a-c>/* Array of keywords from the manifest. */</a-c>
            <a-s>&quot;keywords&quot;</a-s>: <a-p>[</a-p>
                <a-s>&quot;cli&quot;</a-s>
            <a-p>],</a-p>
            <a-c>/* The readme value from the manifest or null if not specified. */</a-c>
            <a-s>&quot;readme&quot;</a-s>: <a-s>&quot;README.md&quot;</a-s><a-p>,</a-p>
            <a-c>/* The repository value from the manifest or null if not specified. */</a-c>
            <a-s>&quot;repository&quot;</a-s>: <a-s>&quot;https://github.com/rust-lang/cargo&quot;</a-s><a-p>,</a-p>
            <a-c>/* The homepage value from the manifest or null if not specified. */</a-c>
            <a-s>&quot;homepage&quot;</a-s>: <a-s>&quot;https://rust-lang.org&quot;</a-s><a-p>,</a-p>
            <a-c>/* The documentation value from the manifest or null if not specified. */</a-c>
            <a-s>&quot;documentation&quot;</a-s>: <a-s>&quot;https://doc.rust-lang.org/stable/std&quot;</a-s><a-p>,</a-p>
            <a-c>/* The default edition of the package.
               Note that individual targets may have different editions.
            */</a-c>
            <a-s>&quot;edition&quot;</a-s>: <a-s>&quot;2018&quot;</a-s><a-p>,</a-p>
            <a-c>/* Optional string that is the name of a native library the package
               is linking to.
            */</a-c>
            <a-s>&quot;links&quot;</a-s>: <a-co>null</a-co><a-p>,</a-p>
        <a-p>}</a-p>
    <a-p>],</a-p>
    <a-c>/* Array of members of the workspace.
       Each entry is the Package ID for the package.
    */</a-c>
    <a-s>&quot;workspace_members&quot;</a-s>: <a-p>[</a-p>
        <a-s>&quot;file:///path/to/my-package#0.1.0&quot;</a-s><a-p>,</a-p>
    <a-p>],</a-p>
    <a-c>/* Array of default members of the workspace.
       Each entry is the Package ID for the package.
    */</a-c>
    <a-s>&quot;workspace_default_members&quot;</a-s>: <a-p>[</a-p>
        <a-s>&quot;file:///path/to/my-package#0.1.0&quot;</a-s><a-p>,</a-p>
    <a-p>],</a-p>
    <a-c>// The resolved dependency graph for the entire workspace. The enabled</a-c>
    <a-c>// features are based on the enabled features for the &quot;current&quot; package.</a-c>
    <a-c>// Inactivated optional dependencies are not listed.</a-c>
    <a-c>//</a-c>
    <a-c>// This is null if --no-deps is specified.</a-c>
    <a-c>//</a-c>
    <a-c>// By default, this includes all dependencies for all target platforms.</a-c>
    <a-c>// The `--filter-platform` flag may be used to narrow to a specific</a-c>
    <a-c>// target triple.</a-c>
    <a-s>&quot;resolve&quot;</a-s>: <a-p>{</a-p>
        <a-c>/* Array of nodes within the dependency graph.
           Each node is a package.
        */</a-c>
        <a-s>&quot;nodes&quot;</a-s>: <a-p>[</a-p>
            <a-p>{</a-p>
                <a-c>/* The Package ID of this node. */</a-c>
                <a-s>&quot;id&quot;</a-s>: <a-s>&quot;file:///path/to/my-package#0.1.0&quot;</a-s><a-p>,</a-p>
                <a-c>/* The dependencies of this package, an array of Package IDs. */</a-c>
                <a-s>&quot;dependencies&quot;</a-s>: <a-p>[</a-p>
                    <a-s>&quot;https://github.com/rust-lang/crates.io-index#bitflags@1.0.4&quot;</a-s>
                <a-p>],</a-p>
                <a-c>/* The dependencies of this package. This is an alternative to
                   &quot;dependencies&quot; which contains additional information. In
                   particular, this handles renamed dependencies.
                */</a-c>
                <a-s>&quot;deps&quot;</a-s>: <a-p>[</a-p>
                    <a-p>{</a-p>
                        <a-c>/* The name of the dependency&#39;s library target.
                           If this is a renamed dependency, this is the new
                           name.
                        */</a-c>
                        <a-s>&quot;name&quot;</a-s>: <a-s>&quot;bitflags&quot;</a-s><a-p>,</a-p>
                        <a-c>/* The Package ID of the dependency. */</a-c>
                        <a-s>&quot;pkg&quot;</a-s>: <a-s>&quot;https://github.com/rust-lang/crates.io-index#bitflags@1.0.4&quot;</a-s>
                        <a-c>/* Array of dependency kinds. Added in Cargo 1.40. */</a-c>
                        <a-s>&quot;dep_kinds&quot;</a-s>: <a-p>[</a-p>
                            <a-p>{</a-p>
                                <a-c>/* The dependency kind.
                                   &quot;dev&quot;, &quot;build&quot;, or null for a normal dependency.
                                */</a-c>
                                <a-s>&quot;kind&quot;</a-s>: <a-co>null</a-co><a-p>,</a-p>
                                <a-c>/* The target platform for the dependency.
                                   null if not a target dependency.
                                */</a-c>
                                <a-s>&quot;target&quot;</a-s>: <a-s>&quot;cfg(windows)&quot;</a-s>
                            <a-p>}</a-p>
                        <a-p>]</a-p>
                    <a-p>}</a-p>
                <a-p>],</a-p>
                <a-c>/* Array of features enabled on this package. */</a-c>
                <a-s>&quot;features&quot;</a-s>: <a-p>[</a-p>
                    <a-s>&quot;default&quot;</a-s>
                <a-p>]</a-p>
            <a-p>}</a-p>
        <a-p>],</a-p>
        <a-c>/* The package in the current working directory (if --manifest-path is not given).
           This is null if there is a virtual workspace. Otherwise it is
           the Package ID of the package.
        */</a-c>
        <a-s>&quot;root&quot;</a-s>: <a-s>&quot;file:///path/to/my-package#0.1.0&quot;</a-s><a-p>,</a-p>
    <a-p>},</a-p>
    <a-c>/* The absolute path to the build directory where Cargo places its output. */</a-c>
    <a-s>&quot;target_directory&quot;</a-s>: <a-s>&quot;/path/to/my-package/target&quot;</a-s><a-p>,</a-p>
    <a-c>/* The version of the schema for this metadata structure.
       This will be changed if incompatible changes are ever made.
    */</a-c>
    <a-s>&quot;version&quot;</a-s>: <a-n>1</a-n><a-p>,</a-p>
    <a-c>/* The absolute path to the root of the workspace. */</a-c>
    <a-s>&quot;workspace_root&quot;</a-s>: <a-s>&quot;/path/to/my-package&quot;</a-s>
    <a-c>/* Workspace metadata.
       This is null if no metadata is specified. */</a-c>
    <a-s>&quot;metadata&quot;</a-s>: <a-p>{</a-p>
        <a-s>&quot;docs&quot;</a-s>: <a-p>{</a-p>
            <a-s>&quot;rs&quot;</a-s>: <a-p>{</a-p>
                <a-s>&quot;all-features&quot;</a-s>: <a-co>true</a-co>
            <a-p>}</a-p>
        <a-p>}</a-p>
    <a-p>}</a-p>
<a-p>}</a-p></pre>
<p>Notes:</p>
<ul>
<li>For <code>"id"</code> field syntax, see <a href="../reference/pkgid-spec.html">Package ID Specifications</a> in the reference.</li>
</ul>
<h2>OPTIONS</h2>
<h3>Output Options</h3>
<p>{{#options}}</p>
<p>{{#option "<code>--no-deps</code>" }}
Output information only about the workspace members and don't fetch
dependencies.
{{/option}}</p>
<p>{{#option "<code>--format-version</code> <em>version</em>" }}
Specify the version of the output format to use. Currently <code>1</code> is the only
possible value.
{{/option}}</p>
<p>{{#option "<code>--filter-platform</code> <em>triple</em>" }}
This filters the <code>resolve</code> output to only include dependencies for the
given <a href="../appendix/glossary.html#target">target triple</a>.
Without this flag, the resolve includes all targets.</p>
<p>Note that the dependencies listed in the "packages" array still includes all
dependencies. Each package definition is intended to be an unaltered
reproduction of the information within <code>Cargo.toml</code>.
{{/option}}</p>
<p>{{/options}}</p>
<p>{{&gt; section-features }}</p>
<h3>Display Options</h3>
<p>{{#options}}
{{&gt; options-display }}
{{/options}}</p>
<h3>Manifest Options</h3>
<p>{{#options}}
{{&gt; options-manifest-path }}</p>
<p>{{&gt; options-locked }}</p>
<p>{{&gt; options-lockfile-path }}
{{/options}}</p>
<p>{{&gt; section-options-common }}</p>
<p>{{&gt; section-environment }}</p>
<p>{{&gt; section-exit-status }}</p>
<h2>EXAMPLES</h2>
<ol>
<li>
<p>Output JSON about the current package:</p>
<pre><code>cargo metadata --format-version=1
</code></pre>
</li>
</ol>
<h2>SEE ALSO</h2>
<p>{{man "cargo" 1}}, {{man "cargo-pkgid" 1}}, <a href="../reference/pkgid-spec.html">Package ID Specifications</a>, <a href="../reference/external-tools.html#json-messages">JSON messages</a></p>
</section><div class="code-panel"><pre class="code src language-markdown"><span class="code-line"><a class="ln" id="L1" href="#L1">1</a><span class="code-text"><a-p>#</a-p> <a-tt>cargo-metadata(1)</a-tt></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L2" href="#L2">2</a><span class="code-text"></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L3" href="#L3">3</a><span class="code-text"><a-p>##</a-p> <a-tt>NAME</a-tt></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L4" href="#L4">4</a><span class="code-text"></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L5" href="#L5">5</a><span class="code-text">cargo-metadata --- Machine-readable metadata about the current package</span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L6" href="#L6">6</a><span class="code-text"></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L7" href="#L7">7</a><span class="code-text"><a-p>##</a-p> <a-tt>SYNOPSIS</a-tt></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L8" href="#L8">8</a><span class="code-text"></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L9" href="#L9">9</a><span class="code-text">`cargo metadata` [_options_]</span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L10" href="#L10">10</a><span class="code-text"></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L11" href="#L11">11</a><span class="code-text"><a-p>##</a-p> <a-tt>DESCRIPTION</a-tt></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L12" href="#L12">12</a><span class="code-text"></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L13" href="#L13">13</a><span class="code-text">Output JSON to stdout containing information about the workspace members and</span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L14" href="#L14">14</a><span class="code-text">resolved dependencies of the current package.</span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L15" href="#L15">15</a><span class="code-text"></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L16" href="#L16">16</a><span class="code-text">The output format is subject to change in future versions of Cargo. It</span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L17" href="#L17">17</a><span class="code-text">is recommended to include the `--format-version` flag to future-proof your code</span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L18" href="#L18">18</a><span class="code-text">and ensure the output is in the format you are expecting. For more on the</span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L19" href="#L19">19</a><span class="code-text">expectations, see [&quot;Compatibility&quot;](#compatibility).</span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L20" href="#L20">20</a><span class="code-text"></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L21" href="#L21">21</a><span class="code-text">See the [cargo_metadata crate](https://crates.io/crates/cargo_metadata)</span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L22" href="#L22">22</a><span class="code-text">for a Rust API for reading the metadata.</span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L23" href="#L23">23</a><span class="code-text"></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L24" href="#L24">24</a><span class="code-text"><a-p>##</a-p> <a-tt>OUTPUT FORMAT</a-tt></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L25" href="#L25">25</a><span class="code-text"></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L26" href="#L26">26</a><span class="code-text"><a-p>###</a-p> <a-tt>Compatibility</a-tt></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L27" href="#L27">27</a><span class="code-text"></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L28" href="#L28">28</a><span class="code-text">Within the same output format version, the compatibility is maintained, except</span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L29" href="#L29">29</a><span class="code-text">some scenarios. The following is a non-exhaustive list of changes that are not</span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L30" href="#L30">30</a><span class="code-text">considered as incompatible:</span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L31" href="#L31">31</a><span class="code-text"></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L32" href="#L32">32</a><span class="code-text"><a-p>* </a-p>**Adding new fields** — New fields will be added when needed. Reserving this</span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L33" href="#L33">33</a><span class="code-text"><a-p>  </a-p>helps Cargo evolve without bumping the format version too often.</span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L34" href="#L34">34</a><span class="code-text"><a-p>* </a-p>**Adding new values for enum-like fields** — Same as adding new fields. It</span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L35" href="#L35">35</a><span class="code-text"><a-p>  </a-p>keeps metadata evolving without stagnation.</span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L36" href="#L36">36</a><span class="code-text"><a-p>* </a-p>**Changing opaque representations** — The inner representations of some</span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L37" href="#L37">37</a><span class="code-text"><a-p>  </a-p>fields are implementation details. For example, fields related to</span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L38" href="#L38">38</a><span class="code-text"><a-p>  </a-p>&quot;Source ID&quot; are treated as opaque identifiers to differentiate packages or</span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L39" href="#L39">39</a><span class="code-text"><a-p>  </a-p>sources. Consumers shouldn&#39;t rely on those representations unless specified.</span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L40" href="#L40">40</a><span class="code-text"></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L41" href="#L41">41</a><span class="code-text"><a-p>### </a-p><a-tt>JSON format</a-tt></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L42" href="#L42">42</a><span class="code-text"></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L43" href="#L43">43</a><span class="code-text"><a-p>The JSON output has the following format:</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L44" href="#L44">44</a><span class="code-text"></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L45" href="#L45">45</a><span class="code-text"><a-p>```</a-p><a-tl>javascript</a-tl></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L46" href="#L46">46</a><span class="code-text"><a-p>{</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L47" href="#L47">47</a><span class="code-text"><a-p>    </a-p><a-c>/* Array of all packages in the workspace.</a-c></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L48" href="#L48">48</a><span class="code-text"><a-p>       It also includes all feature-enabled dependencies unless --no-deps is used.</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L49" href="#L49">49</a><span class="code-text"><a-p>    */</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L50" href="#L50">50</a><span class="code-text"><a-p>    </a-p><a-s>&quot;packages&quot;</a-s><a-p>: [</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L51" href="#L51">51</a><span class="code-text"><a-p>        {</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L52" href="#L52">52</a><span class="code-text"><a-p>            </a-p><a-c>/* The name of the package. */</a-c></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L53" href="#L53">53</a><span class="code-text"><a-p>            </a-p><a-s>&quot;name&quot;</a-s><a-p>: </a-p><a-s>&quot;my-package&quot;</a-s><a-p>,</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L54" href="#L54">54</a><span class="code-text"><a-p>            </a-p><a-c>/* The version of the package. */</a-c></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L55" href="#L55">55</a><span class="code-text"><a-p>            </a-p><a-s>&quot;version&quot;</a-s><a-p>: </a-p><a-s>&quot;0.1.0&quot;</a-s><a-p>,</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L56" href="#L56">56</a><span class="code-text"><a-p>            </a-p><a-c>/* The Package ID for referring to the</a-c></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L57" href="#L57">57</a><span class="code-text"><a-p>               package within the document and as the `--package` argument to many commands</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L58" href="#L58">58</a><span class="code-text"><a-p>            */</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L59" href="#L59">59</a><span class="code-text"><a-p>            </a-p><a-s>&quot;id&quot;</a-s><a-p>: </a-p><a-s>&quot;file:///path/to/my-package#0.1.0&quot;</a-s><a-p>,</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L60" href="#L60">60</a><span class="code-text"><a-p>            </a-p><a-c>/* The license value from the manifest, or null. */</a-c></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L61" href="#L61">61</a><span class="code-text"><a-p>            </a-p><a-s>&quot;license&quot;</a-s><a-p>: </a-p><a-s>&quot;MIT/Apache-2.0&quot;</a-s><a-p>,</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L62" href="#L62">62</a><span class="code-text"><a-p>            </a-p><a-c>/* The license-file value from the manifest, or null. */</a-c></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L63" href="#L63">63</a><span class="code-text"><a-p>            </a-p><a-s>&quot;license_file&quot;</a-s><a-p>: </a-p><a-s>&quot;LICENSE&quot;</a-s><a-p>,</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L64" href="#L64">64</a><span class="code-text"><a-p>            </a-p><a-c>/* The description value from the manifest, or null. */</a-c></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L65" href="#L65">65</a><span class="code-text"><a-p>            </a-p><a-s>&quot;description&quot;</a-s><a-p>: </a-p><a-s>&quot;Package description.&quot;</a-s><a-p>,</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L66" href="#L66">66</a><span class="code-text"><a-p>            </a-p><a-c>/* The source ID of the package, an &quot;opaque&quot; identifier representing</a-c></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L67" href="#L67">67</a><span class="code-text"><a-p>               where a package is retrieved from. See &quot;Compatibility&quot; above for</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L68" href="#L68">68</a><span class="code-text"><a-p>               the stability guarantee.</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L69" href="#L69">69</a><span class="code-text"></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L70" href="#L70">70</a><span class="code-text"><a-p>               This is null for path dependencies and workspace members.</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L71" href="#L71">71</a><span class="code-text"></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L72" href="#L72">72</a><span class="code-text"><a-p>               For other dependencies, it is a string with the format:</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L73" href="#L73">73</a><span class="code-text"><a-p>               - &quot;registry+URL&quot; for registry-based dependencies.</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L74" href="#L74">74</a><span class="code-text"><a-p>                 Example: &quot;registry+https://github.com/rust-lang/crates.io-index&quot;</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L75" href="#L75">75</a><span class="code-text"><a-p>               - &quot;git+URL&quot; for git-based dependencies.</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L76" href="#L76">76</a><span class="code-text"><a-p>                 Example: &quot;git+https://github.com/rust-lang/cargo?rev=5e85ba14aaa20f8133863373404cb0af69eeef2c#5e85ba14aaa20f8133863373404cb0af69eeef2c&quot;</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L77" href="#L77">77</a><span class="code-text"><a-p>               - &quot;sparse+URL&quot; for dependencies from a sparse registry</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L78" href="#L78">78</a><span class="code-text"><a-p>                 Example: &quot;sparse+https://my-sparse-registry.org&quot;</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L79" href="#L79">79</a><span class="code-text"></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L80" href="#L80">80</a><span class="code-text"><a-p>               The value after the `+` is not explicitly defined, and may change</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L81" href="#L81">81</a><span class="code-text"><a-p>               between versions of Cargo and may not directly correlate to other</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L82" href="#L82">82</a><span class="code-text"><a-p>               things, such as registry definitions in a config file. New source</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L83" href="#L83">83</a><span class="code-text"><a-p>               kinds may be added in the future which will have different `+`</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L84" href="#L84">84</a><span class="code-text"><a-p>               prefixed identifiers.</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L85" href="#L85">85</a><span class="code-text"><a-p>            */</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L86" href="#L86">86</a><span class="code-text"><a-p>            </a-p><a-s>&quot;source&quot;</a-s><a-p>: </a-p><a-co>null</a-co><a-p>,</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L87" href="#L87">87</a><span class="code-text"><a-p>            </a-p><a-c>/* Array of dependencies declared in the package&#39;s manifest. */</a-c></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L88" href="#L88">88</a><span class="code-text"><a-p>            </a-p><a-s>&quot;dependencies&quot;</a-s><a-p>: [</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L89" href="#L89">89</a><span class="code-text"><a-p>                {</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L90" href="#L90">90</a><span class="code-text"><a-p>                    </a-p><a-c>/* The name of the dependency. */</a-c></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L91" href="#L91">91</a><span class="code-text"><a-p>                    </a-p><a-s>&quot;name&quot;</a-s><a-p>: </a-p><a-s>&quot;bitflags&quot;</a-s><a-p>,</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L92" href="#L92">92</a><span class="code-text"><a-p>                    </a-p><a-c>/* The source ID of the dependency. May be null, see</a-c></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L93" href="#L93">93</a><span class="code-text"><a-p>                       description for the package source.</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L94" href="#L94">94</a><span class="code-text"><a-p>                    */</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L95" href="#L95">95</a><span class="code-text"><a-p>                    </a-p><a-s>&quot;source&quot;</a-s><a-p>: </a-p><a-s>&quot;registry+https://github.com/rust-lang/crates.io-index&quot;</a-s><a-p>,</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L96" href="#L96">96</a><span class="code-text"><a-p>                    </a-p><a-c>/* The version requirement for the dependency.</a-c></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L97" href="#L97">97</a><span class="code-text"><a-p>                       Dependencies without a version requirement have a value of &quot;*&quot;.</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L98" href="#L98">98</a><span class="code-text"><a-p>                    */</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L99" href="#L99">99</a><span class="code-text"><a-p>                    </a-p><a-s>&quot;req&quot;</a-s><a-p>: </a-p><a-s>&quot;^1.0&quot;</a-s><a-p>,</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L100" href="#L100">100</a><span class="code-text"><a-p>                    </a-p><a-c>/* The dependency kind.</a-c></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L101" href="#L101">101</a><span class="code-text"><a-p>                       &quot;dev&quot;, &quot;build&quot;, or null for a normal dependency.</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L102" href="#L102">102</a><span class="code-text"><a-p>                    */</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L103" href="#L103">103</a><span class="code-text"><a-p>                    </a-p><a-s>&quot;kind&quot;</a-s><a-p>: </a-p><a-co>null</a-co><a-p>,</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L104" href="#L104">104</a><span class="code-text"><a-p>                    </a-p><a-c>/* If the dependency is renamed, this is the new name for</a-c></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L105" href="#L105">105</a><span class="code-text"><a-p>                       the dependency as a string.  null if it is not renamed.</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L106" href="#L106">106</a><span class="code-text"><a-p>                    */</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L107" href="#L107">107</a><span class="code-text"><a-p>                    </a-p><a-s>&quot;rename&quot;</a-s><a-p>: </a-p><a-co>null</a-co><a-p>,</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L108" href="#L108">108</a><span class="code-text"><a-p>                    </a-p><a-c>/* Boolean of whether or not this is an optional dependency. */</a-c></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L109" href="#L109">109</a><span class="code-text"><a-p>                    </a-p><a-s>&quot;optional&quot;</a-s><a-p>: </a-p><a-co>false</a-co><a-p>,</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L110" href="#L110">110</a><span class="code-text"><a-p>                    </a-p><a-c>/* Boolean of whether or not default features are enabled. */</a-c></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L111" href="#L111">111</a><span class="code-text"><a-p>                    </a-p><a-s>&quot;uses_default_features&quot;</a-s><a-p>: </a-p><a-co>true</a-co><a-p>,</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L112" href="#L112">112</a><span class="code-text"><a-p>                    </a-p><a-c>/* Array of features enabled. */</a-c></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L113" href="#L113">113</a><span class="code-text"><a-p>                    </a-p><a-s>&quot;features&quot;</a-s><a-p>: [],</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L114" href="#L114">114</a><span class="code-text"><a-p>                    </a-p><a-c>/* The target platform for the dependency.</a-c></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L115" href="#L115">115</a><span class="code-text"><a-p>                       null if not a target dependency.</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L116" href="#L116">116</a><span class="code-text"><a-p>                    */</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L117" href="#L117">117</a><span class="code-text"><a-p>                    </a-p><a-s>&quot;target&quot;</a-s><a-p>: </a-p><a-s>&quot;cfg(windows)&quot;</a-s><a-p>,</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L118" href="#L118">118</a><span class="code-text"><a-p>                    </a-p><a-c>/* The file system path for a local path dependency.</a-c></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L119" href="#L119">119</a><span class="code-text"><a-p>                       not present if not a path dependency.</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L120" href="#L120">120</a><span class="code-text"><a-p>                    */</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L121" href="#L121">121</a><span class="code-text"><a-p>                    </a-p><a-s>&quot;path&quot;</a-s><a-p>: </a-p><a-s>&quot;/path/to/dep&quot;</a-s><a-p>,</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L122" href="#L122">122</a><span class="code-text"><a-p>                    </a-p><a-c>/* A string of the URL of the registry this dependency is from.</a-c></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L123" href="#L123">123</a><span class="code-text"><a-p>                       If not specified or null, the dependency is from the default</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L124" href="#L124">124</a><span class="code-text"><a-p>                       registry (crates.io).</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L125" href="#L125">125</a><span class="code-text"><a-p>                    */</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L126" href="#L126">126</a><span class="code-text"><a-p>                    </a-p><a-s>&quot;registry&quot;</a-s><a-p>: </a-p><a-co>null</a-co><a-p>,</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L127" href="#L127">127</a><span class="code-text"><a-p>                    </a-p><a-c>/* (unstable) Boolean flag of whether or not this is a pulbic</a-c></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L128" href="#L128">128</a><span class="code-text"><a-p>                       dependency. This field is only present when</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L129" href="#L129">129</a><span class="code-text"><a-p>                       `-Zpublic-dependency` is enabled.</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L130" href="#L130">130</a><span class="code-text"><a-p>                    */</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L131" href="#L131">131</a><span class="code-text"><a-p>                    </a-p><a-s>&quot;public&quot;</a-s><a-p>: </a-p><a-co>false</a-co></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L132" href="#L132">132</a><span class="code-text"><a-p>                }</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L133" href="#L133">133</a><span class="code-text"><a-p>            ],</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L134" href="#L134">134</a><span class="code-text"><a-p>            </a-p><a-c>/* Array of Cargo targets. */</a-c></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L135" href="#L135">135</a><span class="code-text"><a-p>            </a-p><a-s>&quot;targets&quot;</a-s><a-p>: [</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L136" href="#L136">136</a><span class="code-text"><a-p>                {</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L137" href="#L137">137</a><span class="code-text"><a-p>                    </a-p><a-c>/* Array of target kinds.</a-c></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L138" href="#L138">138</a><span class="code-text"><a-p>                       - lib targets list the `crate-type` values from the</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L139" href="#L139">139</a><span class="code-text"><a-p>                         manifest such as &quot;lib&quot;, &quot;rlib&quot;, &quot;dylib&quot;,</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L140" href="#L140">140</a><span class="code-text"><a-p>                         &quot;proc-macro&quot;, etc. (default [&quot;lib&quot;])</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L141" href="#L141">141</a><span class="code-text"><a-p>                       - binary is [&quot;bin&quot;]</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L142" href="#L142">142</a><span class="code-text"><a-p>                       - example is [&quot;example&quot;]</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L143" href="#L143">143</a><span class="code-text"><a-p>                       - integration test is [&quot;test&quot;]</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L144" href="#L144">144</a><span class="code-text"><a-p>                       - benchmark is [&quot;bench&quot;]</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L145" href="#L145">145</a><span class="code-text"><a-p>                       - build script is [&quot;custom-build&quot;]</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L146" href="#L146">146</a><span class="code-text"><a-p>                    */</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L147" href="#L147">147</a><span class="code-text"><a-p>                    </a-p><a-s>&quot;kind&quot;</a-s><a-p>: [</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L148" href="#L148">148</a><span class="code-text"><a-p>                        </a-p><a-s>&quot;bin&quot;</a-s></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L149" href="#L149">149</a><span class="code-text"><a-p>                    ],</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L150" href="#L150">150</a><span class="code-text"><a-p>                    </a-p><a-c>/* Array of crate types.</a-c></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L151" href="#L151">151</a><span class="code-text"><a-p>                       - lib and example libraries list the `crate-type` values</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L152" href="#L152">152</a><span class="code-text"><a-p>                         from the manifest such as &quot;lib&quot;, &quot;rlib&quot;, &quot;dylib&quot;,</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L153" href="#L153">153</a><span class="code-text"><a-p>                         &quot;proc-macro&quot;, etc. (default [&quot;lib&quot;])</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L154" href="#L154">154</a><span class="code-text"><a-p>                       - all other target kinds are [&quot;bin&quot;]</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L155" href="#L155">155</a><span class="code-text"><a-p>                    */</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L156" href="#L156">156</a><span class="code-text"><a-p>                    </a-p><a-s>&quot;crate_types&quot;</a-s><a-p>: [</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L157" href="#L157">157</a><span class="code-text"><a-p>                        </a-p><a-s>&quot;bin&quot;</a-s></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L158" href="#L158">158</a><span class="code-text"><a-p>                    ],</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L159" href="#L159">159</a><span class="code-text"><a-p>                    </a-p><a-c>/* The name of the target.</a-c></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L160" href="#L160">160</a><span class="code-text"><a-p>                       For lib targets, dashes will be replaced with underscores.</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L161" href="#L161">161</a><span class="code-text"><a-p>                    */</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L162" href="#L162">162</a><span class="code-text"><a-p>                    </a-p><a-s>&quot;name&quot;</a-s><a-p>: </a-p><a-s>&quot;my-package&quot;</a-s><a-p>,</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L163" href="#L163">163</a><span class="code-text"><a-p>                    </a-p><a-c>/* Absolute path to the root source file of the target. */</a-c></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L164" href="#L164">164</a><span class="code-text"><a-p>                    </a-p><a-s>&quot;src_path&quot;</a-s><a-p>: </a-p><a-s>&quot;/path/to/my-package/src/main.rs&quot;</a-s><a-p>,</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L165" href="#L165">165</a><span class="code-text"><a-p>                    </a-p><a-c>/* The Rust edition of the target.</a-c></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L166" href="#L166">166</a><span class="code-text"><a-p>                       Defaults to the package edition.</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L167" href="#L167">167</a><span class="code-text"><a-p>                    */</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L168" href="#L168">168</a><span class="code-text"><a-p>                    </a-p><a-s>&quot;edition&quot;</a-s><a-p>: </a-p><a-s>&quot;2018&quot;</a-s><a-p>,</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L169" href="#L169">169</a><span class="code-text"><a-p>                    </a-p><a-c>/* Array of required features.</a-c></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L170" href="#L170">170</a><span class="code-text"><a-p>                       This property is not included if no required features are set.</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L171" href="#L171">171</a><span class="code-text"><a-p>                    */</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L172" href="#L172">172</a><span class="code-text"><a-p>                    </a-p><a-s>&quot;required-features&quot;</a-s><a-p>: [</a-p><a-s>&quot;feat1&quot;</a-s><a-p>],</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L173" href="#L173">173</a><span class="code-text"><a-p>                    </a-p><a-c>/* Whether the target should be documented by `cargo doc`. */</a-c></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L174" href="#L174">174</a><span class="code-text"><a-p>                    </a-p><a-s>&quot;doc&quot;</a-s><a-p>: </a-p><a-co>true</a-co><a-p>,</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L175" href="#L175">175</a><span class="code-text"><a-p>                    </a-p><a-c>/* Whether or not this target has doc tests enabled, and</a-c></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L176" href="#L176">176</a><span class="code-text"><a-p>                       the target is compatible with doc testing.</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L177" href="#L177">177</a><span class="code-text"><a-p>                    */</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L178" href="#L178">178</a><span class="code-text"><a-p>                    </a-p><a-s>&quot;doctest&quot;</a-s><a-p>: </a-p><a-co>false</a-co><a-p>,</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L179" href="#L179">179</a><span class="code-text"><a-p>                    </a-p><a-c>/* Whether or not this target should be built and run with `--test`</a-c></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L180" href="#L180">180</a><span class="code-text"><a-p>                    */</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L181" href="#L181">181</a><span class="code-text"><a-p>                    </a-p><a-s>&quot;test&quot;</a-s><a-p>: </a-p><a-co>true</a-co></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L182" href="#L182">182</a><span class="code-text"><a-p>                }</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L183" href="#L183">183</a><span class="code-text"><a-p>            ],</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L184" href="#L184">184</a><span class="code-text"><a-p>            </a-p><a-c>/* Set of features defined for the package.</a-c></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L185" href="#L185">185</a><span class="code-text"><a-p>               Each feature maps to an array of features or dependencies it</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L186" href="#L186">186</a><span class="code-text"><a-p>               enables.</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L187" href="#L187">187</a><span class="code-text"><a-p>            */</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L188" href="#L188">188</a><span class="code-text"><a-p>            </a-p><a-s>&quot;features&quot;</a-s><a-p>: {</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L189" href="#L189">189</a><span class="code-text"><a-p>                </a-p><a-s>&quot;default&quot;</a-s><a-p>: [</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L190" href="#L190">190</a><span class="code-text"><a-p>                    </a-p><a-s>&quot;feat1&quot;</a-s></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L191" href="#L191">191</a><span class="code-text"><a-p>                ],</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L192" href="#L192">192</a><span class="code-text"><a-p>                </a-p><a-s>&quot;feat1&quot;</a-s><a-p>: [],</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L193" href="#L193">193</a><span class="code-text"><a-p>                </a-p><a-s>&quot;feat2&quot;</a-s><a-p>: []</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L194" href="#L194">194</a><span class="code-text"><a-p>            },</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L195" href="#L195">195</a><span class="code-text"><a-p>            </a-p><a-c>/* Absolute path to this package&#39;s manifest. */</a-c></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L196" href="#L196">196</a><span class="code-text"><a-p>            </a-p><a-s>&quot;manifest_path&quot;</a-s><a-p>: </a-p><a-s>&quot;/path/to/my-package/Cargo.toml&quot;</a-s><a-p>,</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L197" href="#L197">197</a><span class="code-text"><a-p>            </a-p><a-c>/* Package metadata.</a-c></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L198" href="#L198">198</a><span class="code-text"><a-p>               This is null if no metadata is specified.</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L199" href="#L199">199</a><span class="code-text"><a-p>            */</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L200" href="#L200">200</a><span class="code-text"><a-p>            </a-p><a-s>&quot;metadata&quot;</a-s><a-p>: {</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L201" href="#L201">201</a><span class="code-text"><a-p>                </a-p><a-s>&quot;docs&quot;</a-s><a-p>: {</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L202" href="#L202">202</a><span class="code-text"><a-p>                    </a-p><a-s>&quot;rs&quot;</a-s><a-p>: {</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L203" href="#L203">203</a><span class="code-text"><a-p>                        </a-p><a-s>&quot;all-features&quot;</a-s><a-p>: </a-p><a-co>true</a-co></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L204" href="#L204">204</a><span class="code-text"><a-p>                    }</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L205" href="#L205">205</a><span class="code-text"><a-p>                }</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L206" href="#L206">206</a><span class="code-text"><a-p>            },</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L207" href="#L207">207</a><span class="code-text"><a-p>            </a-p><a-c>/* List of registries to which this package may be published.</a-c></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L208" href="#L208">208</a><span class="code-text"><a-p>               Publishing is unrestricted if null, and forbidden if an empty array. */</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L209" href="#L209">209</a><span class="code-text"><a-p>            </a-p><a-s>&quot;publish&quot;</a-s><a-p>: [</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L210" href="#L210">210</a><span class="code-text"><a-p>                </a-p><a-s>&quot;crates-io&quot;</a-s></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L211" href="#L211">211</a><span class="code-text"><a-p>            ],</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L212" href="#L212">212</a><span class="code-text"><a-p>            </a-p><a-c>/* Array of authors from the manifest.</a-c></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L213" href="#L213">213</a><span class="code-text"><a-p>               Empty array if no authors specified.</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L214" href="#L214">214</a><span class="code-text"><a-p>            */</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L215" href="#L215">215</a><span class="code-text"><a-p>            </a-p><a-s>&quot;authors&quot;</a-s><a-p>: [</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L216" href="#L216">216</a><span class="code-text"><a-p>                </a-p><a-s>&quot;Jane Doe &lt;user@example.com&gt;&quot;</a-s></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L217" href="#L217">217</a><span class="code-text"><a-p>            ],</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L218" href="#L218">218</a><span class="code-text"><a-p>            </a-p><a-c>/* Array of categories from the manifest. */</a-c></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L219" href="#L219">219</a><span class="code-text"><a-p>            </a-p><a-s>&quot;categories&quot;</a-s><a-p>: [</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L220" href="#L220">220</a><span class="code-text"><a-p>                </a-p><a-s>&quot;command-line-utilities&quot;</a-s></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L221" href="#L221">221</a><span class="code-text"><a-p>            ],</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L222" href="#L222">222</a><span class="code-text"><a-p>            </a-p><a-c>/* Optional string that is the default binary picked by cargo run. */</a-c></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L223" href="#L223">223</a><span class="code-text"><a-p>            </a-p><a-s>&quot;default_run&quot;</a-s><a-p>: </a-p><a-co>null</a-co><a-p>,</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L224" href="#L224">224</a><span class="code-text"><a-p>            </a-p><a-c>/* Optional string that is the minimum supported rust version */</a-c></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L225" href="#L225">225</a><span class="code-text"><a-p>            </a-p><a-s>&quot;rust_version&quot;</a-s><a-p>: </a-p><a-s>&quot;1.56&quot;</a-s><a-p>,</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L226" href="#L226">226</a><span class="code-text"><a-p>            </a-p><a-c>/* Array of keywords from the manifest. */</a-c></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L227" href="#L227">227</a><span class="code-text"><a-p>            </a-p><a-s>&quot;keywords&quot;</a-s><a-p>: [</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L228" href="#L228">228</a><span class="code-text"><a-p>                </a-p><a-s>&quot;cli&quot;</a-s></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L229" href="#L229">229</a><span class="code-text"><a-p>            ],</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L230" href="#L230">230</a><span class="code-text"><a-p>            </a-p><a-c>/* The readme value from the manifest or null if not specified. */</a-c></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L231" href="#L231">231</a><span class="code-text"><a-p>            </a-p><a-s>&quot;readme&quot;</a-s><a-p>: </a-p><a-s>&quot;README.md&quot;</a-s><a-p>,</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L232" href="#L232">232</a><span class="code-text"><a-p>            </a-p><a-c>/* The repository value from the manifest or null if not specified. */</a-c></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L233" href="#L233">233</a><span class="code-text"><a-p>            </a-p><a-s>&quot;repository&quot;</a-s><a-p>: </a-p><a-s>&quot;https://github.com/rust-lang/cargo&quot;</a-s><a-p>,</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L234" href="#L234">234</a><span class="code-text"><a-p>            </a-p><a-c>/* The homepage value from the manifest or null if not specified. */</a-c></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L235" href="#L235">235</a><span class="code-text"><a-p>            </a-p><a-s>&quot;homepage&quot;</a-s><a-p>: </a-p><a-s>&quot;https://rust-lang.org&quot;</a-s><a-p>,</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L236" href="#L236">236</a><span class="code-text"><a-p>            </a-p><a-c>/* The documentation value from the manifest or null if not specified. */</a-c></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L237" href="#L237">237</a><span class="code-text"><a-p>            </a-p><a-s>&quot;documentation&quot;</a-s><a-p>: </a-p><a-s>&quot;https://doc.rust-lang.org/stable/std&quot;</a-s><a-p>,</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L238" href="#L238">238</a><span class="code-text"><a-p>            </a-p><a-c>/* The default edition of the package.</a-c></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L239" href="#L239">239</a><span class="code-text"><a-p>               Note that individual targets may have different editions.</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L240" href="#L240">240</a><span class="code-text"><a-p>            */</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L241" href="#L241">241</a><span class="code-text"><a-p>            </a-p><a-s>&quot;edition&quot;</a-s><a-p>: </a-p><a-s>&quot;2018&quot;</a-s><a-p>,</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L242" href="#L242">242</a><span class="code-text"><a-p>            </a-p><a-c>/* Optional string that is the name of a native library the package</a-c></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L243" href="#L243">243</a><span class="code-text"><a-p>               is linking to.</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L244" href="#L244">244</a><span class="code-text"><a-p>            */</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L245" href="#L245">245</a><span class="code-text"><a-p>            </a-p><a-s>&quot;links&quot;</a-s><a-p>: </a-p><a-co>null</a-co><a-p>,</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L246" href="#L246">246</a><span class="code-text"><a-p>        }</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L247" href="#L247">247</a><span class="code-text"><a-p>    ],</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L248" href="#L248">248</a><span class="code-text"><a-p>    </a-p><a-c>/* Array of members of the workspace.</a-c></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L249" href="#L249">249</a><span class="code-text"><a-p>       Each entry is the Package ID for the package.</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L250" href="#L250">250</a><span class="code-text"><a-p>    */</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L251" href="#L251">251</a><span class="code-text"><a-p>    </a-p><a-s>&quot;workspace_members&quot;</a-s><a-p>: [</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L252" href="#L252">252</a><span class="code-text"><a-p>        </a-p><a-s>&quot;file:///path/to/my-package#0.1.0&quot;</a-s><a-p>,</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L253" href="#L253">253</a><span class="code-text"><a-p>    ],</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L254" href="#L254">254</a><span class="code-text"><a-p>    </a-p><a-c>/* Array of default members of the workspace.</a-c></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L255" href="#L255">255</a><span class="code-text"><a-p>       Each entry is the Package ID for the package.</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L256" href="#L256">256</a><span class="code-text"><a-p>    */</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L257" href="#L257">257</a><span class="code-text"><a-p>    </a-p><a-s>&quot;workspace_default_members&quot;</a-s><a-p>: [</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L258" href="#L258">258</a><span class="code-text"><a-p>        </a-p><a-s>&quot;file:///path/to/my-package#0.1.0&quot;</a-s><a-p>,</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L259" href="#L259">259</a><span class="code-text"><a-p>    ],</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L260" href="#L260">260</a><span class="code-text"><a-p>    </a-p><a-c>// The resolved dependency graph for the entire workspace. The enabled</a-c></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L261" href="#L261">261</a><span class="code-text"><a-p>    </a-p><a-c>// features are based on the enabled features for the &quot;current&quot; package.</a-c></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L262" href="#L262">262</a><span class="code-text"><a-p>    </a-p><a-c>// Inactivated optional dependencies are not listed.</a-c></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L263" href="#L263">263</a><span class="code-text"><a-p>    </a-p><a-c>//</a-c></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L264" href="#L264">264</a><span class="code-text"><a-p>    </a-p><a-c>// This is null if --no-deps is specified.</a-c></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L265" href="#L265">265</a><span class="code-text"><a-p>    </a-p><a-c>//</a-c></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L266" href="#L266">266</a><span class="code-text"><a-p>    </a-p><a-c>// By default, this includes all dependencies for all target platforms.</a-c></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L267" href="#L267">267</a><span class="code-text"><a-p>    </a-p><a-c>// The `--filter-platform` flag may be used to narrow to a specific</a-c></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L268" href="#L268">268</a><span class="code-text"><a-p>    </a-p><a-c>// target triple.</a-c></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L269" href="#L269">269</a><span class="code-text"><a-p>    </a-p><a-s>&quot;resolve&quot;</a-s><a-p>: {</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L270" href="#L270">270</a><span class="code-text"><a-p>        </a-p><a-c>/* Array of nodes within the dependency graph.</a-c></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L271" href="#L271">271</a><span class="code-text"><a-p>           Each node is a package.</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L272" href="#L272">272</a><span class="code-text"><a-p>        */</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L273" href="#L273">273</a><span class="code-text"><a-p>        </a-p><a-s>&quot;nodes&quot;</a-s><a-p>: [</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L274" href="#L274">274</a><span class="code-text"><a-p>            {</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L275" href="#L275">275</a><span class="code-text"><a-p>                </a-p><a-c>/* The Package ID of this node. */</a-c></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L276" href="#L276">276</a><span class="code-text"><a-p>                </a-p><a-s>&quot;id&quot;</a-s><a-p>: </a-p><a-s>&quot;file:///path/to/my-package#0.1.0&quot;</a-s><a-p>,</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L277" href="#L277">277</a><span class="code-text"><a-p>                </a-p><a-c>/* The dependencies of this package, an array of Package IDs. */</a-c></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L278" href="#L278">278</a><span class="code-text"><a-p>                </a-p><a-s>&quot;dependencies&quot;</a-s><a-p>: [</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L279" href="#L279">279</a><span class="code-text"><a-p>                    </a-p><a-s>&quot;https://github.com/rust-lang/crates.io-index#bitflags@1.0.4&quot;</a-s></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L280" href="#L280">280</a><span class="code-text"><a-p>                ],</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L281" href="#L281">281</a><span class="code-text"><a-p>                </a-p><a-c>/* The dependencies of this package. This is an alternative to</a-c></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L282" href="#L282">282</a><span class="code-text"><a-p>                   &quot;dependencies&quot; which contains additional information. In</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L283" href="#L283">283</a><span class="code-text"><a-p>                   particular, this handles renamed dependencies.</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L284" href="#L284">284</a><span class="code-text"><a-p>                */</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L285" href="#L285">285</a><span class="code-text"><a-p>                </a-p><a-s>&quot;deps&quot;</a-s><a-p>: [</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L286" href="#L286">286</a><span class="code-text"><a-p>                    {</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L287" href="#L287">287</a><span class="code-text"><a-p>                        </a-p><a-c>/* The name of the dependency&#39;s library target.</a-c></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L288" href="#L288">288</a><span class="code-text"><a-p>                           If this is a renamed dependency, this is the new</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L289" href="#L289">289</a><span class="code-text"><a-p>                           name.</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L290" href="#L290">290</a><span class="code-text"><a-p>                        */</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L291" href="#L291">291</a><span class="code-text"><a-p>                        </a-p><a-s>&quot;name&quot;</a-s><a-p>: </a-p><a-s>&quot;bitflags&quot;</a-s><a-p>,</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L292" href="#L292">292</a><span class="code-text"><a-p>                        </a-p><a-c>/* The Package ID of the dependency. */</a-c></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L293" href="#L293">293</a><span class="code-text"><a-p>                        </a-p><a-s>&quot;pkg&quot;</a-s><a-p>: </a-p><a-s>&quot;https://github.com/rust-lang/crates.io-index#bitflags@1.0.4&quot;</a-s></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L294" href="#L294">294</a><span class="code-text"><a-p>                        </a-p><a-c>/* Array of dependency kinds. Added in Cargo 1.40. */</a-c></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L295" href="#L295">295</a><span class="code-text"><a-p>                        </a-p><a-s>&quot;dep_kinds&quot;</a-s><a-p>: [</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L296" href="#L296">296</a><span class="code-text"><a-p>                            {</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L297" href="#L297">297</a><span class="code-text"><a-p>                                </a-p><a-c>/* The dependency kind.</a-c></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L298" href="#L298">298</a><span class="code-text"><a-p>                                   &quot;dev&quot;, &quot;build&quot;, or null for a normal dependency.</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L299" href="#L299">299</a><span class="code-text"><a-p>                                */</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L300" href="#L300">300</a><span class="code-text"><a-p>                                </a-p><a-s>&quot;kind&quot;</a-s><a-p>: </a-p><a-co>null</a-co><a-p>,</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L301" href="#L301">301</a><span class="code-text"><a-p>                                </a-p><a-c>/* The target platform for the dependency.</a-c></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L302" href="#L302">302</a><span class="code-text"><a-p>                                   null if not a target dependency.</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L303" href="#L303">303</a><span class="code-text"><a-p>                                */</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L304" href="#L304">304</a><span class="code-text"><a-p>                                </a-p><a-s>&quot;target&quot;</a-s><a-p>: </a-p><a-s>&quot;cfg(windows)&quot;</a-s></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L305" href="#L305">305</a><span class="code-text"><a-p>                            }</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L306" href="#L306">306</a><span class="code-text"><a-p>                        ]</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L307" href="#L307">307</a><span class="code-text"><a-p>                    }</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L308" href="#L308">308</a><span class="code-text"><a-p>                ],</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L309" href="#L309">309</a><span class="code-text"><a-p>                </a-p><a-c>/* Array of features enabled on this package. */</a-c></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L310" href="#L310">310</a><span class="code-text"><a-p>                </a-p><a-s>&quot;features&quot;</a-s><a-p>: [</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L311" href="#L311">311</a><span class="code-text"><a-p>                    </a-p><a-s>&quot;default&quot;</a-s></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L312" href="#L312">312</a><span class="code-text"><a-p>                ]</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L313" href="#L313">313</a><span class="code-text"><a-p>            }</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L314" href="#L314">314</a><span class="code-text"><a-p>        ],</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L315" href="#L315">315</a><span class="code-text"><a-p>        </a-p><a-c>/* The package in the current working directory (if --manifest-path is not given).</a-c></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L316" href="#L316">316</a><span class="code-text"><a-p>           This is null if there is a virtual workspace. Otherwise it is</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L317" href="#L317">317</a><span class="code-text"><a-p>           the Package ID of the package.</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L318" href="#L318">318</a><span class="code-text"><a-p>        */</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L319" href="#L319">319</a><span class="code-text"><a-p>        </a-p><a-s>&quot;root&quot;</a-s><a-p>: </a-p><a-s>&quot;file:///path/to/my-package#0.1.0&quot;</a-s><a-p>,</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L320" href="#L320">320</a><span class="code-text"><a-p>    },</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L321" href="#L321">321</a><span class="code-text"><a-p>    </a-p><a-c>/* The absolute path to the build directory where Cargo places its output. */</a-c></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L322" href="#L322">322</a><span class="code-text"><a-p>    </a-p><a-s>&quot;target_directory&quot;</a-s><a-p>: </a-p><a-s>&quot;/path/to/my-package/target&quot;</a-s><a-p>,</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L323" href="#L323">323</a><span class="code-text"><a-p>    </a-p><a-c>/* The version of the schema for this metadata structure.</a-c></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L324" href="#L324">324</a><span class="code-text"><a-p>       This will be changed if incompatible changes are ever made.</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L325" href="#L325">325</a><span class="code-text"><a-p>    */</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L326" href="#L326">326</a><span class="code-text"><a-p>    </a-p><a-s>&quot;version&quot;</a-s><a-p>: </a-p><a-n>1</a-n><a-p>,</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L327" href="#L327">327</a><span class="code-text"><a-p>    </a-p><a-c>/* The absolute path to the root of the workspace. */</a-c></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L328" href="#L328">328</a><span class="code-text"><a-p>    </a-p><a-s>&quot;workspace_root&quot;</a-s><a-p>: </a-p><a-s>&quot;/path/to/my-package&quot;</a-s></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L329" href="#L329">329</a><span class="code-text"><a-p>    </a-p><a-c>/* Workspace metadata.</a-c></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L330" href="#L330">330</a><span class="code-text"><a-p>       This is null if no metadata is specified. */</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L331" href="#L331">331</a><span class="code-text"><a-p>    </a-p><a-s>&quot;metadata&quot;</a-s><a-p>: {</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L332" href="#L332">332</a><span class="code-text"><a-p>        </a-p><a-s>&quot;docs&quot;</a-s><a-p>: {</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L333" href="#L333">333</a><span class="code-text"><a-p>            </a-p><a-s>&quot;rs&quot;</a-s><a-p>: {</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L334" href="#L334">334</a><span class="code-text"><a-p>                </a-p><a-s>&quot;all-features&quot;</a-s><a-p>: </a-p><a-co>true</a-co></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L335" href="#L335">335</a><span class="code-text"><a-p>            }</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L336" href="#L336">336</a><span class="code-text"><a-p>        }</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L337" href="#L337">337</a><span class="code-text"><a-p>    }</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L338" href="#L338">338</a><span class="code-text"><a-p>}</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L339" href="#L339">339</a><span class="code-text"><a-p>````</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L340" href="#L340">340</a><span class="code-text"></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L341" href="#L341">341</a><span class="code-text"><a-p>Notes:</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L342" href="#L342">342</a><span class="code-text"><a-p>- For `&quot;id&quot;` field syntax, see [Package ID Specifications] in the reference.</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L343" href="#L343">343</a><span class="code-text"></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L344" href="#L344">344</a><span class="code-text"><a-p>## </a-p><a-tt>OPTIONS</a-tt></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L345" href="#L345">345</a><span class="code-text"></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L346" href="#L346">346</a><span class="code-text"><a-p>### </a-p><a-tt>Output Options</a-tt></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L347" href="#L347">347</a><span class="code-text"></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L348" href="#L348">348</a><span class="code-text"><a-p>{{#options}}</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L349" href="#L349">349</a><span class="code-text"></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L350" href="#L350">350</a><span class="code-text"><a-p>{{#option &quot;`--no-deps`&quot; }}</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L351" href="#L351">351</a><span class="code-text"><a-p>Output information only about the workspace members and don&#39;t fetch</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L352" href="#L352">352</a><span class="code-text"><a-p>dependencies.</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L353" href="#L353">353</a><span class="code-text"><a-p>{{/option}}</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L354" href="#L354">354</a><span class="code-text"></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L355" href="#L355">355</a><span class="code-text"><a-p>{{#option &quot;`--format-version` _version_&quot; }}</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L356" href="#L356">356</a><span class="code-text"><a-p>Specify the version of the output format to use. Currently `1` is the only</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L357" href="#L357">357</a><span class="code-text"><a-p>possible value.</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L358" href="#L358">358</a><span class="code-text"><a-p>{{/option}}</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L359" href="#L359">359</a><span class="code-text"></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L360" href="#L360">360</a><span class="code-text"><a-p>{{#option &quot;`--filter-platform` _triple_&quot; }}</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L361" href="#L361">361</a><span class="code-text"><a-p>This filters the `resolve` output to only include dependencies for the</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L362" href="#L362">362</a><span class="code-text"><a-p>given [target triple](../appendix/glossary.html#target).</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L363" href="#L363">363</a><span class="code-text"><a-p>Without this flag, the resolve includes all targets.</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L364" href="#L364">364</a><span class="code-text"></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L365" href="#L365">365</a><span class="code-text"><a-p>Note that the dependencies listed in the &quot;packages&quot; array still includes all</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L366" href="#L366">366</a><span class="code-text"><a-p>dependencies. Each package definition is intended to be an unaltered</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L367" href="#L367">367</a><span class="code-text"><a-p>reproduction of the information within `Cargo.toml`.</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L368" href="#L368">368</a><span class="code-text"><a-p>{{/option}}</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L369" href="#L369">369</a><span class="code-text"></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L370" href="#L370">370</a><span class="code-text"><a-p>{{/options}}</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L371" href="#L371">371</a><span class="code-text"></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L372" href="#L372">372</a><span class="code-text"><a-p>{{&gt; section-features }}</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L373" href="#L373">373</a><span class="code-text"></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L374" href="#L374">374</a><span class="code-text"><a-p>### </a-p><a-tt>Display Options</a-tt></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L375" href="#L375">375</a><span class="code-text"></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L376" href="#L376">376</a><span class="code-text"><a-p>{{#options}}</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L377" href="#L377">377</a><span class="code-text"><a-p>{{&gt; options-display }}</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L378" href="#L378">378</a><span class="code-text"><a-p>{{/options}}</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L379" href="#L379">379</a><span class="code-text"></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L380" href="#L380">380</a><span class="code-text"><a-p>### </a-p><a-tt>Manifest Options</a-tt></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L381" href="#L381">381</a><span class="code-text"></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L382" href="#L382">382</a><span class="code-text"><a-p>{{#options}}</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L383" href="#L383">383</a><span class="code-text"><a-p>{{&gt; options-manifest-path }}</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L384" href="#L384">384</a><span class="code-text"></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L385" href="#L385">385</a><span class="code-text"><a-p>{{&gt; options-locked }}</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L386" href="#L386">386</a><span class="code-text"></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L387" href="#L387">387</a><span class="code-text"><a-p>{{&gt; options-lockfile-path }}</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L388" href="#L388">388</a><span class="code-text"><a-p>{{/options}}</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L389" href="#L389">389</a><span class="code-text"></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L390" href="#L390">390</a><span class="code-text"><a-p>{{&gt; section-options-common }}</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L391" href="#L391">391</a><span class="code-text"></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L392" href="#L392">392</a><span class="code-text"><a-p>{{&gt; section-environment }}</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L393" href="#L393">393</a><span class="code-text"></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L394" href="#L394">394</a><span class="code-text"><a-p>{{&gt; section-exit-status }}</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L395" href="#L395">395</a><span class="code-text"></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L396" href="#L396">396</a><span class="code-text"><a-p>## </a-p><a-tt>EXAMPLES</a-tt></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L397" href="#L397">397</a><span class="code-text"></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L398" href="#L398">398</a><span class="code-text"><a-p>1. Output JSON about the current package:</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L399" href="#L399">399</a><span class="code-text"></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L400" href="#L400">400</a><span class="code-text"><a-p>   </a-p><a-tl>    cargo metadata --format-version=1</a-tl></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L401" href="#L401">401</a><span class="code-text"></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L402" href="#L402">402</a><span class="code-text"><a-p>## </a-p><a-tt>SEE ALSO</a-tt></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L403" href="#L403">403</a><span class="code-text"></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L404" href="#L404">404</a><span class="code-text"><a-p>{{man &quot;cargo&quot; 1}}, {{man &quot;cargo-pkgid&quot; 1}}, [Package ID Specifications], [JSON messages]</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L405" href="#L405">405</a><span class="code-text"></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L406" href="#L406">406</a><span class="code-text"><a-tu>[Package ID Specifications]</a-tu><a-p>: </a-p><a-tu>../reference/pkgid-spec.html</a-tu></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L407" href="#L407">407</a><span class="code-text"><a-tu>[JSON messages]</a-tu><a-p>: </a-p><a-tu>../reference/external-tools.html#json-messages</a-tu></span></span></pre></div></div>
</main>
</body>
</html>
