Modern-Apps.git
Publicgit clone https://git.maproj.org/Modern-Apps.gitModern-Apps.git / scripts / maps / gtfs_ingest / Cargo.toml
Cargo.toml49 lines · 1.7 KiBRaw
| 1 | # Host-side GTFS ingest tool for the Maps offline transit packs (P11a). |
| 2 | # |
| 3 | # Deliberately DETACHED from the Android Rust workspace (the empty [workspace] |
| 4 | # table below): it is a std-only host binary with zero external dependencies, so |
| 5 | # `cargo build` here resolves offline and never pulls the aarch64-android |
| 6 | # toolchain or the app crates' lints. It emits a compact per-region transit |
| 7 | # index consumed on-device by `maps/src/main/rust/src/transit.rs` (P11b), plus a |
| 8 | # `transit_stops` binary that emits the basemap stop layer as geojsonseq and a |
| 9 | # `transit_shapes` binary that emits the basemap's coloured rail lines the same way. |
| 10 | [package] |
| 11 | name = "gtfs_ingest" |
| 12 | version = "0.1.0" |
| 13 | edition = "2021" |
| 14 | publish = false |
| 15 | license = "GPL-2.0-only" |
| 16 | description = "GTFS -> compact on-device transit index for the Maps offline packs" |
| 17 | # The crate carries several binaries, so a bare `cargo run` would be ambiguous. |
| 18 | # Name the pack builder as the default so existing callers keep working. |
| 19 | default-run = "gtfs_ingest" |
| 20 | # `src/bin/*_extra*.rs` are `#[path]`-included helper/test modules, not |
| 21 | # standalone binaries. Without this Cargo autodiscovers every file directly |
| 22 | # under `src/bin/` as a bin target and tries to compile them as crate roots, |
| 23 | # where their `use super::...` imports fail and no `main` exists. |
| 24 | autobins = false |
| 25 | |
| 26 | [[bin]] |
| 27 | name = "gtfs_ingest" |
| 28 | path = "src/main.rs" |
| 29 | [lib] |
| 30 | name = "gtfs_ingest" |
| 31 | path = "src/lib.rs" |
| 32 | [[bin]] |
| 33 | name = "transit_stops" |
| 34 | path = "src/bin/transit_stops.rs" |
| 35 | [[bin]] |
| 36 | name = "resolve_feeds" |
| 37 | path = "src/bin/resolve_feeds.rs" |
| 38 | [[bin]] |
| 39 | name = "transit_dump" |
| 40 | path = "src/bin/transit_dump.rs" |
| 41 | [[bin]] |
| 42 | name = "transit_shapes" |
| 43 | path = "src/bin/transit_shapes.rs" |
| 44 | |
| 45 | [dependencies] |
| 46 | rayon.workspace = true |
| 47 | |
| 48 | [profile.release] |
| 49 | opt-level = 3 |