Skip to main content

parse_dss_str

Function parse_dss_str 

Source
pub fn parse_dss_str(text: &str) -> MulticonductorNetwork
Expand description

Parses .dss text. Filesystem includes are disabled: string input has no base directory, so Redirect/Compile/Buscoords read nothing and each is recorded as a warning. This keeps untrusted text (an uploaded case, say) from reading arbitrary local files. Use parse_dss_file to follow includes, which then stay confined to the case directory.