Modern-Apps.git
Publicgit clone https://git.maproj.org/Modern-Apps.gitModern-Apps.git / maps / src / main / rust / Cargo.toml
Cargo.toml36 lines · 1.6 KiBRaw
| 1 | [package] |
| 2 | name = "offlinerouter" |
| 3 | version = "0.1.0" |
| 4 | edition = "2021" |
| 5 | description = "Offline routing engine + traffic MVT tile encoder for the Maps app, exposed to Kotlin via JNI" |
| 6 | license = "GPL-2.0-only" |
| 7 | |
| 8 | [lib] |
| 9 | name = "offlinerouter" |
| 10 | crate-type = ["cdylib", "rlib"] |
| 11 | |
| 12 | [dependencies] |
| 13 | # JNI surface (armv8-only). Upstream jni from crates.io; see the root Cargo.toml. |
| 14 | jni.workspace = true |
| 15 | # mmap of the whole-world graph (nodes/edges/intermediate/…), mirroring the old |
| 16 | # C++ router's mmap loader. Direct libc rather than memmap2 to keep the dep tree |
| 17 | # minimal (memmap2 was intentionally dropped from the workspace). |
| 18 | libc.workspace = true |
| 19 | # gzip for the traffic MVT tiles served to MapLibre (replaces the C++ zlib deflate). |
| 20 | flate2.workspace = true |
| 21 | # The single-archive reader (header + ArchiveView): the same code the renderer |
| 22 | # reads .mamaps with, so the loader and the writer cannot drift. Read path |
| 23 | # only — no `write` feature, keeping the interner out of the cdylib per the |
| 24 | # crate's own rule. Path dep, not workspace: tilecodec is detached (see its |
| 25 | # Cargo.toml), the same way library/map's Rust consumes it. |
| 26 | tilecodec = { path = "../../../../library/tilecodec/src/main/rust" } |
| 27 | # Per-block inflate of v7 graph sections (the same pure-Rust decoder tilecodec uses). |
| 28 | ruzstd.workspace = true |
| 29 | |
| 30 | # Test-only writer access: device tests synthesize v7 blocked payloads with |
| 31 | # `write_blocked`. Same package id, so cargo unifies features for the test |
| 32 | # build only — the cdylib keeps its read-only rule. |
| 33 | [dev-dependencies] |
| 34 | tilecodec = { path = "../../../../library/tilecodec/src/main/rust", features = ["write"] } |
| 35 | |
| 36 | # Patch inherited from workspace root Cargo.toml. |