pub struct ReleaseSpec {
pub manifest_path: PathBuf,
pub registry: Registry,
pub selected_packages: Option<Vec<String>>,
}Expand description
Input specification for a crate publish operation.
This is the primary entry point for configuring a Shipper publish operation. It defines what to publish, where to publish it, and which packages to include.
§Example
ⓘ
use std::path::PathBuf;
use shipper::types::{ReleaseSpec, Registry};
let spec = ReleaseSpec {
manifest_path: PathBuf::from("Cargo.toml"),
registry: Registry::crates_io(),
selected_packages: None, // Publish all packages
};
// Or with specific packages
let specific_spec = ReleaseSpec {
manifest_path: PathBuf::from("Cargo.toml"),
registry: Registry::crates_io(),
selected_packages: Some(vec!["my-crate".to_string()]),
};§Fields
manifest_path: Path to the workspace’sCargo.tomlregistry: TargetRegistryfor publishingselected_packages: Optional list of package names to publish (None = all)
Fields§
§manifest_path: PathBufPath to the workspace’s Cargo.toml manifest.
registry: RegistryTarget registry for publishing.
selected_packages: Option<Vec<String>>Optional list of package names to publish. If None, all publishable
packages in the workspace will be published.
Trait Implementations§
Source§impl Clone for ReleaseSpec
impl Clone for ReleaseSpec
Source§fn clone(&self) -> ReleaseSpec
fn clone(&self) -> ReleaseSpec
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ReleaseSpec
impl RefUnwindSafe for ReleaseSpec
impl Send for ReleaseSpec
impl Sync for ReleaseSpec
impl Unpin for ReleaseSpec
impl UnsafeUnpin for ReleaseSpec
impl UnwindSafe for ReleaseSpec
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
Mutably borrows from an owned value. Read more