Skip to main content

check_package

Function check_package 

Source
pub fn check_package(
    output_path: &Path,
    package: &GeneratedPackage,
) -> Result<PackageDrift>
Expand description

Compare package with the files on disk and report the first difference.

ยงErrors

Returns Error::ReadOutput when a file exists and cannot be read, and Error::UnownedOutput when the companion directory holds a file the generator did not write.