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
#![deny(rust_2018_idioms)]
#![allow(clippy::type_complexity, clippy::await_holding_refcell_ref)]
#![type_length_limit = "1638773"]
#[macro_use]
mod topic;
#[macro_use]
mod utils;
mod io;
pub mod error;
pub mod v3;
pub mod v5;
mod server;
mod service;
mod session;
pub mod types;
mod version;
pub use self::error::MqttError;
pub use self::server::MqttServer;
pub use self::session::Session;
pub use self::topic::{Level as TopicLevel, Topic};
pub const TCP_PORT: u16 = 1883;
pub const SSL_PORT: u16 = 8883;
pub(crate) type AHashMap<K, V> = std::collections::HashMap<K, V, ahash::RandomState>;
pub(crate) type AHashSet<V> = std::collections::HashSet<V, ahash::RandomState>;