msg_auth_status/lib.rs
1#![warn(
2 clippy::unwrap_used,
3 missing_docs,
4 rust_2018_idioms,
5 unused_lifetimes,
6 unused_qualifications
7)]
8#![allow(clippy::single_match, rustdoc::bare_urls)]
9#![cfg_attr(all(not(feature = "std"), not(test)), no_std)]
10#![doc = include_str!("../README.md")]
11
12#[cfg(all(feature = "alloc", not(feature = "std")))]
13extern crate alloc;
14
15//---------------------------------------------------------
16// Re-exports on external types we may use
17//---------------------------------------------------------
18
19#[cfg(feature = "mail_parser")]
20pub mod mail_parser {
21 //! Re-export of the used external mail_parser
22 #[doc(inline)]
23 pub use mail_parser::{HeaderValue, Message, MessageParser};
24}
25
26//---------------------------------------------------------
27// Traits
28//---------------------------------------------------------
29
30pub mod traits;
31
32//---------------------------------------------------------
33// Error types
34//---------------------------------------------------------
35
36pub mod error;
37
38//---------------------------------------------------------
39// Authentication-Results & DKIM-Signature etc. pub types
40//---------------------------------------------------------
41
42pub mod addr;
43pub mod auth;
44pub mod auth_results;
45pub mod dkim;
46pub mod iprev;
47pub mod spf;
48
49//--------------------------------------------------------
50// Parsing implementations with type conversions
51//--------------------------------------------------------
52
53pub(crate) mod parser;
54
55//--------------------------------------------------------
56// Allocating Public convenience API
57//--------------------------------------------------------
58
59#[cfg(any(feature = "alloc", feature = "std"))]
60pub mod alloc_yes;
61
62//--------------------------------------------------------
63// WIP - Non-Allocating Public convenience API
64//--------------------------------------------------------
65
66#[cfg(feature = "static")]
67pub mod alloc_no;