Rust SDK for the iii engine. Use when building high-performance workers, registering functions, or invoking triggers in Rust.
73
66%
Does it follow best practices?
Impact
Pending
No eval scenarios have been run
Passed
No known issues
Optimize this skill with Tessl
npx tessl skill review --optimize ./skills/iii-rust-sdk/SKILL.mdThe native async Rust SDK for connecting workers to the iii engine via tokio.
Full API reference: https://iii.dev/docs/api-reference/sdk-rust
Add to Cargo.toml:
iii-sdk = { version = "0.10", features = ["otel"] }
| Export | Purpose |
|---|---|
register_worker(url, InitOptions) | Connect to the engine, returns III client |
III::register_function(RegisterFunction::new(id, handler)) | Register a sync function using the builder API |
III::register_function(RegisterFunction::new_async(id, handler)) | Register an async function using the builder API |
III::register_function_with(msg, handler) | Two-arg convenience method for function registration |
RegisterFunction | Builder with .description() and auto-generated request schemas via schemars |
III::register_trigger(type, function_id, config) | Bind a trigger to a function |
III::trigger(TriggerRequest) | Invoke a function |
TriggerAction::Void | Fire-and-forget invocation |
TriggerAction::Enqueue { queue } | Durable async invocation |
IIIError | Error type for handler failures |
Streams | Helper for atomic stream CRUD |
with_span, get_tracer, get_meter | OpenTelemetry (requires otel feature) |
execute_traced_request | HTTP client with trace context propagation |
features = ["otel"] to Cargo.toml for OpenTelemetry supportRegisterFunction::new("id", handler) for sync handlers, RegisterFunction::new_async("id", handler) for asyncschemars::JsonSchema get auto-generated request schemas.description("...") on RegisterFunction to document the functiontokio::time::sleep loop) for event processingregister_trigger returns Ok(()) on success; propagate errors with ?iii-functions-and-triggersiii-http-middlewareiii-node-sdkiii-python-sdkiii-browser-sdkiii-rust-sdk in the iii engine.8921efa
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.