Skip to main content

layer_mtproto/
lib.rs

1#![doc(html_root_url = "https://docs.rs/layer-mtproto/0.4.0")]
2//! MTProto session and transport abstractions.
3//!
4//! This crate handles:
5//! * Message framing (sequence numbers, message IDs)
6//! * Plaintext transport (for initial handshake / key exchange)
7//! * Encrypted transport skeleton (requires a crypto backend)
8//!
9//! It is intentionally transport-agnostic: bring your own TCP/WebSocket.
10
11#![deny(unsafe_code)]
12#![warn(missing_docs)]
13
14pub mod authentication;
15pub mod encrypted;
16pub mod message;
17pub mod session;
18pub mod transport;
19
20pub use message::{Message, MessageId};
21pub use session::Session;
22pub use encrypted::EncryptedSession;
23pub use authentication::{Finished, step1, step2, step3, finish};