pub struct Port {
pub name: String,
pub version: String,
pub description: String,
pub homepage: String,
pub sources: Vec<String>,
pub checksums: Vec<[u8; 32]>,
pub build_type: BuildType,
pub build_steps: Vec<String>,
pub dependencies: Vec<String>,
pub category: String,
pub license: String,
}Expand description
A single port definition loaded from a Portfile.toml.
Fields§
§name: StringPort name (e.g., “curl”)
version: StringPort version string (e.g., “8.5.0”)
description: StringHuman-readable description
homepage: StringProject homepage URL
sources: Vec<String>Source archive URLs
checksums: Vec<[u8; 32]>SHA-256 checksums for each source (32 bytes each)
build_type: BuildTypeBuild system type
build_steps: Vec<String>Custom build steps (executed in order)
dependencies: Vec<String>Runtime / build dependency port names
category: StringCategory this port belongs to
license: StringLicense identifier (e.g., “MIT”, “GPL-3.0”)
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Port
impl RefUnwindSafe for Port
impl Send for Port
impl Sync for Port
impl Unpin for Port
impl UnwindSafe for Port
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)