* app compiles with every ee substituted
* Replace all oss files content
* Revert "Replace all oss files content"
This reverts commit ea4017d59f.
* delete all ee
* hide all _ee files under private flag
* hide every oss stuff when private flag set
* pub use *
* gitignore and substitute script
* pub mod for ee needed for ee repo
* small mistakes
* remove oidc_oss impl
* ee ref (temp)
* ee ref
* fix --all-features selecting private in OSS CI
* ee repo ref
* allow unused
30 lines
811 B
Rust
30 lines
811 B
Rust
#[cfg(feature = "private")]
|
|
#[allow(unused)]
|
|
pub use crate::smtp_server_ee::*;
|
|
|
|
#[cfg(not(feature = "private"))]
|
|
use crate::{auth::AuthCache, db::DB};
|
|
#[cfg(not(feature = "private"))]
|
|
use std::{net::SocketAddr, sync::Arc};
|
|
#[cfg(not(feature = "private"))]
|
|
use windmill_common::db::UserDB;
|
|
|
|
#[cfg(not(feature = "private"))]
|
|
pub struct SmtpServer {
|
|
pub auth_cache: Arc<AuthCache>,
|
|
pub db: DB,
|
|
pub user_db: UserDB,
|
|
pub base_internal_url: String,
|
|
}
|
|
|
|
#[cfg(not(feature = "private"))]
|
|
impl SmtpServer {
|
|
pub async fn start_listener_thread(self: Arc<Self>, _addr: SocketAddr) -> anyhow::Result<()> {
|
|
let _ = self.auth_cache;
|
|
let _ = self.db;
|
|
let _ = self.user_db;
|
|
let _ = self.base_internal_url;
|
|
Err(anyhow::anyhow!("Implementation not open source"))
|
|
}
|
|
}
|