Skip to content

Commit 1667b99

Browse files
committed
doc(pkgid): example for local package spec retrival
1 parent 2e3a74c commit 1667b99

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/doc/man/cargo-pkgid.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,5 +81,9 @@ Get the package ID for the given package instead of the current package.
8181

8282
cargo pkgid https://github.com/rust-lang/crates.io-index#foo
8383

84+
4. Retrieve package specification for `foo` from a local package:
85+
86+
cargo pkgid file:///path/to/local/package#foo
87+
8488
## SEE ALSO
8589
{{man "cargo" 1}}, {{man "cargo-generate-lockfile" 1}}, {{man "cargo-metadata" 1}}

0 commit comments

Comments
 (0)