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. studio names the Crowdy Studio project and revision the crate is (yours, at a revision it has reached); the CLIENT half attached from the build reports them. Requires the 'write_client_code' permission in the app.
execModClientBuild(
appId: BigInt!
crate: ExecBuildCrateInput!
studio: ExecStudioSourceInput
): 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.
execModClientBuild.studio ● ExecStudioSourceInput input
The Crowdy Studio project of yours and its saved revision the crate is, which the build, and what is deployed from it, report back.
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.