Arti's TLS backends are non-additive; the root crate defaulted to `native-tls` (OpenSSL). Switch `default = ["rustls"]` and pin the `rustls` crate with its `ring` feature — `tor-rtcompat` pulls rustls in with `default-features = false`, so without that pin the backend compiles with no `CryptoProvider` and the first TLS config fails (same reason already recorded in crates/onionwire-sdk/Cargo.toml). `native-tls` stays as an opt-in feature. SQLCipher still builds vendored OpenSSL (`bundled-sqlcipher-vendored-openssl`); that is unrelated to TLS. - tests/tls_backend.rs: compile-time pin that the default features select rustls, plus a runtime check that rustls resolves a provider with no manual install. - ci.yml: the root `test` job no longer installs pkg-config/libssl-dev (the SDK job keeps it). - docs: README build deps, ARTI_UPGRADE backend table, release-body and the SDK README now describe the rustls default; the false "binaries link libssl.so.3 dynamically" claim is corrected. - crates/onionwire-sdk/Cargo.lock: regenerated for the root crate's new dependency (separate workspace, --locked would otherwise fail).
48 lines
1.8 KiB
TOML
48 lines
1.8 KiB
TOML
[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"]
|
|
|
|
[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"
|