Cargo Features

[dependencies]
maplibre = { version = "0.0.3", default-features = false, features = ["web-webgl", "trace", "thread-safe-futures", "embed-static-tiles", "headless", "raster"] }
default = raster

FIXME tcs: Remove raster from default

web-webgl

Enables webgl of wgpu ^0.14.0

Rendering

trace = tracing-subscriber, tracing-tracy

Enable tracing using tracy on desktop/mobile and the chrome profiler on web

Affects trace::enable_tracing

thread-safe-futures

Affects apc::AsyncProcedureFuture, scheduler::Scheduler.schedule

embed-static-tiles build

Enables sqlite of maplibre-build-tools

Affects io::static_tile_fetcher

headless = png

Affects maplibre::headless

raster default = image

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

tracing-subscriber trace?
png headless?

Enables png

Headless

image raster

Enables image ^0.24

tracing-tracy mac ios linux android win trace?

Enables tracing-tracy ^0.10