Skip to main content

canton_core/
lib.rs

1//! Core types shared across the Canton Rust SDK.
2//!
3//! The foundation the client crates build on: the [`Error`] type with its
4//! retriable classification and the [`Result`] alias, the [`telemetry`] layer
5//! (tracing spans + metrics), and the shared connection kernel — [`Config`],
6//! [`Auth`]/[`TokenSource`], [`TlsConfig`], and the [`retry`] pipeline — that
7//! both `canton-ledger` and `canton-admin` build their gRPC channels from.
8#![cfg_attr(docsrs, feature(doc_cfg))]
9
10pub mod auth;
11pub mod config;
12mod error;
13pub mod retry;
14pub mod telemetry;
15
16pub use config::{Auth, Config, TlsConfig, TokenSource};
17pub use error::{Error, ErrorCategory, ErrorInfo, Result};
18pub use retry::RetryConfig;