foundry_config

Function parse_with_profile

Source
pub fn parse_with_profile<T: DeserializeOwned>(
    s: &str,
) -> Result<Option<(Profile, T)>, Error>
Expand description

Parses a config profile

All Profile date is ignored by serde, however the Config::to_string_pretty includes it and returns a toml table like

#[profile.default]
src = "..."

This ignores the #[profile.default] part in the toml