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

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

Cargo.toml26 lines · 1.0 KiBRaw
1[package]
2name = "network_location_position_estimation_rust"
3version = "0.1.0"
4edition = "2021"
5description = "Robust device-position estimation (RANSAC + Expectation-Maximization multilateration) for the network location provider, via JNI. Ported from GrapheneOS NetworkLocation (MIT)."
6license = "MIT"
7
8[lib]
9# Must match `rustNativeLib("networklocation")` in build.gradle.kts and
10# `System.loadLibrary("networklocation")` in the Kotlin loaders: cargo emits `lib<name>.so`,
11# which RustNative.kt copies into jniLibs. The descriptive package name above stays as-is.
12name = "networklocation"
13crate-type = ["cdylib", "rlib"]
14
15[dependencies]
16jni.workspace = true
17log.workspace = true
18itertools.workspace = true
19# Runtime geocoder search reads geocoder.geodb and only ever DECOMPRESSES zstd blocks, so we
20# use the pure-Rust decoder (no NDK C toolchain needed to cross-compile for Android).
21ruzstd.workspace = true
22libc.workspace = true
23
24[dev-dependencies]
25rand = { workspace = true, features = ["std_rng"] }
26jni = { workspace = true, features = ["invocation"] }