mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-19 18:01:37 +00:00
Move pages under tldr, lint run.sh, update docs
This commit is contained in:
26
tldr/cargo-metadata
Normal file
26
tldr/cargo-metadata
Normal file
@@ -0,0 +1,26 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# cargo metadata
|
||||
|
||||
> Output the workspace members and resolved dependencies of current package as JSON.
|
||||
> Note: The output format is subject to change in future versions of Cargo.
|
||||
> More information: <https://doc.rust-lang.org/cargo/commands/cargo-metadata.html>.
|
||||
|
||||
- Print the workspace members and resolved dependencies of the current package:
|
||||
|
||||
`cargo metadata`
|
||||
|
||||
- Print only the workspace members and do not fetch dependencies:
|
||||
|
||||
`cargo metadata --no-deps`
|
||||
|
||||
- Print metadata in a specific format based on the specified version:
|
||||
|
||||
`cargo metadata --format-version {{version}}`
|
||||
|
||||
- Print metadata with the `resolve` field including dependencies only for the given target triple (Note: the `packages` array will still include the dependencies for all targets):
|
||||
|
||||
`cargo metadata --filter-platform {{target_triple}}`
|
||||
Reference in New Issue
Block a user