Skip to main content

Crate trellis_rs

Crate trellis_rs 

Source
Expand description

Curated public Rust facade for Trellis clients, services, contracts, auth, and jobs.

This crate is the normal Rust authoring entrypoint. It re-exports stable, commonly used runtime types without exposing low-level service loops, bootstrap hosts, or generated artifact internals.

Generated SDK crates and participant facades include a package-local TRELLIS.md for AI-agent use. Prefer descriptor and generated facade APIs: TrellisClient::call::<RpcDescriptor>(...), TrellisClient::publish::<EventDescriptor>(...), TrellisClient::subscribe::<EventDescriptor>(), TrellisClient::feed::<FeedDescriptor>(input), TrellisClient::operation::<Operation>().start(...), generated wrappers like .rpc().group().method(...), and service registration through handle().rpc().group().method(handler) where generated.

Prepared event and outbox/inbox support lives under client: PreparedTrellisEvent, prepare_event::<Descriptor>(...), publish_prepared, dispatch_outbox_once, OutboxStore, InboxStore, SqliteOutboxStore, SqliteInboxStore, PostgresOutboxStore, PostgresInboxStore, NatsKvOutboxStore, and NatsKvInboxStore.

Modulesยง

auth
Public authentication flows, session helpers, and auth protocol types. Reusable Trellis auth/session helpers for Rust clients and the Trellis agent.
client
Authenticated outbound client runtime types for generated SDKs and normal clients. Low-level outbound Trellis runtime primitives for generated Rust code.
contracts
Contract manifest, pagination, and schema helper types.
jobs
Service-local jobs runtime types for service authors. Service-local jobs runtime building blocks for Trellis.
sdk
Public facades for Trellis-owned generated contract SDKs.
service
High-level service runtime and service-authoring support types. Low-level inbound Trellis runtime primitives for generated Rust code.