Skip to content

Commit

Permalink
fix(jmap): allow compilation without enterprise feature (#837)
Browse files Browse the repository at this point in the history
  • Loading branch information
jasyip authored Oct 8, 2024
1 parent 581533b commit a1ca7fa
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
4 changes: 3 additions & 1 deletion crates/jmap/src/api/http.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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::{
Expand Down
1 change: 1 addition & 0 deletions crates/jmap/src/api/management/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 3 additions & 1 deletion crates/jmap/src/api/management/stores.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit a1ca7fa

Please sign in to comment.