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

Modern-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]
11name = "gtfs_ingest"
12version = "0.1.0"
13edition = "2021"
14publish = false
15license = "GPL-2.0-only"
16description = "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.
19default-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.
24autobins = false
25
26[[bin]]
27name = "gtfs_ingest"
28path = "src/main.rs"
29[lib]
30name = "gtfs_ingest"
31path = "src/lib.rs"
32[[bin]]
33name = "transit_stops"
34path = "src/bin/transit_stops.rs"
35[[bin]]
36name = "resolve_feeds"
37path = "src/bin/resolve_feeds.rs"
38[[bin]]
39name = "transit_dump"
40path = "src/bin/transit_dump.rs"
41[[bin]]
42name = "transit_shapes"
43path = "src/bin/transit_shapes.rs"
44
45[dependencies]
46rayon.workspace = true
47
48[profile.release]
49opt-level = 3