Add enterprise cargo feature + Allow copying SEL licensed code for testing/development purposes (closes #602 closes #601)
This commit is contained in:
@@ -26,7 +26,7 @@ managesieve = { path = "../managesieve" }
|
||||
common = { path = "../common" }
|
||||
directory = { path = "../directory" }
|
||||
utils = { path = "../utils" }
|
||||
se_common = { path = "../se-common" }
|
||||
se_common = { path = "../se-common", optional = true }
|
||||
tokio = { version = "1.23", features = ["full"] }
|
||||
tracing = "0.1"
|
||||
|
||||
@@ -34,8 +34,8 @@ tracing = "0.1"
|
||||
jemallocator = "0.5.0"
|
||||
|
||||
[features]
|
||||
default = ["sqlite", "postgres", "mysql", "rocks", "elastic", "s3", "redis"]
|
||||
#default = ["sqlite", "postgres", "mysql", "rocks", "elastic", "s3", "redis", "foundationdb"]
|
||||
default = ["sqlite", "postgres", "mysql", "rocks", "elastic", "s3", "redis", "enterprise"]
|
||||
#default = ["sqlite", "postgres", "mysql", "rocks", "elastic", "s3", "redis", "foundationdb", "enterprise"]
|
||||
sqlite = ["store/sqlite"]
|
||||
foundationdb = ["store/foundation"]
|
||||
postgres = ["store/postgres"]
|
||||
@@ -44,3 +44,4 @@ rocks = ["store/rocks"]
|
||||
elastic = ["store/elastic"]
|
||||
s3 = ["store/s3"]
|
||||
redis = ["store/redis"]
|
||||
enterprise = ["se_common", "se_common/enterprise", "jmap/enterprise", "common/enterprise"]
|
||||
|
||||
@@ -14,6 +14,7 @@ use imap::core::{ImapSessionManager, IMAP};
|
||||
use jmap::{api::JmapSessionManager, services::gossip::spawn::GossiperBuilder, JMAP};
|
||||
use managesieve::core::ManageSieveSessionManager;
|
||||
use pop3::Pop3SessionManager;
|
||||
#[cfg(feature = "enterprise")]
|
||||
use se_common::EnterpriseCore;
|
||||
use smtp::core::{SmtpSessionManager, SMTP};
|
||||
use tokio::sync::mpsc;
|
||||
@@ -56,6 +57,7 @@ async fn main() -> std::io::Result<()> {
|
||||
config.log_warnings(init.guards.is_none());
|
||||
|
||||
// Log licensing information
|
||||
#[cfg(feature = "enterprise")]
|
||||
core.load().as_ref().log_license_details();
|
||||
|
||||
// Spawn servers
|
||||
|
||||
Reference in New Issue
Block a user