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

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

Cargo.toml25 lines · 1.3 KiBRaw
1[package]
2name = "passwords_kdbx"
3version = "0.1.0"
4edition = "2021"
5description = "KDBX (KeePass) read/write for the passwords app via the Rust `keepass` crate, exposed to Kotlin over JNI. Replaces keepassjava2 + Bouncy Castle while preserving .kdbx interop."
6license = "MIT"
7
8[lib]
9name = "passwords_kdbx"
10crate-type = ["cdylib", "rlib"]
11
12[dependencies]
13keepass.workspace = true
14# keepass 0.15.x needs aes 0.9.x (cipher 0.5 stack), matching the workspace
15# default aes 0.9.3 pin. `aes09` (=0.9.3) is kept as a redundant backstop so the
16# 0.9 line stays in the lock even if the default pin ever moves off it.
17aes09.workspace = true
18jni.workspace = true
19jni_bridge = { path = "../../../../library/jni-bridge/src/main/rust" }
20# serde_json now kept only for keepass internal serde, but passwords own flat map JSON was rewritten to std-only
21# (to_json_std/from_json_std) – single-function usage per "just write it ourselves" + "prefer stdlib".
22# serde is kept as feature dependency of keepass, not new crates. Removing serde_json direct would break keepass? Keepass deps serde alone?
23# keepass depends on serde derive feature? It uses serde for XML parsing, but not JSON in save_kdbx4 path? Keep both for now,
24# but passwords own lib.rs no longer uses serde_json.
25serde.workspace = true