1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
#![recursion_limit = "128"] #[macro_use] extern crate error_chain; extern crate byteorder; extern crate bytes; extern crate chrono; extern crate clacks_crypto; extern crate clacks_mtproto; extern crate rand; extern crate tokio_io; pub mod error { error_chain! { links { Crypto(::clacks_crypto::error::Error, ::clacks_crypto::error::ErrorKind); Mtproto(::clacks_mtproto::error::Error, ::clacks_mtproto::error::ErrorKind); } foreign_links { Io(::std::io::Error); Utf8(::std::str::Utf8Error); FromUtf8(::std::string::FromUtf8Error); } errors { ErrorCode(code: i32) {} InvalidData {} BoxedAsBare {} ReceivedSendType {} UnsupportedLayer {} NoAuthKey {} NoSalts {} WrongAuthKey {} InvalidLength {} Unknown {} FactorizationFailure {} AuthenticationFailure {} } } } mod codec; pub use codec::TelegramCodec; pub mod session;