mirror of
https://github.com/chatmail/core.git
synced 2026-04-07 08:02:11 +03:00
84 lines
1.4 KiB
Rust
84 lines
1.4 KiB
Rust
#![forbid(unsafe_code)]
|
|
#![deny(clippy::correctness, missing_debug_implementations, clippy::all)]
|
|
#![allow(clippy::match_bool)]
|
|
|
|
#[macro_use]
|
|
extern crate num_derive;
|
|
#[macro_use]
|
|
extern crate smallvec;
|
|
#[macro_use]
|
|
extern crate rusqlite;
|
|
extern crate strum;
|
|
#[macro_use]
|
|
extern crate strum_macros;
|
|
|
|
pub trait ToSql: rusqlite::ToSql + Send + Sync {}
|
|
|
|
impl<T: rusqlite::ToSql + Send + Sync> ToSql for T {}
|
|
|
|
#[macro_use]
|
|
pub mod log;
|
|
#[macro_use]
|
|
pub mod error;
|
|
|
|
#[cfg(feature = "internals")]
|
|
#[macro_use]
|
|
pub mod sql;
|
|
#[cfg(not(feature = "internals"))]
|
|
#[macro_use]
|
|
mod sql;
|
|
|
|
pub mod headerdef;
|
|
|
|
pub(crate) mod events;
|
|
pub use events::*;
|
|
|
|
mod aheader;
|
|
mod blob;
|
|
pub mod chat;
|
|
pub mod chatlist;
|
|
pub mod config;
|
|
mod configure;
|
|
pub mod constants;
|
|
pub mod contact;
|
|
pub mod context;
|
|
mod e2ee;
|
|
mod imap;
|
|
pub mod imex;
|
|
mod scheduler;
|
|
#[macro_use]
|
|
pub mod job;
|
|
pub mod key;
|
|
mod keyring;
|
|
pub mod location;
|
|
mod login_param;
|
|
pub mod lot;
|
|
pub mod message;
|
|
mod mimefactory;
|
|
pub mod mimeparser;
|
|
pub mod oauth2;
|
|
mod param;
|
|
pub mod peerstate;
|
|
pub mod pgp;
|
|
pub mod provider;
|
|
pub mod qr;
|
|
pub mod securejoin;
|
|
mod simplify;
|
|
mod smtp;
|
|
pub mod stock;
|
|
mod token;
|
|
#[macro_use]
|
|
mod dehtml;
|
|
|
|
pub mod dc_receive_imf;
|
|
pub mod dc_tools;
|
|
|
|
/// if set imap/incoming and smtp/outgoing MIME messages will be printed
|
|
pub const DCC_MIME_DEBUG: &str = "DCC_MIME_DEBUG";
|
|
|
|
/// if set IMAP protocol commands and responses will be printed
|
|
pub const DCC_IMAP_DEBUG: &str = "DCC_IMAP_DEBUG";
|
|
|
|
#[cfg(test)]
|
|
mod test_utils;
|