pub struct ArchiveConfig {Show 17 fields
pub id: Option<String>,
pub name_template: Option<String>,
pub formats: Option<Vec<String>>,
pub format_overrides: Option<Vec<FormatOverride>>,
pub files: Option<Vec<ArchiveFileSpec>>,
pub binaries: Option<Vec<String>>,
pub wrap_in_directory: Option<WrapInDirectory>,
pub ids: Option<Vec<String>>,
pub meta: Option<bool>,
pub builds_info: Option<ArchiveFileInfo>,
pub strip_binary_directory: Option<bool>,
pub allow_different_binary_count: Option<bool>,
pub hooks: Option<ArchiveHooksConfig>,
pub templated_files: Option<Vec<TemplateFileConfig>>,
pub if_condition: Option<String>,
pub completions: Option<CompletionsConfig>,
pub manpages: Option<ManpagesConfig>,
}Fields§
§id: Option<String>Unique identifier for cross-referencing this archive from other configs.
Defaults to "default" so a parse->serialise->reparse round-trip is
stable (stored verbatim, not as an Option).
name_template: Option<String>Archive filename template (supports templates, e.g., “{{ ProjectName }}{{ Version }}{{ Os }}_{{ Arch }}”).
formats: Option<Vec<String>>Archive formats: tar.gz, tar.xz, tar.zst, tar, zip, gz, xz, or binary.
gz and xz are single-file compressors — supplying multiple input
files errors. Plural list; one archive per format is produced for each
target.
format_overrides: Option<Vec<FormatOverride>>Per-OS format overrides for this archive config.
files: Option<Vec<ArchiveFileSpec>>Extra files to include in the archive (glob patterns or detailed src/dst specs).
binaries: Option<Vec<String>>Binary names to include (defaults to all binaries from matched builds).
wrap_in_directory: Option<WrapInDirectory>When set, wrap archive contents in a top-level directory.
Accepts true (use archive stem as directory name), false (no wrapping),
or a string template for a custom directory name.
ids: Option<Vec<String>>Build IDs filter: only include artifacts from builds whose id is in this list.
meta: Option<bool>When true, create archive with no binaries (metadata-only).
builds_info: Option<ArchiveFileInfo>File permissions applied to binaries in archives.
strip_binary_directory: Option<bool>Strip binary parent directory in archive (place binaries at archive root).
allow_different_binary_count: Option<bool>Allow different binary counts across targets. Default false (warn on mismatch).
hooks: Option<ArchiveHooksConfig>Pre/post archive hooks (before/after).
templated_files: Option<Vec<TemplateFileConfig>>Templated files scoped to this archive entry. Rendered per-archive
(so each entry’s dst: and contents see .Os, .Arch, .Target,
.Format, etc.) and packed into the archive at the rendered dst:
path. The archives[].templated_files: field.
if_condition: Option<String>Template-conditional gate: when the rendered result is falsy
("false" / "0" / "no" / empty), the archive entry is skipped
entirely (no archives produced for this id). Render failure
hard-errors. “Filter artifacts with if statements” is listed as a
blanket promise — anodizer surfaces it explicitly to keep imported
configs portable).
completions: Option<CompletionsConfig>Turnkey shell-completion generation: auto-generate (or harvest, or
copy) completion files and bundle them into every archive produced by
this entry. See CompletionsConfig for the three generation modes.
manpages: Option<ManpagesConfig>Turnkey man-page generation: auto-generate (or harvest, or copy) man
pages and bundle them into every archive produced by this entry. See
ManpagesConfig for the three generation modes.
Trait Implementations§
Source§impl Clone for ArchiveConfig
impl Clone for ArchiveConfig
Source§fn clone(&self) -> ArchiveConfig
fn clone(&self) -> ArchiveConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ArchiveConfig
impl Debug for ArchiveConfig
Source§impl Default for ArchiveConfig
impl Default for ArchiveConfig
Source§fn default() -> ArchiveConfig
fn default() -> ArchiveConfig
Source§impl<'de> Deserialize<'de> for ArchiveConfig
impl<'de> Deserialize<'de> for ArchiveConfig
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Source§impl JsonSchema for ArchiveConfig
impl JsonSchema for ArchiveConfig
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read more