Skip to main content

Rust SDK

The Rust SDK for writing TaskDaemon handlers.

Installation

Basic Usage

Task Struct

Result Functions

The Result enum:

Complete Example

Error Handling

JSON parsing errors are automatically handled by the SDK. Your handler only receives valid Task objects. For explicit error handling, use the error function:

Dockerfile

For a smaller image:

Handler Configuration