diff

Function diff 

Source
pub fn diff(file1: PathBuf, file2: PathBuf, format: &str) -> Result<()>
Expand description

Compare two 3MF files structurally.

Performs a detailed comparison detecting differences in metadata, resource counts, and build items.

§Arguments

  • file1 - First 3MF file path
  • file2 - Second 3MF file path
  • format - Output format (“text” or “json”)

§Errors

Returns an error if either file cannot be parsed.