xmpp-rs/tokio-xmpp/src/lib.rs

40 lines
978 B
Rust
Raw Normal View History

2019-03-11 19:00:25 +00:00
//! XMPP implementation with asynchronous I/O using Tokio.
2018-08-02 19:58:19 +02:00
#![deny(unsafe_code, missing_docs, bare_trait_objects)]
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
2020-03-16 00:34:46 +01:00
#[cfg(all(
not(xmpprs_doc_build),
not(doc),
feature = "tls-native",
feature = "tls-rust"
))]
compile_error!("Both tls-native and tls-rust features can't be enabled at the same time.");
#[cfg(all(
feature = "starttls",
not(feature = "tls-native"),
not(feature = "tls-rust")
))]
compile_error!(
"when starttls feature enabled one of tls-native and tls-rust features must be enabled."
);
mod event;
2020-05-30 00:14:32 +02:00
pub use event::Event;
mod client;
pub mod connect;
pub mod proto;
pub use client::async_client::{Client as AsyncClient, Config as AsyncConfig};
2017-07-22 01:59:51 +01:00
mod component;
2018-12-18 18:29:31 +01:00
pub use crate::component::Component;
/// Detailed error types
pub mod error;
/// Generic tokio_xmpp Error
pub use crate::error::Error;
// Re-exports
pub use minidom;
pub use xmpp_parsers as parsers;
pub use xmpp_parsers::jid;