Skip to main content

parse_raw_with

Function parse_raw_with 

Source
pub fn parse_raw_with(
    text: &str,
    path: &str,
    loader: &mut impl Loader,
) -> RawDss
Expand description

Parses .dss text. path anchors relative includes; pass the file’s path when the text came from a file, anything descriptive otherwise.

Includes are resolved through loader without confinement: a caller that passes a filesystem-backed loader lets Redirect/Compile/Buscoords read any path the loader accepts. For untrusted input use parse_dss_str (no filesystem access) or parse_dss_file / parse_raw_file (includes confined to the case directory), or enforce your own containment inside the loader.