pub struct PackageService { /* private fields */ }Expand description
Package service for creating deployment packages
§Examples
ⓘ
use mecha10_cli::services::{PackageService, PackageConfig, TargetArch};
use std::path::Path;
let service = PackageService::new(
"my-robot".to_string(),
"1.0.0".to_string(),
Path::new("/path/to/project")
)?;
// Build package with default config
let package_path = service.build(PackageConfig::default())?;
println!("Package created: {}", package_path.display());
// Build for specific target
let mut config = PackageConfig::default();
config.target_arch = TargetArch::Aarch64UnknownLinuxGnu;
let arm_package = service.build(config)?;Implementations§
Auto Trait Implementations§
impl Freeze for PackageService
impl RefUnwindSafe for PackageService
impl Send for PackageService
impl Sync for PackageService
impl Unpin for PackageService
impl UnwindSafe for PackageService
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
Converts
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>
Converts
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