Modern-Apps.git
Publicgit clone https://git.maproj.org/Modern-Apps.gitModern-Apps.git / scripts / networklocation / wps_harvest / Cargo.toml
Cargo.toml57 lines · 1.8 KiBRaw
| 1 | # Host-side builder for the offline WPSDB beacon stores that `:networklocation` reads. |
| 2 | # |
| 3 | # Replaces `wtfps-experiment/store.py`, which lived outside the repo and is gone. That was |
| 4 | # the app's only unresolved-provenance dependency (see SUPPLY_CHAIN_RISKS.md): the shipped |
| 5 | # stores were built by code nobody could inspect. This crate is that code, in the tree. |
| 6 | # |
| 7 | # Deliberately DETACHED from the Android Rust workspace (the empty [workspace] table at the |
| 8 | # bottom), exactly like `scripts/maps/osm_ingest` and `scripts/maps/gtfs_ingest`: these are |
| 9 | # host binaries, so `cargo build` here never pulls the aarch64-android toolchain or the app |
| 10 | # crates' lints. |
| 11 | # |
| 12 | # `ureq` is the one dependency that breaks the other host tools' "pure Rust, no C toolchain" |
| 13 | # bar, via rustls' `ring` backend. It is allowed here because this crate never cross-compiles |
| 14 | # - `wps_crawl` is a build-box tool that talks HTTPS, and the alternative is shelling out to |
| 15 | # curl once per request, which is not viable for a crawler. Nothing that ships to a device |
| 16 | # depends on this crate. |
| 17 | [package] |
| 18 | name = "wps_harvest" |
| 19 | version = "0.1.0" |
| 20 | edition = "2021" |
| 21 | publish = false |
| 22 | license = "GPL-2.0-only" |
| 23 | description = "Build the offline wifi/cell WPSDB beacon stores for :networklocation" |
| 24 | |
| 25 | [lib] |
| 26 | name = "wps_harvest" |
| 27 | path = "src/lib.rs" |
| 28 | |
| 29 | [[bin]] |
| 30 | name = "wps_seed" |
| 31 | path = "src/bin/wps_seed.rs" |
| 32 | |
| 33 | [[bin]] |
| 34 | name = "wps_crawl" |
| 35 | path = "src/bin/wps_crawl.rs" |
| 36 | |
| 37 | [[bin]] |
| 38 | name = "wps_build" |
| 39 | path = "src/bin/wps_build.rs" |
| 40 | |
| 41 | [[bin]] |
| 42 | name = "wps_extract" |
| 43 | path = "src/bin/wps_extract.rs" |
| 44 | |
| 45 | [[bin]] |
| 46 | name = "wps_cellcrawl" |
| 47 | path = "src/bin/wps_cellcrawl.rs" |
| 48 | |
| 49 | [dependencies] |
| 50 | # HTTPS for the gs-loc client. rustls rather than the platform stack so a build box needs no |
| 51 | # system OpenSSL, and webpki-roots so it needs no system trust store either. |
| 52 | ureq.workspace = true |
| 53 | |
| 54 | [dev-dependencies] |
| 55 | |
| 56 | [profile.release] |
| 57 | opt-level = 3 |