mln-rs-engine 0.0.19

Part of mln-rs, a Rust port of the MapLibre Native map rendering core. Depend on mln-rs instead.
Documentation
//! The map engine: the renderer and its frames (`render`), sources
//! (`source`), tiles and their workers (`tile_store`, `worker`), layers'
//! layouts and buckets (`layer`), the symbol layer type (`symbol`),
//! placement, queries, and what draws them (`draw`).

#[cfg(feature = "bench")]
#[doc(hidden)]
pub mod bench;
pub mod camera;
pub mod draw;
pub mod exec;
pub mod geo;
pub mod gestures;
pub mod image;
pub mod layer;
// Each layer type's programs and the engine's, public for the backends'
// tests, which compile them. Not API.
#[doc(hidden)]
pub mod map;
#[cfg(feature = "sqlite")]
pub mod offline;
pub mod placement;
pub mod query;
mod registry;
pub(crate) mod render;
// Each layer type's programs and the engine's, public for the backends'
// tests, which compile them. Not API.
#[doc(hidden)]
pub mod shaders;
pub mod source;
pub mod storage;
pub mod text;
pub mod tile;
pub mod tile_store;
pub mod worker;

pub use registry::{Registry, RegistryBuilder};
pub use render::events::{
    FontStack, GlyphRange, RenderMode, RendererEvent, RendererEvents, RenderingStats, TileOperation,
};
pub use render::renderer::{DrawnFrame, RenderTimings, Renderer, UpdatedFrame};
pub use render::update_parameters::UpdateParameters;
pub use render::update_slot::{Update, UpdateReader, UpdateSlot};

/// The `log` targets of this crate's records. Each names the event that
/// `mln_c` reports the record under (`mln_c::logging`).
/// What the expansions of the crate's macros name, so that a crate that
/// invokes them needn't depend on it.
#[doc(hidden)]
pub mod __private {
    pub use mln_style;
    pub use mln_wire;
}

mod log_target {
    pub(crate) const GENERAL: &str = "mln_engine::general";
    #[cfg_attr(not(feature = "sqlite"), expect(dead_code, reason = "only the database logs"))]
    pub(crate) const DATABASE: &str = "mln_engine::database";
    pub(crate) const HTTP_REQUEST: &str = "mln_engine::http_request";
    pub(crate) const IMAGE: &str = "mln_engine::image";
    pub(crate) const PARSE_TILE: &str = "mln_engine::parse_tile";
    pub(crate) const SPRITE: &str = "mln_engine::sprite";
    pub(crate) const SETUP: &str = "mln_engine::setup";
    pub(crate) const PARSE_STYLE: &str = "mln_engine::parse_style";
    pub(crate) const RENDER: &str = "mln_engine::render";
    pub(crate) const STYLE: &str = "mln_engine::style";
    pub(crate) const GLYPH: &str = "mln_engine::glyph";
    pub(crate) const TIMING: &str = "mln_engine::timing";
}

// The tests' copy of mln_builtins' source types names this crate as its
// dependents do.
#[cfg(test)]
extern crate self as mln_engine;

#[cfg(test)]
mod tests;