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;
47pub mod frame_pacer;
48mod gestures;
49mod map;
50#[cfg(not(target_family = "wasm"))]
51mod offline;
52#[cfg(target_family = "wasm")]
53#[path = "offline_web.rs"]
54mod offline;
55pub mod registry;
56mod render;
57mod resources;
58mod runtime;
59mod style;
60#[cfg(all(feature = "testing", not(target_family = "wasm")))]
61#[doc(hidden)]
62pub mod testing;
63#[cfg(target_family = "wasm")]
64pub mod web;
65
66mod log_target {
69 pub(crate) const GENERAL: &str = "mln_runtime::general";
70 pub(crate) const CRASH: &str = "mln_runtime::crash";
71 pub(crate) const RENDER: &str = "mln_runtime::render";
72 pub(crate) const HTTP_REQUEST: &str = "mln_runtime::http_request";
73 #[cfg(target_family = "wasm")]
74 pub(crate) const GLYPH: &str = "mln_runtime::glyph";
75}
76
77pub use camera::{CameraFitArea, CameraFitUpdate, TileOptions, ViewportOptions};
78pub use completion::Completion;
79pub use event::{EventHandler, EventMask, EventSource, EventType, RuntimeEvent, RuntimeEventKind};
80pub use feature_state::{FeatureState, FeatureStateSelector};
81pub use map::{Applied, CameraQuery, CommandGroup, Map, MapId, MapOptions};
82pub use mln_engine::camera::{CameraFitOptions, ClipDepthRange, FrameProjection, LogicalExtent};
83pub use mln_engine::map::MapSnapshot;
84pub use mln_engine::query::{RenderedQueryOptions, SourceQueryOptions};
85pub use mln_style::error::{Error, ErrorKind};
86pub use offline::Offline;
87pub use render::{
88 AcquiredFrame, Adapter, AttachOptions, BackendRef, BackendType, BorrowedRing, CanvasFormat, ConsumerSync,
89 DemandMode, DepthStencilFormat, DepthStencilFormats, Device, DeviceOptions, DmaBufFormat, DmaBufPlane, Driver,
90 DriverWork, ExportKind, ExportKinds, ExportedImage, ExportedRing, FrameDemand, FrameDepth, FrameDisposition,
91 FrameResult, FrameTexture, FrameTextureKind, FrameView, GlApi, GpuSync, LocalTarget, NativeTexture, RenderSession,
92 RenderSessionCapabilities, RenderSessionSnapshot, RenderSessionState, RenderTarget, RenderedQueryGeometry, Surface,
93 SurfaceOverlay, SurfaceType, SyncKind, SyncKinds, Wake,
94};
95pub use resources::{CacheDatabaseOperation, ResourceProvider, ResourceRequest, is_managed_http_header};
96pub use runtime::{Runtime, RuntimeOptions};
97pub use style::{GeoJsonSourceOptions, HeldSourceError, LayerInfo, SourceInfo, SourceTiles};