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

Modern-Apps.git / maps / src / main / rust / Cargo.toml

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