Modern-Apps.git
Publicgit clone https://git.maproj.org/Modern-Apps.gitModern-Apps.git / networklocation / src / main / rust / Cargo.toml
Cargo.toml26 lines · 1.0 KiBRaw
| 1 | [package] |
| 2 | name = "network_location_position_estimation_rust" |
| 3 | version = "0.1.0" |
| 4 | edition = "2021" |
| 5 | description = "Robust device-position estimation (RANSAC + Expectation-Maximization multilateration) for the network location provider, via JNI. Ported from GrapheneOS NetworkLocation (MIT)." |
| 6 | license = "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. |
| 12 | name = "networklocation" |
| 13 | crate-type = ["cdylib", "rlib"] |
| 14 | |
| 15 | [dependencies] |
| 16 | jni.workspace = true |
| 17 | log.workspace = true |
| 18 | itertools.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). |
| 21 | ruzstd.workspace = true |
| 22 | libc.workspace = true |
| 23 | |
| 24 | [dev-dependencies] |
| 25 | rand = { workspace = true, features = ["std_rng"] } |
| 26 | jni = { workspace = true, features = ["invocation"] } |