[package] name = "onionwire-sdk" version = "0.1.0" edition = "2024" rust-version = "1.91" description = "OnionWire Android/Kotlin SDK: in-process Arti onion transport, Noise IK, identity = ed25519 pubkey." license = "MIT" publish = false # Standalone workspace on purpose: the SDK carries its own lockfile and its own # crate set (Android: `static-sqlite`, rustls TLS), so it path-depends on the # root package without joining its feature graph. [workspace] resolver = "2" [lib] name = "onionwire_sdk" crate-type = ["cdylib", "lib"] [features] default = [] # The in-process Monero chain daemon (Cuprate). Off by default: it pulls a # pinned `cuprated` git revision, ~152 crates and a C++ RandomX cross-build # (+11.8 MiB on an aarch64 release binary). Without it the SDK can still store # and read back a `ChainChoice.InProcessCuprate` setting — starting one fails # with the core's "rebuild with --features cuprate-daemon" message. cuprate-daemon = ["onionwire/cuprate-daemon"] [dependencies] onionwire = { path = "../..", default-features = false, features = ["rustls"] } # `static-sqlite`: Android has no system libsqlite3 to link against. arti-client = { version = "0.46", default-features = false, features = [ "tokio", "onion-service-client", "onion-service-service", "compression", "rustls", "static-sqlite", ] } tokio = { version = "1", features = ["rt-multi-thread", "time"] } # rustls 0.23 resolves its provider from its OWN `ring` / `aws-lc-rs` features, # never from whichever crypto crates happen to be linked in the graph. Arti # pulls rustls in through `tor-rtcompat` with `default-features = false`, so # without this line rustls compiles with zero providers and the first TLS config # built from the process default fails at runtime — the "Failed to start / # Could not automatically determine the process-level CryptoProvider" screen. # # `ring`, not `aws-lc-rs`: aws-lc-rs needs CMake and a C toolchain for the NDK # and fights the Android cross-compile. The `ring` crate was already in the # graph (via `snow`, for Noise) but that is a different thing entirely. rustls = { version = "0.23", default-features = false, features = ["ring"] } uniffi = { version = "0.32", features = ["cli", "tokio"] } thiserror = "2" [[bin]] name = "uniffi-bindgen" path = "src/bin/uniffi-bindgen.rs"