pub enum Runtime {
Node20,
Node22,
Python312,
Python313,
Rust,
Go,
Deno,
Bun,
WindowsNanoserver,
WindowsServerCore,
Wasm(WasmTargetHint),
}Expand description
Supported runtime environments
Variants§
Node20
Node.js 20 (LTS)
Node22
Node.js 22 (Current)
Python312
Python 3.12
Python313
Python 3.13
Rust
Rust (latest stable)
Go
Go (latest stable)
Deno
Deno (latest)
Bun
Bun (latest)
WindowsNanoserver
Windows Nanoserver (mcr.microsoft.com/windows/nanoserver:ltsc2022).
Minimal Windows base image for self-contained binaries. No PowerShell,
no chocolatey, no winget.
WindowsServerCore
Windows Server Core (mcr.microsoft.com/windows/servercore:ltsc2022).
Larger Windows base that bundles PowerShell and is compatible with
chocolatey / winget / full .NET SDK workloads.
Wasm(WasmTargetHint)
WebAssembly (delegates to wasm: build mode).
The associated WasmTargetHint is a best-effort indicator of whether
the project builds a raw WASI module or a WASI component. Downstream
build logic treats this as guidance only; the actual target is still
driven by the ZImagefile wasm: section (or its defaults).
Implementations§
Source§impl Runtime
impl Runtime
Sourcepub fn all() -> &'static [RuntimeInfo]
pub fn all() -> &'static [RuntimeInfo]
Get all available runtimes
Sourcepub fn info(&self) -> &'static RuntimeInfo
pub fn info(&self) -> &'static RuntimeInfo
Get information about this runtime
§Panics
Panics if the runtime variant is missing from the static info table (internal invariant).
Sourcepub fn template(&self) -> &'static str
pub fn template(&self) -> &'static str
Get the Dockerfile template for this runtime
§Note on Runtime::Wasm
The WASM variant does not produce a Dockerfile — it is a sentinel that
tells the builder to delegate to the wasm: build mode. The returned
string is a ZImagefile YAML snippet (see Runtime::wasm_zimagefile)
so callers that feed template() output through the ZImagefile parser
will cleanly route into the WASM build path. Callers that feed it
through the Dockerfile parser must special-case Runtime::Wasm(_).
Trait Implementations§
impl Copy for Runtime
impl Eq for Runtime
impl StructuralPartialEq for Runtime
Auto Trait Implementations§
impl Freeze for Runtime
impl RefUnwindSafe for Runtime
impl Send for Runtime
impl Sync for Runtime
impl Unpin for Runtime
impl UnsafeUnpin for Runtime
impl UnwindSafe for Runtime
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
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§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
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>
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>
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 moreSource§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
ToCompactString::to_compact_string() Read moreSource§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
CompactString. Read moreSource§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.