Wasm Tools Toolchain Service
Provisions wasm-tools distributions for the Kotlin Gradle Plugin.
The service accepts a WasmToolsRequest - a description of the desired wasm-tools distribution - and returns a Provider of a WasmToolsExecutable that, when evaluated, points to a complete, provisioned installation.
An implementation decides entirely how to satisfy the request: download the distribution, reuse an already existing installation, or use wasm-tools from the PATH.
The service is realized as a shared BuildService, so a single instance is used by the whole build, and provisioning is safe with Gradle Isolated Projects, the configuration cache, and parallel execution.
This is a part of the Kotlin Gradle Plugin public API - external users may provide their own implementation. The Kotlin Gradle Plugin uses exactly one service, and ships the following built-in implementations:
DefaultWasmToolsToolchainService - downloads the official wasm-tools distribution.
PreInstalledWasmToolsToolchainService - uses
wasm-toolsavailable on thePATH.
A custom implementation may delegate to one of the built-in ones.
Type Parameters
the type of the build service parameters. Subtypes may add their own parameters.
Inheritors
Types
Parameters of a WasmToolsToolchainService.
Functions
Requests a wasm-tools distribution described by wasmToolsRequest.