]>
git.proxmox.com Git - rustc.git/blob - src/tools/cargo/src/bin/cargo/commands/read_manifest.rs
1 use crate::command_prelude
::*;
3 pub fn cli() -> Command
{
4 subcommand("read-manifest")
7 Print a JSON representation of a Cargo.toml manifest.
9 Deprecated, use `cargo metadata --no-deps` instead.\
16 pub fn exec(config
: &mut Config
, args
: &ArgMatches
) -> CliResult
{
17 let ws
= args
.workspace(config
)?
;
18 config
.shell().print_json(&ws
.current()?
.serialized())?
;