cargo pkgid

Print the fully qualified package ID specifier for a package or dependency in the current workspace. More information: https://doc.rust-lang.org/cargo/commands/cargo-pkgid.html.

cargo pkgid

cargo pkgid {{partial_pkgspec}}