diff --git a/client/src/lib.rs b/client/src/lib.rs index 223ea9f..a26f466 100644 --- a/client/src/lib.rs +++ b/client/src/lib.rs @@ -4,6 +4,9 @@ use mtp_transport::{Policy, Receiver, Sender}; #[cfg(feature = "crypto")] use tokio::time::Duration; +pub use MTPClient as Client; +pub use MTPConnection as Connection; + #[cfg(feature = "crypto")] fn unexpected_response_type_error( context: &str, diff --git a/host/src/lib.rs b/host/src/lib.rs index 89cae77..c285894 100644 --- a/host/src/lib.rs +++ b/host/src/lib.rs @@ -11,6 +11,9 @@ use std::{error::Error, fmt}; #[cfg(feature = "crypto")] use tokio::time::Duration; +pub use MTPConnection as Connection; +pub use MTPHost as Host; + /* ---- async callback type aliases ---- */ #[cfg(feature = "crypto")] pub type GetExistingUser = Box<