Modern-Apps.git
Publicgit clone https://git.maproj.org/Modern-Apps.gitModern-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] |
| 20 | name = "mamaps_build" |
| 21 | version = "0.1.0" |
| 22 | edition = "2021" |
| 23 | publish = false |
| 24 | license = "GPL-2.0-only" |
| 25 | description = "Build a .mamaps basemap archive from an OpenStreetMap PBF extract" |
| 26 | |
| 27 | [[bin]] |
| 28 | name = "mamaps_build" |
| 29 | path = "src/main.rs" |
| 30 | |
| 31 | [dependencies] |
| 32 | tilecodec = { workspace = true, features = ["write"] } |
| 33 | tile_build = { path = "../tile_build" } |
| 34 | osm_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. |
| 38 | rayon.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. |
| 42 | mimalloc.workspace = true |
| 43 | |
| 44 | [profile.release] |
| 45 | opt-level = 3 |