Repository navigation
Expand file tree
/
Copy pathCargo.toml
More file actions
34 lines (30 loc) · 1.58 KB
/
Copy pathCargo.toml
File metadata and controls
34 lines (30 loc) · 1.58 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
[package]
name = "tor"
version = "0.2.0"
authors = ["Brian Taylor <brian@resolvingarchitecture.dev>"]
license = "MIT"
edition = "2021"
description = "A Tor client for 1M5: a local Tor daemon (SOCKS) or embedded Arti, selected by ra.tor.mode"
homepage = "https://resolvingarchitecture.dev"
repository = "https://github.com/resolvingarchitecture/tor-rust"
readme = "README.md"
keywords = ["tor", "socks", "privacy", "onion"]
categories = ["network-programming"]
[dependencies]
log = "0.4"
seda_bus = { path = "../../seda-bus/seda-bus-rust" }
# --- embedded Tor (feature "embedded") ---
# Arti is the Tor Project's pure-Rust Tor client. Heavy (tokio, rustls, the
# tor-* crate family); off by default. rustls (not native-tls) to avoid a C
# OpenSSL dependency.
# static-sqlite bundles SQLite (no system libsqlite3 / -dev needed, and portable
# to targets like Redox); rustls (not native-tls) avoids a C OpenSSL dependency.
arti-client = { version = "0.45", default-features = false, features = ["tokio", "rustls", "static-sqlite", "onion-service-client", "compression", "flowctl-cc"], optional = true }
tor-rtcompat = { version = "0.45", default-features = false, features = ["tokio", "rustls"], optional = true }
tokio = { version = "1", features = ["rt-multi-thread", "sync", "macros", "time", "io-util"], optional = true }
# Pin the rustls CryptoProvider (ring) so Arti's TLS setup is unambiguous.
rustls = { version = "0.23", default-features = false, features = ["ring"], optional = true }
[features]
default = []
embedded = ["dep:arti-client", "dep:tor-rtcompat", "dep:tokio", "dep:rustls"]
[dev-dependencies]