proton_sdk/lib.rs
1//! Core Proton account/session/crypto primitives for the Rust Proton SDK.
2//!
3//! Pure-Rust reimplementation of the foundational `Proton.Sdk` layer of the
4//! official [Proton Drive SDK](https://github.com/ProtonDriveApps/sdk). This
5//! crate has no dependency on the native NativeAOT core; it talks to the Proton
6//! API directly.
7//!
8//! Scope (matching the official SDK): Drive business-logic foundations only.
9//! Login/SRP is provided behind [`session::ProtonApiSession::begin`] but read
10//! workflows can be driven entirely through
11//! [`session::ProtonApiSession::resume`] with pre-obtained tokens.
12#![forbid(unsafe_code)]
13
14pub mod account;
15pub mod api;
16pub mod cache;
17pub mod config;
18pub mod crypto;
19pub mod error;
20pub mod http;
21pub mod ids;
22pub mod session;
23pub mod telemetry;
24
25pub use error::{ProtonApiError, ProtonError, Result};
26pub use session::ProtonApiSession;