Skip to main content

export_model

Function export_model 

Source
pub fn export_model(
    input: &Path,
    format: &str,
    verbose: bool,
    load_stdlib: bool,
    stdlib_path: Option<&Path>,
    self_contained: bool,
) -> Result<Vec<u8>, String>
Expand description

Export a model to an interchange format.

Supported formats:

  • xmi - XML Model Interchange
  • kpar - Kernel Package Archive (ZIP)
  • jsonld - JSON-LD

§Arguments

  • input - Path to a file or directory to analyze
  • format - Output format (xmi, kpar, jsonld)
  • verbose - Enable verbose output
  • load_stdlib - Whether to load the standard library
  • stdlib_path - Optional custom path to the standard library

§Returns

The serialized model as bytes.