# Host-side GTFS ingest tool for the Maps offline transit packs (P11a). # # Deliberately DETACHED from the Android Rust workspace (the empty [workspace] # table below): it is a std-only host binary with zero external dependencies, so # `cargo build` here resolves offline and never pulls the aarch64-android # toolchain or the app crates' lints. It emits a compact per-region transit # index consumed on-device by `maps/src/main/rust/src/transit.rs` (P11b), plus a # `transit_stops` binary that emits the basemap stop layer as geojsonseq and a # `transit_shapes` binary that emits the basemap's coloured rail lines the same way. [package] name = "gtfs_ingest" version = "0.1.0" edition = "2021" publish = false license = "GPL-2.0-only" description = "GTFS -> compact on-device transit index for the Maps offline packs" # The crate carries several binaries, so a bare `cargo run` would be ambiguous. # Name the pack builder as the default so existing callers keep working. default-run = "gtfs_ingest" # `src/bin/*_extra*.rs` are `#[path]`-included helper/test modules, not # standalone binaries. Without this Cargo autodiscovers every file directly # under `src/bin/` as a bin target and tries to compile them as crate roots, # where their `use super::...` imports fail and no `main` exists. autobins = false [[bin]] name = "gtfs_ingest" path = "src/main.rs" [lib] name = "gtfs_ingest" path = "src/lib.rs" [[bin]] name = "transit_stops" path = "src/bin/transit_stops.rs" [[bin]] name = "resolve_feeds" path = "src/bin/resolve_feeds.rs" [[bin]] name = "transit_dump" path = "src/bin/transit_dump.rs" [[bin]] name = "transit_shapes" path = "src/bin/transit_shapes.rs" [dependencies] rayon.workspace = true [profile.release] opt-level = 3