# maplibre - Rust
Maplibre-rs
Keywords: rust, rustlang, rust-lang, maplibre

# Crate maplibre

source · [−]
Expand description

## Maplibre-rs

A multi-platform library for rendering vector tile maps with WebGPU.

Maplibre-rs is a map renderer that can run natively on MacOS, Linux, Windows, Android, iOS and the web. It takes advantage of Lyon to tessellate vector tiles and WebGPU to display them efficiently. Maplibre-rs also has an headless mode (work in progress) that can generate rasters.

The official guide book can be found here.

#### Example

To import maplibre-rs in your `Cargo.toml`:

    maplibre = "0.0.2"

## Modules

benchmarking

Collection of utilities used to perform certain calculations more conveniently.

context
coords

Provides utilities related to coordinates.

error

Errors which can happen in various parts of the library.

io

Handles IO related processing as well as multithreading.

map_schedule
platform

Handles platform specific code. Depending on the compilation target, different parts of this module are used.

render

This module implements the rendering algorithm of maplibre-rs. It manages the whole communication with the GPU.

schedule
stages

Stages for requesting and preparing data

style

Vector tile format styling.

tessellation

Tessellation for lines and polygons is implemented here.

util

Utils which are used internally

window

Utilities for the window system.

## Macros

define_label

Macro to define a new label trait

multi_stage

## Structs

HeadlessMap
Map

The `Map` defines the public interface of the map renderer.

MapBuilder
UninitializedMap

Stores the map configuration before the map’s state has been fully initialized.