Skip to main content

BundleWriter

Trait BundleWriter 

Source
pub trait BundleWriter {
    // Required methods
    fn id(&self) -> &'static str;
    fn write(
        &self,
        manifest: &PackManifest,
        members: &[ResolvedCapability],
    ) -> Result<BundleOutput>;
}
Expand description

What an adapter crate implements to write its harness’s bundle format.

Required Methods§

Source

fn id(&self) -> &'static str

The format id, used as a build target, such as claude-plugin.

Source

fn write( &self, manifest: &PackManifest, members: &[ResolvedCapability], ) -> Result<BundleOutput>

Write members of the pack described by manifest as one bundle.

§Errors

Returns an error when the pack cannot be a bundle at all, such as a name the format does not allow. A member the format cannot hold is returned in skipped.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§