fabric-platform
Rust client SDK for the Fabric AI workflow platform.
Installation
[]
= "0.1"
= { = "1", = ["rt", "macros"] }
Quick Start
use FabricClient;
async
Features
- Identity —
get_me,get_my_organizations,get_my_teams,get_my_permissions - Organizations & teams — create, list, update, member management
- Workflows — register, run, wait for completion, list runs
- Jobs — submit and track single-node jobs
- Authorization —
check_permission,check_permissions(batch) - API keys — create, list, rotate, disable
- Providers — list, execute, estimate cost
- Streaming — Server-Sent Events for live workflow updates
Authentication
The SDK supports two auth modes:
// API key (server-to-server)
let client = new?;
// Bearer token (e.g. from /v1/auth/login)
let client = with_token?;
Authorization
Check permissions using the compound resource format ("type:id"):
// Single check
let allowed = client
.check_permission
.await?;
// Batch check (more efficient for multiple checks)
let results = client
.check_permissions
.await?;
Workflows
// Register a workflow definition
let wf_id = client
.upsert_workflow
.await?;
// Run it
let run_id = client
.run_workflow
.await?;
// Wait for completion
let result = client.wait_for_run.await?;
Documentation
- Full docs: gofabric.dev/docs
- API reference: gofabric.dev/reference/api-endpoints
- Repository: github.com/tinylabscom/fabric
License
MIT