Skip to main content

trellis_client/
lib.rs

1//! Low-level outbound Trellis runtime primitives for generated Rust code.
2//!
3//! This crate provides connection/auth helpers plus descriptor-driven request and
4//! publish operations. It intentionally avoids contract-specific convenience
5//! methods so first-party code can move toward generated SDKs and small local
6//! wrappers.
7
8mod auth;
9mod client;
10mod descriptor;
11mod error;
12mod operations;
13mod proof;
14
15pub use auth::SessionAuth;
16pub use client::{ServiceConnectOptions, TrellisClient, UserConnectOptions};
17pub use descriptor::{EventDescriptor, RpcDescriptor};
18pub use error::TrellisClientError;
19pub use operations::{
20    control_subject, OperationDescriptor, OperationEvent, OperationInvoker, OperationRef,
21    OperationRefData, OperationSnapshot, OperationState, OperationTransport,
22};
23pub use proof::verify_proof;
24
25#[cfg(test)]
26mod tests;