Go to main content

man pages section 1: User Commands

Exit Print View

Updated: Thursday, June 13, 2019
 
 

cargo-pkgid (1)

Name

cargo-pkgid - Print a fully qualified package specification

Synopsis

cargo pkgid [OPTIONS] [<SPEC>]

Description

CARGO-PKGID(1)                   Cargo Manual                   CARGO-PKGID(1)



NAME
       cargo-pkgid - Print a fully qualified package specification

SYNOPSIS
       cargo pkgid [OPTIONS] [<SPEC>]

DESCRIPTION
       Given a <SPEC> argument, print out the fully qualified package id spec-
       ifier.  This command will generate an error if <SPEC> is  ambiguous  as
       to which package it refers to in the dependency graph.  If no <SPEC> is
       given, then the pkgid for the local package is printed.

       This command requires that a lockfile  is  available  and  dependencies
       have been fetched.

OPTIONS
       -h, --help
              Print this message.

       --manifest-path PATH
              Path to the manifest to the package to clean.

       -v, --verbose
              Use verbose output.

       -q, --quiet
              No output printed to stdout.

       --color WHEN
              Coloring: auto, always, never.

EXAMPLES
       Retrieve package specification for foo package

              $ cargo pkgid foo

       Retrieve package specification for version 1.0.0 of foo

              $ cargo pkgid foo:1.0.0

       Retrieve package specification for foo from crates.io

              $ cargo pkgid crates.io/foo


ATTRIBUTES
       See attributes(7) for descriptions of the following attributes:


       +---------------+----------------------+
       |ATTRIBUTE TYPE |   ATTRIBUTE VALUE    |
       +---------------+----------------------+
       |Availability   | developer/rust/cargo |
       +---------------+----------------------+
       |Stability      | Volatile             |
       +---------------+----------------------+
SEE ALSO
       cargo(1),  cargo-generate-lockfile(1),  cargo-search(1),  cargo-metada-
       ta(1)

COPYRIGHT
       This work is dual-licensed under Apache 2.0 and MIT terms.   See  COPY-
       RIGHT file in the cargo source distribution.



NOTES
       This software was built from source available at https://github.com/or-
       acle/solaris-userland.  The original community  source  was  downloaded
       from  https://static.rust-lang.org/dist/rustc-1.28.0-src.tar.xz

       Further information about this software can be found on the open source
       community website at http://www.rust-lang.org/.



The Rust package manager           July 2016                    CARGO-PKGID(1)