stateset-sdk 1.22.0

Rust SDK facade for StateSet iCommerce with feature-gated re-exports
docs.rs failed to build stateset-sdk-1.22.0
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.

StateSet SDK

Rust-facing facade for the StateSet iCommerce platform.

This crate provides a curated set of feature-gated re-exports for Rust consumers who want a single dependency for the core commerce engine and optional sync, crypto, policy, and macro surfaces.

Quick Start

[dependencies]
stateset-sdk = "1.22.0"
use stateset_sdk::prelude::*;

let commerce = Commerce::new("store.db")?;
let customer = commerce.customers().create(CreateCustomer {
    email: "alice@example.com".into(),
    first_name: "Alice".into(),
    last_name: "Smith".into(),
    ..Default::default()
})?;

Features

Feature Description Default
core Primitives + Core + DB + Embedded + Observability Yes
crypto VES v1.0 cryptographic operations No
policy Declarative policy engine No
macros Proc macros (StateSetId, GenerateDto, JsonSchema) No
sync Outbox-driven sync engine and sequencer transport facade No
full All features enabled No

With sync enabled, [SyncRuntime] and [SyncRuntimeConfig] bundle the sync engine, sequencer HTTP transport, and runtime auth/options into a single Rust-facing helper surface for config loading, sync operations, JSON-ready runtime snapshots, kernel receipt queries, and local confirmation/dead-letter inspection. [SyncRuntimeConfig] can also load from JSON or environment variables via from_file, from_json_str, and from_env.