Function cargo::util::toml::parse

source · []
pub fn parse(toml: &str, file: &Path, config: &Config) -> CargoResult<Value>
Expand description

Attempts to parse a string into a toml::Value. This is not specific to any particular kind of TOML file.

The purpose of this wrapper is to detect invalid TOML which was previously accepted and display a warning to the user in that case. The file and config parameters are only used by this fallback path.