Modern Apps git
git clone https://git.maproj.org/Modern-Apps.git
main ▾

Modern-Apps.git / scripts / maps / mamaps_build / Cargo.toml

Cargo.toml45 lines · 1.8 KiBRaw
1# The `.mamaps` generator: one `.osm.pbf` in, one archive out.
2#
3# DETACHED from both workspaces (the empty `[workspace]` table below), like every
4# other host tool under `scripts/maps`: it is built for the host with the host
5# toolchain, while `library/map` is a cdylib cross-compiled for
6# aarch64-linux-android, and being a member of either workspace would drag that
7# workspace's toolchain, profiles and lockfile into the other's build.
8#
9# Three path dependencies, all already in the tree:
10#
11# * `tilecodec` with `write`, for the container. The same code the renderer reads
12# with, so the two cannot drift.
13# * `tile_build`, for the geometry: projection, per-vertex significance,
14# simplification, tile bisection and clipping. That is the part with years of
15# correctness in it and none of it is re-derived here.
16# * `osm_ingest`, for the PBF reader, the node coordinate table, ring assembly and
17# the tag pre-screen.
18
19[package]
20name = "mamaps_build"
21version = "0.1.0"
22edition = "2021"
23publish = false
24license = "GPL-2.0-only"
25description = "Build a .mamaps basemap archive from an OpenStreetMap PBF extract"
26
27[[bin]]
28name = "mamaps_build"
29path = "src/main.rs"
30
31[dependencies]
32tilecodec = { workspace = true, features = ["write"] }
33tile_build = { path = "../tile_build" }
34osm_ingest = { path = "../osm_ingest" }
35# Already in the tree via both `tile_build` and `osm_ingest`, so this adds
36# a name to link and not a crate to fetch. The tiler runs on `tile_build::par`'s
37# pool, which is where `--threads` and `MAPS_THREADS` are honoured.
38rayon.workspace = true
39# The allocator. See `main.rs` for why a build tool takes a dependency on one.
40# `default-features = false` drops mimalloc's own secure-hardening and stats builds:
41# this is a batch tool over a file it just parsed itself, not a network service.
42mimalloc.workspace = true
43
44[profile.release]
45opt-level = 3