pub fn remappings_from_newline(
remappings: &str,
) -> impl Iterator<Item = Result<Remapping, RemappingError>> + '_
Expand description
Returns all [Remapping
]s contained in the remappings
str separated by newlines
ยงExample
use foundry_config::remappings_from_newline;
let remappings: Result<Vec<_>, _> = remappings_from_newline(
r#"
file-ds-test/=lib/ds-test/
file-other/=lib/other/
"#,
)
.collect();