Skip to main content

scm_sdk/
lib.rs

1//! Native async Strata Cloud Manager SDK.
2//!
3//! The application owns the Tokio runtime, credential persistence and enforcement policy.
4//! SDK formatting contains metadata; API data remains available through explicit access.
5#![forbid(unsafe_code)]
6#![doc = concat!("\n## Explicit credentials\n\n```no_run\n", include_str!("../examples/foundation.rs"), "\n```")]
7
8pub mod auth;
9pub mod config;
10pub mod configuration;
11pub mod constants;
12pub mod data;
13pub mod environment;
14pub mod error;
15pub mod helpers;
16pub mod pagination;
17#[cfg(feature = "realtime")]
18pub mod realtime;
19pub mod secret;
20pub mod streaming;
21pub mod transport;
22pub mod validation;
23
24#[cfg(feature = "models")]
25pub mod airs;
26#[cfg(feature = "models")]
27pub mod dlp;
28#[cfg(feature = "models")]
29mod models;
30#[cfg(feature = "models")]
31pub mod shared;
32
33#[cfg(any(feature = "dlp", feature = "red-team", feature = "gateway"))]
34mod multipart;
35
36mod json_decode;
37mod observability;
38mod redaction;
39
40#[cfg(feature = "gateway")]
41pub mod routing;
42
43mod engine;
44
45pub use config::{Endpoint, Limits, OriginPolicy, RequestOptions, Session};
46pub use engine::{Client, ClientBuilder, RawRequest};
47pub use error::{
48    Error, ErrorKind, ErrorMetadata, ErrorType, FailureKind, ProblemDetails, ProblemFieldError,
49    RemoteOutcome, Result,
50};
51#[cfg(feature = "gateway")]
52pub use routing::{GatewayRouting, RuntimeReplay};
53pub use secret::Secret;