samotop-core 0.13.1+smtp

The domain model of Samotop and core functionality - SMTP server and library built on async-std. A base crate for samotop extensions.
Documentation
mod tcp;
#[cfg(unix)]
mod unix;
pub use self::tcp::*;
#[cfg(unix)]
pub use self::unix::*;

#[cfg(test)]
mod tests {
    use super::*;

    #[test]
    fn use_dummy_service() {
        let _ = TcpServer::default().serve(crate::common::Dummy);
    }

    #[test]
    fn use_samotop_server() {
        let _ = TcpServer::default();
    }

    #[test]
    fn builder_builds_task() {
        let mail = crate::mail::Builder::default().build();
        let _srv = crate::server::TcpServer::on("localhost:25").serve(mail);
    }
}