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).
63 lines
2.4 KiB
TOML
63 lines
2.4 KiB
TOML
[package]
|
|
name = "onionwire"
|
|
version = "0.2.1"
|
|
edition = "2024"
|
|
rust-version = "1.91"
|
|
description = "Lean Tor messenger: Arti in-process, identity=pubkey, onion=locator. No XMPP."
|
|
license = "MIT"
|
|
publish = false
|
|
repository = "https://github.com/sirius0xdev/onionwire"
|
|
|
|
# TLS backend: `rustls` by default, `native-tls` (OpenSSL) opt-in.
|
|
#
|
|
# Arti marks these two backends non-additive, so exactly one may be selected per
|
|
# build graph — hence exposing them as crate features. rustls is the default
|
|
# because Android has no OpenSSL in the NDK and the Linux TUI/release build does
|
|
# not need a system OpenSSL for TLS either. (OpenSSL is still *compiled* into
|
|
# every build by rusqlite's `bundled-sqlcipher-vendored-openssl`, vendored and
|
|
# static: that is the SQLCipher layer, not Arti's TLS.)
|
|
[features]
|
|
default = ["rustls"]
|
|
native-tls = ["arti-client/native-tls"]
|
|
rustls = ["arti-client/rustls"]
|
|
|
|
[dependencies]
|
|
arti-client = { version = "0.46", default-features = false, features = [
|
|
"tokio",
|
|
"onion-service-client",
|
|
"onion-service-service",
|
|
"compression",
|
|
] }
|
|
futures = "0.3"
|
|
safelog = "0.9"
|
|
ed25519-dalek = { version = "2", features = ["rand_core"] }
|
|
rand = "0.8"
|
|
rusqlite = { version = "0.36", features = ["bundled-sqlcipher-vendored-openssl"] }
|
|
tokio = { version = "1", features = ["rt-multi-thread", "macros", "io-util", "time", "net"] }
|
|
tor-cell = "0.46"
|
|
tor-hsservice = "0.46"
|
|
tor-rtcompat = { version = "0.46", features = ["tokio"] }
|
|
# Direct dependency only to select rustls's crypto provider: Arti pulls rustls in
|
|
# through `tor-rtcompat` with `default-features = false`, and rustls 0.23
|
|
# resolves its provider from its OWN `ring`/`aws-lc-rs` features, so without this
|
|
# line the rustls backend compiles with no provider at all and the first TLS
|
|
# config fails. Same reasoning (and pin) as `crates/onionwire-sdk/Cargo.toml`.
|
|
rustls = { version = "0.23", default-features = false, features = ["ring"] }
|
|
ratatui = { version = "0.30.2", default-features = false, features = ["crossterm"] }
|
|
x25519-dalek = { version = "2", features = ["static_secrets"] }
|
|
snow = "0.10"
|
|
serde_json = "1"
|
|
hkdf = "0.12"
|
|
hmac = "0.12"
|
|
argon2 = "0.5"
|
|
chacha20poly1305 = "0.10"
|
|
sha3 = "0.10"
|
|
sha2 = "0.10"
|
|
md-5 = "0.10"
|
|
rpassword = "7"
|
|
zeroize = { version = "1", features = ["derive"] }
|
|
qrcode = { version = "0.14", default-features = false }
|
|
|
|
[dev-dependencies]
|
|
tempfile = "3"
|
|
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
|