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

Modern-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]
18name = "wps_harvest"
19version = "0.1.0"
20edition = "2021"
21publish = false
22license = "GPL-2.0-only"
23description = "Build the offline wifi/cell WPSDB beacon stores for :networklocation"
24
25[lib]
26name = "wps_harvest"
27path = "src/lib.rs"
28
29[[bin]]
30name = "wps_seed"
31path = "src/bin/wps_seed.rs"
32
33[[bin]]
34name = "wps_crawl"
35path = "src/bin/wps_crawl.rs"
36
37[[bin]]
38name = "wps_build"
39path = "src/bin/wps_build.rs"
40
41[[bin]]
42name = "wps_extract"
43path = "src/bin/wps_extract.rs"
44
45[[bin]]
46name = "wps_cellcrawl"
47path = "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.
52ureq.workspace = true
53
54[dev-dependencies]
55
56[profile.release]
57opt-level = 3