Move crypto.rs into common
- Refactor code and move crypto.rs into the common subdirectory. - Fixed comments
This commit is contained in:
@@ -1,5 +1,3 @@
|
||||
//
|
||||
// Some defaults
|
||||
//
|
||||
//! Defaults
|
||||
|
||||
pub const CONFIG_FILE_LOCATION: &'static str = "/etc/husk/config.toml";
|
||||
|
||||
+1
-5
@@ -1,8 +1,4 @@
|
||||
//
|
||||
// Husk milter
|
||||
//
|
||||
// Error typ
|
||||
//
|
||||
//! Error typ
|
||||
|
||||
use thiserror::Error;
|
||||
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
//
|
||||
// Husk milter
|
||||
//
|
||||
// Context
|
||||
//
|
||||
//! HuskContext
|
||||
//!
|
||||
//! Keep data in HuskContext while processing a mail.
|
||||
|
||||
use anyhow;
|
||||
use sequoia_openpgp::policy::StandardPolicy;
|
||||
@@ -11,7 +9,8 @@ use sequoia_openpgp::Cert;
|
||||
use sequoia_cert_store::CertStore;
|
||||
use sequoia_directories::Home;
|
||||
|
||||
use crate::{config::HuskConfig, crypto};
|
||||
use crate::config::HuskConfig;
|
||||
use crate::common::crypto;
|
||||
use crate::types::mail_context::MailContext;
|
||||
|
||||
use crate::types::introducer::Introducer;
|
||||
|
||||
@@ -1,11 +1,6 @@
|
||||
//
|
||||
// husk-milter
|
||||
//
|
||||
// introducers
|
||||
//
|
||||
//! introducers
|
||||
|
||||
use std::sync::Arc;
|
||||
use std::collections::HashSet;
|
||||
|
||||
use anyhow::Result;
|
||||
|
||||
|
||||
@@ -1,8 +1,4 @@
|
||||
//
|
||||
// Husk milter
|
||||
//
|
||||
// Mail Context
|
||||
//
|
||||
//! Mail Context
|
||||
|
||||
use std::sync::Arc;
|
||||
use bytes::{Bytes, BytesMut};
|
||||
|
||||
@@ -1,8 +1,4 @@
|
||||
//
|
||||
// Husk milter
|
||||
//
|
||||
// Recipient
|
||||
//
|
||||
//! Recipient
|
||||
|
||||
use anyhow;
|
||||
use std::sync::Arc;
|
||||
|
||||
Reference in New Issue
Block a user