Skip to content

Cargo features

Compile-time capabilities and their dependency effects.
FeatureDefaultEffect
projyesEnables general CRS transformation through system libproj.
mosaicyesEnables MosaicTiler, MosaicSource, MosaicJSON, and async asset fan-out.
webpnoEnables lossless WebP encoding through image.
jpegnoEnables JPEG encoding; alpha is flattened because JPEG has no alpha channel.
stacnoAdds the STAC client and implies mosaic.
perf-tracingnoEmits detailed internal timing events.
tokio-consolenoEnables Tokio Console integration and implies perf-tracing.

Examples:

# Default: projection + mosaics + PNG
cargo build --release

# Minimal library without general PROJ or mosaics
cargo build --release --no-default-features

# Example server with all image formats
cargo run --release --example serve --features webp,jpeg

# STAC-backed mosaic demo
cargo run --release --example serve --features stac

# Full verification surface
cargo test --all-features --locked

The serve, mosaic_source, and mosaic_json examples require the mosaic feature. PNG support is always compiled.