skillZs
★ LIVE SKILL TAGS ★
>>> LIVE SKILLS INDEX <<<
* OPEN SOURCE *
NO LOGIN, NO TRACKING
※ REAL INSTALL DATA ※
← back to all skills
iii-hq/iii188 installs

iii-rust-sdk

Rust SDK for the iii engine. Use when building high-performance workers, registering functions, or invoking triggers in Rust.

How do I install this agent skill?

npx skills add https://github.com/iii-hq/iii --skill iii-rust-sdk
view source ↗

Is this agent skill safe to install?

  • Gen Agent Trust Hubpass

    This skill provides documentation and usage instructions for the iii Rust SDK. No security risks or malicious behaviors were detected.

  • Socketpass

    No alerts

  • Snykpass

    Risk: LOW · No issues

What does this agent skill do?

Rust SDK

The native async Rust SDK for connecting workers to the iii engine via tokio.

Documentation

Full API reference: https://iii.dev/docs/api-reference/sdk-rust

Install

Add to Cargo.toml:

iii-sdk = { version = "0.10", features = ["otel"] }

Key Types and Functions

ExportPurpose
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
RegisterFunctionBuilder 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::VoidFire-and-forget invocation
TriggerAction::Enqueue { queue }Durable async invocation
IIIErrorError type for handler failures
StreamsHelper for atomic stream CRUD
with_span, get_tracer, get_meterOpenTelemetry (requires otel feature)
execute_traced_requestHTTP client with trace context propagation

Key Notes

  • Add features = ["otel"] to Cargo.toml for OpenTelemetry support
  • Use RegisterFunction::new("id", handler) for sync handlers, RegisterFunction::new_async("id", handler) for async
  • Handler input types that derive schemars::JsonSchema get auto-generated request schemas
  • Chain .description("...") on RegisterFunction to document the function
  • Keep the tokio runtime alive (e.g., tokio::time::sleep loop) for event processing
  • register_trigger returns Ok(()) on success; propagate errors with ?

Pattern Boundaries

  • For usage patterns and working examples, see iii-functions-and-triggers
  • For HTTP middleware patterns, see iii-http-middleware
  • For Node.js SDK, see iii-node-sdk
  • For Python SDK, see iii-python-sdk
  • For browser-side usage, see iii-browser-sdk

When to Use

  • Use this skill when the task is primarily about iii-rust-sdk in the iii engine.
  • Triggers when the request directly asks for this pattern or an equivalent implementation.

Boundaries

  • Never use this skill as a generic fallback for unrelated tasks.
  • You must not apply this skill when a more specific iii skill is a better fit.
  • Always verify environment and safety constraints before applying examples from this skill.

Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.

<a href="https://skillzs.dev/skills/iii-hq/iii/iii-rust-sdk">View iii-rust-sdk on skillZs</a>