Skip to main content

layer_mtproto/
lib.rs

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