pub enum ReleaseTarget {
LinuxX64,
LinuxArm64,
MacosX64,
MacosArm64,
WindowsX64,
}Expand description
A native release target triple and its host-asset branch.
Variants§
LinuxX64
Linux x86_64 (GNU).
LinuxArm64
Linux aarch64 (GNU).
MacosX64
macOS x86_64.
MacosArm64
macOS aarch64.
WindowsX64
Windows x86_64 (MSVC).
Implementations§
Source§impl ReleaseTarget
impl ReleaseTarget
Sourcepub const fn all() -> &'static [ReleaseTarget]
pub const fn all() -> &'static [ReleaseTarget]
All supported release targets.
Sourcepub const fn is_windows(self) -> bool
pub const fn is_windows(self) -> bool
Whether the produced pi binary has an .exe suffix.
Sourcepub const fn host_branch(self) -> &'static str
pub const fn host_branch(self) -> &'static str
Host-asset branch name. x64 targets build the baseline-x64 host (to avoid Bun’s AVX2 floor); arm64 targets build the standard host.
Sourcepub const fn archive_extension(self) -> &'static str
pub const fn archive_extension(self) -> &'static str
Archive extension: .tar.gz for Unix, .zip for Windows.
Sourcepub const fn bun_target(self) -> &'static str
pub const fn bun_target(self) -> &'static str
Bun compile target used by the TypeScript host builder.
Sourcepub const fn archive_dir(self) -> &'static str
pub const fn archive_dir(self) -> &'static str
Directory prefix inside the archive.
Trait Implementations§
Source§impl Clone for ReleaseTarget
impl Clone for ReleaseTarget
Source§fn clone(&self) -> ReleaseTarget
fn clone(&self) -> ReleaseTarget
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ReleaseTarget
Source§impl Debug for ReleaseTarget
impl Debug for ReleaseTarget
impl Eq for ReleaseTarget
Source§impl PartialEq for ReleaseTarget
impl PartialEq for ReleaseTarget
impl StructuralPartialEq for ReleaseTarget
Auto Trait Implementations§
impl Freeze for ReleaseTarget
impl RefUnwindSafe for ReleaseTarget
impl Send for ReleaseTarget
impl Sync for ReleaseTarget
impl Unpin for ReleaseTarget
impl UnsafeUnpin for ReleaseTarget
impl UnwindSafe for ReleaseTarget
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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 moreCreates a shared type from an unshared type.