Skip to main content
Minimal C ABI for engines that cannot call Rust directly. Build as cdylib or staticlib, include include/arcane_sdk.h, then call init at launch with your portal public key.
The header ships in the crate (include/arcane_sdk.h) and is attached to each GitHub Release. Regenerate after FFI changes (cbindgen 0.29.4):

Functions

The game_id parameter is the portal public key (NUL-terminated UTF-8). On error code 2, err_buf receives a truncated code: message string.

Example

Safety notes

  • Pointers must be valid for the duration of the call
  • err_buf may be null or err_len == 0 if you do not need the message
  • Do not free strings owned by the SDK; only the caller-owned err_buf is written into