#![deny(
missing_copy_implementations,
trivial_casts,
trivial_numeric_casts,
unsafe_code,
unstable_features,
unused_import_braces,
missing_debug_implementations,
missing_docs,
clippy::explicit_iter_loop,
clippy::unwrap_used,
clippy::expect_used,
clippy::indexing_slicing,
clippy::string_slice
)]
#[cfg(not(any(feature = "runtime-tokio", feature = "runtime-async-std")))]
compile_error!("one of 'runtime-async-std' or 'runtime-tokio' features must be enabled");
#[cfg(all(feature = "runtime-tokio", feature = "runtime-async-std"))]
compile_error!("only one of 'runtime-async-std' or 'runtime-tokio' features must be enabled");
pub mod authentication;
mod codec;
pub mod commands;
pub mod error;
pub mod extension;
pub mod response;
mod smtp_client;
mod stream;
mod types;
pub mod util;
pub use crate::smtp_client::{SmtpClient, SmtpTransport};
pub use types::*;
#[cfg(test)]
#[macro_export]
macro_rules! async_test {
($name:ident, $block:block) => {
#[cfg(feature = "runtime-tokio")]
#[tokio::test]
async fn $name() {
$block
}
#[cfg(feature = "runtime-async-std")]
#[async_std::test]
async fn $name() {
$block
}
};
}