Skip to main content

HomebrewCaskConfig

Struct HomebrewCaskConfig 

Source
pub struct HomebrewCaskConfig {
Show 27 fields pub name: Option<String>, pub alternative_names: Option<Vec<String>>, pub repository: Option<RepositoryConfig>, pub commit_author: Option<CommitAuthorConfig>, pub commit_msg_template: Option<String>, pub directory: Option<String>, pub ids: Option<Vec<String>>, pub url_template: Option<String>, pub url: Option<HomebrewCaskURL>, pub app: Option<String>, pub binaries: Option<Vec<HomebrewCaskBinary>>, pub description: Option<String>, pub homepage: Option<String>, pub license: Option<String>, pub caveats: Option<String>, pub custom_block: Option<String>, pub service: Option<String>, pub manpages: Option<Vec<String>>, pub completions: Option<HomebrewCaskCompletions>, pub generate_completions_from_executable: Option<HomebrewCaskGeneratedCompletions>, pub dependencies: Option<Vec<HomebrewCaskDependencyEntry>>, pub conflicts: Option<Vec<HomebrewCaskConflictEntry>>, pub hooks: Option<HomebrewCaskHooks>, pub uninstall: Option<HomebrewCaskUninstall>, pub zap: Option<HomebrewCaskUninstall>, pub skip_upload: Option<StringOrBool>, pub update_existing_pr: Option<StringOrBool>,
}
Expand description

Unified Homebrew Cask configuration.

Used at both call-sites:

  • homebrew_casks: — top-level array; carries repository, commit_author, directory, ids, url, structured uninstall/zap, etc.
  • crates[].publish.homebrew_cask: — per-crate override; same shape, with url_template as the simpler URL alternative.

Fields from both original types are present; any field may be None at either call-site. The union avoids a two-type bifurcation while keeping both axes.

Fields§

§name: Option<String>

Cask name (default: crate / project name).

§alternative_names: Option<Vec<String>>

Alternative cask names (aliases).

§repository: Option<RepositoryConfig>

Unified repository config for the Homebrew tap.

§commit_author: Option<CommitAuthorConfig>

Commit author with optional signing.

§commit_msg_template: Option<String>

Custom commit message template. Default: “Brew cask update for {{ .ProjectName }} version {{ .Tag }}”

§directory: Option<String>

Subdirectory in the tap repo for cask placement (default: “Casks”).

§ids: Option<Vec<String>>

Build IDs filter: only include artifacts from builds whose id is in this list.

§url_template: Option<String>

Simple URL template for the .dmg/.zip download (per-crate shorthand).

Cannot be combined with url.template: — set one or the other. If both are present, config validation rejects the config at parse time. Use url: for the structured form (verified domain, custom headers, etc.) or url_template: for a bare string shorthand — never both simultaneously.

§url: Option<HomebrewCaskURL>

Structured download URL configuration (top-level axis).

§app: Option<String>

macOS .app bundle name (e.g. “MyApp.app”).

§binaries: Option<Vec<HomebrewCaskBinary>>

Binary stubs to create in /usr/local/bin.

Each entry is either a bare string ("my-cli" → emits binary "my-cli") or a structured { name, target } object ({ name: "my-cli", target: "mycli" } → emits binary "my-cli", target: "mycli"). The target: form mirrors the Homebrew Ruby cask DSL for binary renames — without it, a wrapped binary installs at the wrong path. Mirrors GoReleaser internal/pipe/brew/templates/cask.rb.tmpl.

§description: Option<String>

Cask description.

§homepage: Option<String>

Project homepage URL.

§license: Option<String>

License identifier (SPDX).

§caveats: Option<String>

Custom caveats shown after install.

§custom_block: Option<String>

Arbitrary Ruby code inserted into the cask block.

§service: Option<String>

Homebrew service definition.

§manpages: Option<Vec<String>>

Manual page references to install.

§completions: Option<HomebrewCaskCompletions>

Shell completion definitions.

§generate_completions_from_executable: Option<HomebrewCaskGeneratedCompletions>

Auto-generate shell completions from an executable.

§dependencies: Option<Vec<HomebrewCaskDependencyEntry>>

Cask dependencies (other casks or formulae).

§conflicts: Option<Vec<HomebrewCaskConflictEntry>>

Conflicting casks or formulae.

§hooks: Option<HomebrewCaskHooks>

Pre/post install/uninstall hooks.

§uninstall: Option<HomebrewCaskUninstall>

Structured uninstall stanza configuration.

§zap: Option<HomebrewCaskUninstall>

Deep uninstall (zap) stanza configuration.

§skip_upload: Option<StringOrBool>

Skip publishing the cask. "true" always skips; "auto" skips for prerelease versions. Accepts bool or template string.

§update_existing_pr: Option<StringOrBool>

When true, force-push the updated cask file to the existing PR branch when a PR for the same head branch already exists. The PR content is updated in place rather than creating a duplicate. When false (default), the push is skipped and a warning is emitted so the operator sees that the publisher did not update the PR.

Trait Implementations§

Source§

impl Clone for HomebrewCaskConfig

Source§

fn clone(&self) -> HomebrewCaskConfig

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for HomebrewCaskConfig

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for HomebrewCaskConfig

Source§

fn default() -> HomebrewCaskConfig

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for HomebrewCaskConfig

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl JsonSchema for HomebrewCaskConfig

Source§

fn schema_name() -> String

The name of the generated JSON Schema. Read more
Source§

fn schema_id() -> Cow<'static, str>

Returns a string that uniquely identifies the schema produced by this type. Read more
Source§

fn json_schema(generator: &mut SchemaGenerator) -> Schema

Generates a JSON Schema for this type. Read more
Source§

fn is_referenceable() -> bool

Whether JSON Schemas generated for this type should be re-used where possible using the $ref keyword. Read more
Source§

impl Serialize for HomebrewCaskConfig

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DynClone for T
where T: Clone,

Source§

fn __clone_box(&self, _: Private) -> *mut ()

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,