DNS/TLS deps are now optional, component now also uses ServerConnector
This commit is contained in:
parent
e784b15402
commit
733d005f51
17 changed files with 440 additions and 337 deletions
|
|
@ -31,7 +31,7 @@ name = "hello_bot"
|
|||
required-features = ["avatars"]
|
||||
|
||||
[features]
|
||||
default = ["avatars", "tls-native"]
|
||||
tls-native = ["tokio-xmpp/tls-native"]
|
||||
tls-rust = ["tokio-xmpp/tls-rust"]
|
||||
default = ["avatars", "starttls-rust"]
|
||||
starttls-native = ["tokio-xmpp/starttls", "tokio-xmpp/tls-native"]
|
||||
starttls-rust = ["tokio-xmpp/starttls", "tokio-xmpp/tls-rust"]
|
||||
avatars = []
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@
|
|||
#![deny(bare_trait_objects)]
|
||||
|
||||
pub use tokio_xmpp::parsers;
|
||||
use tokio_xmpp::{AsyncClient, AsyncServerConfig};
|
||||
use tokio_xmpp::AsyncClient;
|
||||
pub use tokio_xmpp::{BareJid, Element, FullJid, Jid};
|
||||
#[macro_use]
|
||||
extern crate log;
|
||||
|
|
@ -32,7 +32,7 @@ pub use builder::{ClientBuilder, ClientType};
|
|||
pub use event::Event;
|
||||
pub use feature::ClientFeature;
|
||||
|
||||
type TokioXmppClient = AsyncClient<AsyncServerConfig>;
|
||||
type TokioXmppClient = AsyncClient<tokio_xmpp::starttls::ServerConfig>;
|
||||
|
||||
pub type Error = tokio_xmpp::Error;
|
||||
pub type Id = Option<String>;
|
||||
|
|
|
|||
Loading…
Reference in a new issue