feat: feature flags
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
use std::sync::Arc;
|
||||
|
||||
use activitypub::ActivityPubPort;
|
||||
use application::context::AppContext;
|
||||
|
||||
use crate::ports::{HtmlRenderer, RssFeedRenderer};
|
||||
@@ -10,6 +9,8 @@ pub struct AppState {
|
||||
pub app_ctx: AppContext,
|
||||
pub html_renderer: Arc<dyn HtmlRenderer>,
|
||||
pub rss_renderer: Arc<dyn RssFeedRenderer>,
|
||||
pub ap_service: Arc<dyn ActivityPubPort>,
|
||||
#[cfg(feature = "federation")]
|
||||
pub ap_service: Arc<dyn activitypub::ActivityPubPort>,
|
||||
#[cfg(feature = "federation")]
|
||||
pub social_query: Arc<dyn domain::ports::SocialQueryPort>,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user