kernable-sdk
Event sourcing and CQRS with a Rust kernel and business logic in any language. This is the Rust SDK: aggregates, read models, reactors, middleware and business processes in Rust, run by the kernable kernel. The TypeScript, Python and Rust SDKs share one API.
The crate is kernable-sdk; your code imports it as kernable. It is the only crate you add: it brings
kernable-core (the protocol, shared with the kernel) and kernable-sdk-macros (its
attributes; Rust keeps such macros in a crate of their own) along.
Start a kernel (macOS and Linux):
|
A worker that decides on a cart's commands:
use ;
use ;
async
The getting-started guide goes on from here: a read model, a query that reads its own writes, the same in the other languages. Then build a shop in ten parts, and the Rust reference.
kernable-sdk add kit copies the kits (tenancy, accounts, identities, groups, invitations and
authorization) into your project as code you own: see Kits.
kernable is before 1.0: the protocol and the APIs may still change between 0.x releases. MIT license.