Skip to main content

convert_file

Function convert_file 

Source
pub fn convert_file(
    path: impl AsRef<Path>,
    to: DistTargetFormat,
    from: Option<&str>,
) -> Result<Conversion>
Expand description

Parses path (format from from or the file itself) and writes it as to in one call. The warnings carry both the parse warnings and the writer’s fidelity losses.