bbox_frontend/
lib.rs

1pub mod endpoints;
2#[cfg(feature = "map-server")]
3mod qwc2_config;
4
5#[cfg(feature = "map-server")]
6pub use crate::qwc2_config::themes_json;
7
8#[cfg(feature = "map-server")]
9pub use bbox_map_server::inventory::{Inventory as MapInventory, WmsService};
10
11#[cfg(not(feature = "map-server"))]
12mod dummy_inventory {
13    #[derive(serde::Serialize)]
14    pub struct WmsService;
15
16    #[derive(Default)]
17    pub struct MapInventory {
18        pub wms_services: Vec<WmsService>,
19    }
20
21    pub async fn themes_json(_: &Vec<WmsService>, _: String, _: Option<&str>) -> String {
22        unimplemented!()
23    }
24}
25
26#[cfg(not(feature = "map-server"))]
27pub use dummy_inventory::*;