pub struct WriteOptions {Show 13 fields
pub name: String,
pub producer: Option<String>,
pub features: Vec<String>,
pub container: ContainerKind,
pub sidecars: Vec<(String, String, Vec<u8>)>,
pub placement: Option<Placement>,
pub strip_graph_weights: bool,
pub compress_sidecars: bool,
pub warm_block_size: u32,
pub include_graph: bool,
pub write_checksums: bool,
pub bincode_toc: bool,
pub intern_strings: bool,
}Expand description
Options for write_package.
Defaults favor deploy packs: strip graph weight bytes, cold-compress sidecars, embed the MIR graph, xxh3 checksums, and TOC string interning.
Fields§
§name: StringPackage display name (manifest name).
producer: Option<String>Optional producer string (e.g. "rlx-bake").
features: Vec<String>Capability / feature tags written into the manifest.
container: ContainerKindFlat / ZIP / directory container.
sidecars: Vec<(String, String, Vec<u8>)>Sidecar blobs: (id, media_type, bytes).
placement: Option<Placement>Optional distribution placement metadata.
strip_graph_weights: boolWhen true (default), clear weight Constant payloads in the embedded
graph so bytes live only in the data region (no duplex copy on disk).
compress_sidecars: boolCompress sidecars with cold zstd (default true).
warm_block_size: u32Uncompressed block size for warm zstd_blocks (default 1 MiB).
include_graph: boolEmbed MIR graph bytes (default true). Set false for weight-only packs.
write_checksums: boolWrite xxh3 checksums of uncompressed payloads into the TOC.
bincode_toc: boolPrefer bincode TOC envelope (flat only; smaller/faster than JSON).
intern_strings: boolIntern repeated name strings into TOC strings table (flat).
Trait Implementations§
Source§impl Clone for WriteOptions
impl Clone for WriteOptions
Source§impl Debug for WriteOptions
impl Debug for WriteOptions
Auto Trait Implementations§
impl Freeze for WriteOptions
impl RefUnwindSafe for WriteOptions
impl Send for WriteOptions
impl Sync for WriteOptions
impl Unpin for WriteOptions
impl UnsafeUnpin for WriteOptions
impl UnwindSafe for WriteOptions
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more