summaryrefslogtreecommitdiff
path: root/crates/tor-async-utils/Cargo.toml
blob: 256dc41a5200e019a7225730b4b6d3dbe466640d (plain)
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
[package]
name = "tor-async-utils"
version = "0.45.0"
authors = ["The Tor Project, Inc.", "Nick Mathewson <[email protected]>"]
edition = "2024"
rust-version = "1.91"
license = "MIT OR Apache-2.0"
homepage = "https://gitlab.torproject.org/tpo/core/arti/-/wikis/home"
description = "Async/futures helpers for use with Tor"
keywords = ["tor", "arti"]
# We must put *something* here and this will do
categories = ["rust-patterns"]
repository = "https://gitlab.torproject.org/tpo/core/arti.git/"

[package.metadata.docs.rs]
all-features = true

[features]
full = [
    "oneshot-fused-workaround/full",
    "tokio",
    "tor-basic-utils/full",
    "tor-rtcompat/full",
    "web-time-compat/full",
]
tokio = ["dep:tokio", "dep:tokio-util"]

[dependencies]
cfg-if = "1.0.0"
derive-deftly = { version = "~1.11.4", features = ["full", "beta"] }
educe = "0.4.22"
extend = "1.2.0"
futures = "0.3.14"
oneshot-fused-workaround = { path = "../oneshot-fused-workaround", version = "0.7.0" }
pin-project = "1"
postage = { version = "0.5.0", default-features = false, features = ["futures-traits"] }
sync_wrapper = "1.0.2"
thiserror = "2"
tokio = { version = "1.47.1", optional = true }
tokio-util = { version = "0.7.0", features = ["compat"], optional = true }
tor-basic-utils = { version = "0.45.0", path = "../tor-basic-utils" }
tor-rtcompat = { version = "0.45.0", path = "../tor-rtcompat" }
tracing = "0.1"
void = "1"
web-time-compat = { version = "0.2.0", path = "../web-time-compat" }

[dev-dependencies]
futures-await-test = "0.3.0"
tokio = { version = "1.47.1", features = ["macros", "net", "rt", "rt-multi-thread", "time"] }
tor-error = { path = "../tor-error", version = "0.45.0" }
tor-rtmock = { path = "../tor-rtmock", version = "0.45.0" }
visibility = "0.1.0"