Structured access to the output of cargo metadata. Usually used from within a cargo-* executable.
cargo metadata
cargo-*
Documentation - contains examples of use with std::env::args, docopt, and clap.
std::env::args
docopt
clap