ziti_sdk/
lib.rs

1//! Ziti Rust SDK
2//!
3//! A high-performance, async-first Rust implementation that provides secure,
4//! zero-trust networking capabilities through the OpenZiti platform.
5//!
6//! # Example
7//!
8//! ```no_run
9//! use ziti_sdk::{Context, ZitiResult};
10//!
11//! #[tokio::main]
12//! async fn main() -> ZitiResult<()> {
13//!     let context = Context::from_file("identity.json").await?;
14//!     let stream = context.dial("echo-service").await?;
15//!     // Use stream for communication
16//!     Ok(())
17//! }
18//! ```
19
20pub mod config;
21pub mod connection;
22pub mod context;
23pub mod error;
24pub mod identity;
25pub mod service;
26pub mod session;
27pub mod transport;
28pub mod util;
29
30// Re-export primary types
31pub use config::{DialOptions, ListenOptions, ZitiConfig};
32pub use connection::{dial, listen, listen_with_options, ZitiListener, ZitiStream, EdgeRouter};
33pub use context::{Context, ContextBuilder};
34pub use error::{ZitiError, ZitiResult};