@tabsmith/autocomplete-specs 1.0.0 → 1.0.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/@magnolia/cli.js +2 -2
- package/build/@withfig/autocomplete-tools.js +2 -2
- package/build/airflow.js +2 -2
- package/build/ansible-playbook.js +2 -2
- package/build/apt.js +4 -4
- package/build/asr.js +2 -2
- package/build/bun.js +9 -9
- package/build/cargo.js +4 -4
- package/build/cd.js +2 -2
- package/build/chezmoi.js +2 -2
- package/build/cloudflared.js +2 -2
- package/build/coda.js +3 -3
- package/build/codeburn.js +1 -0
- package/build/codesign.js +2 -2
- package/build/dapr.js +2 -2
- package/build/deno/generators.js +4 -4
- package/build/deno.js +2 -2
- package/build/deployctl.js +2 -2
- package/build/direnv.js +2 -2
- package/build/docker.js +18 -18
- package/build/dotenv-vault.js +2 -2
- package/build/dotnet/dotnet-add.js +2 -2
- package/build/dotnet/dotnet-build.js +2 -2
- package/build/dotnet/dotnet-clean.js +2 -2
- package/build/dotnet/dotnet-format.js +2 -2
- package/build/dotnet/dotnet-list.js +2 -2
- package/build/dotnet/dotnet-migrate.js +2 -2
- package/build/dotnet/dotnet-nuget.js +3 -3
- package/build/dotnet/dotnet-pack.js +2 -2
- package/build/dotnet/dotnet-publish.js +2 -2
- package/build/dotnet/dotnet-remove.js +2 -2
- package/build/dotnet/dotnet-restore.js +2 -2
- package/build/dotnet/dotnet-sln.js +2 -2
- package/build/dotnet/dotnet-store.js +2 -2
- package/build/dotnet/dotnet-test.js +2 -2
- package/build/dotnet/dotnet-tool.js +3 -3
- package/build/dotnet.js +2 -2
- package/build/dsh.js +2 -0
- package/build/dtm.js +3 -3
- package/build/dynamic/index.js +1 -1
- package/build/elixir.js +2 -2
- package/build/elm-json.js +2 -2
- package/build/esbuild.js +3 -3
- package/build/file.js +2 -2
- package/build/flutter.js +5 -5
- package/build/gh.js +6 -37
- package/build/git.js +20 -20
- package/build/glow.js +2 -2
- package/build/hub.js +20 -20
- package/build/iex.js +2 -2
- package/build/index.js +1 -1
- package/build/index.json +1 -1
- package/build/java.js +2 -2
- package/build/julia.js +2 -2
- package/build/limactl.js +3 -3
- package/build/man.js +3 -3
- package/build/meteor.js +3 -3
- package/build/mgnl.js +2 -2
- package/build/mix.js +2 -2
- package/build/mongoimport.js +2 -2
- package/build/n.js +3 -3
- package/build/ni.js +2 -2
- package/build/node.js +2 -2
- package/build/npm.js +2 -2
- package/build/nr.js +3 -3
- package/build/nrm.js +2 -2
- package/build/opencode.js +2 -2
- package/build/osascript.js +2 -2
- package/build/osqueryi.js +2 -2
- package/build/pandoc.js +3 -3
- package/build/pdfunite.js +2 -2
- package/build/pi.js +2 -2
- package/build/pipenv.js +2 -2
- package/build/pm2.js +2 -2
- package/build/pnpm.js +23 -24
- package/build/pod.js +2 -2
- package/build/pre-commit.js +126 -126
- package/build/python.js +2 -2
- package/build/python3.js +2 -2
- package/build/r.js +3 -3
- package/build/rails.js +3 -3
- package/build/rancher.js +3 -3
- package/build/react-native.js +5 -5
- package/build/robot.js +2 -2
- package/build/rojo.js +2 -2
- package/build/rollup.js +2 -2
- package/build/rscript.js +2 -2
- package/build/rush.js +5 -5
- package/build/rushx.js +4 -4
- package/build/scc.js +2 -2
- package/build/shortcuts.js +2 -2
- package/build/sidekiq.js +2 -2
- package/build/sqlite3.js +2 -2
- package/build/streamlit.js +2 -2
- package/build/subl.js +2 -2
- package/build/swift.js +2 -2
- package/build/systemctl.js +2 -2
- package/build/ts-node.js +3 -3
- package/build/tsc.js +2 -2
- package/build/tsx.js +2 -2
- package/build/turbo.js +20 -20
- package/build/typst.js +2 -2
- package/build/vsce.js +20 -20
- package/build/wasm-bindgen.js +2 -2
- package/build/yarn.js +4 -4
- package/build/yomo.js +2 -2
- package/package.json +20 -20
- package/build/ai-agents specs.js +0 -1
package/build/cargo.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
var de=Object.create;var K=Object.defineProperty;var ue=Object.getOwnPropertyDescriptor;var me=Object.getOwnPropertyNames;var ge=Object.getPrototypeOf,fe=Object.prototype.hasOwnProperty;var
|
|
2
|
-
`),[".DS_Store"]),J=[];for(let j of pe)if(j){let I=j.endsWith("/")?"folders":"filepaths";(I==="filepaths"&&r!=="only"||I==="folders"&&r!=="never")&&J.push({type:I==="filepaths"?"file":"folder",name:j,insertValue:j,isDangerous:
|
|
3
|
-
`).filter(t=>t.trim()!=="").map(t=>({name:t}))},V=[{name:"true"},{name:"false"}],ce={"build.jobs":{description:"Sets the maximum number of compiler processes to run in parallel"},"build.rustc":{description:"Path to the rustc compiler"},"build.rustc-wrapper":{description:"Sets a wrapper to execute instead of rustc"},"build.target":{description:"The default target platform triples to compile to"},"build.target-dir":{description:"The path to where all compiler output is placed"},"build.rustflags":{description:"Extra command-line flags to pass to rustc"},"build.rustdocflags":{description:"Extra command-line flags to pass to rustdoc"},"build.incremental":{description:"Whether or not to perform incremental compilation",tomlSuggestions:V},"build.dep-info-basedir":{description:"Strips the given path prefix from dep info file paths"},"doc.browser":{description:"This option sets the browser to be used by cargo doc, overriding the BROWSER environment variable when opening documentation with the --open option"},"cargo-new.vcs":{description:"Specifies the source control system to use for initializing a new repository",tomlSuggestions:W.map(e=>({...e,name:`\\"${e.name}\\"`,insertValue:`\\"${e.name}\\"`}))},"future-incompat-report.frequency":{description:"Controls how often we display a notification to the terminal when a future incompat report is available",tomlSuggestions:[{name:'\\"always\\"',insertValue:'\\"always\\"',description:"Always display a notification when a command (e.g. cargo build) produces a future incompat report"},{name:'\\"never\\"',insertValue:'\\"never\\"',description:"Never display a notification"}]},"http.debug":{description:"If true, enables debugging of HTTP requests",tomlSuggestions:V},"http.proxy":{description:"Sets an HTTP and HTTPS proxy to use"},"http.timeout":{description:"Sets the timeout for each HTTP request, in seconds"},"http.cainfo":{description:"Sets the path to a CA certificate bundle"},"http.check-revoke":{description:"This determines whether or not TLS certificate revocation checks should be performed. This only works on Windows",tomlSuggestions:V},"http.ssl-version":{description:"This sets the minimum TLS version to use"},"http.low-speed-limit":{description:"This setting controls timeout behavior for slow connections"},"http.multiplexing":{description:"When `true`, Cargo will attempt to use the HTTP2 protocol with multiplexing",tomlSuggestions:V},"http.user-agent":{description:"Specifies a custom user-agent header to use"},"install.root":{description:"Sets the path to the root directory for installing executables for `cargo install`"},"net.retry":{description:"Number of times to retry possibly spurious network errors"},"net.git-fetch-with-cli":{description:"If this is `true`, then Cargo will use the git executable to fetch registry indexes and git dependencies. If `false`, then it uses a built-in git library",tomlSuggestions:V},"net.offline":{description:"If this is true, then Cargo will avoid accessing the network, and attempt to proceed with locally cached data",tomlSuggestions:V}},d=(0,m.keyValue)({keys:Object.entries(ce).map(([e,t])=>({name:e,...t})),values:async(e,t)=>{let a=e[e.length-1].split("=")?.[0],i=ce[a];if(i?.tomlSuggestions)return i.tomlSuggestions},separator:"="}),je=(e=!0)=>({name:"cargo",icon:"\u{1F4E6}",description:"CLI Interface for Cargo",subcommands:[{name:"bench",icon:"\u{1F4CA}",description:"Execute all benchmarks of a local package",options:[{name:"--bin",description:"Benchmark only the specified binary",isRepeatable:!0,args:{name:"bin",filterStrategy:"fuzzy",generators:u({kind:"bin"}),isVariadic:!0}},{name:"--example",description:"Benchmark only the specified example",isRepeatable:!0,args:{name:"example",isVariadic:!0,filterStrategy:"fuzzy",generators:u({kind:"example"})}},{name:"--test",description:"Benchmark only the specified test target",isRepeatable:!0,args:{name:"test",isVariadic:!0,filterStrategy:"fuzzy",generators:u({kind:"test"})}},{name:"--bench",description:"Benchmark only the specified bench target",isRepeatable:!0,args:{name:"bench",isVariadic:!0,filterStrategy:"fuzzy",generators:u({kind:"bench"})}},{name:["-p","--package"],description:"Package to run benchmarks for",isRepeatable:!0,args:{name:"package",isVariadic:!0,filterStrategy:"fuzzy",generators:f}},{name:"--exclude",description:"Exclude packages from the benchmark",isRepeatable:!0,args:{name:"exclude",filterStrategy:"fuzzy",generators:f}},{name:["-j","--jobs"],description:"Number of parallel jobs, defaults to # of CPUs",args:{name:"jobs"}},{name:"--profile",description:"Build artifacts with the specified profile",args:{name:"profile"}},{name:"--features",description:"Space or comma separated list of features to activate",isRepeatable:!0,args:{name:"features",generators:w,isVariadic:!0}},{name:"--target",description:"Build for the target triple",isRepeatable:!0,args:{name:"target",filterStrategy:"fuzzy",generators:b}},{name:"--target-dir",description:"Directory for all generated artifacts",args:{name:"target-dir"}},{name:"--manifest-path",description:"Path to Cargo.toml",args:{name:"manifest-path",generators:(0,m.filepaths)({equals:"Cargo.toml"})}},{name:"--message-format",description:"Error format",isRepeatable:!0,args:{name:"message-format"}},{name:"--color",description:"Coloring: auto, always, never",args:{name:"color",suggestions:["auto","always","never"]}},{name:"--config",description:"Override a configuration value",isRepeatable:!0,args:{name:"config",generators:d}},{name:"-Z",description:"Unstable (nightly-only) flags to Cargo, see 'cargo -Z help' for details",isRepeatable:!0,args:{name:"unstable-features"}},{name:["-q","--quiet"],description:"Do not print cargo log messages"},{name:"--lib",description:"Benchmark only this package's library"},{name:"--bins",description:"Benchmark all binaries"},{name:"--examples",description:"Benchmark all examples"},{name:"--tests",description:"Benchmark all tests"},{name:"--benches",description:"Benchmark all benches"},{name:"--all-targets",description:"Benchmark all targets"},{name:"--no-run",description:"Compile, but don't run benchmarks"},{name:"--workspace",description:"Benchmark all packages in the workspace"},{name:"--all",description:"Alias for --workspace (deprecated)",hidden:!0},{name:"--all-features",description:"Activate all available features"},{name:"--no-default-features",description:"Do not activate the `default` feature"},{name:"--ignore-rust-version",description:"Ignore `rust-version` specification in packages"},{name:"--no-fail-fast",description:"Run all benchmarks regardless of failure"},{name:"--unit-graph",description:"Output build graph in JSON (unstable)"},{name:["-h","--help"],description:"Print help information"},{name:["-v","--verbose"],description:"Use verbose output (-vv very verbose/build.rs output)",isRepeatable:!0},{name:"--frozen",description:"Require Cargo.lock and cache are up to date"},{name:"--locked",description:"Require Cargo.lock is up to date"},{name:"--offline",description:"Run without accessing the network"},{name:"--timings",description:"Timing output formats (unstable)"}],args:[{name:"BENCHNAME"},{name:"args",isVariadic:!0}]},{name:["build","b"],icon:"\u{1F4E6}",description:"Compile a local package and all of its dependencies",options:[{name:["-p","--package"],description:"Package to build (see `cargo help pkgid`)",isRepeatable:!0,args:{name:"package",isVariadic:!0,filterStrategy:"fuzzy",generators:f}},{name:"--exclude",description:"Exclude packages from the build",isRepeatable:!0,args:{name:"exclude",filterStrategy:"fuzzy",generators:f}},{name:["-j","--jobs"],description:"Number of parallel jobs, defaults to # of CPUs",args:{name:"jobs"}},{name:"--bin",description:"Build only the specified binary",isRepeatable:!0,args:{name:"bin",filterStrategy:"fuzzy",generators:u({kind:"bin"}),isVariadic:!0}},{name:"--example",description:"Build only the specified example",isRepeatable:!0,args:{name:"example",isVariadic:!0,filterStrategy:"fuzzy",generators:u({kind:"example"})}},{name:"--test",description:"Build only the specified test target",isRepeatable:!0,args:{name:"test",isVariadic:!0,filterStrategy:"fuzzy",generators:u({kind:"test"})}},{name:"--bench",description:"Build only the specified bench target",isRepeatable:!0,args:{name:"bench",isVariadic:!0,filterStrategy:"fuzzy",generators:u({kind:"bench"})}},{name:"--profile",description:"Build artifacts with the specified profile",args:{name:"profile"}},{name:"--features",description:"Space or comma separated list of features to activate",isRepeatable:!0,args:{name:"features",generators:w,isVariadic:!0}},{name:"--target",description:"Build for the target triple",isRepeatable:!0,args:{name:"target",filterStrategy:"fuzzy",generators:b}},{name:"--target-dir",description:"Directory for all generated artifacts",args:{name:"target-dir"}},{name:"--out-dir",description:"Copy final artifacts to this directory (unstable)",args:{name:"out-dir"}},{name:"--manifest-path",description:"Path to Cargo.toml",args:{name:"manifest-path",generators:(0,m.filepaths)({equals:"Cargo.toml"})}},{name:"--message-format",description:"Error format",isRepeatable:!0,args:{name:"message-format"}},{name:"--color",description:"Coloring: auto, always, never",args:{name:"color",suggestions:["auto","always","never"]}},{name:"--config",description:"Override a configuration value",isRepeatable:!0,args:{name:"config",generators:d}},{name:"-Z",description:"Unstable (nightly-only) flags to Cargo, see 'cargo -Z help' for details",isRepeatable:!0,args:{name:"unstable-features"}},{name:["-q","--quiet"],description:"Do not print cargo log messages"},{name:"--workspace",description:"Build all packages in the workspace"},{name:"--all",description:"Alias for --workspace (deprecated)",hidden:!0},{name:"--lib",description:"Build only this package's library"},{name:"--bins",description:"Build all binaries"},{name:"--examples",description:"Build all examples"},{name:"--tests",description:"Build all tests"},{name:"--benches",description:"Build all benches"},{name:"--all-targets",description:"Build all targets"},{name:["-r","--release"],description:"Build artifacts in release mode, with optimizations"},{name:"--all-features",description:"Activate all available features"},{name:"--no-default-features",description:"Do not activate the `default` feature"},{name:"--ignore-rust-version",description:"Ignore `rust-version` specification in packages"},{name:"--build-plan",description:"Output the build plan in JSON (unstable)"},{name:"--unit-graph",description:"Output build graph in JSON (unstable)"},{name:"--future-incompat-report",description:"Outputs a future incompatibility report at the end of the build"},{name:["-h","--help"],description:"Print help information"},{name:["-v","--verbose"],description:"Use verbose output (-vv very verbose/build.rs output)",isRepeatable:!0},{name:"--frozen",description:"Require Cargo.lock and cache are up to date"},{name:"--locked",description:"Require Cargo.lock is up to date"},{name:"--offline",description:"Run without accessing the network"},{name:"--timings",description:"Timing output formats (unstable)"}]},{name:["check","c"],icon:"\u{1F6E0}",description:"Check a local package and all of its dependencies for errors",options:[{name:["-p","--package"],description:"Package(s) to check",isRepeatable:!0,args:{name:"package",isVariadic:!0,filterStrategy:"fuzzy",generators:f}},{name:"--exclude",description:"Exclude packages from the check",isRepeatable:!0,args:{name:"exclude",filterStrategy:"fuzzy",generators:f}},{name:["-j","--jobs"],description:"Number of parallel jobs, defaults to # of CPUs",args:{name:"jobs"}},{name:"--bin",description:"Check only the specified binary",isRepeatable:!0,args:{name:"bin",filterStrategy:"fuzzy",generators:u({kind:"bin"}),isVariadic:!0}},{name:"--example",description:"Check only the specified example",isRepeatable:!0,args:{name:"example",isVariadic:!0,filterStrategy:"fuzzy",generators:u({kind:"example"})}},{name:"--test",description:"Check only the specified test target",isRepeatable:!0,args:{name:"test",isVariadic:!0,filterStrategy:"fuzzy",generators:u({kind:"test"})}},{name:"--bench",description:"Check only the specified bench target",isRepeatable:!0,args:{name:"bench",isVariadic:!0,filterStrategy:"fuzzy",generators:u({kind:"bench"})}},{name:"--profile",description:"Check artifacts with the specified profile",args:{name:"profile"}},{name:"--features",description:"Space or comma separated list of features to activate",isRepeatable:!0,args:{name:"features",generators:w,isVariadic:!0}},{name:"--target",description:"Check for the target triple",isRepeatable:!0,args:{name:"target",filterStrategy:"fuzzy",generators:b}},{name:"--target-dir",description:"Directory for all generated artifacts",args:{name:"target-dir"}},{name:"--manifest-path",description:"Path to Cargo.toml",args:{name:"manifest-path",generators:(0,m.filepaths)({equals:"Cargo.toml"})}},{name:"--message-format",description:"Error format",isRepeatable:!0,args:{name:"message-format"}},{name:"--color",description:"Coloring: auto, always, never",args:{name:"color",suggestions:["auto","always","never"]}},{name:"--config",description:"Override a configuration value",isRepeatable:!0,args:{name:"config",generators:d}},{name:"-Z",description:"Unstable (nightly-only) flags to Cargo, see 'cargo -Z help' for details",isRepeatable:!0,args:{name:"unstable-features"}},{name:["-q","--quiet"],description:"Do not print cargo log messages"},{name:"--workspace",description:"Check all packages in the workspace"},{name:"--all",description:"Alias for --workspace (deprecated)",hidden:!0},{name:"--lib",description:"Check only this package's library"},{name:"--bins",description:"Check all binaries"},{name:"--examples",description:"Check all examples"},{name:"--tests",description:"Check all tests"},{name:"--benches",description:"Check all benches"},{name:"--all-targets",description:"Check all targets"},{name:["-r","--release"],description:"Check artifacts in release mode, with optimizations"},{name:"--all-features",description:"Activate all available features"},{name:"--no-default-features",description:"Do not activate the `default` feature"},{name:"--ignore-rust-version",description:"Ignore `rust-version` specification in packages"},{name:"--unit-graph",description:"Output build graph in JSON (unstable)"},{name:"--future-incompat-report",description:"Outputs a future incompatibility report at the end of the build"},{name:["-h","--help"],description:"Print help information"},{name:["-v","--verbose"],description:"Use verbose output (-vv very verbose/build.rs output)",isRepeatable:!0},{name:"--frozen",description:"Require Cargo.lock and cache are up to date"},{name:"--locked",description:"Require Cargo.lock is up to date"},{name:"--offline",description:"Run without accessing the network"},{name:"--timings",description:"Timing output formats (unstable)"}]},{name:"clean",icon:"\u{1F6E0}",description:"Remove artifacts that cargo has generated in the past",options:[{name:["-p","--package"],description:"Package to clean artifacts for",isRepeatable:!0,args:{name:"package",isVariadic:!0,filterStrategy:"fuzzy",generators:f}},{name:"--manifest-path",description:"Path to Cargo.toml",args:{name:"manifest-path",generators:(0,m.filepaths)({equals:"Cargo.toml"})}},{name:"--target",description:"Target triple to clean output for",isRepeatable:!0,args:{name:"target",filterStrategy:"fuzzy",generators:b}},{name:"--target-dir",description:"Directory for all generated artifacts",args:{name:"target-dir"}},{name:"--profile",description:"Clean artifacts of the specified profile",args:{name:"profile"}},{name:"--color",description:"Coloring: auto, always, never",args:{name:"color",suggestions:["auto","always","never"]}},{name:"--config",description:"Override a configuration value",isRepeatable:!0,args:{name:"config",generators:d}},{name:"-Z",description:"Unstable (nightly-only) flags to Cargo, see 'cargo -Z help' for details",isRepeatable:!0,args:{name:"unstable-features"}},{name:["-q","--quiet"],description:"Do not print cargo log messages"},{name:["-r","--release"],description:"Whether or not to clean release artifacts"},{name:"--doc",description:"Whether or not to clean just the documentation directory"},{name:["-h","--help"],description:"Print help information"},{name:["-v","--verbose"],description:"Use verbose output (-vv very verbose/build.rs output)",isRepeatable:!0},{name:"--frozen",description:"Require Cargo.lock and cache are up to date"},{name:"--locked",description:"Require Cargo.lock is up to date"},{name:"--offline",description:"Run without accessing the network"}]},{name:"config",icon:"\u2699\uFE0F",description:"Inspect configuration values",subcommands:[{name:"get",options:[{name:"--format",description:"Display format",args:{name:"format",suggestions:["toml","json","json-value"]}},{name:"--merged",description:"Whether or not to merge config values",args:{name:"merged",suggestions:["yes","no"]}},{name:"--color",description:"Coloring: auto, always, never",args:{name:"color",suggestions:["auto","always","never"]}},{name:"--config",description:"Override a configuration value",isRepeatable:!0,args:{name:"config",generators:d}},{name:"-Z",description:"Unstable (nightly-only) flags to Cargo, see 'cargo -Z help' for details",isRepeatable:!0,args:{name:"unstable-features"}},{name:"--version",description:"Print version information"},{name:"--show-origin",description:"Display where the config value is defined"},{name:["-h","--help"],description:"Print help information"},{name:["-v","--verbose"],description:"Use verbose output (-vv very verbose/build.rs output)",isRepeatable:!0},{name:"--frozen",description:"Require Cargo.lock and cache are up to date"},{name:"--locked",description:"Require Cargo.lock is up to date"},{name:"--offline",description:"Run without accessing the network"}]},{name:"help",description:"Print this message or the help of the given subcommand(s)",options:[{name:"--color",description:"Coloring: auto, always, never",args:{name:"color",suggestions:["auto","always","never"]}},{name:"--config",description:"Override a configuration value",isRepeatable:!0,args:{name:"config",generators:d}},{name:"-Z",description:"Unstable (nightly-only) flags to Cargo, see 'cargo -Z help' for details",isRepeatable:!0,args:{name:"unstable-features"}},{name:"--version",description:"Print version information"},{name:["-h","--help"],description:"Print help information"},{name:["-v","--verbose"],description:"Use verbose output (-vv very verbose/build.rs output)",isRepeatable:!0},{name:"--frozen",description:"Require Cargo.lock and cache are up to date"},{name:"--locked",description:"Require Cargo.lock is up to date"},{name:"--offline",description:"Run without accessing the network"}],args:{name:"subcommand"}}],options:[{name:"--color",description:"Coloring: auto, always, never",args:{name:"color",suggestions:["auto","always","never"]}},{name:"--config",description:"Override a configuration value",isRepeatable:!0,args:{name:"config",generators:d}},{name:"-Z",description:"Unstable (nightly-only) flags to Cargo, see 'cargo -Z help' for details",isRepeatable:!0,args:{name:"unstable-features"}},{name:["-h","--help"],description:"Print help information"},{name:["-v","--verbose"],description:"Use verbose output (-vv very verbose/build.rs output)",isRepeatable:!0},{name:"--frozen",description:"Require Cargo.lock and cache are up to date"},{name:"--locked",description:"Require Cargo.lock is up to date"},{name:"--offline",description:"Run without accessing the network"}]},{name:["doc","d"],icon:"\u{1F4C4}",description:"Build a package's documentation",options:[{name:["-p","--package"],description:"Package to document",isRepeatable:!0,args:{name:"package",isVariadic:!0,filterStrategy:"fuzzy",generators:f}},{name:"--exclude",description:"Exclude packages from the build",isRepeatable:!0,args:{name:"exclude",filterStrategy:"fuzzy",generators:f}},{name:["-j","--jobs"],description:"Number of parallel jobs, defaults to # of CPUs",args:{name:"jobs"}},{name:"--bin",description:"Document only the specified binary",isRepeatable:!0,args:{name:"bin",filterStrategy:"fuzzy",generators:u({kind:"bin"}),isVariadic:!0}},{name:"--example",description:"Document only the specified example",isRepeatable:!0,args:{name:"example",isVariadic:!0,filterStrategy:"fuzzy",generators:u({kind:"example"})}},{name:"--profile",description:"Build artifacts with the specified profile",args:{name:"profile"}},{name:"--features",description:"Space or comma separated list of features to activate",isRepeatable:!0,args:{name:"features",generators:w,isVariadic:!0}},{name:"--target",description:"Build for the target triple",isRepeatable:!0,args:{name:"target",filterStrategy:"fuzzy",generators:b}},{name:"--target-dir",description:"Directory for all generated artifacts",args:{name:"target-dir"}},{name:"--manifest-path",description:"Path to Cargo.toml",args:{name:"manifest-path",generators:(0,m.filepaths)({equals:"Cargo.toml"})}},{name:"--message-format",description:"Error format",isRepeatable:!0,args:{name:"message-format"}},{name:"--color",description:"Coloring: auto, always, never",args:{name:"color"}},{name:"--config",description:"Override a configuration value",isRepeatable:!0,args:{name:"config",generators:d}},{name:"-Z",description:"Unstable (nightly-only) flags to Cargo, see 'cargo -Z help' for details",isRepeatable:!0,args:{name:"unstable-features"}},{name:["-q","--quiet"],description:"Do not print cargo log messages"},{name:"--open",description:"Opens the docs in a browser after the operation"},{name:"--workspace",description:"Document all packages in the workspace"},{name:"--all",description:"Alias for --workspace (deprecated)",hidden:!0},{name:"--no-deps",description:"Don't build documentation for dependencies"},{name:"--document-private-items",description:"Document private items"},{name:"--lib",description:"Document only this package's library"},{name:"--bins",description:"Document all binaries"},{name:"--examples",description:"Document all examples"},{name:["-r","--release"],description:"Build artifacts in release mode, with optimizations"},{name:"--all-features",description:"Activate all available features"},{name:"--no-default-features",description:"Do not activate the `default` feature"},{name:"--ignore-rust-version",description:"Ignore `rust-version` specification in packages"},{name:"--unit-graph",description:"Output build graph in JSON (unstable)"},{name:["-h","--help"],description:"Print help information"},{name:["-v","--verbose"],description:"Use verbose output (-vv very verbose/build.rs output)",isRepeatable:!0},{name:"--frozen",description:"Require Cargo.lock and cache are up to date"},{name:"--locked",description:"Require Cargo.lock is up to date"},{name:"--offline",description:"Run without accessing the network"},{name:"--timings",description:"Timing output formats (unstable)"}]},{name:"fetch",icon:"\u{1F4E6}",description:"Fetch dependencies of a package from the network",options:[{name:"--manifest-path",description:"Path to Cargo.toml",args:{name:"manifest-path",generators:(0,m.filepaths)({equals:"Cargo.toml"})}},{name:"--target",description:"Fetch dependencies for the target triple",isRepeatable:!0,args:{name:"target",filterStrategy:"fuzzy",generators:b}},{name:"--color",description:"Coloring: auto, always, never",args:{name:"color",suggestions:["always","never","auto"]}},{name:"--config",description:"Override a configuration value",isRepeatable:!0,args:{name:"config",generators:d}},{name:"-Z",description:"Unstable (nightly-only) flags to Cargo, see 'cargo -Z help' for details",isRepeatable:!0,args:{name:"unstable-features"}},{name:["-q","--quiet"],description:"Do not print cargo log messages"},{name:["-h","--help"],description:"Print help information"},{name:["-v","--verbose"],description:"Use verbose output (-vv very verbose/build.rs output)",isRepeatable:!0},{name:"--frozen",description:"Require Cargo.lock and cache are up to date"},{name:"--locked",description:"Require Cargo.lock is up to date"},{name:"--offline",description:"Run without accessing the network"}]},{name:"fix",icon:"\u{1F527}",description:"Automatically fix lint warnings reported by rustc",options:[{name:["-p","--package"],description:"Package(s) to fix",isRepeatable:!0,args:{name:"package",isVariadic:!0,filterStrategy:"fuzzy",generators:f}},{name:"--exclude",description:"Exclude packages from the fixes",isRepeatable:!0,args:{name:"exclude",filterStrategy:"fuzzy",generators:f}},{name:["-j","--jobs"],description:"Number of parallel jobs, defaults to # of CPUs",args:{name:"jobs"}},{name:"--bin",description:"Fix only the specified binary",isRepeatable:!0,args:{name:"bin",filterStrategy:"fuzzy",generators:u({kind:"bin"}),isVariadic:!0}},{name:"--example",description:"Fix only the specified example",isRepeatable:!0,args:{name:"example",isVariadic:!0,filterStrategy:"fuzzy",generators:u({kind:"example"})}},{name:"--test",description:"Fix only the specified test target",isRepeatable:!0,args:{name:"test",isVariadic:!0,filterStrategy:"fuzzy",generators:u({kind:"test"})}},{name:"--bench",description:"Fix only the specified bench target",isRepeatable:!0,args:{name:"bench",isVariadic:!0,filterStrategy:"fuzzy",generators:u({kind:"bench"})}},{name:"--profile",description:"Build artifacts with the specified profile",args:{name:"profile"}},{name:"--features",description:"Space or comma separated list of features to activate",isRepeatable:!0,args:{name:"features",generators:w,isVariadic:!0}},{name:"--target",description:"Fix for the target triple",isRepeatable:!0,args:{name:"target",filterStrategy:"fuzzy",generators:b}},{name:"--target-dir",description:"Directory for all generated artifacts",args:{name:"target-dir"}},{name:"--manifest-path",description:"Path to Cargo.toml",args:{name:"manifest-path",generators:(0,m.filepaths)({equals:"Cargo.toml"})}},{name:"--message-format",description:"Error format",isRepeatable:!0,args:{name:"message-format"}},{name:"--color",description:"Coloring: auto, always, never",args:{name:"color",suggestions:["always","never","auto"]}},{name:"--config",description:"Override a configuration value",isRepeatable:!0,args:{name:"config",generators:d}},{name:"-Z",description:"Unstable (nightly-only) flags to Cargo, see 'cargo -Z help' for details",isRepeatable:!0,args:{name:"unstable-features"}},{name:["-q","--quiet"],description:"Do not print cargo log messages"},{name:"--workspace",description:"Fix all packages in the workspace"},{name:"--all",description:"Alias for --workspace (deprecated)",hidden:!0},{name:"--lib",description:"Fix only this package's library"},{name:"--bins",description:"Fix all binaries"},{name:"--examples",description:"Fix all examples"},{name:"--tests",description:"Fix all tests"},{name:"--benches",description:"Fix all benches"},{name:"--all-targets",description:"Fix all targets (default)"},{name:["-r","--release"],description:"Fix artifacts in release mode, with optimizations"},{name:"--all-features",description:"Activate all available features"},{name:"--no-default-features",description:"Do not activate the `default` feature"},{name:"--broken-code",description:"Fix code even if it already has compiler errors"},{name:"--edition",description:"Fix in preparation for the next edition"},{name:"--edition-idioms",description:"Fix warnings to migrate to the idioms of an edition"},{name:"--allow-no-vcs",description:"Fix code even if a VCS was not detected"},{name:"--allow-dirty",description:"Fix code even if the working directory is dirty"},{name:"--allow-staged",description:"Fix code even if the working directory has staged changes"},{name:"--ignore-rust-version",description:"Ignore `rust-version` specification in packages"},{name:["-h","--help"],description:"Print help information"},{name:["-v","--verbose"],description:"Use verbose output (-vv very verbose/build.rs output)",isRepeatable:!0},{name:"--frozen",description:"Require Cargo.lock and cache are up to date"},{name:"--locked",description:"Require Cargo.lock is up to date"},{name:"--offline",description:"Run without accessing the network"},{name:"--timings",description:"Timing output formats (unstable)"}]},{name:"generate-lockfile",icon:"\u{1F4E6}",description:"Generate the lockfile for a package",options:[{name:"--manifest-path",description:"Path to Cargo.toml",args:{name:"manifest-path",generators:(0,m.filepaths)({equals:"Cargo.toml"})}},{name:"--color",description:"Coloring: auto, always, never",args:{name:"color",suggestions:["always","never","auto"]}},{name:"--config",description:"Override a configuration value",isRepeatable:!0,args:{name:"config",generators:d}},{name:"-Z",description:"Unstable (nightly-only) flags to Cargo, see 'cargo -Z help' for details",isRepeatable:!0,args:{name:"unstable-features"}},{name:["-q","--quiet"],description:"Do not print cargo log messages"},{name:["-h","--help"],description:"Print help information"},{name:["-v","--verbose"],description:"Use verbose output (-vv very verbose/build.rs output)",isRepeatable:!0},{name:"--frozen",description:"Require Cargo.lock and cache are up to date"},{name:"--locked",description:"Require Cargo.lock is up to date"},{name:"--offline",description:"Run without accessing the network"}]},{name:"git-checkout",icon:"\u{1F4E6}",description:"This subcommand has been removed",hidden:!0,options:[{name:"--color",description:"Coloring: auto, always, never",args:{name:"color",suggestions:["always","never","auto"]}},{name:"--config",description:"Override a configuration value",isRepeatable:!0,args:{name:"config",generators:d}},{name:"-Z",description:"Unstable (nightly-only) flags to Cargo, see 'cargo -Z help' for details",isRepeatable:!0,args:{name:"unstable-features"}},{name:["-h","--help"],description:"Print help information"},{name:["-v","--verbose"],description:"Use verbose output (-vv very verbose/build.rs output)",isRepeatable:!0},{name:"--frozen",description:"Require Cargo.lock and cache are up to date"},{name:"--locked",description:"Require Cargo.lock is up to date"},{name:"--offline",description:"Run without accessing the network"}]},{name:"init",icon:"\u{1F4E6}",description:"Create a new cargo package in an existing directory",options:[{name:"--registry",description:"Registry to use",args:{name:"registry"}},{name:"--vcs",description:"Initialize a new repository for the given version control system (git, hg, pijul, or fossil) or do not initialize any version control at all (none), overriding a global configuration",args:{name:"vcs",suggestions:W}},{name:"--edition",description:"Edition to set for the crate generated",args:{name:"edition",suggestions:G}},{name:"--name",description:"Set the resulting package name, defaults to the directory name",args:{name:"name"}},{name:"--color",description:"Coloring: auto, always, never",args:{name:"color",suggestions:["always","never","auto"]}},{name:"--config",description:"Override a configuration value",isRepeatable:!0,args:{name:"config",generators:d}},{name:"-Z",description:"Unstable (nightly-only) flags to Cargo, see 'cargo -Z help' for details",isRepeatable:!0,args:{name:"unstable-features"}},{name:["-q","--quiet"],description:"Do not print cargo log messages"},{name:"--bin",description:"Use a binary (application) template [default]"},{name:"--lib",description:"Use a library template"},{name:["-h","--help"],description:"Print help information"},{name:["-v","--verbose"],description:"Use verbose output (-vv very verbose/build.rs output)",isRepeatable:!0},{name:"--frozen",description:"Require Cargo.lock and cache are up to date"},{name:"--locked",description:"Require Cargo.lock is up to date"},{name:"--offline",description:"Run without accessing the network"}],args:{name:"path"}},{name:"install",icon:"\u{1F4E6}",description:"Install a Rust binary. Default location is $HOME/.cargo/bin",options:[{name:"--version",description:"Specify a version to install",args:{name:"version"}},{name:"--git",description:"Git URL to install the specified crate from",exclusiveOn:["--path","--index","--registry"],args:{name:"git"}},{name:"--branch",description:"Branch to use when installing from git",args:{name:"branch"}},{name:"--tag",description:"Tag to use when installing from git",args:{name:"tag"}},{name:"--rev",description:"Specific commit to use when installing from git",args:{name:"rev"}},{name:"--path",description:"Filesystem path to local crate to install",exclusiveOn:["--git","--index","--registry"],args:{name:"path",template:"folders"}},{name:["-j","--jobs"],description:"Number of parallel jobs, defaults to # of CPUs",args:{name:"jobs"}},{name:"--features",description:"Space or comma separated list of features to activate",isRepeatable:!0,args:{name:"features",generators:w,isVariadic:!0}},{name:"--profile",description:"Install artifacts with the specified profile",args:{name:"profile"}},{name:"--bin",description:"Install only the specified binary",isRepeatable:!0,args:{name:"bin",isVariadic:!0,filterStrategy:"fuzzy",generators:u({kind:"bin"})}},{name:"--example",description:"Install only the specified example",isRepeatable:!0,args:{name:"example",isVariadic:!0,filterStrategy:"fuzzy",generators:u({kind:"example"})}},{name:"--target",description:"Build for the target triple",isRepeatable:!0,args:{name:"target",filterStrategy:"fuzzy",generators:b}},{name:"--target-dir",description:"Directory for all generated artifacts",args:{name:"target-dir"}},{name:"--root",description:"Directory to install packages into",args:{name:"root"}},{name:"--index",description:"Registry index to install from",exclusiveOn:["--git","--path","--registry"],args:{name:"index"}},{name:"--registry",description:"Registry to use",exclusiveOn:["--git","--path","--index"],args:{name:"registry"}},{name:"--message-format",description:"Error format",isRepeatable:!0,args:{name:"message-format"}},{name:"--color",description:"Coloring: auto, always, never",args:{name:"color",suggestions:["always","never","auto"]}},{name:"--config",description:"Override a configuration value",isRepeatable:!0,args:{name:"config",generators:d}},{name:"-Z",description:"Unstable (nightly-only) flags to Cargo, see 'cargo -Z help' for details",isRepeatable:!0,args:{name:"unstable-features"}},{name:["-q","--quiet"],description:"Do not print cargo log messages"},{name:"--list",description:"List all installed packages and their versions"},{name:["-f","--force"],description:"Force overwriting existing crates or binaries"},{name:"--no-track",description:"Do not save tracking information"},{name:"--all-features",description:"Activate all available features"},{name:"--no-default-features",description:"Do not activate the `default` feature"},{name:"--debug",description:"Build in debug mode instead of release mode"},{name:"--bins",description:"Install all binaries"},{name:"--examples",description:"Install all examples"},{name:["-h","--help"],description:"Print help information"},{name:["-v","--verbose"],description:"Use verbose output (-vv very verbose/build.rs output)",isRepeatable:!0},{name:"--frozen",description:"Require Cargo.lock and cache are up to date"},{name:"--locked",description:"Require Cargo.lock is up to date"},{name:"--offline",description:"Run without accessing the network"},{name:"--timings",description:"Timing output formats (unstable)"}],args:{name:"crate",generators:H,filterStrategy:"fuzzy",debounce:!0,isVariadic:!0,suggestCurrentToken:!0}},{name:"locate-project",icon:"\u{1F4E6}",description:"Print a JSON representation of a Cargo.toml file's location",options:[{name:"--manifest-path",description:"Path to Cargo.toml",args:{name:"manifest-path",generators:(0,m.filepaths)({equals:"Cargo.toml"})}},{name:"--message-format",description:"Output representation [possible values: json, plain]",args:{name:"message-format"}},{name:"--color",description:"Coloring: auto, always, never",args:{name:"color",suggestions:["always","never","auto"]}},{name:"--config",description:"Override a configuration value",isRepeatable:!0,args:{name:"config",generators:d}},{name:"-Z",description:"Unstable (nightly-only) flags to Cargo, see 'cargo -Z help' for details",isRepeatable:!0,args:{name:"unstable-features"}},{name:["-q","--quiet"],description:"Do not print cargo log messages"},{name:"--workspace",description:"Locate Cargo.toml of the workspace root"},{name:["-h","--help"],description:"Print help information"},{name:["-v","--verbose"],description:"Use verbose output (-vv very verbose/build.rs output)",isRepeatable:!0},{name:"--frozen",description:"Require Cargo.lock and cache are up to date"},{name:"--locked",description:"Require Cargo.lock is up to date"},{name:"--offline",description:"Run without accessing the network"}]},{name:"login",icon:"\u{1F4E6}",description:"Save an api token from the registry locally. If token is not specified, it will be read from stdin",options:[{name:"--registry",description:"Registry to use",args:{name:"registry"}},{name:"--color",description:"Coloring: auto, always, never",args:{name:"color",suggestions:["always","never","auto"]}},{name:"--config",description:"Override a configuration value",isRepeatable:!0,args:{name:"config",generators:d}},{name:"-Z",description:"Unstable (nightly-only) flags to Cargo, see 'cargo -Z help' for details",isRepeatable:!0,args:{name:"unstable-features"}},{name:["-q","--quiet"],description:"Do not print cargo log messages"},{name:["-h","--help"],description:"Print help information"},{name:["-v","--verbose"],description:"Use verbose output (-vv very verbose/build.rs output)",isRepeatable:!0},{name:"--frozen",description:"Require Cargo.lock and cache are up to date"},{name:"--locked",description:"Require Cargo.lock is up to date"},{name:"--offline",description:"Run without accessing the network"}],args:{name:"token"}},{name:"logout",icon:"\u{1F4E6}",description:"Remove an API token from the registry locally",options:[{name:"--registry",description:"Registry to use",args:{name:"registry"}},{name:"--color",description:"Coloring: auto, always, never",args:{name:"color",suggestions:["always","never","auto"]}},{name:"--config",description:"Override a configuration value",isRepeatable:!0,args:{name:"config",generators:d}},{name:"-Z",description:"Unstable (nightly-only) flags to Cargo, see 'cargo -Z help' for details",isRepeatable:!0,args:{name:"unstable-features"}},{name:["-q","--quiet"],description:"Do not print cargo log messages"},{name:["-h","--help"],description:"Print help information"},{name:["-v","--verbose"],description:"Use verbose output (-vv very verbose/build.rs output)",isRepeatable:!0},{name:"--frozen",description:"Require Cargo.lock and cache are up to date"},{name:"--locked",description:"Require Cargo.lock is up to date"},{name:"--offline",description:"Run without accessing the network"}]},{name:"metadata",icon:"\u{1F4E6}",description:"Output the resolved dependencies of a package, the concrete used versions including overrides, in machine-readable format",options:[{name:"--features",description:"Space or comma separated list of features to activate",isRepeatable:!0,args:{name:"features",generators:w,isVariadic:!0}},{name:"--filter-platform",description:"Only include resolve dependencies matching the given target-triple",isRepeatable:!0,args:{name:"filter-platform"}},{name:"--manifest-path",description:"Path to Cargo.toml",args:{name:"manifest-path",generators:(0,m.filepaths)({equals:"Cargo.toml"})}},{name:"--format-version",description:"Format version",args:{name:"format-version",suggestions:["1"]}},{name:"--color",description:"Coloring: auto, always, never",args:{name:"color",suggestions:["always","never","auto"]}},{name:"--config",description:"Override a configuration value",isRepeatable:!0,args:{name:"config",generators:d}},{name:"-Z",description:"Unstable (nightly-only) flags to Cargo, see 'cargo -Z help' for details",isRepeatable:!0,args:{name:"unstable-features"}},{name:["-q","--quiet"],description:"Do not print cargo log messages"},{name:"--all-features",description:"Activate all available features"},{name:"--no-default-features",description:"Do not activate the `default` feature"},{name:"--no-deps",description:"Output information only about the workspace members and don't fetch dependencies"},{name:["-h","--help"],description:"Print help information"},{name:["-v","--verbose"],description:"Use verbose output (-vv very verbose/build.rs output)",isRepeatable:!0},{name:"--frozen",description:"Require Cargo.lock and cache are up to date"},{name:"--locked",description:"Require Cargo.lock is up to date"},{name:"--offline",description:"Run without accessing the network"}]},{name:"new",icon:"\u{1F4E6}",description:"Create a new cargo package at <path>",options:[{name:"--registry",description:"Registry to use",args:{name:"registry"}},{name:"--vcs",description:"Initialize a new repository for the given version control system (git, hg, pijul, or fossil) or do not initialize any version control at all (none), overriding a global configuration",args:{name:"vcs",suggestions:W}},{name:"--edition",description:"Edition to set for the crate generated",args:{name:"edition",suggestions:G}},{name:"--name",description:"Set the resulting package name, defaults to the directory name",args:{name:"name"}},{name:"--color",description:"Coloring: auto, always, never",args:{name:"color",suggestions:["always","never","auto"]}},{name:"--config",description:"Override a configuration value",isRepeatable:!0,args:{name:"config",generators:d}},{name:"-Z",description:"Unstable (nightly-only) flags to Cargo, see 'cargo -Z help' for details",isRepeatable:!0,args:{name:"unstable-features"}},{name:["-q","--quiet"],description:"Do not print cargo log messages"},{name:"--bin",description:"Use a binary (application) template [default]"},{name:"--lib",description:"Use a library template"},{name:["-h","--help"],description:"Print help information"},{name:["-v","--verbose"],description:"Use verbose output (-vv very verbose/build.rs output)",isRepeatable:!0},{name:"--frozen",description:"Require Cargo.lock and cache are up to date"},{name:"--locked",description:"Require Cargo.lock is up to date"},{name:"--offline",description:"Run without accessing the network"}],args:{name:"path",template:"folders"}},{name:"owner",icon:"\u{1F4E6}",description:"Manage the owners of a crate on the registry",options:[{name:["-a","--add"],description:"Name of a user or team to invite as an owner",isRepeatable:!0,args:{name:"add"}},{name:["-r","--remove"],description:"Name of a user or team to remove as an owner",isRepeatable:!0,args:{name:"remove"}},{name:"--index",description:"Registry index to modify owners for",args:{name:"index"}},{name:"--token",description:"API token to use when authenticating",args:{name:"token"}},{name:"--registry",description:"Registry to use",args:{name:"registry"}},{name:"--color",description:"Coloring: auto, always, never",args:{name:"color",suggestions:["always","never","auto"]}},{name:"--config",description:"Override a configuration value",isRepeatable:!0,args:{name:"config",generators:d}},{name:"-Z",description:"Unstable (nightly-only) flags to Cargo, see 'cargo -Z help' for details",isRepeatable:!0,args:{name:"unstable-features"}},{name:["-q","--quiet"],description:"Do not print cargo log messages"},{name:["-l","--list"],description:"List owners of a crate"},{name:["-h","--help"],description:"Print help information"},{name:["-v","--verbose"],description:"Use verbose output (-vv very verbose/build.rs output)",isRepeatable:!0},{name:"--frozen",description:"Require Cargo.lock and cache are up to date"},{name:"--locked",description:"Require Cargo.lock is up to date"},{name:"--offline",description:"Run without accessing the network"}],args:{name:"crate"}},{name:"package",icon:"\u{1F4E6}",description:"Assemble the local package into a distributable tarball",options:[{name:"--target",description:"Build for the target triple",isRepeatable:!0,args:{name:"target",filterStrategy:"fuzzy",generators:b}},{name:"--target-dir",description:"Directory for all generated artifacts",args:{name:"target-dir"}},{name:"--features",description:"Space or comma separated list of features to activate",isRepeatable:!0,args:{name:"features",generators:w,isVariadic:!0}},{name:["-p","--package"],description:"Package(s) to assemble",isRepeatable:!0,args:{name:"package",isVariadic:!0,filterStrategy:"fuzzy",generators:f}},{name:"--exclude",description:"Don't assemble specified packages",isRepeatable:!0,args:{name:"exclude",filterStrategy:"fuzzy",generators:f}},{name:"--manifest-path",description:"Path to Cargo.toml",args:{name:"manifest-path",generators:(0,m.filepaths)({equals:"Cargo.toml"})}},{name:["-j","--jobs"],description:"Number of parallel jobs, defaults to # of CPUs",args:{name:"jobs"}},{name:"--color",description:"Coloring: auto, always, never",args:{name:"color",suggestions:["always","never","auto"]}},{name:"--config",description:"Override a configuration value",isRepeatable:!0,args:{name:"config",generators:d}},{name:"-Z",description:"Unstable (nightly-only) flags to Cargo, see 'cargo -Z help' for details",isRepeatable:!0,args:{name:"unstable-features"}},{name:["-q","--quiet"],description:"Do not print cargo log messages"},{name:["-l","--list"],description:"Print files included in a package without making one"},{name:"--no-verify",description:"Don't verify the contents by building them"},{name:"--no-metadata",description:"Ignore warnings about a lack of human-usable metadata"},{name:"--allow-dirty",description:"Allow dirty working directories to be packaged"},{name:"--all-features",description:"Activate all available features"},{name:"--no-default-features",description:"Do not activate the `default` feature"},{name:"--workspace",description:"Assemble all packages in the workspace"},{name:["-h","--help"],description:"Print help information"},{name:["-v","--verbose"],description:"Use verbose output (-vv very verbose/build.rs output)",isRepeatable:!0},{name:"--frozen",description:"Require Cargo.lock and cache are up to date"},{name:"--locked",description:"Require Cargo.lock is up to date"},{name:"--offline",description:"Run without accessing the network"}]},{name:"pkgid",icon:"\u{1F4E6}",description:"Print a fully qualified package specification",options:[{name:["-p","--package"],description:"Argument to get the package ID specifier for",args:{name:"package",isVariadic:!0,filterStrategy:"fuzzy",generators:f}},{name:"--manifest-path",description:"Path to Cargo.toml",args:{name:"manifest-path",generators:(0,m.filepaths)({equals:"Cargo.toml"})}},{name:"--color",description:"Coloring: auto, always, never",args:{name:"color",suggestions:["always","never","auto"]}},{name:"--config",description:"Override a configuration value",isRepeatable:!0,args:{name:"config",generators:d}},{name:"-Z",description:"Unstable (nightly-only) flags to Cargo, see 'cargo -Z help' for details",isRepeatable:!0,args:{name:"unstable-features"}},{name:["-q","--quiet"],description:"Do not print cargo log messages"},{name:["-h","--help"],description:"Print help information"},{name:["-v","--verbose"],description:"Use verbose output (-vv very verbose/build.rs output)",isRepeatable:!0},{name:"--frozen",description:"Require Cargo.lock and cache are up to date"},{name:"--locked",description:"Require Cargo.lock is up to date"},{name:"--offline",description:"Run without accessing the network"}],args:{name:"SPEC",filterStrategy:"fuzzy",generators:f}},{name:"publish",icon:"\u{1F4E6}",description:"Upload a package to the registry",options:[{name:"--index",description:"Registry index URL to upload the package to",args:{name:"index"}},{name:"--token",description:"Token to use when uploading",args:{name:"token"}},{name:"--target",description:"Build for the target triple",isRepeatable:!0,args:{name:"target",filterStrategy:"fuzzy",generators:b}},{name:"--target-dir",description:"Directory for all generated artifacts",args:{name:"target-dir"}},{name:["-p","--package"],description:"Package to publish",args:{name:"package",isVariadic:!0,filterStrategy:"fuzzy",generators:f}},{name:"--manifest-path",description:"Path to Cargo.toml",args:{name:"manifest-path",generators:(0,m.filepaths)({equals:"Cargo.toml"})}},{name:"--features",description:"Space or comma separated list of features to activate",isRepeatable:!0,args:{name:"features",generators:w,isVariadic:!0}},{name:["-j","--jobs"],description:"Number of parallel jobs, defaults to # of CPUs",args:{name:"jobs"}},{name:"--registry",description:"Registry to publish to",args:{name:"registry"}},{name:"--color",description:"Coloring: auto, always, never",args:{name:"color",suggestions:["always","never","auto"]}},{name:"--config",description:"Override a configuration value",isRepeatable:!0,args:{name:"config",generators:d}},{name:"-Z",description:"Unstable (nightly-only) flags to Cargo, see 'cargo -Z help' for details",isRepeatable:!0,args:{name:"unstable-features"}},{name:["-q","--quiet"],description:"Do not print cargo log messages"},{name:"--no-verify",description:"Don't verify the contents by building them"},{name:"--allow-dirty",description:"Allow dirty working directories to be packaged"},{name:"--all-features",description:"Activate all available features"},{name:"--no-default-features",description:"Do not activate the `default` feature"},{name:"--dry-run",description:"Perform all checks without uploading"},{name:["-h","--help"],description:"Print help information"},{name:["-v","--verbose"],description:"Use verbose output (-vv very verbose/build.rs output)",isRepeatable:!0},{name:"--frozen",description:"Require Cargo.lock and cache are up to date"},{name:"--locked",description:"Require Cargo.lock is up to date"},{name:"--offline",description:"Run without accessing the network"}]},{name:"read-manifest",icon:"\u{1F4E6}",description:"Print a JSON representation of a Cargo.toml manifest. Deprecated, use `cargo metadata --no-deps` instead",hidden:!0,options:[{name:"--manifest-path",description:"Path to Cargo.toml",args:{name:"manifest-path",generators:(0,m.filepaths)({equals:"Cargo.toml"})}},{name:"--color",description:"Coloring: auto, always, never",args:{name:"color",suggestions:["always","never","auto"]}},{name:"--config",description:"Override a configuration value",isRepeatable:!0,args:{name:"config",generators:d}},{name:"-Z",description:"Unstable (nightly-only) flags to Cargo, see 'cargo -Z help' for details",isRepeatable:!0,args:{name:"unstable-features"}},{name:["-q","--quiet"],description:"Do not print cargo log messages"},{name:["-h","--help"],description:"Print help information"},{name:["-v","--verbose"],description:"Use verbose output (-vv very verbose/build.rs output)",isRepeatable:!0},{name:"--frozen",description:"Require Cargo.lock and cache are up to date"},{name:"--locked",description:"Require Cargo.lock is up to date"},{name:"--offline",description:"Run without accessing the network"}]},{name:"report",icon:"\u{1F4E6}",description:"Generate and display various kinds of reports",subcommands:[{name:"future-incompatibilities",description:"Reports any crates which will eventually stop compiling",options:[{name:"--id",description:"Identifier of the report generated by a Cargo command invocation",args:{name:"id"}},{name:["-p","--package"],description:"Package to display a report for",args:{name:"package",isVariadic:!0,filterStrategy:"fuzzy",generators:f}},{name:"--color",description:"Coloring: auto, always, never",args:{name:"color",suggestions:["always","never","auto"]}},{name:"--config",description:"Override a configuration value",isRepeatable:!0,args:{name:"config",generators:d}},{name:"-Z",description:"Unstable (nightly-only) flags to Cargo, see 'cargo -Z help' for details",isRepeatable:!0,args:{name:"unstable-features"}},{name:"--version",description:"Print version information"},{name:["-h","--help"],description:"Print help information"},{name:["-v","--verbose"],description:"Use verbose output (-vv very verbose/build.rs output)",isRepeatable:!0},{name:"--frozen",description:"Require Cargo.lock and cache are up to date"},{name:"--locked",description:"Require Cargo.lock is up to date"},{name:"--offline",description:"Run without accessing the network"}]},{name:"help",description:"Print this message or the help of the given subcommand(s)",options:[{name:"--color",description:"Coloring: auto, always, never",args:{name:"color",suggestions:["always","never","auto"]}},{name:"--config",description:"Override a configuration value",isRepeatable:!0,args:{name:"config",generators:d}},{name:"-Z",description:"Unstable (nightly-only) flags to Cargo, see 'cargo -Z help' for details",isRepeatable:!0,args:{name:"unstable-features"}},{name:"--version",description:"Print version information"},{name:["-h","--help"],description:"Print help information"},{name:["-v","--verbose"],description:"Use verbose output (-vv very verbose/build.rs output)",isRepeatable:!0},{name:"--frozen",description:"Require Cargo.lock and cache are up to date"},{name:"--locked",description:"Require Cargo.lock is up to date"},{name:"--offline",description:"Run without accessing the network"}],args:{name:"subcommand"}}],options:[{name:"--color",description:"Coloring: auto, always, never",args:{name:"color",suggestions:["always","never","auto"]}},{name:"--config",description:"Override a configuration value",isRepeatable:!0,args:{name:"config",generators:d}},{name:"-Z",description:"Unstable (nightly-only) flags to Cargo, see 'cargo -Z help' for details",isRepeatable:!0,args:{name:"unstable-features"}},{name:["-h","--help"],description:"Print help information"},{name:["-v","--verbose"],description:"Use verbose output (-vv very verbose/build.rs output)",isRepeatable:!0},{name:"--frozen",description:"Require Cargo.lock and cache are up to date"},{name:"--locked",description:"Require Cargo.lock is up to date"},{name:"--offline",description:"Run without accessing the network"}]},{name:["run","r"],icon:"\u{1F4E6}",description:"Run a binary or example of the local package",options:[{name:"--bin",description:"Name of the bin target to run",isRepeatable:!0,args:{name:"bin",isVariadic:!0,filterStrategy:"fuzzy",generators:u({kind:"bin"})}},{name:"--example",description:"Name of the example target to run",isRepeatable:!0,args:{name:"example",isVariadic:!0,filterStrategy:"fuzzy",generators:u({kind:"example"})}},{name:["-p","--package"],description:"Package with the target to run",args:{name:"package",isVariadic:!0,filterStrategy:"fuzzy",generators:f}},{name:["-j","--jobs"],description:"Number of parallel jobs, defaults to # of CPUs",args:{name:"jobs"}},{name:"--profile",description:"Build artifacts with the specified profile",args:{name:"profile"}},{name:"--features",description:"Space or comma separated list of features to activate",isRepeatable:!0,args:{name:"features",generators:w,isVariadic:!0}},{name:"--target",description:"Build for the target triple",isRepeatable:!0,args:{name:"target",filterStrategy:"fuzzy",generators:b}},{name:"--target-dir",description:"Directory for all generated artifacts",args:{name:"target-dir"}},{name:"--manifest-path",description:"Path to Cargo.toml",args:{name:"manifest-path",generators:(0,m.filepaths)({equals:"Cargo.toml"})}},{name:"--message-format",description:"Error format",isRepeatable:!0,args:{name:"message-format"}},{name:"--color",description:"Coloring: auto, always, never",args:{name:"color",suggestions:["always","never","auto"]}},{name:"--config",description:"Override a configuration value",isRepeatable:!0,args:{name:"config",generators:d}},{name:"-Z",description:"Unstable (nightly-only) flags to Cargo, see 'cargo -Z help' for details",isRepeatable:!0,args:{name:"unstable-features"}},{name:["-q","--quiet"],description:"Do not print cargo log messages"},{name:["-r","--release"],description:"Build artifacts in release mode, with optimizations"},{name:"--all-features",description:"Activate all available features"},{name:"--no-default-features",description:"Do not activate the `default` feature"},{name:"--unit-graph",description:"Output build graph in JSON (unstable)"},{name:"--ignore-rust-version",description:"Ignore `rust-version` specification in packages"},{name:["-h","--help"],description:"Print help information"},{name:["-v","--verbose"],description:"Use verbose output (-vv very verbose/build.rs output)",isRepeatable:!0},{name:"--frozen",description:"Require Cargo.lock and cache are up to date"},{name:"--locked",description:"Require Cargo.lock is up to date"},{name:"--offline",description:"Run without accessing the network"},{name:"--timings",description:"Timing output formats (unstable)"}],args:{name:"args",isVariadic:!0,isOptional:!0}},{name:"rustc",icon:"\u{1F4E6}",description:"Compile a package, and pass extra options to the compiler",options:[{name:["-p","--package"],description:"Package to build",args:{name:"package",isVariadic:!0,filterStrategy:"fuzzy",generators:f}},{name:["-j","--jobs"],description:"Number of parallel jobs, defaults to # of CPUs",args:{name:"jobs"}},{name:"--bin",description:"Build only the specified binary",isRepeatable:!0,args:{name:"bin",filterStrategy:"fuzzy",generators:u({kind:"bin"}),isVariadic:!0}},{name:"--example",description:"Build only the specified example",isRepeatable:!0,args:{name:"example",isVariadic:!0,filterStrategy:"fuzzy",generators:u({kind:"example"})}},{name:"--test",description:"Build only the specified test target",isRepeatable:!0,args:{name:"test",isVariadic:!0,filterStrategy:"fuzzy",generators:u({kind:"test"})}},{name:"--bench",description:"Build only the specified bench target",isRepeatable:!0,args:{name:"bench",isVariadic:!0,filterStrategy:"fuzzy",generators:u({kind:"bench"})}},{name:"--profile",description:"Build artifacts with the specified profile",args:{name:"profile"}},{name:"--features",description:"Space or comma separated list of features to activate",isRepeatable:!0,args:{name:"features",generators:w,isVariadic:!0}},{name:"--target",description:"Target triple which compiles will be for",isRepeatable:!0,args:{name:"target",filterStrategy:"fuzzy",generators:b}},{name:"--print",description:"Output compiler information without compiling",args:{name:"print"}},{name:"--crate-type",description:"Comma separated list of types of crates for the compiler to emit",isRepeatable:!0,args:{name:"crate-type"}},{name:"--target-dir",description:"Directory for all generated artifacts",args:{name:"target-dir"}},{name:"--manifest-path",description:"Path to Cargo.toml",args:{name:"manifest-path",generators:(0,m.filepaths)({equals:"Cargo.toml"})}},{name:"--message-format",description:"Error format",isRepeatable:!0,args:{name:"message-format"}},{name:"--color",description:"Coloring: auto, always, never",args:{name:"color",suggestions:["always","never","auto"]}},{name:"--config",description:"Override a configuration value",isRepeatable:!0,args:{name:"config",generators:d}},{name:"-Z",description:"Unstable (nightly-only) flags to Cargo, see 'cargo -Z help' for details",isRepeatable:!0,args:{name:"unstable-features"}},{name:["-q","--quiet"],description:"Do not print cargo log messages"},{name:"--lib",description:"Build only this package's library"},{name:"--bins",description:"Build all binaries"},{name:"--examples",description:"Build all examples"},{name:"--tests",description:"Build all tests"},{name:"--benches",description:"Build all benches"},{name:"--all-targets",description:"Build all targets"},{name:["-r","--release"],description:"Build artifacts in release mode, with optimizations"},{name:"--all-features",description:"Activate all available features"},{name:"--no-default-features",description:"Do not activate the `default` feature"},{name:"--unit-graph",description:"Output build graph in JSON (unstable)"},{name:"--ignore-rust-version",description:"Ignore `rust-version` specification in packages"},{name:"--future-incompat-report",description:"Outputs a future incompatibility report at the end of the build"},{name:["-h","--help"],description:"Print help information"},{name:["-v","--verbose"],description:"Use verbose output (-vv very verbose/build.rs output)",isRepeatable:!0},{name:"--frozen",description:"Require Cargo.lock and cache are up to date"},{name:"--locked",description:"Require Cargo.lock is up to date"},{name:"--offline",description:"Run without accessing the network"},{name:"--timings",description:"Timing output formats (unstable)"}],args:{name:"args",isVariadic:!0}},{name:"rustdoc",icon:"\u{1F4E6}",description:"Build a package's documentation, using specified custom flags",options:[{name:["-p","--package"],description:"Package to document",args:{name:"package",isVariadic:!0,filterStrategy:"fuzzy",generators:f}},{name:["-j","--jobs"],description:"Number of parallel jobs, defaults to # of CPUs",args:{name:"jobs"}},{name:"--bin",description:"Build only the specified binary",isRepeatable:!0,args:{name:"bin",filterStrategy:"fuzzy",generators:u({kind:"bin"}),isVariadic:!0}},{name:"--example",description:"Build only the specified example",isRepeatable:!0,args:{name:"example",isVariadic:!0,filterStrategy:"fuzzy",generators:u({kind:"example"})}},{name:"--test",description:"Build only the specified test target",isRepeatable:!0,args:{name:"test",isVariadic:!0,filterStrategy:"fuzzy",generators:u({kind:"test"})}},{name:"--bench",description:"Build only the specified bench target",isRepeatable:!0,args:{name:"bench",isVariadic:!0,filterStrategy:"fuzzy",generators:u({kind:"bench"})}},{name:"--profile",description:"Build artifacts with the specified profile",args:{name:"profile"}},{name:"--features",description:"Space or comma separated list of features to activate",isRepeatable:!0,args:{name:"features",generators:w,isVariadic:!0}},{name:"--target",description:"Build for the target triple",isRepeatable:!0,args:{name:"target",filterStrategy:"fuzzy",generators:b}},{name:"--target-dir",description:"Directory for all generated artifacts",args:{name:"target-dir"}},{name:"--manifest-path",description:"Path to Cargo.toml",args:{name:"manifest-path",generators:(0,m.filepaths)({equals:"Cargo.toml"})}},{name:"--message-format",description:"Error format",isRepeatable:!0,args:{name:"message-format"}},{name:"--color",description:"Coloring: auto, always, never",args:{name:"color",suggestions:["always","never","auto"]}},{name:"--config",description:"Override a configuration value",isRepeatable:!0,args:{name:"config",generators:d}},{name:"-Z",description:"Unstable (nightly-only) flags to Cargo, see 'cargo -Z help' for details",isRepeatable:!0,args:{name:"unstable-features"}},{name:["-q","--quiet"],description:"Do not print cargo log messages"},{name:"--open",description:"Opens the docs in a browser after the operation"},{name:"--lib",description:"Build only this package's library"},{name:"--bins",description:"Build all binaries"},{name:"--examples",description:"Build all examples"},{name:"--tests",description:"Build all tests"},{name:"--benches",description:"Build all benches"},{name:"--all-targets",description:"Build all targets"},{name:["-r","--release"],description:"Build artifacts in release mode, with optimizations"},{name:"--all-features",description:"Activate all available features"},{name:"--no-default-features",description:"Do not activate the `default` feature"},{name:"--unit-graph",description:"Output build graph in JSON (unstable)"},{name:"--ignore-rust-version",description:"Ignore `rust-version` specification in packages"},{name:["-h","--help"],description:"Print help information"},{name:["-v","--verbose"],description:"Use verbose output (-vv very verbose/build.rs output)",isRepeatable:!0},{name:"--frozen",description:"Require Cargo.lock and cache are up to date"},{name:"--locked",description:"Require Cargo.lock is up to date"},{name:"--offline",description:"Run without accessing the network"},{name:"--timings",description:"Timing output formats (unstable)"}],args:{name:"args",isVariadic:!0}},{name:"search",icon:"\u{1F50E}",description:"Search packages in crates.io",options:[{name:"--index",description:"Registry index URL to upload the package to",args:{name:"index"}},{name:"--limit",description:"Limit the number of results (default: 10, max: 100)",args:{name:"limit"}},{name:"--registry",description:"Registry to use",args:{name:"registry"}},{name:"--color",description:"Coloring: auto, always, never",args:{name:"color"}},{name:"--config",description:"Override a configuration value",isRepeatable:!0,args:{name:"config",generators:d}},{name:"-Z",description:"Unstable (nightly-only) flags to Cargo, see 'cargo -Z help' for details",isRepeatable:!0,args:{name:"unstable-features"}},{name:["-q","--quiet"],description:"Do not print cargo log messages"},{name:["-h","--help"],description:"Print help information"},{name:["-v","--verbose"],description:"Use verbose output (-vv very verbose/build.rs output)",isRepeatable:!0},{name:"--frozen",description:"Require Cargo.lock and cache are up to date"},{name:"--locked",description:"Require Cargo.lock is up to date"},{name:"--offline",description:"Run without accessing the network"}],args:{name:"query",generators:H,filterStrategy:"fuzzy",debounce:!0,isVariadic:!0,suggestCurrentToken:!0}},{name:["test","t"],icon:"\u{1F4E6}",description:"Execute all unit and integration tests and build examples of a local package",options:[{name:"--bin",description:"Test only the specified binary",isRepeatable:!0,args:{name:"bin",filterStrategy:"fuzzy",generators:u({kind:"bin"}),isVariadic:!0}},{name:"--example",description:"Test only the specified example",isRepeatable:!0,args:{name:"example",isVariadic:!0,filterStrategy:"fuzzy",generators:u({kind:"example"})}},{name:"--test",description:"Test only the specified test target",isRepeatable:!0,args:{name:"test",isVariadic:!0,filterStrategy:"fuzzy",generators:u({kind:"test"})}},{name:"--bench",description:"Test only the specified bench target",isRepeatable:!0,args:{name:"bench",isVariadic:!0,filterStrategy:"fuzzy",generators:u({kind:"bench"})}},{name:["-p","--package"],description:"Package to run tests for",isRepeatable:!0,args:{name:"package",isVariadic:!0,filterStrategy:"fuzzy",generators:f}},{name:"--exclude",description:"Exclude packages from the test",isRepeatable:!0,args:{name:"exclude",filterStrategy:"fuzzy",generators:f}},{name:["-j","--jobs"],description:"Number of parallel jobs, defaults to # of CPUs",args:{name:"jobs"}},{name:"--profile",description:"Build artifacts with the specified profile",args:{name:"profile"}},{name:"--features",description:"Space or comma separated list of features to activate",isRepeatable:!0,args:{name:"features",generators:w,isVariadic:!0}},{name:"--target",description:"Build for the target triple",isRepeatable:!0,args:{name:"target",filterStrategy:"fuzzy",generators:b}},{name:"--target-dir",description:"Directory for all generated artifacts",args:{name:"target-dir"}},{name:"--manifest-path",description:"Path to Cargo.toml",args:{name:"manifest-path",generators:(0,m.filepaths)({equals:"Cargo.toml"})}},{name:"--message-format",description:"Error format",isRepeatable:!0,args:{name:"message-format"}},{name:"--color",description:"Coloring: auto, always, never",args:{name:"color",suggestions:["auto","always","never"]}},{name:"--config",description:"Override a configuration value",isRepeatable:!0,args:{name:"config",generators:d}},{name:"-Z",description:"Unstable (nightly-only) flags to Cargo, see 'cargo -Z help' for details",isRepeatable:!0,args:{name:"unstable-features"}},{name:["-q","--quiet"],description:"Display one character per test instead of one line"},{name:"--lib",description:"Test only this package's library unit tests"},{name:"--bins",description:"Test all binaries"},{name:"--examples",description:"Test all examples"},{name:"--tests",description:"Test all tests"},{name:"--benches",description:"Test all benches"},{name:"--all-targets",description:"Test all targets"},{name:"--doc",description:"Test only this library's documentation"},{name:"--no-run",description:"Compile, but don't run tests"},{name:"--no-fail-fast",description:"Run all tests regardless of failure"},{name:"--workspace",description:"Test all packages in the workspace"},{name:"--all",description:"Alias for --workspace (deprecated)",hidden:!0},{name:["-r","--release"],description:"Build artifacts in release mode, with optimizations"},{name:"--all-features",description:"Activate all available features"},{name:"--no-default-features",description:"Do not activate the `default` feature"},{name:"--ignore-rust-version",description:"Ignore `rust-version` specification in packages"},{name:"--unit-graph",description:"Output build graph in JSON (unstable)"},{name:"--future-incompat-report",description:"Outputs a future incompatibility report at the end of the build"},{name:["-h","--help"],description:"Print help information"},{name:["-v","--verbose"],description:"Use verbose output (-vv very verbose/build.rs output)",isRepeatable:!0},{name:"--frozen",description:"Require Cargo.lock and cache are up to date"},{name:"--locked",description:"Require Cargo.lock is up to date"},{name:"--offline",description:"Run without accessing the network"},{name:"--timings",description:"Timing output formats (unstable)"}],args:[{name:"TESTNAME",isOptional:!0},{name:"args",isOptional:!0,isVariadic:!0}]},{name:"tree",icon:"\u{1F4E6}",description:"Display a tree visualization of a dependency graph",options:[{name:"--manifest-path",description:"Path to Cargo.toml",args:{name:"manifest-path",generators:(0,m.filepaths)({equals:"Cargo.toml"})}},{name:["-p","--package"],description:"Package to be used as the root of the tree",isRepeatable:!0,args:{name:"package",isVariadic:!0,filterStrategy:"fuzzy",generators:f}},{name:"--exclude",description:"Exclude specific workspace members",isRepeatable:!0,args:{name:"exclude",filterStrategy:"fuzzy",generators:f}},{name:"--features",description:"Space or comma separated list of features to activate",isRepeatable:!0,args:{name:"features",generators:w,isVariadic:!0}},{name:"--target",description:"Filter dependencies matching the given target-triple (default host platform). Pass `all` to include all targets",isRepeatable:!0,args:{name:"target",suggestions:["all"],filterStrategy:"fuzzy",generators:b}},{name:["-e","--edges"],description:"The kinds of dependencies to display (features, normal, build, dev, all, no-normal, no-build, no-dev, no-proc-macro)",isRepeatable:!0,args:{name:"edges",suggestions:["features","normal","build","dev","all","no-normal","no-build","no-dev","no-proc-macro"]}},{name:["-i","--invert"],description:"Invert the tree direction and focus on the given package",isRepeatable:!0,args:{name:"invert",isVariadic:!0,filterStrategy:"fuzzy",generators:F}},{name:"--prune",description:"Prune the given package from the display of the dependency tree",isRepeatable:!0,args:{name:"prune",filterStrategy:"fuzzy",generators:F}},{name:"--depth",description:"Maximum display depth of the dependency tree",args:{name:"depth"}},{name:"--prefix",description:"Change the prefix (indentation) of how each entry is displayed",args:{name:"prefix",suggestions:["depth","indent","none"]}},{name:"--charset",description:"Character set to use in output: utf8, ascii",args:{name:"charset",suggestions:["utf8","ascii"]}},{name:["-f","--format"],description:"Format string used for printing dependencies",args:{name:"format"}},{name:"--color",description:"Coloring: auto, always, never",args:{name:"color",suggestions:["auto","always","never"]}},{name:"--config",description:"Override a configuration value",isRepeatable:!0,args:{name:"config",generators:d}},{name:"-Z",description:"Unstable (nightly-only) flags to Cargo, see 'cargo -Z help' for details",isRepeatable:!0,args:{name:"unstable-features"}},{name:["-q","--quiet"],description:"Do not print cargo log messages"},{name:"--workspace",description:"Display the tree for all packages in the workspace"},{name:["-a","--all"]},{name:"--all-targets"},{name:"--all-features",description:"Activate all available features"},{name:"--no-default-features",description:"Do not activate the `default` feature"},{name:"--no-dev-dependencies"},{name:"--no-indent"},{name:"--prefix-depth"},{name:"--no-dedupe",description:"Do not de-duplicate (repeats all shared dependencies)"},{name:["-d","--duplicates"],description:"Show only dependencies which come in multiple versions (implies -i)"},{name:["-V","--version"]},{name:["-h","--help"],description:"Print help information"},{name:["-v","--verbose"],description:"Use verbose output (-vv very verbose/build.rs output)",isRepeatable:!0},{name:"--frozen",description:"Require Cargo.lock and cache are up to date"},{name:"--locked",description:"Require Cargo.lock is up to date"},{name:"--offline",description:"Run without accessing the network"}]},{name:"uninstall",icon:"\u{1F4E6}",description:"Remove a Rust binary",options:[{name:["-p","--package"],description:"Package to uninstall",isRepeatable:!0,args:{name:"package",isVariadic:!0}},{name:"--bin",description:"Only uninstall the binary NAME",isRepeatable:!0,args:{name:"bin"}},{name:"--root",description:"Directory to uninstall packages from",args:{name:"root"}},{name:"--color",description:"Coloring: auto, always, never",args:{name:"color",suggestions:["auto","always","never"]}},{name:"--config",description:"Override a configuration value",isRepeatable:!0,args:{name:"config",generators:d}},{name:"-Z",description:"Unstable (nightly-only) flags to Cargo, see 'cargo -Z help' for details",isRepeatable:!0,args:{name:"unstable-features"}},{name:["-q","--quiet"],description:"Do not print cargo log messages"},{name:["-h","--help"],description:"Print help information"},{name:["-v","--verbose"],description:"Use verbose output (-vv very verbose/build.rs output)",isRepeatable:!0},{name:"--frozen",description:"Require Cargo.lock and cache are up to date"},{name:"--locked",description:"Require Cargo.lock is up to date"},{name:"--offline",description:"Run without accessing the network"}],args:{name:"SPEC",generators:{script:["bash","-c",`cargo install --list | \\grep -E "^[a-zA-Z\\-]+\\sv" | cut -d ' ' -f 1`],splitOn:`
|
|
1
|
+
var de=Object.create;var K=Object.defineProperty;var ue=Object.getOwnPropertyDescriptor;var me=Object.getOwnPropertyNames;var ge=Object.getPrototypeOf,fe=Object.prototype.hasOwnProperty;var V=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var he=(e,t,a,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of me(t))!fe.call(e,n)&&n!==a&&K(e,n,{get:()=>t[n],enumerable:!(i=ue(t,n))||i.enumerable});return e};var be=(e,t,a)=>(a=e!=null?de(ge(e)):{},he(t||!e||!e.__esModule?K(a,"default",{value:e,enumerable:!0}):a,e));var Y=V(T=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0});T.shellExpand=T.ensureTrailingSlash=void 0;var ve=e=>e.endsWith("/")?e:`${e}/`;T.ensureTrailingSlash=ve;var ye=(e,t)=>e.startsWith("~")&&(e.length===1||e.charAt(1)==="/")?e.replace("~",t):e,ke=(e,t)=>e.replace(/\$([A-Za-z0-9_]+)/g,n=>{var o;let s=n.slice(1);return(o=t[s])!==null&&o!==void 0?o:n}).replace(/\$\{([A-Za-z0-9_]+)(?::-([^}]+))?\}/g,(n,o,s)=>{var l,r;return(r=(l=t[o])!==null&&l!==void 0?l:s)!==null&&r!==void 0?r:n}),we=(e,t)=>{var a;let{environmentVariables:i}=t;return ke(ye(e,(a=i?.HOME)!==null&&a!==void 0?a:"~"),i)};T.shellExpand=we});var X=V(S=>{"use strict";var Re=S&&S.__awaiter||function(e,t,a,i){function n(o){return o instanceof a?o:new a(function(s){s(o)})}return new(a||(a=Promise))(function(o,s){function l(c){try{p(i.next(c))}catch(g){s(g)}}function r(c){try{p(i.throw(c))}catch(g){s(g)}}function p(c){c.done?o(c.value):n(c.value).then(l,r)}p((i=i.apply(e,t||[])).next())})};Object.defineProperty(S,"__esModule",{value:!0});S.filepaths=S.folders=S.getCurrentInsertedDirectory=void 0;S.sortFilesAlphabetically=Q;var Z=Y();function Q(e,t=[]){let a=t.map(n=>n.toLowerCase()),i=e.filter(n=>!a.includes(n.toLowerCase()));return[...i.filter(n=>!n.startsWith(".")).sort((n,o)=>n.localeCompare(o)),...i.filter(n=>n.startsWith(".")).sort((n,o)=>n.localeCompare(o)),"../"]}var Ce=(e,t,a)=>{if(e===null)return"/";let i=(0,Z.shellExpand)(t,a),n=i.slice(0,i.lastIndexOf("/")+1);return n===""?(0,Z.ensureTrailingSlash)(e):n.startsWith("/")?n:`${(0,Z.ensureTrailingSlash)(e)}${n}`};S.getCurrentInsertedDirectory=Ce;function N(e={}){let{extensions:t=[],equals:a=[],matches:i,filterFolders:n=!1,editFileSuggestions:o,editFolderSuggestions:s,rootDirectory:l,showFolders:r="always"}=e,p=new Set(t),c=new Set(a),g=()=>t.length>0||a.length>0||i,R=(v=[])=>g()?v.filter(({name:k="",type:x})=>{if(!n&&x==="folder"||c.has(k)||i&&k.match(i))return!0;let[,...h]=k.split(".");if(h.length>=1){let z=h.length-1,q=h[z];do{if(p.has(q))return!0;z-=1,q=[h[z],q].join(".")}while(z>=0)}return!1}):v,P=(v=[])=>!o&&!s?v:v.map(k=>Object.assign(Object.assign({},k),(k.type==="file"?o:s)||{}));return{trigger:(v,k)=>{let x=v.lastIndexOf("/"),h=k.lastIndexOf("/");return x!==h?!0:x===-1&&h===-1?!1:v.slice(0,x)!==k.slice(0,h)},getQueryTerm:v=>v.slice(v.lastIndexOf("/")+1),custom:(v,k,x)=>Re(this,void 0,void 0,function*(){var h;let{isDangerous:z,currentWorkingDirectory:q,searchTerm:y}=x,O=(h=(0,S.getCurrentInsertedDirectory)(l??q,y,x))!==null&&h!==void 0?h:"/";try{let $=yield k({command:"ls",args:["-1ApL"],cwd:O}),pe=Q($.stdout.split(`
|
|
2
|
+
`),[".DS_Store"]),J=[];for(let j of pe)if(j){let I=j.endsWith("/")?"folders":"filepaths";(I==="filepaths"&&r!=="only"||I==="folders"&&r!=="never")&&J.push({type:I==="filepaths"?"file":"folder",name:j,insertValue:j,isDangerous:z,context:{templateType:I}})}return P(R(J))}catch{return[]}})}}S.folders=Object.assign(()=>N({showFolders:"only"}),Object.freeze(N({showFolders:"only"})));S.filepaths=Object.assign(N,Object.freeze(N()))});var ie=V(D=>{"use strict";var E=D&&D.__awaiter||function(e,t,a,i){function n(o){return o instanceof a?o:new a(function(s){s(o)})}return new(a||(a=Promise))(function(o,s){function l(c){try{p(i.next(c))}catch(g){s(g)}}function r(c){try{p(i.throw(c))}catch(g){s(g)}}function p(c){c.done?o(c.value):n(c.value).then(l,r)}p((i=i.apply(e,t||[])).next())})};Object.defineProperty(D,"__esModule",{value:!0});D.valueList=ze;D.keyValue=Se;D.keyValueList=xe;var ee=new Map;function _(e,t){return e.length===0?t:t.map(a=>a.insertValue?a:Object.assign(Object.assign({},a),{insertValue:a.name+e}))}function te(e,t,a){return E(this,void 0,void 0,function*(){if(typeof e=="function"){let i=yield e(...a);return _(t,i)}if(typeof e[0]=="string"){let i=e.map(n=>({name:n}));return _(t,i)}return _(t,e)})}function L(e,t,a,i){return E(this,void 0,void 0,function*(){if(a||Array.isArray(e)){let n=ee.get(e);return n===void 0&&(n=yield te(e,t,i),ee.set(e,n)),n}return te(e,t,i)})}function ae(e,t){return typeof t=="string"?e&&t==="keys"||!e&&t==="values":t}function B(e,...t){return Math.max(...t.map(a=>e.lastIndexOf(a)))}function M(e,t){let a=new Set(e);return t.filter(i=>{var n;return typeof i.name=="string"?!a.has(i.name):!(!((n=i.name)===null||n===void 0)&&n.some(o=>a.has(o)))})}function ze({delimiter:e=",",values:t=[],cache:a=!1,insertDelimiter:i=!1,allowRepeatedValues:n=!1}){return{trigger:(o,s)=>o.lastIndexOf(e)!==s.lastIndexOf(e),getQueryTerm:o=>o.slice(o.lastIndexOf(e)+e.length),custom:(...o)=>E(this,void 0,void 0,function*(){var s;let l=yield L(t,i?e:"",a,o);if(n)return l;let[r]=o,p=(s=r[r.length-1])===null||s===void 0?void 0:s.split(e);return M(p,l)})}}function Se({separator:e="=",keys:t=[],values:a=[],cache:i=!1,insertSeparator:n=!0}){return{trigger:(o,s)=>o.indexOf(e)!==s.indexOf(e),getQueryTerm:o=>o.slice(o.indexOf(e)+1),custom:(...o)=>E(this,void 0,void 0,function*(){let[s]=o,r=!s[s.length-1].includes(e),p=r?t:a,c=ae(r,i);return L(p,r&&n?e:"",c,o)})}}function xe({separator:e="=",delimiter:t=",",keys:a=[],values:i=[],cache:n=!1,insertSeparator:o=!0,insertDelimiter:s=!1,allowRepeatedKeys:l=!1,allowRepeatedValues:r=!0}){return{trigger:(p,c)=>{let g=B(p,e,t),R=B(c,e,t);return g!==R},getQueryTerm:p=>{let c=B(p,e,t);return p.slice(c+1)},custom:(...p)=>E(this,void 0,void 0,function*(){let[c]=p,g=c[c.length-1],R=B(g,e,t),P=R===-1||g.slice(R,R+e.length)!==e,v=P?a:i,k=ae(P,n),h=yield L(v,P?o?e:"":s?t:"",k,p);if(P){if(l)return h;let q=g.split(t).map(y=>y.slice(0,y.indexOf(e)));return M(q,h)}if(r)return h;let z=g.split(t).map(q=>q.slice(q.indexOf(e)+e.length));return M(z,h)})}}});var ne=V(A=>{"use strict";var qe=A&&A.__awaiter||function(e,t,a,i){function n(o){return o instanceof a?o:new a(function(s){s(o)})}return new(a||(a=Promise))(function(o,s){function l(c){try{p(i.next(c))}catch(g){s(g)}}function r(c){try{p(i.throw(c))}catch(g){s(g)}}function p(c){c.done?o(c.value):n(c.value).then(l,r)}p((i=i.apply(e,t||[])).next())})};Object.defineProperty(A,"__esModule",{value:!0});A.ai=Ue;var Pe=4097,Oe=4,De=.8,Te=Pe*Oe*De;function Ue({name:e,prompt:t,message:a,postProcess:i,temperature:n,splitOn:o}){return{scriptTimeout:15e3,custom:(s,l,r)=>qe(this,void 0,void 0,function*(){var p,c;let g=yield l({command:"fig",args:["settings","--format","json","autocomplete.ai.enabled"]});if(!JSON.parse(g.stdout))return[];let R=typeof t=="function"?yield t({tokens:s,executeCommand:l,generatorContext:r}):t,P=typeof a=="function"?yield a({tokens:s,executeCommand:l,generatorContext:r}):a;if(P===null||P.length===0)return console.warn("No message provided to AI generator"),[];let v=Te-((p=R?.length)!==null&&p!==void 0?p:0),k={model:"gpt-3.5-turbo",source:"autocomplete",name:e,messages:[...R?[{role:"system",content:R}]:[],{role:"user",content:P.slice(0,v)}],temperature:n},x=JSON.stringify(k),h=yield l({command:"fig",args:["_","request","--route","/ai/chat","--method","POST","--body",x]}),z=JSON.parse(h.stdout);return(c=z?.choices.map(y=>{var O;return(O=y?.message)===null||O===void 0?void 0:O.content}).filter(y=>typeof y=="string").flatMap(y=>o?y.split(o).filter(O=>O.trim().length>0):[y]).map(y=>{if(i)return i(y);let O=y.trim().replace(/\n/g," ");return{icon:"\u{1FA84}",name:O,insertValue:`'${O}'`,description:"Generated by Fig AI"}}))!==null&&c!==void 0?c:[]})}}});var oe=V(C=>{"use strict";var Ve=C&&C.__createBinding||(Object.create?function(e,t,a,i){i===void 0&&(i=a);var n=Object.getOwnPropertyDescriptor(t,a);(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,i,n)}:function(e,t,a,i){i===void 0&&(i=a),e[i]=t[a]}),Ee=C&&C.__exportStar||function(e,t){for(var a in e)a!=="default"&&!Object.prototype.hasOwnProperty.call(t,a)&&Ve(t,e,a)};Object.defineProperty(C,"__esModule",{value:!0});C.ai=C.folders=C.filepaths=void 0;var re=X();Object.defineProperty(C,"filepaths",{enumerable:!0,get:function(){return re.filepaths}});Object.defineProperty(C,"folders",{enumerable:!0,get:function(){return re.folders}});Ee(ie(),C);var Ae=ne();Object.defineProperty(C,"ai",{enumerable:!0,get:function(){return Ae.ai}})});var m=be(oe(),1),G=[{name:"2015",description:"2015 edition"},{name:"2018",description:"2018 edition"},{name:"2021",description:"2021 edition"}],W=[{name:"git",icon:"fig://icon?type=git",description:"Initialize with Git"},{name:"hg",icon:"\u2697\uFE0F",description:"Initialize with Mercurial"},{name:"pijul",icon:"\u{1F99C}",description:"Initialize with Pijul"},{name:"fossil",icon:"\u{1F9B4}",description:"Initialize with Fossil"},{name:"none",icon:"\u{1F6AB}",description:"Initialize with no VCS"}],le=e=>{let t=`${e.workspace_root}/Cargo.toml`;console.log(t);let a=e.packages.find(i=>i.source===t);return a?[a]:e.packages.filter(i=>!i.source)},f={script:["cargo","metadata","--format-version","1","--no-deps"],postProcess:e=>JSON.parse(e).packages.map(a=>({icon:"\u{1F4E6}",name:a.name,description:`${a.version}${a.description?` - ${a.description}`:""}`}))},Fe={script:["cargo","metadata","--format-version","1"],postProcess:e=>{let t=JSON.parse(e),i=le(t).flatMap(n=>n.dependencies).map(n=>({name:n.name,description:n.req}));return[...new Map(i.map(n=>[n.name,n])).values()]}},u=({kind:e})=>({custom:async(t,a,i)=>{let{stdout:n}=await a({command:"cargo",args:["metadata","--format-version","1","--no-deps"]}),o=JSON.parse(n),l=le(o).flatMap(r=>r.targets);return e&&(l=l.filter(r=>r.kind.includes(e))),l.map(r=>{let p=r.src_path.replace(i.currentWorkingDirectory,"");return{icon:"\u{1F3AF}",name:r.name,description:p}})}}),F={script:["cargo","metadata","--format-version","1"],postProcess:e=>JSON.parse(e).packages.map(a=>({name:a.name,description:a.description}))},w={script:["cargo","read-manifest"],postProcess:e=>{let t=JSON.parse(e);return Object.keys(t.features||{}).map(a=>({icon:"\u{1F39A}",name:a,description:`Features: [${t.features[a].join(", ")}]`}))}},se={custom:async function(e,t){let a="Makefile.toml",i=e.findIndex(p=>p==="--makefile");i!==-1&&e.length>i+1&&(a=e[i+1]);let n=[a],{stdout:o}=await t({command:"cat",args:n}),s=/\[tasks\.([^\]]+)\]/g,l,r=[];for(;(l=s.exec(o))!==null;)r.push({name:l[1]});return r}},H={custom:async(e,t)=>{let a=new Intl.NumberFormat(void 0,{notation:"compact",compactDisplay:"short",maximumSignificantDigits:3}),i=e[e.length-1];if(i.includes("@")&&!i.startsWith("@")){let[n,o]=i.split("@"),s=encodeURIComponent(n),{stdout:l}=await t({command:"curl",args:["-sfL",`https://crates.io/api/v1/crates/${s}/versions`]});return JSON.parse(l).versions.map(p=>({name:`${n}@${p.num}`,insertValue:`${p.num}`,description:`${a.format(p.downloads)} downloads - ${new Date(p.created_at).toLocaleDateString()}`,hidden:p.yanked}))}else if(i.length>0){let n=encodeURIComponent(i),[{stdout:o},{stdout:s}]=await Promise.all([t({command:"curl",args:["-sfL",`https://crates.io/api/v1/crates?q=${n}&per_page=60`]}),t({command:"cargo",args:["metadata","--format-version","1","--no-deps"]})]),r=JSON.parse(o).crates.sort((c,g)=>g.recent_downloads-c.recent_downloads).map(c=>({icon:"\u{1F4E6}",displayName:`${c.name}@${c.newest_version}`,name:c.name,description:`${a.format(c.recent_downloads)}${c.description?` - ${c.description}`:""}`})),p=[];return s.trim().length>0&&(p=JSON.parse(s).packages.filter(g=>!g.source).map(g=>({icon:"\u{1F4E6}",displayName:`${g.name}@${g.version}`,name:g.name,description:`Local Crate ${g.version}${g.description?` - ${g.description}`:""}`}))),r.concat(p)}else return[]},trigger:(e,t)=>{let a=e.indexOf("@"),i=t.indexOf("@");return a===-1&&i===-1||a!==i},getQueryTerm:"@"},b={script:["rustc","--print","target-list"],postProcess:e=>e.split(`
|
|
3
|
+
`).filter(t=>t.trim()!=="").map(t=>({name:t}))},U=[{name:"true"},{name:"false"}],ce={"build.jobs":{description:"Sets the maximum number of compiler processes to run in parallel"},"build.rustc":{description:"Path to the rustc compiler"},"build.rustc-wrapper":{description:"Sets a wrapper to execute instead of rustc"},"build.target":{description:"The default target platform triples to compile to"},"build.target-dir":{description:"The path to where all compiler output is placed"},"build.rustflags":{description:"Extra command-line flags to pass to rustc"},"build.rustdocflags":{description:"Extra command-line flags to pass to rustdoc"},"build.incremental":{description:"Whether or not to perform incremental compilation",tomlSuggestions:U},"build.dep-info-basedir":{description:"Strips the given path prefix from dep info file paths"},"doc.browser":{description:"This option sets the browser to be used by cargo doc, overriding the BROWSER environment variable when opening documentation with the --open option"},"cargo-new.vcs":{description:"Specifies the source control system to use for initializing a new repository",tomlSuggestions:W.map(e=>({...e,name:`\\"${e.name}\\"`,insertValue:`\\"${e.name}\\"`}))},"future-incompat-report.frequency":{description:"Controls how often we display a notification to the terminal when a future incompat report is available",tomlSuggestions:[{name:'\\"always\\"',insertValue:'\\"always\\"',description:"Always display a notification when a command (e.g. cargo build) produces a future incompat report"},{name:'\\"never\\"',insertValue:'\\"never\\"',description:"Never display a notification"}]},"http.debug":{description:"If true, enables debugging of HTTP requests",tomlSuggestions:U},"http.proxy":{description:"Sets an HTTP and HTTPS proxy to use"},"http.timeout":{description:"Sets the timeout for each HTTP request, in seconds"},"http.cainfo":{description:"Sets the path to a CA certificate bundle"},"http.check-revoke":{description:"This determines whether or not TLS certificate revocation checks should be performed. This only works on Windows",tomlSuggestions:U},"http.ssl-version":{description:"This sets the minimum TLS version to use"},"http.low-speed-limit":{description:"This setting controls timeout behavior for slow connections"},"http.multiplexing":{description:"When `true`, Cargo will attempt to use the HTTP2 protocol with multiplexing",tomlSuggestions:U},"http.user-agent":{description:"Specifies a custom user-agent header to use"},"install.root":{description:"Sets the path to the root directory for installing executables for `cargo install`"},"net.retry":{description:"Number of times to retry possibly spurious network errors"},"net.git-fetch-with-cli":{description:"If this is `true`, then Cargo will use the git executable to fetch registry indexes and git dependencies. If `false`, then it uses a built-in git library",tomlSuggestions:U},"net.offline":{description:"If this is true, then Cargo will avoid accessing the network, and attempt to proceed with locally cached data",tomlSuggestions:U}},d=(0,m.keyValue)({keys:Object.entries(ce).map(([e,t])=>({name:e,...t})),values:async(e,t)=>{let a=e[e.length-1].split("=")?.[0],i=ce[a];if(i?.tomlSuggestions)return i.tomlSuggestions},separator:"="}),je=(e=!0)=>({name:"cargo",icon:"\u{1F4E6}",description:"CLI Interface for Cargo",subcommands:[{name:"bench",icon:"\u{1F4CA}",description:"Execute all benchmarks of a local package",options:[{name:"--bin",description:"Benchmark only the specified binary",isRepeatable:!0,args:{name:"bin",filterStrategy:"fuzzy",generators:u({kind:"bin"}),isVariadic:!0}},{name:"--example",description:"Benchmark only the specified example",isRepeatable:!0,args:{name:"example",isVariadic:!0,filterStrategy:"fuzzy",generators:u({kind:"example"})}},{name:"--test",description:"Benchmark only the specified test target",isRepeatable:!0,args:{name:"test",isVariadic:!0,filterStrategy:"fuzzy",generators:u({kind:"test"})}},{name:"--bench",description:"Benchmark only the specified bench target",isRepeatable:!0,args:{name:"bench",isVariadic:!0,filterStrategy:"fuzzy",generators:u({kind:"bench"})}},{name:["-p","--package"],description:"Package to run benchmarks for",isRepeatable:!0,args:{name:"package",isVariadic:!0,filterStrategy:"fuzzy",generators:f}},{name:"--exclude",description:"Exclude packages from the benchmark",isRepeatable:!0,args:{name:"exclude",filterStrategy:"fuzzy",generators:f}},{name:["-j","--jobs"],description:"Number of parallel jobs, defaults to # of CPUs",args:{name:"jobs"}},{name:"--profile",description:"Build artifacts with the specified profile",args:{name:"profile"}},{name:"--features",description:"Space or comma separated list of features to activate",isRepeatable:!0,args:{name:"features",generators:w,isVariadic:!0}},{name:"--target",description:"Build for the target triple",isRepeatable:!0,args:{name:"target",filterStrategy:"fuzzy",generators:b}},{name:"--target-dir",description:"Directory for all generated artifacts",args:{name:"target-dir"}},{name:"--manifest-path",description:"Path to Cargo.toml",args:{name:"manifest-path",generators:(0,m.filepaths)({equals:"Cargo.toml"})}},{name:"--message-format",description:"Error format",isRepeatable:!0,args:{name:"message-format"}},{name:"--color",description:"Coloring: auto, always, never",args:{name:"color",suggestions:["auto","always","never"]}},{name:"--config",description:"Override a configuration value",isRepeatable:!0,args:{name:"config",generators:d}},{name:"-Z",description:"Unstable (nightly-only) flags to Cargo, see 'cargo -Z help' for details",isRepeatable:!0,args:{name:"unstable-features"}},{name:["-q","--quiet"],description:"Do not print cargo log messages"},{name:"--lib",description:"Benchmark only this package's library"},{name:"--bins",description:"Benchmark all binaries"},{name:"--examples",description:"Benchmark all examples"},{name:"--tests",description:"Benchmark all tests"},{name:"--benches",description:"Benchmark all benches"},{name:"--all-targets",description:"Benchmark all targets"},{name:"--no-run",description:"Compile, but don't run benchmarks"},{name:"--workspace",description:"Benchmark all packages in the workspace"},{name:"--all",description:"Alias for --workspace (deprecated)",hidden:!0},{name:"--all-features",description:"Activate all available features"},{name:"--no-default-features",description:"Do not activate the `default` feature"},{name:"--ignore-rust-version",description:"Ignore `rust-version` specification in packages"},{name:"--no-fail-fast",description:"Run all benchmarks regardless of failure"},{name:"--unit-graph",description:"Output build graph in JSON (unstable)"},{name:["-h","--help"],description:"Print help information"},{name:["-v","--verbose"],description:"Use verbose output (-vv very verbose/build.rs output)",isRepeatable:!0},{name:"--frozen",description:"Require Cargo.lock and cache are up to date"},{name:"--locked",description:"Require Cargo.lock is up to date"},{name:"--offline",description:"Run without accessing the network"},{name:"--timings",description:"Timing output formats (unstable)"}],args:[{name:"BENCHNAME"},{name:"args",isVariadic:!0}]},{name:["build","b"],icon:"\u{1F4E6}",description:"Compile a local package and all of its dependencies",options:[{name:["-p","--package"],description:"Package to build (see `cargo help pkgid`)",isRepeatable:!0,args:{name:"package",isVariadic:!0,filterStrategy:"fuzzy",generators:f}},{name:"--exclude",description:"Exclude packages from the build",isRepeatable:!0,args:{name:"exclude",filterStrategy:"fuzzy",generators:f}},{name:["-j","--jobs"],description:"Number of parallel jobs, defaults to # of CPUs",args:{name:"jobs"}},{name:"--bin",description:"Build only the specified binary",isRepeatable:!0,args:{name:"bin",filterStrategy:"fuzzy",generators:u({kind:"bin"}),isVariadic:!0}},{name:"--example",description:"Build only the specified example",isRepeatable:!0,args:{name:"example",isVariadic:!0,filterStrategy:"fuzzy",generators:u({kind:"example"})}},{name:"--test",description:"Build only the specified test target",isRepeatable:!0,args:{name:"test",isVariadic:!0,filterStrategy:"fuzzy",generators:u({kind:"test"})}},{name:"--bench",description:"Build only the specified bench target",isRepeatable:!0,args:{name:"bench",isVariadic:!0,filterStrategy:"fuzzy",generators:u({kind:"bench"})}},{name:"--profile",description:"Build artifacts with the specified profile",args:{name:"profile"}},{name:"--features",description:"Space or comma separated list of features to activate",isRepeatable:!0,args:{name:"features",generators:w,isVariadic:!0}},{name:"--target",description:"Build for the target triple",isRepeatable:!0,args:{name:"target",filterStrategy:"fuzzy",generators:b}},{name:"--target-dir",description:"Directory for all generated artifacts",args:{name:"target-dir"}},{name:"--out-dir",description:"Copy final artifacts to this directory (unstable)",args:{name:"out-dir"}},{name:"--manifest-path",description:"Path to Cargo.toml",args:{name:"manifest-path",generators:(0,m.filepaths)({equals:"Cargo.toml"})}},{name:"--message-format",description:"Error format",isRepeatable:!0,args:{name:"message-format"}},{name:"--color",description:"Coloring: auto, always, never",args:{name:"color",suggestions:["auto","always","never"]}},{name:"--config",description:"Override a configuration value",isRepeatable:!0,args:{name:"config",generators:d}},{name:"-Z",description:"Unstable (nightly-only) flags to Cargo, see 'cargo -Z help' for details",isRepeatable:!0,args:{name:"unstable-features"}},{name:["-q","--quiet"],description:"Do not print cargo log messages"},{name:"--workspace",description:"Build all packages in the workspace"},{name:"--all",description:"Alias for --workspace (deprecated)",hidden:!0},{name:"--lib",description:"Build only this package's library"},{name:"--bins",description:"Build all binaries"},{name:"--examples",description:"Build all examples"},{name:"--tests",description:"Build all tests"},{name:"--benches",description:"Build all benches"},{name:"--all-targets",description:"Build all targets"},{name:["-r","--release"],description:"Build artifacts in release mode, with optimizations"},{name:"--all-features",description:"Activate all available features"},{name:"--no-default-features",description:"Do not activate the `default` feature"},{name:"--ignore-rust-version",description:"Ignore `rust-version` specification in packages"},{name:"--build-plan",description:"Output the build plan in JSON (unstable)"},{name:"--unit-graph",description:"Output build graph in JSON (unstable)"},{name:"--future-incompat-report",description:"Outputs a future incompatibility report at the end of the build"},{name:["-h","--help"],description:"Print help information"},{name:["-v","--verbose"],description:"Use verbose output (-vv very verbose/build.rs output)",isRepeatable:!0},{name:"--frozen",description:"Require Cargo.lock and cache are up to date"},{name:"--locked",description:"Require Cargo.lock is up to date"},{name:"--offline",description:"Run without accessing the network"},{name:"--timings",description:"Timing output formats (unstable)"}]},{name:["check","c"],icon:"\u{1F6E0}",description:"Check a local package and all of its dependencies for errors",options:[{name:["-p","--package"],description:"Package(s) to check",isRepeatable:!0,args:{name:"package",isVariadic:!0,filterStrategy:"fuzzy",generators:f}},{name:"--exclude",description:"Exclude packages from the check",isRepeatable:!0,args:{name:"exclude",filterStrategy:"fuzzy",generators:f}},{name:["-j","--jobs"],description:"Number of parallel jobs, defaults to # of CPUs",args:{name:"jobs"}},{name:"--bin",description:"Check only the specified binary",isRepeatable:!0,args:{name:"bin",filterStrategy:"fuzzy",generators:u({kind:"bin"}),isVariadic:!0}},{name:"--example",description:"Check only the specified example",isRepeatable:!0,args:{name:"example",isVariadic:!0,filterStrategy:"fuzzy",generators:u({kind:"example"})}},{name:"--test",description:"Check only the specified test target",isRepeatable:!0,args:{name:"test",isVariadic:!0,filterStrategy:"fuzzy",generators:u({kind:"test"})}},{name:"--bench",description:"Check only the specified bench target",isRepeatable:!0,args:{name:"bench",isVariadic:!0,filterStrategy:"fuzzy",generators:u({kind:"bench"})}},{name:"--profile",description:"Check artifacts with the specified profile",args:{name:"profile"}},{name:"--features",description:"Space or comma separated list of features to activate",isRepeatable:!0,args:{name:"features",generators:w,isVariadic:!0}},{name:"--target",description:"Check for the target triple",isRepeatable:!0,args:{name:"target",filterStrategy:"fuzzy",generators:b}},{name:"--target-dir",description:"Directory for all generated artifacts",args:{name:"target-dir"}},{name:"--manifest-path",description:"Path to Cargo.toml",args:{name:"manifest-path",generators:(0,m.filepaths)({equals:"Cargo.toml"})}},{name:"--message-format",description:"Error format",isRepeatable:!0,args:{name:"message-format"}},{name:"--color",description:"Coloring: auto, always, never",args:{name:"color",suggestions:["auto","always","never"]}},{name:"--config",description:"Override a configuration value",isRepeatable:!0,args:{name:"config",generators:d}},{name:"-Z",description:"Unstable (nightly-only) flags to Cargo, see 'cargo -Z help' for details",isRepeatable:!0,args:{name:"unstable-features"}},{name:["-q","--quiet"],description:"Do not print cargo log messages"},{name:"--workspace",description:"Check all packages in the workspace"},{name:"--all",description:"Alias for --workspace (deprecated)",hidden:!0},{name:"--lib",description:"Check only this package's library"},{name:"--bins",description:"Check all binaries"},{name:"--examples",description:"Check all examples"},{name:"--tests",description:"Check all tests"},{name:"--benches",description:"Check all benches"},{name:"--all-targets",description:"Check all targets"},{name:["-r","--release"],description:"Check artifacts in release mode, with optimizations"},{name:"--all-features",description:"Activate all available features"},{name:"--no-default-features",description:"Do not activate the `default` feature"},{name:"--ignore-rust-version",description:"Ignore `rust-version` specification in packages"},{name:"--unit-graph",description:"Output build graph in JSON (unstable)"},{name:"--future-incompat-report",description:"Outputs a future incompatibility report at the end of the build"},{name:["-h","--help"],description:"Print help information"},{name:["-v","--verbose"],description:"Use verbose output (-vv very verbose/build.rs output)",isRepeatable:!0},{name:"--frozen",description:"Require Cargo.lock and cache are up to date"},{name:"--locked",description:"Require Cargo.lock is up to date"},{name:"--offline",description:"Run without accessing the network"},{name:"--timings",description:"Timing output formats (unstable)"}]},{name:"clean",icon:"\u{1F6E0}",description:"Remove artifacts that cargo has generated in the past",options:[{name:["-p","--package"],description:"Package to clean artifacts for",isRepeatable:!0,args:{name:"package",isVariadic:!0,filterStrategy:"fuzzy",generators:f}},{name:"--manifest-path",description:"Path to Cargo.toml",args:{name:"manifest-path",generators:(0,m.filepaths)({equals:"Cargo.toml"})}},{name:"--target",description:"Target triple to clean output for",isRepeatable:!0,args:{name:"target",filterStrategy:"fuzzy",generators:b}},{name:"--target-dir",description:"Directory for all generated artifacts",args:{name:"target-dir"}},{name:"--profile",description:"Clean artifacts of the specified profile",args:{name:"profile"}},{name:"--color",description:"Coloring: auto, always, never",args:{name:"color",suggestions:["auto","always","never"]}},{name:"--config",description:"Override a configuration value",isRepeatable:!0,args:{name:"config",generators:d}},{name:"-Z",description:"Unstable (nightly-only) flags to Cargo, see 'cargo -Z help' for details",isRepeatable:!0,args:{name:"unstable-features"}},{name:["-q","--quiet"],description:"Do not print cargo log messages"},{name:["-r","--release"],description:"Whether or not to clean release artifacts"},{name:"--doc",description:"Whether or not to clean just the documentation directory"},{name:["-h","--help"],description:"Print help information"},{name:["-v","--verbose"],description:"Use verbose output (-vv very verbose/build.rs output)",isRepeatable:!0},{name:"--frozen",description:"Require Cargo.lock and cache are up to date"},{name:"--locked",description:"Require Cargo.lock is up to date"},{name:"--offline",description:"Run without accessing the network"}]},{name:"config",icon:"\u2699\uFE0F",description:"Inspect configuration values",subcommands:[{name:"get",options:[{name:"--format",description:"Display format",args:{name:"format",suggestions:["toml","json","json-value"]}},{name:"--merged",description:"Whether or not to merge config values",args:{name:"merged",suggestions:["yes","no"]}},{name:"--color",description:"Coloring: auto, always, never",args:{name:"color",suggestions:["auto","always","never"]}},{name:"--config",description:"Override a configuration value",isRepeatable:!0,args:{name:"config",generators:d}},{name:"-Z",description:"Unstable (nightly-only) flags to Cargo, see 'cargo -Z help' for details",isRepeatable:!0,args:{name:"unstable-features"}},{name:"--version",description:"Print version information"},{name:"--show-origin",description:"Display where the config value is defined"},{name:["-h","--help"],description:"Print help information"},{name:["-v","--verbose"],description:"Use verbose output (-vv very verbose/build.rs output)",isRepeatable:!0},{name:"--frozen",description:"Require Cargo.lock and cache are up to date"},{name:"--locked",description:"Require Cargo.lock is up to date"},{name:"--offline",description:"Run without accessing the network"}]},{name:"help",description:"Print this message or the help of the given subcommand(s)",options:[{name:"--color",description:"Coloring: auto, always, never",args:{name:"color",suggestions:["auto","always","never"]}},{name:"--config",description:"Override a configuration value",isRepeatable:!0,args:{name:"config",generators:d}},{name:"-Z",description:"Unstable (nightly-only) flags to Cargo, see 'cargo -Z help' for details",isRepeatable:!0,args:{name:"unstable-features"}},{name:"--version",description:"Print version information"},{name:["-h","--help"],description:"Print help information"},{name:["-v","--verbose"],description:"Use verbose output (-vv very verbose/build.rs output)",isRepeatable:!0},{name:"--frozen",description:"Require Cargo.lock and cache are up to date"},{name:"--locked",description:"Require Cargo.lock is up to date"},{name:"--offline",description:"Run without accessing the network"}],args:{name:"subcommand"}}],options:[{name:"--color",description:"Coloring: auto, always, never",args:{name:"color",suggestions:["auto","always","never"]}},{name:"--config",description:"Override a configuration value",isRepeatable:!0,args:{name:"config",generators:d}},{name:"-Z",description:"Unstable (nightly-only) flags to Cargo, see 'cargo -Z help' for details",isRepeatable:!0,args:{name:"unstable-features"}},{name:["-h","--help"],description:"Print help information"},{name:["-v","--verbose"],description:"Use verbose output (-vv very verbose/build.rs output)",isRepeatable:!0},{name:"--frozen",description:"Require Cargo.lock and cache are up to date"},{name:"--locked",description:"Require Cargo.lock is up to date"},{name:"--offline",description:"Run without accessing the network"}]},{name:["doc","d"],icon:"\u{1F4C4}",description:"Build a package's documentation",options:[{name:["-p","--package"],description:"Package to document",isRepeatable:!0,args:{name:"package",isVariadic:!0,filterStrategy:"fuzzy",generators:f}},{name:"--exclude",description:"Exclude packages from the build",isRepeatable:!0,args:{name:"exclude",filterStrategy:"fuzzy",generators:f}},{name:["-j","--jobs"],description:"Number of parallel jobs, defaults to # of CPUs",args:{name:"jobs"}},{name:"--bin",description:"Document only the specified binary",isRepeatable:!0,args:{name:"bin",filterStrategy:"fuzzy",generators:u({kind:"bin"}),isVariadic:!0}},{name:"--example",description:"Document only the specified example",isRepeatable:!0,args:{name:"example",isVariadic:!0,filterStrategy:"fuzzy",generators:u({kind:"example"})}},{name:"--profile",description:"Build artifacts with the specified profile",args:{name:"profile"}},{name:"--features",description:"Space or comma separated list of features to activate",isRepeatable:!0,args:{name:"features",generators:w,isVariadic:!0}},{name:"--target",description:"Build for the target triple",isRepeatable:!0,args:{name:"target",filterStrategy:"fuzzy",generators:b}},{name:"--target-dir",description:"Directory for all generated artifacts",args:{name:"target-dir"}},{name:"--manifest-path",description:"Path to Cargo.toml",args:{name:"manifest-path",generators:(0,m.filepaths)({equals:"Cargo.toml"})}},{name:"--message-format",description:"Error format",isRepeatable:!0,args:{name:"message-format"}},{name:"--color",description:"Coloring: auto, always, never",args:{name:"color"}},{name:"--config",description:"Override a configuration value",isRepeatable:!0,args:{name:"config",generators:d}},{name:"-Z",description:"Unstable (nightly-only) flags to Cargo, see 'cargo -Z help' for details",isRepeatable:!0,args:{name:"unstable-features"}},{name:["-q","--quiet"],description:"Do not print cargo log messages"},{name:"--open",description:"Opens the docs in a browser after the operation"},{name:"--workspace",description:"Document all packages in the workspace"},{name:"--all",description:"Alias for --workspace (deprecated)",hidden:!0},{name:"--no-deps",description:"Don't build documentation for dependencies"},{name:"--document-private-items",description:"Document private items"},{name:"--lib",description:"Document only this package's library"},{name:"--bins",description:"Document all binaries"},{name:"--examples",description:"Document all examples"},{name:["-r","--release"],description:"Build artifacts in release mode, with optimizations"},{name:"--all-features",description:"Activate all available features"},{name:"--no-default-features",description:"Do not activate the `default` feature"},{name:"--ignore-rust-version",description:"Ignore `rust-version` specification in packages"},{name:"--unit-graph",description:"Output build graph in JSON (unstable)"},{name:["-h","--help"],description:"Print help information"},{name:["-v","--verbose"],description:"Use verbose output (-vv very verbose/build.rs output)",isRepeatable:!0},{name:"--frozen",description:"Require Cargo.lock and cache are up to date"},{name:"--locked",description:"Require Cargo.lock is up to date"},{name:"--offline",description:"Run without accessing the network"},{name:"--timings",description:"Timing output formats (unstable)"}]},{name:"fetch",icon:"\u{1F4E6}",description:"Fetch dependencies of a package from the network",options:[{name:"--manifest-path",description:"Path to Cargo.toml",args:{name:"manifest-path",generators:(0,m.filepaths)({equals:"Cargo.toml"})}},{name:"--target",description:"Fetch dependencies for the target triple",isRepeatable:!0,args:{name:"target",filterStrategy:"fuzzy",generators:b}},{name:"--color",description:"Coloring: auto, always, never",args:{name:"color",suggestions:["always","never","auto"]}},{name:"--config",description:"Override a configuration value",isRepeatable:!0,args:{name:"config",generators:d}},{name:"-Z",description:"Unstable (nightly-only) flags to Cargo, see 'cargo -Z help' for details",isRepeatable:!0,args:{name:"unstable-features"}},{name:["-q","--quiet"],description:"Do not print cargo log messages"},{name:["-h","--help"],description:"Print help information"},{name:["-v","--verbose"],description:"Use verbose output (-vv very verbose/build.rs output)",isRepeatable:!0},{name:"--frozen",description:"Require Cargo.lock and cache are up to date"},{name:"--locked",description:"Require Cargo.lock is up to date"},{name:"--offline",description:"Run without accessing the network"}]},{name:"fix",icon:"\u{1F527}",description:"Automatically fix lint warnings reported by rustc",options:[{name:["-p","--package"],description:"Package(s) to fix",isRepeatable:!0,args:{name:"package",isVariadic:!0,filterStrategy:"fuzzy",generators:f}},{name:"--exclude",description:"Exclude packages from the fixes",isRepeatable:!0,args:{name:"exclude",filterStrategy:"fuzzy",generators:f}},{name:["-j","--jobs"],description:"Number of parallel jobs, defaults to # of CPUs",args:{name:"jobs"}},{name:"--bin",description:"Fix only the specified binary",isRepeatable:!0,args:{name:"bin",filterStrategy:"fuzzy",generators:u({kind:"bin"}),isVariadic:!0}},{name:"--example",description:"Fix only the specified example",isRepeatable:!0,args:{name:"example",isVariadic:!0,filterStrategy:"fuzzy",generators:u({kind:"example"})}},{name:"--test",description:"Fix only the specified test target",isRepeatable:!0,args:{name:"test",isVariadic:!0,filterStrategy:"fuzzy",generators:u({kind:"test"})}},{name:"--bench",description:"Fix only the specified bench target",isRepeatable:!0,args:{name:"bench",isVariadic:!0,filterStrategy:"fuzzy",generators:u({kind:"bench"})}},{name:"--profile",description:"Build artifacts with the specified profile",args:{name:"profile"}},{name:"--features",description:"Space or comma separated list of features to activate",isRepeatable:!0,args:{name:"features",generators:w,isVariadic:!0}},{name:"--target",description:"Fix for the target triple",isRepeatable:!0,args:{name:"target",filterStrategy:"fuzzy",generators:b}},{name:"--target-dir",description:"Directory for all generated artifacts",args:{name:"target-dir"}},{name:"--manifest-path",description:"Path to Cargo.toml",args:{name:"manifest-path",generators:(0,m.filepaths)({equals:"Cargo.toml"})}},{name:"--message-format",description:"Error format",isRepeatable:!0,args:{name:"message-format"}},{name:"--color",description:"Coloring: auto, always, never",args:{name:"color",suggestions:["always","never","auto"]}},{name:"--config",description:"Override a configuration value",isRepeatable:!0,args:{name:"config",generators:d}},{name:"-Z",description:"Unstable (nightly-only) flags to Cargo, see 'cargo -Z help' for details",isRepeatable:!0,args:{name:"unstable-features"}},{name:["-q","--quiet"],description:"Do not print cargo log messages"},{name:"--workspace",description:"Fix all packages in the workspace"},{name:"--all",description:"Alias for --workspace (deprecated)",hidden:!0},{name:"--lib",description:"Fix only this package's library"},{name:"--bins",description:"Fix all binaries"},{name:"--examples",description:"Fix all examples"},{name:"--tests",description:"Fix all tests"},{name:"--benches",description:"Fix all benches"},{name:"--all-targets",description:"Fix all targets (default)"},{name:["-r","--release"],description:"Fix artifacts in release mode, with optimizations"},{name:"--all-features",description:"Activate all available features"},{name:"--no-default-features",description:"Do not activate the `default` feature"},{name:"--broken-code",description:"Fix code even if it already has compiler errors"},{name:"--edition",description:"Fix in preparation for the next edition"},{name:"--edition-idioms",description:"Fix warnings to migrate to the idioms of an edition"},{name:"--allow-no-vcs",description:"Fix code even if a VCS was not detected"},{name:"--allow-dirty",description:"Fix code even if the working directory is dirty"},{name:"--allow-staged",description:"Fix code even if the working directory has staged changes"},{name:"--ignore-rust-version",description:"Ignore `rust-version` specification in packages"},{name:["-h","--help"],description:"Print help information"},{name:["-v","--verbose"],description:"Use verbose output (-vv very verbose/build.rs output)",isRepeatable:!0},{name:"--frozen",description:"Require Cargo.lock and cache are up to date"},{name:"--locked",description:"Require Cargo.lock is up to date"},{name:"--offline",description:"Run without accessing the network"},{name:"--timings",description:"Timing output formats (unstable)"}]},{name:"generate-lockfile",icon:"\u{1F4E6}",description:"Generate the lockfile for a package",options:[{name:"--manifest-path",description:"Path to Cargo.toml",args:{name:"manifest-path",generators:(0,m.filepaths)({equals:"Cargo.toml"})}},{name:"--color",description:"Coloring: auto, always, never",args:{name:"color",suggestions:["always","never","auto"]}},{name:"--config",description:"Override a configuration value",isRepeatable:!0,args:{name:"config",generators:d}},{name:"-Z",description:"Unstable (nightly-only) flags to Cargo, see 'cargo -Z help' for details",isRepeatable:!0,args:{name:"unstable-features"}},{name:["-q","--quiet"],description:"Do not print cargo log messages"},{name:["-h","--help"],description:"Print help information"},{name:["-v","--verbose"],description:"Use verbose output (-vv very verbose/build.rs output)",isRepeatable:!0},{name:"--frozen",description:"Require Cargo.lock and cache are up to date"},{name:"--locked",description:"Require Cargo.lock is up to date"},{name:"--offline",description:"Run without accessing the network"}]},{name:"git-checkout",icon:"\u{1F4E6}",description:"This subcommand has been removed",hidden:!0,options:[{name:"--color",description:"Coloring: auto, always, never",args:{name:"color",suggestions:["always","never","auto"]}},{name:"--config",description:"Override a configuration value",isRepeatable:!0,args:{name:"config",generators:d}},{name:"-Z",description:"Unstable (nightly-only) flags to Cargo, see 'cargo -Z help' for details",isRepeatable:!0,args:{name:"unstable-features"}},{name:["-h","--help"],description:"Print help information"},{name:["-v","--verbose"],description:"Use verbose output (-vv very verbose/build.rs output)",isRepeatable:!0},{name:"--frozen",description:"Require Cargo.lock and cache are up to date"},{name:"--locked",description:"Require Cargo.lock is up to date"},{name:"--offline",description:"Run without accessing the network"}]},{name:"init",icon:"\u{1F4E6}",description:"Create a new cargo package in an existing directory",options:[{name:"--registry",description:"Registry to use",args:{name:"registry"}},{name:"--vcs",description:"Initialize a new repository for the given version control system (git, hg, pijul, or fossil) or do not initialize any version control at all (none), overriding a global configuration",args:{name:"vcs",suggestions:W}},{name:"--edition",description:"Edition to set for the crate generated",args:{name:"edition",suggestions:G}},{name:"--name",description:"Set the resulting package name, defaults to the directory name",args:{name:"name"}},{name:"--color",description:"Coloring: auto, always, never",args:{name:"color",suggestions:["always","never","auto"]}},{name:"--config",description:"Override a configuration value",isRepeatable:!0,args:{name:"config",generators:d}},{name:"-Z",description:"Unstable (nightly-only) flags to Cargo, see 'cargo -Z help' for details",isRepeatable:!0,args:{name:"unstable-features"}},{name:["-q","--quiet"],description:"Do not print cargo log messages"},{name:"--bin",description:"Use a binary (application) template [default]"},{name:"--lib",description:"Use a library template"},{name:["-h","--help"],description:"Print help information"},{name:["-v","--verbose"],description:"Use verbose output (-vv very verbose/build.rs output)",isRepeatable:!0},{name:"--frozen",description:"Require Cargo.lock and cache are up to date"},{name:"--locked",description:"Require Cargo.lock is up to date"},{name:"--offline",description:"Run without accessing the network"}],args:{name:"path"}},{name:"install",icon:"\u{1F4E6}",description:"Install a Rust binary. Default location is $HOME/.cargo/bin",options:[{name:"--version",description:"Specify a version to install",args:{name:"version"}},{name:"--git",description:"Git URL to install the specified crate from",exclusiveOn:["--path","--index","--registry"],args:{name:"git"}},{name:"--branch",description:"Branch to use when installing from git",args:{name:"branch"}},{name:"--tag",description:"Tag to use when installing from git",args:{name:"tag"}},{name:"--rev",description:"Specific commit to use when installing from git",args:{name:"rev"}},{name:"--path",description:"Filesystem path to local crate to install",exclusiveOn:["--git","--index","--registry"],args:{name:"path",template:"folders"}},{name:["-j","--jobs"],description:"Number of parallel jobs, defaults to # of CPUs",args:{name:"jobs"}},{name:"--features",description:"Space or comma separated list of features to activate",isRepeatable:!0,args:{name:"features",generators:w,isVariadic:!0}},{name:"--profile",description:"Install artifacts with the specified profile",args:{name:"profile"}},{name:"--bin",description:"Install only the specified binary",isRepeatable:!0,args:{name:"bin",isVariadic:!0,filterStrategy:"fuzzy",generators:u({kind:"bin"})}},{name:"--example",description:"Install only the specified example",isRepeatable:!0,args:{name:"example",isVariadic:!0,filterStrategy:"fuzzy",generators:u({kind:"example"})}},{name:"--target",description:"Build for the target triple",isRepeatable:!0,args:{name:"target",filterStrategy:"fuzzy",generators:b}},{name:"--target-dir",description:"Directory for all generated artifacts",args:{name:"target-dir"}},{name:"--root",description:"Directory to install packages into",args:{name:"root"}},{name:"--index",description:"Registry index to install from",exclusiveOn:["--git","--path","--registry"],args:{name:"index"}},{name:"--registry",description:"Registry to use",exclusiveOn:["--git","--path","--index"],args:{name:"registry"}},{name:"--message-format",description:"Error format",isRepeatable:!0,args:{name:"message-format"}},{name:"--color",description:"Coloring: auto, always, never",args:{name:"color",suggestions:["always","never","auto"]}},{name:"--config",description:"Override a configuration value",isRepeatable:!0,args:{name:"config",generators:d}},{name:"-Z",description:"Unstable (nightly-only) flags to Cargo, see 'cargo -Z help' for details",isRepeatable:!0,args:{name:"unstable-features"}},{name:["-q","--quiet"],description:"Do not print cargo log messages"},{name:"--list",description:"List all installed packages and their versions"},{name:["-f","--force"],description:"Force overwriting existing crates or binaries"},{name:"--no-track",description:"Do not save tracking information"},{name:"--all-features",description:"Activate all available features"},{name:"--no-default-features",description:"Do not activate the `default` feature"},{name:"--debug",description:"Build in debug mode instead of release mode"},{name:"--bins",description:"Install all binaries"},{name:"--examples",description:"Install all examples"},{name:["-h","--help"],description:"Print help information"},{name:["-v","--verbose"],description:"Use verbose output (-vv very verbose/build.rs output)",isRepeatable:!0},{name:"--frozen",description:"Require Cargo.lock and cache are up to date"},{name:"--locked",description:"Require Cargo.lock is up to date"},{name:"--offline",description:"Run without accessing the network"},{name:"--timings",description:"Timing output formats (unstable)"}],args:{name:"crate",generators:H,filterStrategy:"fuzzy",debounce:!0,isVariadic:!0,suggestCurrentToken:!0}},{name:"locate-project",icon:"\u{1F4E6}",description:"Print a JSON representation of a Cargo.toml file's location",options:[{name:"--manifest-path",description:"Path to Cargo.toml",args:{name:"manifest-path",generators:(0,m.filepaths)({equals:"Cargo.toml"})}},{name:"--message-format",description:"Output representation [possible values: json, plain]",args:{name:"message-format"}},{name:"--color",description:"Coloring: auto, always, never",args:{name:"color",suggestions:["always","never","auto"]}},{name:"--config",description:"Override a configuration value",isRepeatable:!0,args:{name:"config",generators:d}},{name:"-Z",description:"Unstable (nightly-only) flags to Cargo, see 'cargo -Z help' for details",isRepeatable:!0,args:{name:"unstable-features"}},{name:["-q","--quiet"],description:"Do not print cargo log messages"},{name:"--workspace",description:"Locate Cargo.toml of the workspace root"},{name:["-h","--help"],description:"Print help information"},{name:["-v","--verbose"],description:"Use verbose output (-vv very verbose/build.rs output)",isRepeatable:!0},{name:"--frozen",description:"Require Cargo.lock and cache are up to date"},{name:"--locked",description:"Require Cargo.lock is up to date"},{name:"--offline",description:"Run without accessing the network"}]},{name:"login",icon:"\u{1F4E6}",description:"Save an api token from the registry locally. If token is not specified, it will be read from stdin",options:[{name:"--registry",description:"Registry to use",args:{name:"registry"}},{name:"--color",description:"Coloring: auto, always, never",args:{name:"color",suggestions:["always","never","auto"]}},{name:"--config",description:"Override a configuration value",isRepeatable:!0,args:{name:"config",generators:d}},{name:"-Z",description:"Unstable (nightly-only) flags to Cargo, see 'cargo -Z help' for details",isRepeatable:!0,args:{name:"unstable-features"}},{name:["-q","--quiet"],description:"Do not print cargo log messages"},{name:["-h","--help"],description:"Print help information"},{name:["-v","--verbose"],description:"Use verbose output (-vv very verbose/build.rs output)",isRepeatable:!0},{name:"--frozen",description:"Require Cargo.lock and cache are up to date"},{name:"--locked",description:"Require Cargo.lock is up to date"},{name:"--offline",description:"Run without accessing the network"}],args:{name:"token"}},{name:"logout",icon:"\u{1F4E6}",description:"Remove an API token from the registry locally",options:[{name:"--registry",description:"Registry to use",args:{name:"registry"}},{name:"--color",description:"Coloring: auto, always, never",args:{name:"color",suggestions:["always","never","auto"]}},{name:"--config",description:"Override a configuration value",isRepeatable:!0,args:{name:"config",generators:d}},{name:"-Z",description:"Unstable (nightly-only) flags to Cargo, see 'cargo -Z help' for details",isRepeatable:!0,args:{name:"unstable-features"}},{name:["-q","--quiet"],description:"Do not print cargo log messages"},{name:["-h","--help"],description:"Print help information"},{name:["-v","--verbose"],description:"Use verbose output (-vv very verbose/build.rs output)",isRepeatable:!0},{name:"--frozen",description:"Require Cargo.lock and cache are up to date"},{name:"--locked",description:"Require Cargo.lock is up to date"},{name:"--offline",description:"Run without accessing the network"}]},{name:"metadata",icon:"\u{1F4E6}",description:"Output the resolved dependencies of a package, the concrete used versions including overrides, in machine-readable format",options:[{name:"--features",description:"Space or comma separated list of features to activate",isRepeatable:!0,args:{name:"features",generators:w,isVariadic:!0}},{name:"--filter-platform",description:"Only include resolve dependencies matching the given target-triple",isRepeatable:!0,args:{name:"filter-platform"}},{name:"--manifest-path",description:"Path to Cargo.toml",args:{name:"manifest-path",generators:(0,m.filepaths)({equals:"Cargo.toml"})}},{name:"--format-version",description:"Format version",args:{name:"format-version",suggestions:["1"]}},{name:"--color",description:"Coloring: auto, always, never",args:{name:"color",suggestions:["always","never","auto"]}},{name:"--config",description:"Override a configuration value",isRepeatable:!0,args:{name:"config",generators:d}},{name:"-Z",description:"Unstable (nightly-only) flags to Cargo, see 'cargo -Z help' for details",isRepeatable:!0,args:{name:"unstable-features"}},{name:["-q","--quiet"],description:"Do not print cargo log messages"},{name:"--all-features",description:"Activate all available features"},{name:"--no-default-features",description:"Do not activate the `default` feature"},{name:"--no-deps",description:"Output information only about the workspace members and don't fetch dependencies"},{name:["-h","--help"],description:"Print help information"},{name:["-v","--verbose"],description:"Use verbose output (-vv very verbose/build.rs output)",isRepeatable:!0},{name:"--frozen",description:"Require Cargo.lock and cache are up to date"},{name:"--locked",description:"Require Cargo.lock is up to date"},{name:"--offline",description:"Run without accessing the network"}]},{name:"new",icon:"\u{1F4E6}",description:"Create a new cargo package at <path>",options:[{name:"--registry",description:"Registry to use",args:{name:"registry"}},{name:"--vcs",description:"Initialize a new repository for the given version control system (git, hg, pijul, or fossil) or do not initialize any version control at all (none), overriding a global configuration",args:{name:"vcs",suggestions:W}},{name:"--edition",description:"Edition to set for the crate generated",args:{name:"edition",suggestions:G}},{name:"--name",description:"Set the resulting package name, defaults to the directory name",args:{name:"name"}},{name:"--color",description:"Coloring: auto, always, never",args:{name:"color",suggestions:["always","never","auto"]}},{name:"--config",description:"Override a configuration value",isRepeatable:!0,args:{name:"config",generators:d}},{name:"-Z",description:"Unstable (nightly-only) flags to Cargo, see 'cargo -Z help' for details",isRepeatable:!0,args:{name:"unstable-features"}},{name:["-q","--quiet"],description:"Do not print cargo log messages"},{name:"--bin",description:"Use a binary (application) template [default]"},{name:"--lib",description:"Use a library template"},{name:["-h","--help"],description:"Print help information"},{name:["-v","--verbose"],description:"Use verbose output (-vv very verbose/build.rs output)",isRepeatable:!0},{name:"--frozen",description:"Require Cargo.lock and cache are up to date"},{name:"--locked",description:"Require Cargo.lock is up to date"},{name:"--offline",description:"Run without accessing the network"}],args:{name:"path",template:"folders"}},{name:"owner",icon:"\u{1F4E6}",description:"Manage the owners of a crate on the registry",options:[{name:["-a","--add"],description:"Name of a user or team to invite as an owner",isRepeatable:!0,args:{name:"add"}},{name:["-r","--remove"],description:"Name of a user or team to remove as an owner",isRepeatable:!0,args:{name:"remove"}},{name:"--index",description:"Registry index to modify owners for",args:{name:"index"}},{name:"--token",description:"API token to use when authenticating",args:{name:"token"}},{name:"--registry",description:"Registry to use",args:{name:"registry"}},{name:"--color",description:"Coloring: auto, always, never",args:{name:"color",suggestions:["always","never","auto"]}},{name:"--config",description:"Override a configuration value",isRepeatable:!0,args:{name:"config",generators:d}},{name:"-Z",description:"Unstable (nightly-only) flags to Cargo, see 'cargo -Z help' for details",isRepeatable:!0,args:{name:"unstable-features"}},{name:["-q","--quiet"],description:"Do not print cargo log messages"},{name:["-l","--list"],description:"List owners of a crate"},{name:["-h","--help"],description:"Print help information"},{name:["-v","--verbose"],description:"Use verbose output (-vv very verbose/build.rs output)",isRepeatable:!0},{name:"--frozen",description:"Require Cargo.lock and cache are up to date"},{name:"--locked",description:"Require Cargo.lock is up to date"},{name:"--offline",description:"Run without accessing the network"}],args:{name:"crate"}},{name:"package",icon:"\u{1F4E6}",description:"Assemble the local package into a distributable tarball",options:[{name:"--target",description:"Build for the target triple",isRepeatable:!0,args:{name:"target",filterStrategy:"fuzzy",generators:b}},{name:"--target-dir",description:"Directory for all generated artifacts",args:{name:"target-dir"}},{name:"--features",description:"Space or comma separated list of features to activate",isRepeatable:!0,args:{name:"features",generators:w,isVariadic:!0}},{name:["-p","--package"],description:"Package(s) to assemble",isRepeatable:!0,args:{name:"package",isVariadic:!0,filterStrategy:"fuzzy",generators:f}},{name:"--exclude",description:"Don't assemble specified packages",isRepeatable:!0,args:{name:"exclude",filterStrategy:"fuzzy",generators:f}},{name:"--manifest-path",description:"Path to Cargo.toml",args:{name:"manifest-path",generators:(0,m.filepaths)({equals:"Cargo.toml"})}},{name:["-j","--jobs"],description:"Number of parallel jobs, defaults to # of CPUs",args:{name:"jobs"}},{name:"--color",description:"Coloring: auto, always, never",args:{name:"color",suggestions:["always","never","auto"]}},{name:"--config",description:"Override a configuration value",isRepeatable:!0,args:{name:"config",generators:d}},{name:"-Z",description:"Unstable (nightly-only) flags to Cargo, see 'cargo -Z help' for details",isRepeatable:!0,args:{name:"unstable-features"}},{name:["-q","--quiet"],description:"Do not print cargo log messages"},{name:["-l","--list"],description:"Print files included in a package without making one"},{name:"--no-verify",description:"Don't verify the contents by building them"},{name:"--no-metadata",description:"Ignore warnings about a lack of human-usable metadata"},{name:"--allow-dirty",description:"Allow dirty working directories to be packaged"},{name:"--all-features",description:"Activate all available features"},{name:"--no-default-features",description:"Do not activate the `default` feature"},{name:"--workspace",description:"Assemble all packages in the workspace"},{name:["-h","--help"],description:"Print help information"},{name:["-v","--verbose"],description:"Use verbose output (-vv very verbose/build.rs output)",isRepeatable:!0},{name:"--frozen",description:"Require Cargo.lock and cache are up to date"},{name:"--locked",description:"Require Cargo.lock is up to date"},{name:"--offline",description:"Run without accessing the network"}]},{name:"pkgid",icon:"\u{1F4E6}",description:"Print a fully qualified package specification",options:[{name:["-p","--package"],description:"Argument to get the package ID specifier for",args:{name:"package",isVariadic:!0,filterStrategy:"fuzzy",generators:f}},{name:"--manifest-path",description:"Path to Cargo.toml",args:{name:"manifest-path",generators:(0,m.filepaths)({equals:"Cargo.toml"})}},{name:"--color",description:"Coloring: auto, always, never",args:{name:"color",suggestions:["always","never","auto"]}},{name:"--config",description:"Override a configuration value",isRepeatable:!0,args:{name:"config",generators:d}},{name:"-Z",description:"Unstable (nightly-only) flags to Cargo, see 'cargo -Z help' for details",isRepeatable:!0,args:{name:"unstable-features"}},{name:["-q","--quiet"],description:"Do not print cargo log messages"},{name:["-h","--help"],description:"Print help information"},{name:["-v","--verbose"],description:"Use verbose output (-vv very verbose/build.rs output)",isRepeatable:!0},{name:"--frozen",description:"Require Cargo.lock and cache are up to date"},{name:"--locked",description:"Require Cargo.lock is up to date"},{name:"--offline",description:"Run without accessing the network"}],args:{name:"SPEC",filterStrategy:"fuzzy",generators:f}},{name:"publish",icon:"\u{1F4E6}",description:"Upload a package to the registry",options:[{name:"--index",description:"Registry index URL to upload the package to",args:{name:"index"}},{name:"--token",description:"Token to use when uploading",args:{name:"token"}},{name:"--target",description:"Build for the target triple",isRepeatable:!0,args:{name:"target",filterStrategy:"fuzzy",generators:b}},{name:"--target-dir",description:"Directory for all generated artifacts",args:{name:"target-dir"}},{name:["-p","--package"],description:"Package to publish",args:{name:"package",isVariadic:!0,filterStrategy:"fuzzy",generators:f}},{name:"--manifest-path",description:"Path to Cargo.toml",args:{name:"manifest-path",generators:(0,m.filepaths)({equals:"Cargo.toml"})}},{name:"--features",description:"Space or comma separated list of features to activate",isRepeatable:!0,args:{name:"features",generators:w,isVariadic:!0}},{name:["-j","--jobs"],description:"Number of parallel jobs, defaults to # of CPUs",args:{name:"jobs"}},{name:"--registry",description:"Registry to publish to",args:{name:"registry"}},{name:"--color",description:"Coloring: auto, always, never",args:{name:"color",suggestions:["always","never","auto"]}},{name:"--config",description:"Override a configuration value",isRepeatable:!0,args:{name:"config",generators:d}},{name:"-Z",description:"Unstable (nightly-only) flags to Cargo, see 'cargo -Z help' for details",isRepeatable:!0,args:{name:"unstable-features"}},{name:["-q","--quiet"],description:"Do not print cargo log messages"},{name:"--no-verify",description:"Don't verify the contents by building them"},{name:"--allow-dirty",description:"Allow dirty working directories to be packaged"},{name:"--all-features",description:"Activate all available features"},{name:"--no-default-features",description:"Do not activate the `default` feature"},{name:"--dry-run",description:"Perform all checks without uploading"},{name:["-h","--help"],description:"Print help information"},{name:["-v","--verbose"],description:"Use verbose output (-vv very verbose/build.rs output)",isRepeatable:!0},{name:"--frozen",description:"Require Cargo.lock and cache are up to date"},{name:"--locked",description:"Require Cargo.lock is up to date"},{name:"--offline",description:"Run without accessing the network"}]},{name:"read-manifest",icon:"\u{1F4E6}",description:"Print a JSON representation of a Cargo.toml manifest. Deprecated, use `cargo metadata --no-deps` instead",hidden:!0,options:[{name:"--manifest-path",description:"Path to Cargo.toml",args:{name:"manifest-path",generators:(0,m.filepaths)({equals:"Cargo.toml"})}},{name:"--color",description:"Coloring: auto, always, never",args:{name:"color",suggestions:["always","never","auto"]}},{name:"--config",description:"Override a configuration value",isRepeatable:!0,args:{name:"config",generators:d}},{name:"-Z",description:"Unstable (nightly-only) flags to Cargo, see 'cargo -Z help' for details",isRepeatable:!0,args:{name:"unstable-features"}},{name:["-q","--quiet"],description:"Do not print cargo log messages"},{name:["-h","--help"],description:"Print help information"},{name:["-v","--verbose"],description:"Use verbose output (-vv very verbose/build.rs output)",isRepeatable:!0},{name:"--frozen",description:"Require Cargo.lock and cache are up to date"},{name:"--locked",description:"Require Cargo.lock is up to date"},{name:"--offline",description:"Run without accessing the network"}]},{name:"report",icon:"\u{1F4E6}",description:"Generate and display various kinds of reports",subcommands:[{name:"future-incompatibilities",description:"Reports any crates which will eventually stop compiling",options:[{name:"--id",description:"Identifier of the report generated by a Cargo command invocation",args:{name:"id"}},{name:["-p","--package"],description:"Package to display a report for",args:{name:"package",isVariadic:!0,filterStrategy:"fuzzy",generators:f}},{name:"--color",description:"Coloring: auto, always, never",args:{name:"color",suggestions:["always","never","auto"]}},{name:"--config",description:"Override a configuration value",isRepeatable:!0,args:{name:"config",generators:d}},{name:"-Z",description:"Unstable (nightly-only) flags to Cargo, see 'cargo -Z help' for details",isRepeatable:!0,args:{name:"unstable-features"}},{name:"--version",description:"Print version information"},{name:["-h","--help"],description:"Print help information"},{name:["-v","--verbose"],description:"Use verbose output (-vv very verbose/build.rs output)",isRepeatable:!0},{name:"--frozen",description:"Require Cargo.lock and cache are up to date"},{name:"--locked",description:"Require Cargo.lock is up to date"},{name:"--offline",description:"Run without accessing the network"}]},{name:"help",description:"Print this message or the help of the given subcommand(s)",options:[{name:"--color",description:"Coloring: auto, always, never",args:{name:"color",suggestions:["always","never","auto"]}},{name:"--config",description:"Override a configuration value",isRepeatable:!0,args:{name:"config",generators:d}},{name:"-Z",description:"Unstable (nightly-only) flags to Cargo, see 'cargo -Z help' for details",isRepeatable:!0,args:{name:"unstable-features"}},{name:"--version",description:"Print version information"},{name:["-h","--help"],description:"Print help information"},{name:["-v","--verbose"],description:"Use verbose output (-vv very verbose/build.rs output)",isRepeatable:!0},{name:"--frozen",description:"Require Cargo.lock and cache are up to date"},{name:"--locked",description:"Require Cargo.lock is up to date"},{name:"--offline",description:"Run without accessing the network"}],args:{name:"subcommand"}}],options:[{name:"--color",description:"Coloring: auto, always, never",args:{name:"color",suggestions:["always","never","auto"]}},{name:"--config",description:"Override a configuration value",isRepeatable:!0,args:{name:"config",generators:d}},{name:"-Z",description:"Unstable (nightly-only) flags to Cargo, see 'cargo -Z help' for details",isRepeatable:!0,args:{name:"unstable-features"}},{name:["-h","--help"],description:"Print help information"},{name:["-v","--verbose"],description:"Use verbose output (-vv very verbose/build.rs output)",isRepeatable:!0},{name:"--frozen",description:"Require Cargo.lock and cache are up to date"},{name:"--locked",description:"Require Cargo.lock is up to date"},{name:"--offline",description:"Run without accessing the network"}]},{name:["run","r"],icon:"\u{1F4E6}",description:"Run a binary or example of the local package",options:[{name:"--bin",description:"Name of the bin target to run",isRepeatable:!0,args:{name:"bin",isVariadic:!0,filterStrategy:"fuzzy",generators:u({kind:"bin"})}},{name:"--example",description:"Name of the example target to run",isRepeatable:!0,args:{name:"example",isVariadic:!0,filterStrategy:"fuzzy",generators:u({kind:"example"})}},{name:["-p","--package"],description:"Package with the target to run",args:{name:"package",isVariadic:!0,filterStrategy:"fuzzy",generators:f}},{name:["-j","--jobs"],description:"Number of parallel jobs, defaults to # of CPUs",args:{name:"jobs"}},{name:"--profile",description:"Build artifacts with the specified profile",args:{name:"profile"}},{name:"--features",description:"Space or comma separated list of features to activate",isRepeatable:!0,args:{name:"features",generators:w,isVariadic:!0}},{name:"--target",description:"Build for the target triple",isRepeatable:!0,args:{name:"target",filterStrategy:"fuzzy",generators:b}},{name:"--target-dir",description:"Directory for all generated artifacts",args:{name:"target-dir"}},{name:"--manifest-path",description:"Path to Cargo.toml",args:{name:"manifest-path",generators:(0,m.filepaths)({equals:"Cargo.toml"})}},{name:"--message-format",description:"Error format",isRepeatable:!0,args:{name:"message-format"}},{name:"--color",description:"Coloring: auto, always, never",args:{name:"color",suggestions:["always","never","auto"]}},{name:"--config",description:"Override a configuration value",isRepeatable:!0,args:{name:"config",generators:d}},{name:"-Z",description:"Unstable (nightly-only) flags to Cargo, see 'cargo -Z help' for details",isRepeatable:!0,args:{name:"unstable-features"}},{name:["-q","--quiet"],description:"Do not print cargo log messages"},{name:["-r","--release"],description:"Build artifacts in release mode, with optimizations"},{name:"--all-features",description:"Activate all available features"},{name:"--no-default-features",description:"Do not activate the `default` feature"},{name:"--unit-graph",description:"Output build graph in JSON (unstable)"},{name:"--ignore-rust-version",description:"Ignore `rust-version` specification in packages"},{name:["-h","--help"],description:"Print help information"},{name:["-v","--verbose"],description:"Use verbose output (-vv very verbose/build.rs output)",isRepeatable:!0},{name:"--frozen",description:"Require Cargo.lock and cache are up to date"},{name:"--locked",description:"Require Cargo.lock is up to date"},{name:"--offline",description:"Run without accessing the network"},{name:"--timings",description:"Timing output formats (unstable)"}],args:{name:"args",isVariadic:!0,isOptional:!0}},{name:"rustc",icon:"\u{1F4E6}",description:"Compile a package, and pass extra options to the compiler",options:[{name:["-p","--package"],description:"Package to build",args:{name:"package",isVariadic:!0,filterStrategy:"fuzzy",generators:f}},{name:["-j","--jobs"],description:"Number of parallel jobs, defaults to # of CPUs",args:{name:"jobs"}},{name:"--bin",description:"Build only the specified binary",isRepeatable:!0,args:{name:"bin",filterStrategy:"fuzzy",generators:u({kind:"bin"}),isVariadic:!0}},{name:"--example",description:"Build only the specified example",isRepeatable:!0,args:{name:"example",isVariadic:!0,filterStrategy:"fuzzy",generators:u({kind:"example"})}},{name:"--test",description:"Build only the specified test target",isRepeatable:!0,args:{name:"test",isVariadic:!0,filterStrategy:"fuzzy",generators:u({kind:"test"})}},{name:"--bench",description:"Build only the specified bench target",isRepeatable:!0,args:{name:"bench",isVariadic:!0,filterStrategy:"fuzzy",generators:u({kind:"bench"})}},{name:"--profile",description:"Build artifacts with the specified profile",args:{name:"profile"}},{name:"--features",description:"Space or comma separated list of features to activate",isRepeatable:!0,args:{name:"features",generators:w,isVariadic:!0}},{name:"--target",description:"Target triple which compiles will be for",isRepeatable:!0,args:{name:"target",filterStrategy:"fuzzy",generators:b}},{name:"--print",description:"Output compiler information without compiling",args:{name:"print"}},{name:"--crate-type",description:"Comma separated list of types of crates for the compiler to emit",isRepeatable:!0,args:{name:"crate-type"}},{name:"--target-dir",description:"Directory for all generated artifacts",args:{name:"target-dir"}},{name:"--manifest-path",description:"Path to Cargo.toml",args:{name:"manifest-path",generators:(0,m.filepaths)({equals:"Cargo.toml"})}},{name:"--message-format",description:"Error format",isRepeatable:!0,args:{name:"message-format"}},{name:"--color",description:"Coloring: auto, always, never",args:{name:"color",suggestions:["always","never","auto"]}},{name:"--config",description:"Override a configuration value",isRepeatable:!0,args:{name:"config",generators:d}},{name:"-Z",description:"Unstable (nightly-only) flags to Cargo, see 'cargo -Z help' for details",isRepeatable:!0,args:{name:"unstable-features"}},{name:["-q","--quiet"],description:"Do not print cargo log messages"},{name:"--lib",description:"Build only this package's library"},{name:"--bins",description:"Build all binaries"},{name:"--examples",description:"Build all examples"},{name:"--tests",description:"Build all tests"},{name:"--benches",description:"Build all benches"},{name:"--all-targets",description:"Build all targets"},{name:["-r","--release"],description:"Build artifacts in release mode, with optimizations"},{name:"--all-features",description:"Activate all available features"},{name:"--no-default-features",description:"Do not activate the `default` feature"},{name:"--unit-graph",description:"Output build graph in JSON (unstable)"},{name:"--ignore-rust-version",description:"Ignore `rust-version` specification in packages"},{name:"--future-incompat-report",description:"Outputs a future incompatibility report at the end of the build"},{name:["-h","--help"],description:"Print help information"},{name:["-v","--verbose"],description:"Use verbose output (-vv very verbose/build.rs output)",isRepeatable:!0},{name:"--frozen",description:"Require Cargo.lock and cache are up to date"},{name:"--locked",description:"Require Cargo.lock is up to date"},{name:"--offline",description:"Run without accessing the network"},{name:"--timings",description:"Timing output formats (unstable)"}],args:{name:"args",isVariadic:!0}},{name:"rustdoc",icon:"\u{1F4E6}",description:"Build a package's documentation, using specified custom flags",options:[{name:["-p","--package"],description:"Package to document",args:{name:"package",isVariadic:!0,filterStrategy:"fuzzy",generators:f}},{name:["-j","--jobs"],description:"Number of parallel jobs, defaults to # of CPUs",args:{name:"jobs"}},{name:"--bin",description:"Build only the specified binary",isRepeatable:!0,args:{name:"bin",filterStrategy:"fuzzy",generators:u({kind:"bin"}),isVariadic:!0}},{name:"--example",description:"Build only the specified example",isRepeatable:!0,args:{name:"example",isVariadic:!0,filterStrategy:"fuzzy",generators:u({kind:"example"})}},{name:"--test",description:"Build only the specified test target",isRepeatable:!0,args:{name:"test",isVariadic:!0,filterStrategy:"fuzzy",generators:u({kind:"test"})}},{name:"--bench",description:"Build only the specified bench target",isRepeatable:!0,args:{name:"bench",isVariadic:!0,filterStrategy:"fuzzy",generators:u({kind:"bench"})}},{name:"--profile",description:"Build artifacts with the specified profile",args:{name:"profile"}},{name:"--features",description:"Space or comma separated list of features to activate",isRepeatable:!0,args:{name:"features",generators:w,isVariadic:!0}},{name:"--target",description:"Build for the target triple",isRepeatable:!0,args:{name:"target",filterStrategy:"fuzzy",generators:b}},{name:"--target-dir",description:"Directory for all generated artifacts",args:{name:"target-dir"}},{name:"--manifest-path",description:"Path to Cargo.toml",args:{name:"manifest-path",generators:(0,m.filepaths)({equals:"Cargo.toml"})}},{name:"--message-format",description:"Error format",isRepeatable:!0,args:{name:"message-format"}},{name:"--color",description:"Coloring: auto, always, never",args:{name:"color",suggestions:["always","never","auto"]}},{name:"--config",description:"Override a configuration value",isRepeatable:!0,args:{name:"config",generators:d}},{name:"-Z",description:"Unstable (nightly-only) flags to Cargo, see 'cargo -Z help' for details",isRepeatable:!0,args:{name:"unstable-features"}},{name:["-q","--quiet"],description:"Do not print cargo log messages"},{name:"--open",description:"Opens the docs in a browser after the operation"},{name:"--lib",description:"Build only this package's library"},{name:"--bins",description:"Build all binaries"},{name:"--examples",description:"Build all examples"},{name:"--tests",description:"Build all tests"},{name:"--benches",description:"Build all benches"},{name:"--all-targets",description:"Build all targets"},{name:["-r","--release"],description:"Build artifacts in release mode, with optimizations"},{name:"--all-features",description:"Activate all available features"},{name:"--no-default-features",description:"Do not activate the `default` feature"},{name:"--unit-graph",description:"Output build graph in JSON (unstable)"},{name:"--ignore-rust-version",description:"Ignore `rust-version` specification in packages"},{name:["-h","--help"],description:"Print help information"},{name:["-v","--verbose"],description:"Use verbose output (-vv very verbose/build.rs output)",isRepeatable:!0},{name:"--frozen",description:"Require Cargo.lock and cache are up to date"},{name:"--locked",description:"Require Cargo.lock is up to date"},{name:"--offline",description:"Run without accessing the network"},{name:"--timings",description:"Timing output formats (unstable)"}],args:{name:"args",isVariadic:!0}},{name:"search",icon:"\u{1F50E}",description:"Search packages in crates.io",options:[{name:"--index",description:"Registry index URL to upload the package to",args:{name:"index"}},{name:"--limit",description:"Limit the number of results (default: 10, max: 100)",args:{name:"limit"}},{name:"--registry",description:"Registry to use",args:{name:"registry"}},{name:"--color",description:"Coloring: auto, always, never",args:{name:"color"}},{name:"--config",description:"Override a configuration value",isRepeatable:!0,args:{name:"config",generators:d}},{name:"-Z",description:"Unstable (nightly-only) flags to Cargo, see 'cargo -Z help' for details",isRepeatable:!0,args:{name:"unstable-features"}},{name:["-q","--quiet"],description:"Do not print cargo log messages"},{name:["-h","--help"],description:"Print help information"},{name:["-v","--verbose"],description:"Use verbose output (-vv very verbose/build.rs output)",isRepeatable:!0},{name:"--frozen",description:"Require Cargo.lock and cache are up to date"},{name:"--locked",description:"Require Cargo.lock is up to date"},{name:"--offline",description:"Run without accessing the network"}],args:{name:"query",generators:H,filterStrategy:"fuzzy",debounce:!0,isVariadic:!0,suggestCurrentToken:!0}},{name:["test","t"],icon:"\u{1F4E6}",description:"Execute all unit and integration tests and build examples of a local package",options:[{name:"--bin",description:"Test only the specified binary",isRepeatable:!0,args:{name:"bin",filterStrategy:"fuzzy",generators:u({kind:"bin"}),isVariadic:!0}},{name:"--example",description:"Test only the specified example",isRepeatable:!0,args:{name:"example",isVariadic:!0,filterStrategy:"fuzzy",generators:u({kind:"example"})}},{name:"--test",description:"Test only the specified test target",isRepeatable:!0,args:{name:"test",isVariadic:!0,filterStrategy:"fuzzy",generators:u({kind:"test"})}},{name:"--bench",description:"Test only the specified bench target",isRepeatable:!0,args:{name:"bench",isVariadic:!0,filterStrategy:"fuzzy",generators:u({kind:"bench"})}},{name:["-p","--package"],description:"Package to run tests for",isRepeatable:!0,args:{name:"package",isVariadic:!0,filterStrategy:"fuzzy",generators:f}},{name:"--exclude",description:"Exclude packages from the test",isRepeatable:!0,args:{name:"exclude",filterStrategy:"fuzzy",generators:f}},{name:["-j","--jobs"],description:"Number of parallel jobs, defaults to # of CPUs",args:{name:"jobs"}},{name:"--profile",description:"Build artifacts with the specified profile",args:{name:"profile"}},{name:"--features",description:"Space or comma separated list of features to activate",isRepeatable:!0,args:{name:"features",generators:w,isVariadic:!0}},{name:"--target",description:"Build for the target triple",isRepeatable:!0,args:{name:"target",filterStrategy:"fuzzy",generators:b}},{name:"--target-dir",description:"Directory for all generated artifacts",args:{name:"target-dir"}},{name:"--manifest-path",description:"Path to Cargo.toml",args:{name:"manifest-path",generators:(0,m.filepaths)({equals:"Cargo.toml"})}},{name:"--message-format",description:"Error format",isRepeatable:!0,args:{name:"message-format"}},{name:"--color",description:"Coloring: auto, always, never",args:{name:"color",suggestions:["auto","always","never"]}},{name:"--config",description:"Override a configuration value",isRepeatable:!0,args:{name:"config",generators:d}},{name:"-Z",description:"Unstable (nightly-only) flags to Cargo, see 'cargo -Z help' for details",isRepeatable:!0,args:{name:"unstable-features"}},{name:["-q","--quiet"],description:"Display one character per test instead of one line"},{name:"--lib",description:"Test only this package's library unit tests"},{name:"--bins",description:"Test all binaries"},{name:"--examples",description:"Test all examples"},{name:"--tests",description:"Test all tests"},{name:"--benches",description:"Test all benches"},{name:"--all-targets",description:"Test all targets"},{name:"--doc",description:"Test only this library's documentation"},{name:"--no-run",description:"Compile, but don't run tests"},{name:"--no-fail-fast",description:"Run all tests regardless of failure"},{name:"--workspace",description:"Test all packages in the workspace"},{name:"--all",description:"Alias for --workspace (deprecated)",hidden:!0},{name:["-r","--release"],description:"Build artifacts in release mode, with optimizations"},{name:"--all-features",description:"Activate all available features"},{name:"--no-default-features",description:"Do not activate the `default` feature"},{name:"--ignore-rust-version",description:"Ignore `rust-version` specification in packages"},{name:"--unit-graph",description:"Output build graph in JSON (unstable)"},{name:"--future-incompat-report",description:"Outputs a future incompatibility report at the end of the build"},{name:["-h","--help"],description:"Print help information"},{name:["-v","--verbose"],description:"Use verbose output (-vv very verbose/build.rs output)",isRepeatable:!0},{name:"--frozen",description:"Require Cargo.lock and cache are up to date"},{name:"--locked",description:"Require Cargo.lock is up to date"},{name:"--offline",description:"Run without accessing the network"},{name:"--timings",description:"Timing output formats (unstable)"}],args:[{name:"TESTNAME",isOptional:!0},{name:"args",isOptional:!0,isVariadic:!0}]},{name:"tree",icon:"\u{1F4E6}",description:"Display a tree visualization of a dependency graph",options:[{name:"--manifest-path",description:"Path to Cargo.toml",args:{name:"manifest-path",generators:(0,m.filepaths)({equals:"Cargo.toml"})}},{name:["-p","--package"],description:"Package to be used as the root of the tree",isRepeatable:!0,args:{name:"package",isVariadic:!0,filterStrategy:"fuzzy",generators:f}},{name:"--exclude",description:"Exclude specific workspace members",isRepeatable:!0,args:{name:"exclude",filterStrategy:"fuzzy",generators:f}},{name:"--features",description:"Space or comma separated list of features to activate",isRepeatable:!0,args:{name:"features",generators:w,isVariadic:!0}},{name:"--target",description:"Filter dependencies matching the given target-triple (default host platform). Pass `all` to include all targets",isRepeatable:!0,args:{name:"target",suggestions:["all"],filterStrategy:"fuzzy",generators:b}},{name:["-e","--edges"],description:"The kinds of dependencies to display (features, normal, build, dev, all, no-normal, no-build, no-dev, no-proc-macro)",isRepeatable:!0,args:{name:"edges",suggestions:["features","normal","build","dev","all","no-normal","no-build","no-dev","no-proc-macro"]}},{name:["-i","--invert"],description:"Invert the tree direction and focus on the given package",isRepeatable:!0,args:{name:"invert",isVariadic:!0,filterStrategy:"fuzzy",generators:F}},{name:"--prune",description:"Prune the given package from the display of the dependency tree",isRepeatable:!0,args:{name:"prune",filterStrategy:"fuzzy",generators:F}},{name:"--depth",description:"Maximum display depth of the dependency tree",args:{name:"depth"}},{name:"--prefix",description:"Change the prefix (indentation) of how each entry is displayed",args:{name:"prefix",suggestions:["depth","indent","none"]}},{name:"--charset",description:"Character set to use in output: utf8, ascii",args:{name:"charset",suggestions:["utf8","ascii"]}},{name:["-f","--format"],description:"Format string used for printing dependencies",args:{name:"format"}},{name:"--color",description:"Coloring: auto, always, never",args:{name:"color",suggestions:["auto","always","never"]}},{name:"--config",description:"Override a configuration value",isRepeatable:!0,args:{name:"config",generators:d}},{name:"-Z",description:"Unstable (nightly-only) flags to Cargo, see 'cargo -Z help' for details",isRepeatable:!0,args:{name:"unstable-features"}},{name:["-q","--quiet"],description:"Do not print cargo log messages"},{name:"--workspace",description:"Display the tree for all packages in the workspace"},{name:["-a","--all"]},{name:"--all-targets"},{name:"--all-features",description:"Activate all available features"},{name:"--no-default-features",description:"Do not activate the `default` feature"},{name:"--no-dev-dependencies"},{name:"--no-indent"},{name:"--prefix-depth"},{name:"--no-dedupe",description:"Do not de-duplicate (repeats all shared dependencies)"},{name:["-d","--duplicates"],description:"Show only dependencies which come in multiple versions (implies -i)"},{name:["-V","--version"]},{name:["-h","--help"],description:"Print help information"},{name:["-v","--verbose"],description:"Use verbose output (-vv very verbose/build.rs output)",isRepeatable:!0},{name:"--frozen",description:"Require Cargo.lock and cache are up to date"},{name:"--locked",description:"Require Cargo.lock is up to date"},{name:"--offline",description:"Run without accessing the network"}]},{name:"uninstall",icon:"\u{1F4E6}",description:"Remove a Rust binary",options:[{name:["-p","--package"],description:"Package to uninstall",isRepeatable:!0,args:{name:"package",isVariadic:!0}},{name:"--bin",description:"Only uninstall the binary NAME",isRepeatable:!0,args:{name:"bin"}},{name:"--root",description:"Directory to uninstall packages from",args:{name:"root"}},{name:"--color",description:"Coloring: auto, always, never",args:{name:"color",suggestions:["auto","always","never"]}},{name:"--config",description:"Override a configuration value",isRepeatable:!0,args:{name:"config",generators:d}},{name:"-Z",description:"Unstable (nightly-only) flags to Cargo, see 'cargo -Z help' for details",isRepeatable:!0,args:{name:"unstable-features"}},{name:["-q","--quiet"],description:"Do not print cargo log messages"},{name:["-h","--help"],description:"Print help information"},{name:["-v","--verbose"],description:"Use verbose output (-vv very verbose/build.rs output)",isRepeatable:!0},{name:"--frozen",description:"Require Cargo.lock and cache are up to date"},{name:"--locked",description:"Require Cargo.lock is up to date"},{name:"--offline",description:"Run without accessing the network"}],args:{name:"SPEC",generators:{script:["bash","-c",`cargo install --list | \\grep -E "^[a-zA-Z\\-]+\\sv" | cut -d ' ' -f 1`],splitOn:`
|
|
4
4
|
`},isVariadic:!0}},{name:"update",icon:"\u{1F4E6}",description:"Update dependencies as recorded in the local lock file",options:[{name:["-p","--package"],description:"Package to update",isRepeatable:!0,args:{name:"package",isVariadic:!0,filterStrategy:"fuzzy",generators:F}},{name:"--precise",description:"Update a single dependency to exactly PRECISE when used with -p",dependsOn:["--package","-p"],args:{name:"precise"}},{name:"--manifest-path",description:"Path to Cargo.toml",args:{name:"manifest-path",generators:(0,m.filepaths)({equals:"Cargo.toml"})}},{name:"--color",description:"Coloring: auto, always, never",args:{name:"color",suggestions:["always","never","auto"]}},{name:"--config",description:"Override a configuration value",isRepeatable:!0,args:{name:"config",generators:d}},{name:"-Z",description:"Unstable (nightly-only) flags to Cargo, see 'cargo -Z help' for details",isRepeatable:!0,args:{name:"unstable-features"}},{name:["-q","--quiet"],description:"Do not print cargo log messages"},{name:["-w","--workspace"],description:"Only update the workspace packages"},{name:"--aggressive",description:"Force updating all dependencies of SPEC as well when used with -p"},{name:"--dry-run",description:"Don't actually write the lockfile"},{name:["-h","--help"],description:"Print help information"},{name:["-v","--verbose"],description:"Use verbose output (-vv very verbose/build.rs output)",isRepeatable:!0},{name:"--frozen",description:"Require Cargo.lock and cache are up to date"},{name:"--locked",description:"Require Cargo.lock is up to date"},{name:"--offline",description:"Run without accessing the network"}]},{name:"vendor",icon:"\u{1F4E6}",description:"Vendor all dependencies for a project locally",options:[{name:"--manifest-path",description:"Path to Cargo.toml",args:{name:"manifest-path",generators:(0,m.filepaths)({equals:"Cargo.toml"})}},{name:["-s","--sync"],description:"Additional `Cargo.toml` to sync and vendor",isRepeatable:!0,args:{name:"tomls",isVariadic:!0}},{name:"--color",description:"Coloring: auto, always, never",args:{name:"color",suggestions:["always","never","auto"]}},{name:"--config",description:"Override a configuration value",isRepeatable:!0,args:{name:"config",generators:d}},{name:"-Z",description:"Unstable (nightly-only) flags to Cargo, see 'cargo -Z help' for details",isRepeatable:!0,args:{name:"unstable-features"}},{name:["-q","--quiet"],description:"Do not print cargo log messages"},{name:"--no-delete",description:"Don't delete older crates in the vendor directory"},{name:"--respect-source-config",description:"Respect `[source]` config in `.cargo/config`",isRepeatable:!0},{name:"--versioned-dirs",description:"Always include version in subdir name"},{name:"--no-merge-sources"},{name:"--relative-path"},{name:"--only-git-deps"},{name:"--disallow-duplicates"},{name:["-h","--help"],description:"Print help information"},{name:["-v","--verbose"],description:"Use verbose output (-vv very verbose/build.rs output)",isRepeatable:!0},{name:"--frozen",description:"Require Cargo.lock and cache are up to date"},{name:"--locked",description:"Require Cargo.lock is up to date"},{name:"--offline",description:"Run without accessing the network"}],args:{name:"path"}},{name:"verify-project",icon:"\u{1F4E6}",description:"Check correctness of crate manifest",options:[{name:"--manifest-path",description:"Path to Cargo.toml",args:{name:"manifest-path",generators:(0,m.filepaths)({equals:"Cargo.toml"})}},{name:"--color",description:"Coloring: auto, always, never",args:{name:"color",suggestions:["always","never","auto"]}},{name:"--config",description:"Override a configuration value",isRepeatable:!0,args:{name:"config",generators:d}},{name:"-Z",description:"Unstable (nightly-only) flags to Cargo, see 'cargo -Z help' for details",isRepeatable:!0,args:{name:"unstable-features"}},{name:["-q","--quiet"],description:"Do not print cargo log messages"},{name:["-h","--help"],description:"Print help information"},{name:["-v","--verbose"],description:"Use verbose output (-vv very verbose/build.rs output)",isRepeatable:!0},{name:"--frozen",description:"Require Cargo.lock and cache are up to date"},{name:"--locked",description:"Require Cargo.lock is up to date"},{name:"--offline",description:"Run without accessing the network"}]},{name:"version",icon:"\u{1F4E6}",description:"Show version information",options:[{name:"--color",description:"Coloring: auto, always, never",args:{name:"color",suggestions:["always","never","auto"]}},{name:"--config",description:"Override a configuration value",isRepeatable:!0,args:{name:"config",generators:d}},{name:"-Z",description:"Unstable (nightly-only) flags to Cargo, see 'cargo -Z help' for details",isRepeatable:!0,args:{name:"unstable-features"}},{name:["-q","--quiet"],description:"Do not print cargo log messages"},{name:["-h","--help"],description:"Print help information"},{name:["-v","--verbose"],description:"Use verbose output (-vv very verbose/build.rs output)",isRepeatable:!0},{name:"--frozen",description:"Require Cargo.lock and cache are up to date"},{name:"--locked",description:"Require Cargo.lock is up to date"},{name:"--offline",description:"Run without accessing the network"}]},{name:"yank",icon:"\u{1F4E6}",description:"Remove a pushed crate from the index",options:[{name:"--vers",description:"The version to yank or un-yank",args:{name:"vers"}},{name:"--index",description:"Registry index to yank from",args:{name:"index"}},{name:"--token",description:"API token to use when authenticating",args:{name:"token"}},{name:"--registry",description:"Registry to use",args:{name:"registry"}},{name:"--color",description:"Coloring: auto, always, never",args:{name:"color",suggestions:["always","never","auto"]}},{name:"--config",description:"Override a configuration value",isRepeatable:!0,args:{name:"config",generators:d}},{name:"-Z",description:"Unstable (nightly-only) flags to Cargo, see 'cargo -Z help' for details",isRepeatable:!0,args:{name:"unstable-features"}},{name:["-q","--quiet"],description:"Do not print cargo log messages"},{name:"--undo",description:"Undo a yank, putting a version back into the index"},{name:["-h","--help"],description:"Print help information"},{name:["-v","--verbose"],description:"Use verbose output (-vv very verbose/build.rs output)",isRepeatable:!0},{name:"--frozen",description:"Require Cargo.lock and cache are up to date"},{name:"--locked",description:"Require Cargo.lock is up to date"},{name:"--offline",description:"Run without accessing the network"}],args:{name:"crate"}},{name:"help",icon:"\u{1F4E6}",description:"Print this message or the help of the given subcommand(s)",options:[{name:"--color",description:"Coloring: auto, always, never",args:{name:"color",suggestions:["always","never","auto"]}},{name:"--config",description:"Override a configuration value",isRepeatable:!0,args:{name:"config",generators:d}},{name:"-Z",description:"Unstable (nightly-only) flags to Cargo, see 'cargo -Z help' for details",isRepeatable:!0,args:{name:"unstable-features"}},{name:["-v","--verbose"],description:"Use verbose output (-vv very verbose/build.rs output)",isRepeatable:!0},{name:"--frozen",description:"Require Cargo.lock and cache are up to date"},{name:"--locked",description:"Require Cargo.lock is up to date"},{name:"--offline",description:"Run without accessing the network"}],args:{name:"subcommand"}},{name:"add",icon:"\u{1F4E6}",description:"Add dependencies to a Cargo.toml manifest file",options:[{name:"--no-default-features",description:"Disable the default features"},{name:"--default-features",description:"Re-enable the default features"},{name:["-F","--features"],description:"Space or comma separated list of features to activate"},{name:"--optional",description:"Mark the dependency as optional"},{name:["-v","--verbose"],description:"Use verbose output"},{name:"--no-optional",description:"Mark the dependency as required"},{name:"--color",args:{name:"WHEN",suggestions:["auto","always","never"]}},{name:"--rename",description:"Rename the dependency",args:{name:"NAME"}},{name:"--frozen",description:"Require Cargo.lock and cache are up to date"},{name:"--manifest-path",description:"Path to Cargo.toml"},{name:"--locked",description:"Require Cargo.lock is up to date"},{name:["-p","--package"],description:"Package to modify",args:{name:"SPEC",filterStrategy:"fuzzy",generators:f}},{name:"--offline",description:"Run without accessing the network"},{name:["-q","--quiet"],description:"Do not print cargo log messages"},{name:"--dry-run",description:"Don't actually write the manifest"},{name:["-h","--help"],description:"Print help information"},{name:"--path",description:"Filesystem path to local crate to add",args:{name:"PATH",template:"folders"}},{name:"--git",description:"Git repository location",args:{name:"URI"}},{name:"--branch",description:"Git branch to download the crate from",dependsOn:["--git"],args:{name:"BRANCH"}},{name:"--tag",description:"Git tag to download the crate from",dependsOn:["--git"],args:{name:"TAG"}},{name:"--rev",description:"Git reference to download the crate from",dependsOn:["--git"],args:{name:"REV"}},{name:"--registry",description:"Package registry for this dependency",args:{name:"NAME"}},{name:"--dev",description:"Add as development dependency"},{name:"--build",description:"Add as build dependency"},{name:"--target",description:"Add as dependency to the given target platform",args:{name:"TARGET",filterStrategy:"fuzzy",generators:b}}],args:{name:"DEP_ID",generators:H,filterStrategy:"fuzzy",debounce:!0,isVariadic:!0,suggestCurrentToken:!0}},{name:["remove","rm"],icon:"\u{1F4E6}",description:"Remove dependencies from a Cargo.toml manifest file",options:[{name:"--dev",description:"Remove as development dependency"},{name:"--build",description:"Remove as build dependency"},{name:"--target",description:"Remove as dependency to the given target platform",args:{name:"TARGET",filterStrategy:"fuzzy",generators:b}},{name:["-p","--package"],description:"Package to remove from",args:{name:"SPEC",filterStrategy:"fuzzy",generators:f}},{name:"--manifest-path",description:"Path to Cargo.toml"},{name:["-q","--quiet"],description:"Do not print cargo log messages"},{name:"--dry-run",description:"Don't actually write the manifest"},{name:["-v","--verbose"],description:"Use verbose output"},{name:"--color",args:{name:"WHEN",suggestions:["auto","always","never"]}},{name:"--frozen",description:"Require Cargo.lock and cache are up to date"},{name:"--locked",description:"Require Cargo.lock is up to date"},{name:"--offline",description:"Run without accessing the network"},{name:["-h","--help"],description:"Print help information"}],args:{name:"DEP_ID",generators:Fe,filterStrategy:"fuzzy",isVariadic:!0}}],options:[{name:"--explain",description:"Run `rustc --explain CODE`",args:{name:"explain"}},{name:"--color",description:"Coloring: auto, always, never",args:{name:"color",suggestions:["always","never","auto"]}},{name:"--config",description:"Override a configuration value",isRepeatable:!0,args:{name:"config",generators:d}},{name:"-Z",description:"Unstable (nightly-only) flags to Cargo, see 'cargo -Z help' for details",isRepeatable:!0,args:{name:"unstable-features"}},{name:["-h","--help"],description:"Print help information"},{name:["-V","--version"],description:"Print version info and exit"},{name:"--list",description:"List installed commands"},{name:["-v","--verbose"],description:"Use verbose output (-vv very verbose/build.rs output)",isRepeatable:!0},{name:["-q","--quiet"],description:"Do not print cargo log messages"},{name:"--frozen",description:"Require Cargo.lock and cache are up to date"},{name:"--locked",description:"Require Cargo.lock is up to date"},{name:"--offline",description:"Run without accessing the network"}],generateSpec:async(t,a)=>{let[{stdout:i},{stdout:n}]=await Promise.all([a({command:"rustup",args:["toolchain","list"]}),a({command:"cargo",args:["--list"]})]),o=i.split(`
|
|
5
5
|
`).map(r=>({icon:"\u{1F9F0}",name:`+${r.split("-")[0]}`,description:r})),s=[],l=n.split(`
|
|
6
|
-
`).filter((r,p)=>p!=0).map(r=>r.trim().split(/\s+/,1)[0]);if(l.includes("fmt")){let r={name:"fmt",icon:"\u{1F6E0}",description:"This utility formats all bin and lib files of the current crate using rustfmt",subcommands:[{name:"--",description:"All other arguments are passed to rustfmt",args:{generators:(0,m.filepaths)({extensions:["rs"]})},options:[{name:"--check",description:"Run in 'check' mode. Exits with 0 if input is formatted correctly. Exits with 1 and prints a diff if formatting is required"},{name:"--emit",description:"What data to emit and how",args:{suggestions:["files","stdout"]}},{name:"--backup",description:"Backup any modified files"},{name:"--config-path",description:"Path for the configuration file",args:{generators:(0,m.filepaths)({equals:["rustfmt.toml"]})}},{name:"--edition",description:"Rust edition to use",args:{suggestions:G}},{name:"--print-config",description:"Dumps a default or minimal config to PATH",args:[{name:"verbosity",suggestions:["default","minimal","current"]},{name:"PATH",template:"filepaths"}]},{name:["-l","--files-with-diff"],description:"Prints the names of mismatched files that were formatted"}]}],options:[{name:"--check",description:"Run rustfmt in check mode"},{name:"--all",description:"Format all packages, and also their local path-based dependencies"},{name:["-h","--help"],description:"Print help information"},{name:["-q","--quiet"],description:"No output printed to stdout"},{name:["-v","--verbose"],description:"Use verbose output"},{name:"--version",description:"Print rustfmt version and exit"},{name:"--manifest-path",description:"Specify path to Cargo.toml",args:{name:"manifest-path",generators:(0,m.filepaths)({equals:["Cargo.toml"]})}},{name:"--message-format",description:"Specify message-format",args:{name:"message-format",suggestions:["short","json","human"]}},{name:["-p","--package"],description:"Specify package to format",args:{name:"package",filterStrategy:"fuzzy",generators:f}}]};s.push(r)}if(l.includes("clippy")){let r={name:"clippy",icon:"\u{1F4CE}",description:"Runs the Clippy linter",subcommands:[{name:"--",description:"All other arguments are passed to clippy",options:[{name:["-W","--warn"],description:"Set lint warnings",args:{}},{name:["-A","--allow"],description:"Set lint allowed",args:{}},{name:["-D","--deny"],description:"Set lint denied",args:{}},{name:["-F","--forbid"],description:"Set lint forbidden",args:{}}]}],options:[{name:"--no-deps",description:"Run Clippy only on the given crate, without linting the dependencies"},{name:"--fix",description:"Automatically apply lint suggestions. This flag implies `--no-deps`"},{name:"--allow-dirty",description:"Allow fix to apply even if the working directory is dirty",dependsOn:["--fix"]},{name:"--allow-staged",description:"Allow fix to apply even if the working directory has staged changes",dependsOn:["--fix"]}]};s.push(r)}if(l.includes("flamegraph")){let r={name:"flamegraph",icon:"\u{1F525}",description:"Generates a flamegraph of the current crate",options:[{name:"--deterministic",description:"Colors are selected such that the color of a function does not change between runs"},{name:"--dev",description:"Build with the dev profile"},{name:["-i","--inverted"],description:"Plot the flame graph up-side-down"},{name:"--no-default-features",description:"Disable default features"},{name:"--open",description:"Open the output .svg file with default program"},{name:"--reverse",description:"Generate stack-reversed flame graph"},{name:"--root",description:"Run with root privileges (using `sudo`)"},{name:"--no-inline",description:"Disable inlining for perf script because of performance issues"}]};s.push(r)}if(l.includes("audit")){let r={name:"audit",icon:"\u{1F4DA}",description:"Runs the cargo audit tool",options:[{name:["-d","--db"],description:"Advisory database git repo path",args:{name:"DB",template:"folders"}},{name:["-D","--deny"],description:"Exit with an error on the argument",args:{isVariadic:!0,suggestions:[{name:"warnings",description:"Warnings (any)"},{name:"unmaintained",description:"Unmaintained crates"},{name:"unsound",description:"Unsound Rust code"},{name:"yanked",description:"Yanked crates"}]}},{name:["-f","--file"],description:"Cargo lockfile to inspect",args:{suggestions:[{name:"-",description:"Stdin"}],generators:(0,m.filepaths)({equals:["Cargo.lock"]})}},{name:["-n","--no-fetch"],description:"Do not perform a git fetch on the advisory DB"},{name:"--stale",description:"Allow stale database"},{name:"--target-arch",description:"Filter vulnerabilities by CPU",args:{}},{name:"--target-os",description:"Filter vulnerabilities by OS",args:{}},{name:["-u","--url"],description:"URL for advisory database git repo"},{name:"--json",description:"Output report in JSON format"},{name:"--no-local-crates",description:"Vulnerability querying does not consider local crates"}]};s.push(r)}if(l.includes("outdated")){let r={name:"outdated",icon:"\u{1F4E6}",description:"Displays information about project dependency versions",options:[{name:["-a","--aggressive"],description:"Ignores channels for latest updates"},{name:"--color",description:"Output coloring",args:{name:"COLOR",suggestions:["always","never","auto"],default:"auto"}},{name:["-d","--depth"],description:"How deep in the dependency chain to search (Defaults to all dependencies when omitted)",args:{name:"DEPTH"},exclusiveOn:["-R","--root-deps-only"]},{name:["-x","--exclude"],description:"Exclude a dependency from the output",isRequired:!0,args:{name:"DEPENDENCY",filterStrategy:"fuzzy",generators:F}},{name:"--exit-code",description:"The exit code to return on new versions found",args:{name:"NUM",suggestions:["0","1"],default:"0"}},{name:"--features",description:"Space-separated list of features",args:{name:"FEATURES",generators:w,isVariadic:!0}},{name:"--format",description:"Output formatting",args:{name:"FORMAT",suggestions:["json","list"],default:"list"}},{name:["-h","--help"],description:"Prints help information"},{name:["-i","--ignore"],description:"Dependencies to not print in the output",args:{name:"DEPENDENCY",filterStrategy:"fuzzy",generators:F}},{name:["-e","--ignore-external-rel"],description:"Ignore relative dependencies external to workspace and check root dependencies only"},{name:["-m","--manifest-path"],description:"Path to the Cargo.toml file to use",args:{name:"PATH",generators:(0,m.filepaths)({equals:["Cargo.toml"]})}},{name:["-o","--offline"],description:"Run without accessing the network"},{name:["-p","--packages"],description:"Packages to inspect for updates",args:{name:"PACKAGES",filterStrategy:"fuzzy",generators:f}},{name:["-q","--quiet"],description:"Suppresses warnings"},{name:["-r","--root"],description:"Package to treat as the root package",args:{name:"PACKAGE",filterStrategy:"fuzzy",generators:f}},{name:["-R","--root-deps-only"],description:"Only check root dependencies",exclusiveOn:["-d","--depth"]},{name:["-V","--version"],description:"Prints version information"},{name:["-v","--verbose"],description:"Use verbose output"},{name:["-w","--workspace"],description:"Checks updates for all workspace members rather than only the root package"}]};s.push(r)}if(l.includes("udeps")){let r={name:"udeps",icon:"\u{1F4E6}",description:"Find unused dependencies in Cargo.toml files",options:[{name:["-q","--quiet"],description:"No output printed to stdout"},{name:["-p","--package"],description:"Package(s) to check",args:{name:"SPEC",filterStrategy:"fuzzy",generators:f}},{name:"--all",description:"Alias for --workspace (deprecated)",hidden:!0,deprecated:!0},{name:"--workspace",description:"Check all packages in the workspace"},{name:"--exclude",description:"Exclude packages from the check",args:{name:"SPEC",filterStrategy:"fuzzy",generators:f}},{name:["-j","--jobs"],description:"Number of parallel jobs, defaults to # of CPUs",args:{name:"N"}},{name:"--lib",description:"Check only this package's library"},{name:"--bin",description:"Check only the specified binary",args:{name:"NAME",filterStrategy:"fuzzy",generators:u({kind:"bin"})}},{name:"--bins",description:"Check all binaries"},{name:"--example",description:"Check only the specified example",args:{name:"NAME",filterStrategy:"fuzzy",generators:u({kind:"example"})}},{name:"--examples",description:"Check all examples"},{name:"--test",description:"Check only the specified test target",args:{name:"NAME",filterStrategy:"fuzzy",generators:u({kind:"test"})}},{name:"--tests",description:"Check all tests"},{name:"--bench",description:"Check only the specified bench target",args:{name:"NAME",filterStrategy:"fuzzy",generators:u({kind:"bench"})}},{name:"--benches",description:"Check all benches"},{name:"--all-targets",description:"Check all targets"},{name:"--release",description:"Check artifacts in release mode, with optimizations"},{name:"--profile",description:"Check artifacts with the specified profile",args:{name:"PROFILE-NAME"}},{name:"--features",description:"Space-separated list of features to activate",args:{name:"FEATURES",isVariadic:!0}},{name:"--all-features",description:"Activate all available features"},{name:"--no-default-features",description:"Do not activate the `default` feature"},{name:"--target",description:"Check for the target triple",args:{name:"TRIPLE"}},{name:"--target-dir",description:"Directory for all generated artifacts",args:{name:"DIRECTORY"}},{name:"--manifest-path",description:"Path to Cargo.toml",args:{name:"PATH"}},{name:"--message-format",description:"Error format",args:{name:"FMT",default:"human",suggestions:["human","json","short"]}},{name:["-v","--verbose"],description:"Use verbose output (-vv very verbose/build.rs output)"},{name:"--color",description:"Coloring",args:{name:"WHEN",suggestions:["auto","always","never"]}},{name:"--frozen",description:"Require Cargo.lock and cache are up to date"},{name:"--locked",description:"Require Cargo.lock is up to date"},{name:"--offline",description:"Run without accessing the network"},{name:"--output",description:"Output format",args:{name:"OUTPUT",default:"human",suggestions:["human","json"]}},{name:"--backend",description:"Backend to use for determining unused deps",args:{name:"BACKEND",suggestions:["save-analysis","depinfo"]}},{name:"--keep-going",description:"Needed because the keep-going flag is asked about by cargo code"},{name:"--show-unused-transitive",description:"Show unused dependencies that get used transitively by main dependencies. Works only with 'save-analysis' backend",dependsOn:["--backend"]},{name:["-h","--help"],description:"Print help information"},{name:["-V","--version"],description:"Print version information"}]};s.push(r)}if(l.includes("deny")){let r={name:"deny",icon:"\u274C",description:"Cargo plugin to help you manage large dependency graphs",subcommands:[{name:"check",description:"Checks a project's crate graph",options:[{name:"--audit-compatible-output",description:"To ease transition from cargo-audit to cargo-deny, this flag will tell cargo-deny to output the exact same output as cargo-audit would, to `stdout` instead of `stderr`, just as with cargo-audit"},{name:["-c","--config"],description:"Path to the config to use. Defaults to <cwd>/deny.toml if not specified",args:{name:"CONFIG",generators:(0,m.filepaths)({equals:"deny.toml"})}},{name:["-d","--disable-fetch"],description:"Disable fetching of the advisory database"},{name:["-g","--graph"],description:"Path to graph_output root directory",args:{name:"GRAPH",template:"folders"}},{name:["-h","--help"],description:"Print help information"},{name:"--hide-inclusion-graph",description:"Hides the inclusion graph when printing out info for a crate"},{name:["-s","--show-stats"],description:"Show stats for all the checks, regardless of the log-level"}],args:{name:"WHICH",isOptional:!0,suggestions:[{name:"advisories",description:"Checks for known security vulnerabilities"},{name:"ban",description:"Checks for banned crates"},{name:"bans",description:"Checks for banned crates"},{name:"license",description:"Checks for crates with unknown licenses"},{name:"licenses",description:"Checks for crates with unknown licenses"},{name:"sources",description:"Checks for crates with unknown sources"},{name:"all",description:"Runs all checks"}],isVariadic:!0}},{name:"fetch",description:"Fetches remote data",options:[{name:["-c","--config"],description:"Path to the config to use",args:{name:"CONFIG",generators:(0,m.filepaths)({equals:"deny.toml"})}},{name:["-h","--help"],description:"Print help information"}],args:{name:"SOURCES",isOptional:!0,suggestions:[{name:"db",description:"Fetches the advisory database"},{name:"index",description:"Fetches the crates.io index"},{name:"all",description:"Fetches all remote data"}]}},{name:"help",description:"Print this message or the help of the given subcommand(s)",args:{template:"help",isOptional:!0}},{name:"init",description:"Creates a cargo-deny config from a template",options:[{name:["-h","--help"],description:"Print help information"}],args:{name:"CONFIG",description:"The path to create",generators:(0,m.filepaths)({equals:"deny.toml"})}},{name:"list",description:"Outputs a listing of all licenses and the crates that use them",options:[{name:["-c","--config"],description:"Path to the config to use",args:{name:"CONFIG",generators:(0,m.filepaths)({equals:"deny.toml"})}},{name:["-f","--format"],description:"The format of the output",args:{name:"FORMAT",suggestions:["human","json","tsv"]}},{name:["-h","--help"],description:"Print help information"},{name:["-l","--layout"],description:"The layout for the output",args:{name:"LAYOUT",suggestions:[{name:"crate"},{name:"license"}]}},{name:["-t","--threshold"],description:"Minimum confidence threshold for license text",args:{name:"THRESHOLD",suggestions:["0.0","0.1","0.2","0.3","0.4","0.5","0.6","0.7","0.8","0.9","1.0"]}}]}],options:[{name:"--all-features",description:"Activate all available features"},{name:["-c","--color"],description:"Coloring",args:{name:"WHEN",suggestions:["auto","always","never"]}},{name:"--exclude",description:"One or more crates to exclude from the crate graph that is used",args:{name:"EXCLUDE",filterStrategy:"fuzzy",generators:f}},{name:["-f","--format"],description:"Specify the format of cargo-deny's output",args:{name:"FORMAT",default:"human",suggestions:["human","json"]}},{name:"--features",description:"Space or comma separated list of features to activate",args:{name:"FEATURES",isVariadic:!0}},{name:"--frozen",description:"Require Cargo.lock and cache are up to date"},{name:["-h","--help"],description:"Print help information"},{name:["-L","--log-level"],description:"The log level for messages",args:{name:"LOG_LEVEL",default:"warn",suggestions:["off","error","warn","info","debug","trace"]}},{name:"--locked",description:"Require Cargo.lock is up to date"},{name:"--manifest-path",description:"The path of a Cargo.toml to use as the context for the operation",args:{name:"MANIFEST_PATH"}},{name:"--no-default-features",description:"Do not activate the `default` feature"},{name:"--offline",description:"Run without accessing the network. If used with the `check` subcommand, this also disables advisory database fetching"},{name:["-t","--target"],description:"One or more platforms to filter crates by",args:{name:"TARGET"}},{name:["-V","--version"],description:"Print version information"},{name:"--workspace",description:"If passed, all workspace packages are used as roots for the crate graph"}]};s.push(r)}if(l.includes("bloat")){let r={name:"bloat",icon:"\u2696\uFE0F",description:"Find out what takes most of the space in your executable",options:[{name:["-h","--help"],description:"Print help information"},{name:["-V","--version"],description:"Print version information"},{name:"--lib",description:"Build only this package's library"},{name:"--bin",description:"Build only the specified binary",args:{name:"NAME"}},{name:"--example",description:"Build only the specified example",args:{name:"NAME"}},{name:"--test",description:"Build only the specified test target",args:{name:"NAME"}},{name:["-p","--package"],description:"Package to build",args:{name:"SPEC",filterStrategy:"fuzzy",generators:f}},{name:"--release",description:"Build artifacts in release mode, with optimizations"},{name:["-j","--jobs"],description:"Number of parallel jobs, defaults to # of CPUs",args:{name:"N"}},{name:"--features",description:"Space-separated list of features to activate",args:{name:"FEATURES"}},{name:"--all-features",description:"Activate all available features"},{name:"--no-default-features",description:"Do not activate the `default` feature"},{name:"--profile",description:"Build with the given profile",args:{name:"PROFILE"}},{name:"--target",description:"Build for the target triple",args:{name:"TARGET"}},{name:"--target-dir",description:"Directory for all generated artifacts",args:{name:"DIRECTORY"}},{name:"--frozen",description:"Require Cargo.lock and cache are up to date"},{name:"--locked",description:"Require Cargo.lock is up to date"},{name:"-Z",description:"Unstable (nightly-only) flags to Cargo, see 'cargo -Z help' for details",args:{name:"FLAG",isVariadic:!0}},{name:"--crates",description:"Per crate bloatedness"},{name:"--time",description:"Per crate build time. Will run `cargo clean` first"},{name:"--filter",description:"Filter functions by crate",args:{name:"CRATE|REGEXP"}},{name:"--split-std",description:"Split the 'std' crate to original crates like core, alloc, etc"},{name:"--symbols-section",description:"Use custom symbols section (ELF-only)",args:{name:"NAME",default:".text"}},{name:"--no-relative-size",description:"Hide 'File' and '.text' columns"},{name:"--full-fn",description:"Print full function name with hash values"},{name:"-n",description:"Number of lines to show, 0 to show all [default: 20]",args:{name:"NUM",default:"20"}},{name:["-w","--wide"],description:"Do not trim long function names"},{name:"--message-format",description:"Output format",args:{name:"FMT",default:"table",suggestions:["table","json"]}}]};s.push(r)}if(l.includes("sort")){let r={name:"sort",icon:"\u{1F6E0}",description:"Ensure Cargo.toml dependency tables are sorted",options:[{name:["-h","--help"],description:"Print help information"},{name:["-V","--version"],description:"Print version information"},{name:["-c","--check"],description:"Non-zero exit if Cargo.toml is unsorted, overrides default behavior"},{name:["-g","--grouped"],description:"When sorting groups of key value pairs blank lines are kept"},{name:["-p","--print"],description:"Prints Cargo.toml, lexically sorted, to stdout"},{name:["-w","--workspace"],description:"Checks every crate in a workspace"},{name:["-n","--no-format"],description:"Skip formatting after sorting",args:{name:"no-format"}},{name:["-o","--order"],description:"When sorting groups of key value pairs blank lines are kept",args:{name:"order"}}],args:{name:"CWD",description:"The directory to run the command in",isOptional:!0,template:"folders"}};s.push(r)}if(l.includes("fuzz")){let r={name:"fuzz",icon:"\u{1F6E0}",description:"A `cargo` subcommand for fuzzing with `libFuzzer`!",subcommands:[{name:"add",description:"Add a new fuzz target"},{name:"build",description:"Build fuzz targets"},{name:"cmin",description:"Minify a corpus"},{name:"coverage",description:"Run program on the generated corpus and generate coverage information"},{name:"fmt",description:"Print the `std::fmt::Debug` output for an input"},{name:"help",description:"Prints this message or the help of the given subcommand(s)"},{name:"init",description:"Initialize the fuzz directory"},{name:"list",description:"List all the existing fuzz targets"},{name:"run",description:"Run a fuzz target"},{name:"tmin",description:"Minify a test case"}]};s.push(r)}if(l.includes("insta")){let r=[{name:["-h","--help"],description:"Print help information"},{name:["-V","--version"],description:"Print version information"},{name:"--color",description:"Coloring: auto, always, never",args:{name:"WHEN",default:"auto",suggestions:["auto","always","never"]}},{name:"--manifest-path",description:"Path to Cargo.toml",args:{name:"PATH",generators:(0,m.filepaths)({equals:"Cargo.toml"})}},{name:"--workspace-root",description:"Explicit path to the workspace root",args:{name:"PATH",template:"folders"}},{name:["-e","--extensions"],description:"Sets the extensions to consider. Defaults to `.snap`",args:{name:"EXTENSIONS",isVariadic:!0}},{name:"--all",description:"Work on all packages in the workspace"},{name:"--no-ignore",description:"Also walk into ignored paths"}],p={name:"insta",icon:"\u{1F6E0}",description:"A `cargo` subcommand for snapshot testing",subcommands:[{name:"review",description:"Interactively review snapshots",options:[...r,{name:"--snapshot",description:"Limits the operation to one or more snapshots",args:{name:"snapshot-filter",isVariadic:!0}},{name:["-q","--quiet"],description:"Do not print to stdout"}]},{name:"reject",description:"Rejects all snapshots",options:[...r,{name:"--snapshot",description:"Limits the operation to one or more snapshots",args:{name:"snapshot-filter",isVariadic:!0}},{name:["-q","--quiet"],description:"Do not print to stdout"}]},{name:"accept",description:"Accepts all snapshots",options:[...r,{name:"--snapshot",description:"Limits the operation to one or more snapshots",args:{name:"snapshot-filter",isVariadic:!0}},{name:["-q","--quiet"],description:"Do not print to stdout"}]},{name:"test",description:"Run tests and then reviews",options:[...r,{name:"--snapshot",description:"Limits the operation to one or more snapshots",args:{name:"snapshot-filter",isVariadic:!0}},{name:["-q","--quiet"],description:"Do not print to stdout"},{name:["-p","--package"],description:"Package to run tests for",args:{name:"SPEC",filterStrategy:"fuzzy",generators:f}},{name:"--no-force-pass",description:"Disable force-passing of snapshot tests"},{name:"--fail-fast",description:"Prevent running all tests regardless of failure"},{name:"--features",description:"Space-separated list of features to activate",args:{name:"features"}},{name:["-j","--jobs"],description:"Number of parallel jobs, defaults to # of CPUs",args:{name:"jobs"}},{name:"--release",description:"Build artifacts in release mode, with optimizations"},{name:"--all-features",description:"Activate all available features"},{name:"--no-default-features",description:"Do not activate the `default` feature"},{name:"--review",description:"Follow up with review"},{name:"--accept",description:"Accept all snapshots after test"},{name:"--accept-unseen",description:"Accept all new (previously unseen)"},{name:"--keep-pending",description:"Do not reject pending snapshots before run"},{name:"--force-update-snapshots",description:"Update all snapshots even if they are still matching"},{name:"--delete-unreferenced-snapshots",description:"Delete unreferenced snapshots after the test run"},{name:"--glob-filter",description:"Filters to apply to the insta glob feature",args:{name:"glob-filter",isVariadic:!0}},{name:["-Q","--no-quiet"],description:"Do not pass the quiet flag (`-q`) to tests"},{name:"--test-runner",description:"Picks the test runner",args:{name:"test-runner"}}]},{name:"pending",description:"Print a summary of all pending snapshots",options:[...r,{name:"--as-json",description:"Changes the output from human readable to JSON"}]},{name:"show",description:"Shows a specific snapshot",options:r,args:{name:"path",description:"The path to the snapshot file",generators:(0,m.filepaths)({extensions:["snap"]})}}],options:[{name:["-h","--help"],description:"Print help information"},{name:["-V","--version"],description:"Print version information"},{name:"--color",description:"Coloring: auto, always, never",args:{name:"WHEN",default:"auto",suggestions:["auto","always","never"]}}]};s.push(p)}if(l.includes("make")){let r={name:"make",icon:"\u{1F6E0}",description:"Rust cargo-make task runner and build tool",args:{name:"TASK",filterStrategy:"fuzzy",isVariadic:!0,isOptional:!0,generators:se},options:[{name:["--help","-h"],description:"Print help information"},{name:["--version","-V"],description:"Print version information"},{name:"--makefile",description:"The optional toml file containing the tasks definitions",args:{name:"FILE",template:"filepaths"}},{name:["--task","-t"],description:"The task name to execute",args:{name:"TASK",filterStrategy:"fuzzy",isVariadic:!0,isOptional:!0,generators:se}},{name:["--profile","-p"],description:"The profile name",args:{name:"PROFILE",default:"development"}},{name:"--cwd",description:"Set the current working directory",args:{name:"DIRECTORY",template:"folders"}},{name:"--no-workspace",description:"Disable workspace support"},{name:"--no-on-error",description:"Disable on error flow even if defined in config sections"},{name:"--allow-private",description:"Allow invocation of private tasks"},{name:"--skip-init-end-tasks",description:"If set, init and end tasks are skipped"},{name:"--skip-tasks",description:"Skip all tasks that match the provided regex",args:{name:"SKIP_TASK_PATTERNS"}},{name:"--env-file",description:"Set environment variables from provided file",args:{name:"FILE",template:"filepaths"}},{name:["--env","-e"],description:"Set environment variables",args:{name:"ENV"}},{name:["--loglevel","-l"],description:"The log level",args:{name:"LOG LEVEL",suggestions:["verbose","info","error","off"]}},{name:["--verbose","-v"],description:"Sets the log level to verbose"},{name:"--quiet",description:"Sets the log level to error"},{name:"--silent",description:"Sets the log level to off"},{name:"--no-color",description:"Disables colorful output"},{name:"--time-summary",description:"Print task level time summary at end of flow"},{name:"--experimental",description:"Allows access to unsupported experimental predefined tasks"},{name:"--disable-check-for-updates",description:"Disables the update check during startup"},{name:"--output-format",description:"The print/list steps format",args:{name:"OUTPUT FORMAT",suggestions:["default","short-description","markdown","markdown-single-page","markdown-sub-section","autocomplete"]}},{name:"--output-file",description:"The list steps output file name",args:{name:"OUTPUT_FILE",template:"filepaths"}},{name:"--hide-uninteresting",description:"Hide any minor tasks such as pre/post hooks"},{name:"--print-steps",description:"Only prints the steps of the build in the order they will be invoked but without invoking them"},{name:"--list-all-steps",description:"Lists all known steps"},{name:"--list-category-steps",description:"List steps for a given category",args:{name:"CATEGORY"}},{name:"--diff-steps",description:"Runs diff between custom flow and prebuilt flow (requires git)"}]};s.push(r)}return{name:"cargo",subcommands:s,options:o}}}),Me=je();export{Me as default,H as searchGenerator};
|
|
6
|
+
`).filter((r,p)=>p!=0).map(r=>r.trim().split(/\s+/,1)[0]);if(l.includes("fmt")){let r={name:"fmt",icon:"\u{1F6E0}",description:"This utility formats all bin and lib files of the current crate using rustfmt",subcommands:[{name:"--",description:"All other arguments are passed to rustfmt",args:{generators:(0,m.filepaths)({extensions:["rs"]})},options:[{name:"--check",description:"Run in 'check' mode. Exits with 0 if input is formatted correctly. Exits with 1 and prints a diff if formatting is required"},{name:"--emit",description:"What data to emit and how",args:{suggestions:["files","stdout"]}},{name:"--backup",description:"Backup any modified files"},{name:"--config-path",description:"Path for the configuration file",args:{generators:(0,m.filepaths)({equals:["rustfmt.toml"]})}},{name:"--edition",description:"Rust edition to use",args:{suggestions:G}},{name:"--print-config",description:"Dumps a default or minimal config to PATH",args:[{name:"verbosity",suggestions:["default","minimal","current"]},{name:"PATH",template:"filepaths"}]},{name:["-l","--files-with-diff"],description:"Prints the names of mismatched files that were formatted"}]}],options:[{name:"--check",description:"Run rustfmt in check mode"},{name:"--all",description:"Format all packages, and also their local path-based dependencies"},{name:["-h","--help"],description:"Print help information"},{name:["-q","--quiet"],description:"No output printed to stdout"},{name:["-v","--verbose"],description:"Use verbose output"},{name:"--version",description:"Print rustfmt version and exit"},{name:"--manifest-path",description:"Specify path to Cargo.toml",args:{name:"manifest-path",generators:(0,m.filepaths)({equals:["Cargo.toml"]})}},{name:"--message-format",description:"Specify message-format",args:{name:"message-format",suggestions:["short","json","human"]}},{name:["-p","--package"],description:"Specify package to format",args:{name:"package",filterStrategy:"fuzzy",generators:f}}]};s.push(r)}if(l.includes("clippy")){let r={name:"clippy",icon:"\u{1F4CE}",description:"Runs the Clippy linter",subcommands:[{name:"--",description:"All other arguments are passed to clippy",options:[{name:["-W","--warn"],description:"Set lint warnings",args:{}},{name:["-A","--allow"],description:"Set lint allowed",args:{}},{name:["-D","--deny"],description:"Set lint denied",args:{}},{name:["-F","--forbid"],description:"Set lint forbidden",args:{}}]}],options:[{name:"--no-deps",description:"Run Clippy only on the given crate, without linting the dependencies"},{name:"--fix",description:"Automatically apply lint suggestions. This flag implies `--no-deps`"},{name:"--allow-dirty",description:"Allow fix to apply even if the working directory is dirty",dependsOn:["--fix"]},{name:"--allow-staged",description:"Allow fix to apply even if the working directory has staged changes",dependsOn:["--fix"]}]};s.push(r)}if(l.includes("flamegraph")){let r={name:"flamegraph",icon:"\u{1F525}",description:"Generates a flamegraph of the current crate",options:[{name:"--deterministic",description:"Colors are selected such that the color of a function does not change between runs"},{name:"--dev",description:"Build with the dev profile"},{name:["-i","--inverted"],description:"Plot the flame graph up-side-down"},{name:"--no-default-features",description:"Disable default features"},{name:"--open",description:"Open the output .svg file with default program"},{name:"--reverse",description:"Generate stack-reversed flame graph"},{name:"--root",description:"Run with root privileges (using `sudo`)"},{name:"--no-inline",description:"Disable inlining for perf script because of performance issues"}]};s.push(r)}if(l.includes("audit")){let r={name:"audit",icon:"\u{1F4DA}",description:"Runs the cargo audit tool",options:[{name:["-d","--db"],description:"Advisory database git repo path",args:{name:"DB",template:"folders"}},{name:["-D","--deny"],description:"Exit with an error on the argument",args:{isVariadic:!0,suggestions:[{name:"warnings",description:"Warnings (any)"},{name:"unmaintained",description:"Unmaintained crates"},{name:"unsound",description:"Unsound Rust code"},{name:"yanked",description:"Yanked crates"}]}},{name:["-f","--file"],description:"Cargo lockfile to inspect",args:{suggestions:[{name:"-",description:"Stdin"}],generators:(0,m.filepaths)({equals:["Cargo.lock"]})}},{name:["-n","--no-fetch"],description:"Do not perform a git fetch on the advisory DB"},{name:"--stale",description:"Allow stale database"},{name:"--target-arch",description:"Filter vulnerabilities by CPU",args:{}},{name:"--target-os",description:"Filter vulnerabilities by OS",args:{}},{name:["-u","--url"],description:"URL for advisory database git repo"},{name:"--json",description:"Output report in JSON format"},{name:"--no-local-crates",description:"Vulnerability querying does not consider local crates"}]};s.push(r)}if(l.includes("outdated")){let r={name:"outdated",icon:"\u{1F4E6}",description:"Displays information about project dependency versions",options:[{name:["-a","--aggressive"],description:"Ignores channels for latest updates"},{name:"--color",description:"Output coloring",args:{name:"COLOR",suggestions:["always","never","auto"],default:"auto"}},{name:["-d","--depth"],description:"How deep in the dependency chain to search (Defaults to all dependencies when omitted)",args:{name:"DEPTH"},exclusiveOn:["-R","--root-deps-only"]},{name:["-x","--exclude"],description:"Exclude a dependency from the output",isRequired:!0,args:{name:"DEPENDENCY",filterStrategy:"fuzzy",generators:F}},{name:"--exit-code",description:"The exit code to return on new versions found",args:{name:"NUM",suggestions:["0","1"],default:"0"}},{name:"--features",description:"Space-separated list of features",args:{name:"FEATURES",generators:w,isVariadic:!0}},{name:"--format",description:"Output formatting",args:{name:"FORMAT",suggestions:["json","list"],default:"list"}},{name:["-h","--help"],description:"Prints help information"},{name:["-i","--ignore"],description:"Dependencies to not print in the output",args:{name:"DEPENDENCY",filterStrategy:"fuzzy",generators:F}},{name:["-e","--ignore-external-rel"],description:"Ignore relative dependencies external to workspace and check root dependencies only"},{name:["-m","--manifest-path"],description:"Path to the Cargo.toml file to use",args:{name:"PATH",generators:(0,m.filepaths)({equals:["Cargo.toml"]})}},{name:["-o","--offline"],description:"Run without accessing the network"},{name:["-p","--packages"],description:"Packages to inspect for updates",args:{name:"PACKAGES",filterStrategy:"fuzzy",generators:f}},{name:["-q","--quiet"],description:"Suppresses warnings"},{name:["-r","--root"],description:"Package to treat as the root package",args:{name:"PACKAGE",filterStrategy:"fuzzy",generators:f}},{name:["-R","--root-deps-only"],description:"Only check root dependencies",exclusiveOn:["-d","--depth"]},{name:["-V","--version"],description:"Prints version information"},{name:["-v","--verbose"],description:"Use verbose output"},{name:["-w","--workspace"],description:"Checks updates for all workspace members rather than only the root package"}]};s.push(r)}if(l.includes("udeps")){let r={name:"udeps",icon:"\u{1F4E6}",description:"Find unused dependencies in Cargo.toml files",options:[{name:["-q","--quiet"],description:"No output printed to stdout"},{name:["-p","--package"],description:"Package(s) to check",args:{name:"SPEC",filterStrategy:"fuzzy",generators:f}},{name:"--all",description:"Alias for --workspace (deprecated)",hidden:!0,deprecated:!0},{name:"--workspace",description:"Check all packages in the workspace"},{name:"--exclude",description:"Exclude packages from the check",args:{name:"SPEC",filterStrategy:"fuzzy",generators:f}},{name:["-j","--jobs"],description:"Number of parallel jobs, defaults to # of CPUs",args:{name:"N"}},{name:"--lib",description:"Check only this package's library"},{name:"--bin",description:"Check only the specified binary",args:{name:"NAME",filterStrategy:"fuzzy",generators:u({kind:"bin"})}},{name:"--bins",description:"Check all binaries"},{name:"--example",description:"Check only the specified example",args:{name:"NAME",filterStrategy:"fuzzy",generators:u({kind:"example"})}},{name:"--examples",description:"Check all examples"},{name:"--test",description:"Check only the specified test target",args:{name:"NAME",filterStrategy:"fuzzy",generators:u({kind:"test"})}},{name:"--tests",description:"Check all tests"},{name:"--bench",description:"Check only the specified bench target",args:{name:"NAME",filterStrategy:"fuzzy",generators:u({kind:"bench"})}},{name:"--benches",description:"Check all benches"},{name:"--all-targets",description:"Check all targets"},{name:"--release",description:"Check artifacts in release mode, with optimizations"},{name:"--profile",description:"Check artifacts with the specified profile",args:{name:"PROFILE-NAME"}},{name:"--features",description:"Space-separated list of features to activate",args:{name:"FEATURES",isVariadic:!0}},{name:"--all-features",description:"Activate all available features"},{name:"--no-default-features",description:"Do not activate the `default` feature"},{name:"--target",description:"Check for the target triple",args:{name:"TRIPLE"}},{name:"--target-dir",description:"Directory for all generated artifacts",args:{name:"DIRECTORY"}},{name:"--manifest-path",description:"Path to Cargo.toml",args:{name:"PATH"}},{name:"--message-format",description:"Error format",args:{name:"FMT",default:"human",suggestions:["human","json","short"]}},{name:["-v","--verbose"],description:"Use verbose output (-vv very verbose/build.rs output)"},{name:"--color",description:"Coloring",args:{name:"WHEN",suggestions:["auto","always","never"]}},{name:"--frozen",description:"Require Cargo.lock and cache are up to date"},{name:"--locked",description:"Require Cargo.lock is up to date"},{name:"--offline",description:"Run without accessing the network"},{name:"--output",description:"Output format",args:{name:"OUTPUT",default:"human",suggestions:["human","json"]}},{name:"--backend",description:"Backend to use for determining unused deps",args:{name:"BACKEND",suggestions:["save-analysis","depinfo"]}},{name:"--keep-going",description:"Needed because the keep-going flag is asked about by cargo code"},{name:"--show-unused-transitive",description:"Show unused dependencies that get used transitively by main dependencies. Works only with 'save-analysis' backend",dependsOn:["--backend"]},{name:["-h","--help"],description:"Print help information"},{name:["-V","--version"],description:"Print version information"}]};s.push(r)}if(l.includes("deny")){let r={name:"deny",icon:"\u274C",description:"Cargo plugin to help you manage large dependency graphs",subcommands:[{name:"check",description:"Checks a project's crate graph",options:[{name:"--audit-compatible-output",description:"To ease transition from cargo-audit to cargo-deny, this flag will tell cargo-deny to output the exact same output as cargo-audit would, to `stdout` instead of `stderr`, just as with cargo-audit"},{name:["-c","--config"],description:"Path to the config to use. Defaults to <cwd>/deny.toml if not specified",args:{name:"CONFIG",generators:(0,m.filepaths)({equals:"deny.toml"})}},{name:["-d","--disable-fetch"],description:"Disable fetching of the advisory database"},{name:["-g","--graph"],description:"Path to graph_output root directory",args:{name:"GRAPH",template:"folders"}},{name:["-h","--help"],description:"Print help information"},{name:"--hide-inclusion-graph",description:"Hides the inclusion graph when printing out info for a crate"},{name:["-s","--show-stats"],description:"Show stats for all the checks, regardless of the log-level"}],args:{name:"WHICH",isOptional:!0,suggestions:[{name:"advisories",description:"Checks for known security vulnerabilities"},{name:"ban",description:"Checks for banned crates"},{name:"bans",description:"Checks for banned crates"},{name:"license",description:"Checks for crates with unknown licenses"},{name:"licenses",description:"Checks for crates with unknown licenses"},{name:"sources",description:"Checks for crates with unknown sources"},{name:"all",description:"Runs all checks"}],isVariadic:!0}},{name:"fetch",description:"Fetches remote data",options:[{name:["-c","--config"],description:"Path to the config to use",args:{name:"CONFIG",generators:(0,m.filepaths)({equals:"deny.toml"})}},{name:["-h","--help"],description:"Print help information"}],args:{name:"SOURCES",isOptional:!0,suggestions:[{name:"db",description:"Fetches the advisory database"},{name:"index",description:"Fetches the crates.io index"},{name:"all",description:"Fetches all remote data"}]}},{name:"help",description:"Print this message or the help of the given subcommand(s)",args:{template:"help",isOptional:!0}},{name:"init",description:"Creates a cargo-deny config from a template",options:[{name:["-h","--help"],description:"Print help information"}],args:{name:"CONFIG",description:"The path to create",generators:(0,m.filepaths)({equals:"deny.toml"})}},{name:"list",description:"Outputs a listing of all licenses and the crates that use them",options:[{name:["-c","--config"],description:"Path to the config to use",args:{name:"CONFIG",generators:(0,m.filepaths)({equals:"deny.toml"})}},{name:["-f","--format"],description:"The format of the output",args:{name:"FORMAT",suggestions:["human","json","tsv"]}},{name:["-h","--help"],description:"Print help information"},{name:["-l","--layout"],description:"The layout for the output",args:{name:"LAYOUT",suggestions:[{name:"crate"},{name:"license"}]}},{name:["-t","--threshold"],description:"Minimum confidence threshold for license text",args:{name:"THRESHOLD",suggestions:["0.0","0.1","0.2","0.3","0.4","0.5","0.6","0.7","0.8","0.9","1.0"]}}]}],options:[{name:"--all-features",description:"Activate all available features"},{name:["-c","--color"],description:"Coloring",args:{name:"WHEN",suggestions:["auto","always","never"]}},{name:"--exclude",description:"One or more crates to exclude from the crate graph that is used",args:{name:"EXCLUDE",filterStrategy:"fuzzy",generators:f}},{name:["-f","--format"],description:"Specify the format of cargo-deny's output",args:{name:"FORMAT",default:"human",suggestions:["human","json"]}},{name:"--features",description:"Space or comma separated list of features to activate",args:{name:"FEATURES",isVariadic:!0}},{name:"--frozen",description:"Require Cargo.lock and cache are up to date"},{name:["-h","--help"],description:"Print help information"},{name:["-L","--log-level"],description:"The log level for messages",args:{name:"LOG_LEVEL",default:"warn",suggestions:["off","error","warn","info","debug","trace"]}},{name:"--locked",description:"Require Cargo.lock is up to date"},{name:"--manifest-path",description:"The path of a Cargo.toml to use as the context for the operation",args:{name:"MANIFEST_PATH"}},{name:"--no-default-features",description:"Do not activate the `default` feature"},{name:"--offline",description:"Run without accessing the network. If used with the `check` subcommand, this also disables advisory database fetching"},{name:["-t","--target"],description:"One or more platforms to filter crates by",args:{name:"TARGET"}},{name:["-V","--version"],description:"Print version information"},{name:"--workspace",description:"If passed, all workspace packages are used as roots for the crate graph"}]};s.push(r)}if(l.includes("bloat")){let r={name:"bloat",icon:"\u2696\uFE0F",description:"Find out what takes most of the space in your executable",options:[{name:["-h","--help"],description:"Print help information"},{name:["-V","--version"],description:"Print version information"},{name:"--lib",description:"Build only this package's library"},{name:"--bin",description:"Build only the specified binary",args:{name:"NAME"}},{name:"--example",description:"Build only the specified example",args:{name:"NAME"}},{name:"--test",description:"Build only the specified test target",args:{name:"NAME"}},{name:["-p","--package"],description:"Package to build",args:{name:"SPEC",filterStrategy:"fuzzy",generators:f}},{name:"--release",description:"Build artifacts in release mode, with optimizations"},{name:["-j","--jobs"],description:"Number of parallel jobs, defaults to # of CPUs",args:{name:"N"}},{name:"--features",description:"Space-separated list of features to activate",args:{name:"FEATURES"}},{name:"--all-features",description:"Activate all available features"},{name:"--no-default-features",description:"Do not activate the `default` feature"},{name:"--profile",description:"Build with the given profile",args:{name:"PROFILE"}},{name:"--target",description:"Build for the target triple",args:{name:"TARGET"}},{name:"--target-dir",description:"Directory for all generated artifacts",args:{name:"DIRECTORY"}},{name:"--frozen",description:"Require Cargo.lock and cache are up to date"},{name:"--locked",description:"Require Cargo.lock is up to date"},{name:"-Z",description:"Unstable (nightly-only) flags to Cargo, see 'cargo -Z help' for details",args:{name:"FLAG",isVariadic:!0}},{name:"--crates",description:"Per crate bloatedness"},{name:"--time",description:"Per crate build time. Will run `cargo clean` first"},{name:"--filter",description:"Filter functions by crate",args:{name:"CRATE|REGEXP"}},{name:"--split-std",description:"Split the 'std' crate to original crates like core, alloc, etc"},{name:"--symbols-section",description:"Use custom symbols section (ELF-only)",args:{name:"NAME",default:".text"}},{name:"--no-relative-size",description:"Hide 'File' and '.text' columns"},{name:"--full-fn",description:"Print full function name with hash values"},{name:"-n",description:"Number of lines to show, 0 to show all [default: 20]",args:{name:"NUM",default:"20"}},{name:["-w","--wide"],description:"Do not trim long function names"},{name:"--message-format",description:"Output format",args:{name:"FMT",default:"table",suggestions:["table","json"]}}]};s.push(r)}if(l.includes("sort")){let r={name:"sort",icon:"\u{1F6E0}",description:"Ensure Cargo.toml dependency tables are sorted",options:[{name:["-h","--help"],description:"Print help information"},{name:["-V","--version"],description:"Print version information"},{name:["-c","--check"],description:"Non-zero exit if Cargo.toml is unsorted, overrides default behavior"},{name:["-g","--grouped"],description:"When sorting groups of key value pairs blank lines are kept"},{name:["-p","--print"],description:"Prints Cargo.toml, lexically sorted, to stdout"},{name:["-w","--workspace"],description:"Checks every crate in a workspace"},{name:["-n","--no-format"],description:"Skip formatting after sorting",args:{name:"no-format"}},{name:["-o","--order"],description:"When sorting groups of key value pairs blank lines are kept",args:{name:"order"}}],args:{name:"CWD",description:"The directory to run the command in",isOptional:!0,template:"folders"}};s.push(r)}if(l.includes("fuzz")){let r={name:"fuzz",icon:"\u{1F6E0}",description:"A `cargo` subcommand for fuzzing with `libFuzzer`!",subcommands:[{name:"add",description:"Add a new fuzz target"},{name:"build",description:"Build fuzz targets"},{name:"cmin",description:"Minify a corpus"},{name:"coverage",description:"Run program on the generated corpus and generate coverage information"},{name:"fmt",description:"Print the `std::fmt::Debug` output for an input"},{name:"help",description:"Prints this message or the help of the given subcommand(s)"},{name:"init",description:"Initialize the fuzz directory"},{name:"list",description:"List all the existing fuzz targets"},{name:"run",description:"Run a fuzz target"},{name:"tmin",description:"Minify a test case"}]};s.push(r)}if(l.includes("insta")){let r=[{name:["-h","--help"],description:"Print help information"},{name:["-V","--version"],description:"Print version information"},{name:"--color",description:"Coloring: auto, always, never",args:{name:"WHEN",default:"auto",suggestions:["auto","always","never"]}},{name:"--manifest-path",description:"Path to Cargo.toml",args:{name:"PATH",generators:(0,m.filepaths)({equals:"Cargo.toml"})}},{name:"--workspace-root",description:"Explicit path to the workspace root",args:{name:"PATH",template:"folders"}},{name:["-e","--extensions"],description:"Sets the extensions to consider. Defaults to `.snap`",args:{name:"EXTENSIONS",isVariadic:!0}},{name:"--all",description:"Work on all packages in the workspace"},{name:"--no-ignore",description:"Also walk into ignored paths"}],p={name:"insta",icon:"\u{1F6E0}",description:"A `cargo` subcommand for snapshot testing",subcommands:[{name:"review",description:"Interactively review snapshots",options:[...r,{name:"--snapshot",description:"Limits the operation to one or more snapshots",args:{name:"snapshot-filter",isVariadic:!0}},{name:["-q","--quiet"],description:"Do not print to stdout"}]},{name:"reject",description:"Rejects all snapshots",options:[...r,{name:"--snapshot",description:"Limits the operation to one or more snapshots",args:{name:"snapshot-filter",isVariadic:!0}},{name:["-q","--quiet"],description:"Do not print to stdout"}]},{name:"accept",description:"Accepts all snapshots",options:[...r,{name:"--snapshot",description:"Limits the operation to one or more snapshots",args:{name:"snapshot-filter",isVariadic:!0}},{name:["-q","--quiet"],description:"Do not print to stdout"}]},{name:"test",description:"Run tests and then reviews",options:[...r,{name:"--snapshot",description:"Limits the operation to one or more snapshots",args:{name:"snapshot-filter",isVariadic:!0}},{name:["-q","--quiet"],description:"Do not print to stdout"},{name:["-p","--package"],description:"Package to run tests for",args:{name:"SPEC",filterStrategy:"fuzzy",generators:f}},{name:"--no-force-pass",description:"Disable force-passing of snapshot tests"},{name:"--fail-fast",description:"Prevent running all tests regardless of failure"},{name:"--features",description:"Space-separated list of features to activate",args:{name:"features"}},{name:["-j","--jobs"],description:"Number of parallel jobs, defaults to # of CPUs",args:{name:"jobs"}},{name:"--release",description:"Build artifacts in release mode, with optimizations"},{name:"--all-features",description:"Activate all available features"},{name:"--no-default-features",description:"Do not activate the `default` feature"},{name:"--review",description:"Follow up with review"},{name:"--accept",description:"Accept all snapshots after test"},{name:"--accept-unseen",description:"Accept all new (previously unseen)"},{name:"--keep-pending",description:"Do not reject pending snapshots before run"},{name:"--force-update-snapshots",description:"Update all snapshots even if they are still matching"},{name:"--delete-unreferenced-snapshots",description:"Delete unreferenced snapshots after the test run"},{name:"--glob-filter",description:"Filters to apply to the insta glob feature",args:{name:"glob-filter",isVariadic:!0}},{name:["-Q","--no-quiet"],description:"Do not pass the quiet flag (`-q`) to tests"},{name:"--test-runner",description:"Picks the test runner",args:{name:"test-runner"}}]},{name:"pending",description:"Print a summary of all pending snapshots",options:[...r,{name:"--as-json",description:"Changes the output from human readable to JSON"}]},{name:"show",description:"Shows a specific snapshot",options:r,args:{name:"path",description:"The path to the snapshot file",generators:(0,m.filepaths)({extensions:["snap"]})}}],options:[{name:["-h","--help"],description:"Print help information"},{name:["-V","--version"],description:"Print version information"},{name:"--color",description:"Coloring: auto, always, never",args:{name:"WHEN",default:"auto",suggestions:["auto","always","never"]}}]};s.push(p)}if(l.includes("make")){let r={name:"make",icon:"\u{1F6E0}",description:"Rust cargo-make task runner and build tool",args:{name:"TASK",filterStrategy:"fuzzy",isVariadic:!0,isOptional:!0,generators:se},options:[{name:["--help","-h"],description:"Print help information"},{name:["--version","-V"],description:"Print version information"},{name:"--makefile",description:"The optional toml file containing the tasks definitions",args:{name:"FILE",template:"filepaths"}},{name:["--task","-t"],description:"The task name to execute",args:{name:"TASK",filterStrategy:"fuzzy",isVariadic:!0,isOptional:!0,generators:se}},{name:["--profile","-p"],description:"The profile name",args:{name:"PROFILE",default:"development"}},{name:"--cwd",description:"Set the current working directory",args:{name:"DIRECTORY",template:"folders"}},{name:"--no-workspace",description:"Disable workspace support"},{name:"--no-on-error",description:"Disable on error flow even if defined in config sections"},{name:"--allow-private",description:"Allow invocation of private tasks"},{name:"--skip-init-end-tasks",description:"If set, init and end tasks are skipped"},{name:"--skip-tasks",description:"Skip all tasks that match the provided regex",args:{name:"SKIP_TASK_PATTERNS"}},{name:"--env-file",description:"Set environment variables from provided file",args:{name:"FILE",template:"filepaths"}},{name:["--env","-e"],description:"Set environment variables",args:{name:"ENV"}},{name:["--loglevel","-l"],description:"The log level",args:{name:"LOG LEVEL",suggestions:["verbose","info","error","off"]}},{name:["--verbose","-v"],description:"Sets the log level to verbose"},{name:"--quiet",description:"Sets the log level to error"},{name:"--silent",description:"Sets the log level to off"},{name:"--no-color",description:"Disables colorful output"},{name:"--time-summary",description:"Print task level time summary at end of flow"},{name:"--experimental",description:"Allows access to unsupported experimental predefined tasks"},{name:"--disable-check-for-updates",description:"Disables the update check during startup"},{name:"--output-format",description:"The print/list steps format",args:{name:"OUTPUT FORMAT",suggestions:["default","short-description","markdown","markdown-single-page","markdown-sub-section","autocomplete"]}},{name:"--output-file",description:"The list steps output file name",args:{name:"OUTPUT_FILE",template:"filepaths"}},{name:"--hide-uninteresting",description:"Hide any minor tasks such as pre/post hooks"},{name:"--print-steps",description:"Only prints the steps of the build in the order they will be invoked but without invoking them"},{name:"--list-all-steps",description:"Lists all known steps"},{name:"--list-category-steps",description:"List steps for a given category",args:{name:"CATEGORY"}},{name:"--diff-steps",description:"Runs diff between custom flow and prebuilt flow (requires git)"}]};s.push(r)}return{name:"cargo",subcommands:s,options:o}}}),Le=je();export{Le as default,H as searchGenerator};
|