Skip to content

@pumpkin-plugins/static-hermes-runtime API / hermes/toolchain-environment / HermesToolchainSetupOptions

Interface: HermesToolchainSetupOptions ​

Defined in: hermes/toolchain-environment.ts:98

Options for installing or resolving the tools needed by a Static Hermes build.

Properties ​

arch? ​

optional arch?: string

Defined in: hermes/toolchain-environment.ts:100

Target architecture for tool downloads; defaults to the current host.


env? ​

optional env?: ProcessEnv

Defined in: hermes/toolchain-environment.ts:102

Environment used to resolve configured tool paths.


fetchImpl? ​

optional fetchImpl?: {(input, init?): Promise<Response>; (input, init?): Promise<Response>; }

Defined in: hermes/toolchain-environment.ts:104

Fetch implementation used to retrieve release metadata and archives.

Call Signature ​

(input, init?): Promise<Response>

MDN Reference

Parameters ​
input ​

RequestInfo | URL

init? ​

RequestInit

Returns ​

Promise<Response>

Call Signature ​

(input, init?): Promise<Response>

MDN Reference

Parameters ​
input ​

string | Request | URL

init? ​

RequestInit

Returns ​

Promise<Response>


homeDirectory? ​

optional homeDirectory?: string

Defined in: hermes/toolchain-environment.ts:106

Home directory used for the shared toolchain cache.


includeWasiSdk? ​

optional includeWasiSdk?: boolean

Defined in: hermes/toolchain-environment.ts:108

Whether to resolve and validate the WASI SDK.


includeWasmTools? ​

optional includeWasmTools?: boolean

Defined in: hermes/toolchain-environment.ts:110

Whether to resolve and validate wasm-tools.


includeWitBindgen? ​

optional includeWitBindgen?: boolean

Defined in: hermes/toolchain-environment.ts:112

Whether to resolve and validate wit-bindgen.


installWasiSdk? ​

optional installWasiSdk?: (options) => string | Promise<string>

Defined in: hermes/toolchain-environment.ts:114

Installer hooks used by tests and custom package integrations.

Parameters ​

options ​

WasiSdkInstallOptions

Returns ​

string | Promise<string>


installWasmTools? ​

optional installWasmTools?: (options) => string | Promise<string>

Defined in: hermes/toolchain-environment.ts:116

Installer hook for the pinned wasm-tools executable.

Parameters ​

options ​

WasmToolsInstallOptions

Returns ​

string | Promise<string>


installWitBindgen? ​

optional installWitBindgen?: (options) => string | Promise<string>

Defined in: hermes/toolchain-environment.ts:118

Installer hook for the pinned wit-bindgen executable.

Parameters ​

options ​

WitBindgenInstallOptions

Returns ​

string | Promise<string>


platform? ​

optional platform?: Platform

Defined in: hermes/toolchain-environment.ts:120

Target platform for tool downloads; defaults to the current host.


toolchainConfig? ​

optional toolchainConfig?: HermesToolchainConfig

Defined in: hermes/toolchain-environment.ts:122

Pinned wit-bindgen, Rust, and wasm-tools versions.


wasiSdkConfig? ​

optional wasiSdkConfig?: WasiSdkConfig

Defined in: hermes/toolchain-environment.ts:124

WASI SDK version, GitHub repository, and trusted platform SHA-256 checksums.


wasmToolsLock? ​

optional wasmToolsLock?: WasmToolsLock

Defined in: hermes/toolchain-environment.ts:126

wasm-tools release repository and trusted platform archives for the pinned tools.wasm-tools version.


workspaceRoot ​

workspaceRoot: string

Defined in: hermes/toolchain-environment.ts:128

Root of the pumpkin-plugins workspace.

pumpkin-plugins documentation