execModClientBuild
Build the CLIENT half of a mod from one crowdy-client-sdk crate: compiled for wasm32-unknown-unknown in the build sandbox, fuel-metered and optimized there, checked against the client ABI and at most 512 KiB, with its capability summary derived from the module. Returns at once with the build queued (kind client); poll execModBuildStatus, then attach it with execModClientDeploy. One build, server or CLIENT, at a time per player. Requires the 'write_client_code' permission in the app.
execModClientBuild(
appId: BigInt!
crate: ExecBuildCrateInput!
): ExecBuild!
Arguments
execModClientBuild.appId ● BigInt! non-null scalar
The app the grid is in.
execModClientBuild.crate ● ExecBuildCrateInput! non-null input
The CLIENT half’s one crate. Its Cargo.toml may have only [package], [lib] as a cdylib, [dependencies] on crowdy-client-sdk, serde and serde_json, and [package.metadata.crowdy] with tick_interval_ms.
Type
ExecBuild object
A ck-exec build: queued, building, succeeded or failed, with the compiler’s log and, once it succeeds, one module per crate.