alpm_buildinfo

Function parse

source
pub fn parse(args: ValidateArgs) -> Result<Box<dyn Serialize>, Error>
Expand description

Parses a file according to a BUILDINFO schema.

Returns a serializable BuildInfo if the file is valid, otherwise an error is returned.

NOTE: If a command is piped to this process, the input is read from stdin. See IsTerminal for more information about how terminal detection works.