#[non_exhaustive]pub enum PackageFormat {
App,
Dmg,
Wix,
Nsis,
Deb,
AppImage,
Pacman,
}
Expand description
Types of supported packages by cargo-packager
.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
App
The macOS application bundle (.app).
Dmg
The macOS DMG package (.dmg).
Wix
The Microsoft Software Installer (.msi) through WiX Toolset.
Nsis
The NSIS installer (.exe).
Deb
The Linux Debian package (.deb).
AppImage
The Linux AppImage package (.AppImage).
Pacman
The Linux Pacman package (.tar.gz and PKGBUILD)
Implementations§
Source§impl PackageFormat
impl PackageFormat
Sourcepub fn from_short_name(name: &str) -> Option<PackageFormat>
pub fn from_short_name(name: &str) -> Option<PackageFormat>
Maps a short name to a PackageFormat. Possible values are “deb”, “pacman”, “appimage”, “dmg”, “app”, “wix”, “nsis”.
Sourcepub fn short_name(&self) -> &'static str
pub fn short_name(&self) -> &'static str
Gets the short name of this PackageFormat.
Sourcepub fn platform_all() -> &'static [PackageFormat]
pub fn platform_all() -> &'static [PackageFormat]
Gets the list of the possible package types on the current OS.
- macOS: App, Dmg
- Windows: Nsis, Wix
- Linux: Deb, AppImage, Pacman
Sourcepub fn platform_default() -> &'static [PackageFormat]
pub fn platform_default() -> &'static [PackageFormat]
Returns the default list of targets this platform
- macOS: App, Dmg
- Windows: Nsis
- Linux: Deb, AppImage, Pacman
Trait Implementations§
Source§impl Clone for PackageFormat
impl Clone for PackageFormat
Source§fn clone(&self) -> PackageFormat
fn clone(&self) -> PackageFormat
Returns a copy 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 moreSource§impl Debug for PackageFormat
impl Debug for PackageFormat
Source§impl Display for PackageFormat
impl Display for PackageFormat
Source§impl PartialEq for PackageFormat
impl PartialEq for PackageFormat
impl Copy for PackageFormat
impl Eq for PackageFormat
impl StructuralPartialEq for PackageFormat
Auto Trait Implementations§
impl Freeze for PackageFormat
impl RefUnwindSafe for PackageFormat
impl Send for PackageFormat
impl Sync for PackageFormat
impl Unpin for PackageFormat
impl UnwindSafe for PackageFormat
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