fix(jmap): allow compilation without enterprise feature (#837)

This commit is contained in:
Jason Yip 2024-10-08 09:55:07 +00:00 committed by GitHub
parent 581533b09c
commit a1ca7fa849
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 7 additions and 2 deletions

View file

@ -34,8 +34,10 @@ use jmap_proto::{
use std::future::Future;
use trc::SecurityEvent;
#[cfg(feature = "enterprise")]
use crate::api::management::enterprise::telemetry::TelemetryApi;
use crate::{
api::management::enterprise::telemetry::TelemetryApi,
auth::{
authenticate::{Authenticator, HttpHeaders},
oauth::{

View file

@ -23,6 +23,7 @@ use common::{auth::AccessToken, Server};
use directory::{backend::internal::manage, Permission};
use dkim::DkimManagement;
use dns::DnsManagement;
#[cfg(feature = "enterprise")]
use enterprise::telemetry::TelemetryApi;
use hyper::Method;
use log::LogManagement;

View file

@ -27,7 +27,9 @@ use crate::{
services::index::Indexer,
};
use super::{decode_path_element, enterprise::undelete::UndeleteApi};
use super::decode_path_element;
#[cfg(feature = "enterprise")]
use super::enterprise::undelete::UndeleteApi;
use std::future::Future;
pub trait ManageStore: Sync + Send {