summaryrefslogtreecommitdiff
path: root/examples/axum/axum-hello-world/Cargo.toml
blob: be6196b0cde2bddab526dc4ce923b3176793d204 (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
[package]
name = "axum-hello-world"
version = "0.1.0"
edition = "2024"
authors = ["The Tor Project, Inc.", "Ramid Khan <[email protected]>", "tidely"]
license = "MIT OR Apache-2.0"
description = "Example of a HTTP server written with axum, running as a hidden service through Tor"
publish = false

[dependencies]
anyhow = "1.0.75"
arti-client = { path = "../../../crates/arti-client", version = "0.37", features = [
    "onion-service-service",
] }
axum = { version = "0.8.1", features = ["tracing"] }
futures = "0.3.14"
hyper = { version = "1", features = ["http1", "server"] }
hyper-util = { version = "0.1.1", features = ["tokio"] }
safelog = { path = "../../../crates/safelog", version = "0.7" }
tokio = { version = "1", features = ["macros", "rt-multi-thread", "sync"] }
tokio-util = "0.7.10"
tor-cell = { path = "../../../crates/tor-cell", version = "0.37" }
tor-hsservice = { path = "../../../crates/tor-hsservice", version = "0.37" }
tor-proto = { path = "../../../crates/tor-proto", version = "0.37" }
tower = { version = "0.5.1", features = ["util", "tracing"] }
tracing-subscriber = "0.3.20"

[features]
full = [
    "arti-client/full",
    "safelog/full",
    "tor-cell/full",
    "tor-hsservice/full",
    "tor-proto/full",
]