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

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

Cargo.toml36 lines · 1.6 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
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).
18libc.workspace = true
19# gzip for the traffic MVT tiles served to MapLibre (replaces the C++ zlib deflate).
20flate2.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.
26tilecodec = { path = "../../../../library/tilecodec/src/main/rust" }
27# Per-block inflate of v7 graph sections (the same pure-Rust decoder tilecodec uses).
28ruzstd.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]
34tilecodec = { path = "../../../../library/tilecodec/src/main/rust", features = ["write"] }
35
36# Patch inherited from workspace root Cargo.toml.