parse_yaml_or_json

Function parse_yaml_or_json 

Source
pub fn parse_yaml_or_json(
    raw: impl AsRef<[u8]>,
) -> Result<Manifest, SerializationError>
Expand description

A simple function that attempts to parse the given bytes as YAML or JSON. This is used in the implementations of ManifestLoader