pub fn exec(&self) -> Result<Metadata> {
        let output = self.cargo_command().output()?;
        if !output.status.success() {
            return Err(Error::CargoMetadata {
                stderr: String::from_utf8(output.stderr)?,
            });
        }
        let stdout = from_utf8(&output.stdout)?
            .lines()
            .find(|line| line.starts_with('{'))
            .ok_or_else(|| Error::NoJson)?;
        Self::parse(stdout)
    }
/// Runs configured `cargo metadata` and returns parsed `Metadata`.
Runs configured `cargo metadata` and returns parsed `Metadata`.
Runs configured ` cargo metadata ` and returns parsed ` Metadata ` .
pub fn exec(&self) -> Result<Metadata> {
        let output = self.cargo_command().output()?;
        if !output.status.success() {
            return Err(Error::CargoMetadata {
                stderr: String::from_utf8(output.stderr)?,
            });
        }
        let stdout = from_utf8(&output.stdout)?
            .lines()
            .find(|line| line.starts_with('{'))
            .ok_or_else(|| Error::NoJson)?;
        Self::parse(stdout)
    }
pub fn exec ( & self ) -> Result < Metadata > { let output = self . cargo_command ( ) . output ( ) ? ; if ! output . status . success ( ) { return Err ( Error :: CargoMetadata { stderr : String :: from_utf8 ( output . stderr ) ? , } ) ; } let stdout = from_utf8 ( & output . stdout ) ? . lines ( ) . find ( | line | line . starts_with ( '{' ) ) . ok_or_else ( | | Error :: NoJson ) ? ; Self :: parse ( stdout ) }
Runs configured `cargo metadata` and returns parsed `Metadata`.
Runs configured ` cargo metadata ` and returns parsed ` Metadata ` .
&self
&self