Skip to main content

zip_export_with_widgets

Function zip_export_with_widgets 

Source
pub fn zip_export_with_widgets(
    export: &BundleExport,
    widgets: &[(String, String, BTreeMap<String, Vec<u8>>)],
) -> Result<Vec<u8>, String>
Expand description

A bundle export as a zip, with widgets (each an approved package’s id, content hash and files) under widgets/<id>/ and listed in bundle.json’s components.widgets (SPEC_WIDGET_SHARING_2026_10_10.md §3.4).