1#[cfg(not(any(
29 feature = "webgpu",
30 feature = "metal",
31 feature = "vulkan",
32 all(feature = "d3d12", windows),
34 feature = "gl"
35)))]
36compile_error!(
37 "mln_runtime renders with at least one backend: enable `webgpu`, `metal`, `vulkan`, `gl` or, on Windows, `d3d12`"
38);
39
40#[cfg(all(feature = "bench", not(target_family = "wasm")))]
41#[doc(hidden)]
42pub mod bench;
43mod camera;
44mod completion;
45mod event;
46mod feature_state;
47mod gestures;
48mod map;
49#[cfg(not(target_family = "wasm"))]
50mod offline;
51#[cfg(target_family = "wasm")]
52#[path = "offline_web.rs"]
53mod offline;
54pub mod registry;
55mod render;
56mod resources;
57mod runtime;
58mod style;
59#[cfg(target_family = "wasm")]
60mod web;
61
62mod log_target {
65 pub(crate) const GENERAL: &str = "mln_runtime::general";
66 pub(crate) const CRASH: &str = "mln_runtime::crash";
67 pub(crate) const RENDER: &str = "mln_runtime::render";
68 pub(crate) const HTTP_REQUEST: &str = "mln_runtime::http_request";
69}
70
71pub use camera::{CameraFitArea, CameraFitOptions, CameraFitUpdate, TileOptions, ViewportOptions};
72pub use completion::Completion;
73pub use event::{EventHandler, EventMask, EventSource, EventType, RuntimeEvent, RuntimeEventKind};
74pub use feature_state::{FeatureState, FeatureStateSelector};
75pub use map::{Applied, CameraQuery, CommandGroup, Map, MapId, MapOptions};
76pub use mln_map::{LogicalExtent, MapSnapshot};
77pub use mln_renderer::query::{RenderedQueryOptions, SourceQueryOptions};
78pub use mln_renderer::{ClipDepthRange, FrameProjection};
79pub use mln_util::{Error, ErrorKind};
80pub use offline::Offline;
81pub use render::{
82 AcquiredFrame, Adapter, AttachOptions, BackendRef, BackendType, BorrowedRing, CanvasFormat, ConsumerSync,
83 DemandMode, DepthStencilFormat, DepthStencilFormats, Device, DeviceOptions, DmaBufFormat, DmaBufPlane, Driver,
84 DriverWork, ExportKind, ExportKinds, ExportedImage, ExportedRing, FrameDemand, FrameDepth, FrameDisposition,
85 FrameResult, FrameTexture, FrameTextureKind, FrameView, GlApi, GpuSync, LocalTarget, NativeTexture, RenderSession,
86 RenderSessionCapabilities, RenderSessionSnapshot, RenderSessionState, RenderTarget, RenderedQueryGeometry, Surface,
87 SurfaceOverlay, SurfaceType, SyncKind, SyncKinds, Wake,
88};
89pub use resources::{CacheDatabaseOperation, ResourceProvider, ResourceRequest, is_managed_http_header};
90pub use runtime::{Runtime, RuntimeOptions};
91pub use style::{CustomSourceCallbacks, GeoJsonSourceOptions, LayerInfo, SourceInfo, SourceKind, SourceTiles};