diff options
Diffstat (limited to 'internals/src/lib.rs')
-rw-r--r-- | internals/src/lib.rs | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/internals/src/lib.rs b/internals/src/lib.rs new file mode 100644 index 0000000..edec5b0 --- /dev/null +++ b/internals/src/lib.rs @@ -0,0 +1,40 @@ +//! Provides some internal functionality for the `mail` crate. +#![recursion_limit="256"] +#[macro_use] +extern crate failure; +#[macro_use] +extern crate nom; +extern crate chrono; +extern crate mime; +extern crate soft_ascii_string; +extern crate base64; +extern crate quoted_printable; +extern crate idna; +extern crate quoted_string; +extern crate media_type_impl_utils; +extern crate percent_encoding; +extern crate vec1; + +//NOTE: this would be worth it's own independent crate for utility macros +#[macro_use] +mod macros; +#[macro_use] +pub mod utils; +mod mail_type; +#[macro_use] +pub mod error; +pub mod grammar; +//NOTE: encoder is in the order _above_ bind, i.e. bind can import the encoder, +// but the encoder should not import anything from bind! +#[cfg_attr(test, macro_use)] +pub mod encoder; +pub mod bind; + +pub use self::mail_type::*; + +#[cfg(all(test, not(feature="traceing")))] +compile_error! { "testing needs feature `traceing` to be enabled" } + +//reexports for exported macros +#[doc(hidden)] +pub use failure::Error as __FError;
\ No newline at end of file |