cts_common/
lib.rs

1//! Defines common types and traits used across the CipherStash ecosystem, particularly for CipherStash Token Service (CTS) and the CTS Client
2//! used in `cipherstash-client`.
3//!
4//! # Features
5//!
6//! - `server` - Enables Server-specific types and traits.
7mod region;
8mod service;
9mod workspace;
10
11pub mod protocol;
12
13pub use region::{AwsRegion, Region, RegionError};
14pub use service::{CtsServiceDiscovery, ServiceDiscovery, ZeroKmsServiceDiscovery};
15pub use workspace::{InvalidWorkspaceId, Workspace, WorkspaceId, WorkspaceIdGenerationError};
16
17// Re-export axum if the server feature is enabled so that the server uses the same version
18#[cfg(feature = "server")]
19pub use axum;