#![warn(clippy::unwrap_used, clippy::expect_used, clippy::panic)]
#![cfg_attr(not(test), warn(clippy::unreachable, clippy::print_stdout, clippy::print_stderr))]
#[cfg(not(any(feature = "webgpu", has_metal, has_vulkan, has_d3d12, feature = "gl")))]
compile_error!(
"mln_runtime renders with at least one backend: enable `webgpu`, `metal`, `vulkan`, `gl` or, on Windows, `d3d12`"
);
#[cfg(all(feature = "bench", not(target_family = "wasm")))]
#[doc(hidden)]
pub mod bench;
mod camera;
mod completion;
mod event;
mod feature_state;
pub mod frame_pacer;
mod gestures;
mod map;
#[cfg(not(target_family = "wasm"))]
mod offline;
#[cfg(target_family = "wasm")]
#[path = "offline_web.rs"]
mod offline;
pub mod registry;
mod render;
mod resources;
mod runtime;
mod style;
#[cfg(all(feature = "testing", not(target_family = "wasm")))]
#[doc(hidden)]
pub mod testing;
#[cfg(target_family = "wasm")]
pub mod web;
mod log_target {
pub(crate) const GENERAL: &str = "mln_runtime::general";
pub(crate) const CRASH: &str = "mln_runtime::crash";
pub(crate) const RENDER: &str = "mln_runtime::render";
pub(crate) const HTTP_REQUEST: &str = "mln_runtime::http_request";
#[cfg(target_family = "wasm")]
pub(crate) const GLYPH: &str = "mln_runtime::glyph";
}
pub use camera::{CameraFitArea, CameraFitUpdate, TileOptions, ViewportOptions};
pub use completion::Completion;
pub use event::{EventHandler, EventMask, EventSource, EventType, RuntimeEvent, RuntimeEventKind};
pub use feature_state::{FeatureState, FeatureStateSelector};
pub use map::{Applied, CameraQuery, CommandGroup, Map, MapId, MapOptions};
pub use mln_engine::camera::{CameraFitOptions, ClipDepthRange, FrameProjection, LogicalExtent};
pub use mln_engine::map::MapSnapshot;
pub use mln_engine::query::{RenderedQueryOptions, SourceQueryOptions};
pub use mln_style::error::{Error, ErrorKind};
pub use offline::Offline;
pub use render::{
AcquiredFrame, Adapter, AttachOptions, BackendRef, BackendType, BorrowedRing, CanvasFormat, ConsumerSync,
DemandMode, DepthStencilFormat, DepthStencilFormats, Device, DeviceOptions, DmaBufFormat, DmaBufPlane, Driver,
DriverWork, ExportKind, ExportKinds, ExportedImage, ExportedRing, FrameDemand, FrameDepth, FrameDisposition,
FrameResult, FrameTexture, FrameTextureKind, FrameView, GlApi, GpuSync, LocalTarget, NativeTexture, RenderSession,
RenderSessionCapabilities, RenderSessionSnapshot, RenderSessionState, RenderTarget, RenderedQueryGeometry, Surface,
SurfaceOverlay, SurfaceType, SyncKind, SyncKinds, Wake,
};
pub use resources::{CacheDatabaseOperation, ResourceProvider, ResourceRequest, is_managed_http_header};
pub use runtime::{Runtime, RuntimeOptions};
pub use style::{GeoJsonSourceOptions, LayerInfo, SourceInfo, SourceTiles};