Skip to main content

utz_data_compact/
lib.rs

1//! The μTZ `compact` preset asset. Its recipe is dataset `now`, RDP
2//! ε=1 000 m with pop-density weight floor 1e-3, i24, a 4/3° grid, and xz;
3//! it costs ~445 KB of flash, and peak decode RAM equals the decoded size
4//! (~608 KB).
5//!
6//! Regenerate (writes `data/compact.utz`, gitignored) from the canonical
7//! recipe in `utz_common::presets`; the build script refuses assets that
8//! do not match it:
9//!
10//! ```text
11//! cargo run --release -p utz_build_cli -- gen-preset compact
12//! ```
13
14#![no_std]
15
16/// The compact asset bytes (outer header + xz payload).
17pub static COMPACT: &[u8] = include_bytes!("../data/compact.utz");