This repository has been archived by the owner on Jan 3, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Cargo.toml
88 lines (76 loc) · 2.87 KB
/
Cargo.toml
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
[package]
name = "tranquility"
version = "0.1.0"
edition = "2021"
license = "MIT"
build = "build.rs"
[dependencies]
ammonia = "3.2.1"
argh = "0.1.9"
askama = "0.11.1"
async-trait = "0.1.58"
axum = "0.5.17"
axum-macros = "0.2.3"
axum-server = { version = "0.4.2", features = ["tls-rustls"] }
base64 = "0.13.1"
cfg-if = "1.0.0"
futures-util = "0.3.25"
headers = "0.3.8"
hex = "0.4.3"
http = "0.2.8"
itertools = "0.10.5"
mime = "0.3.16"
once_cell = "1.16.0"
ormx = { version = "0.10.0", features = ["postgres"] }
paste = "1.0.9"
rand = "0.8.5"
rayon = "1.5.3"
regex = "1.6.0"
reqwest = { version = "0.11.12", default-features = false, features = ["json", "rustls-tls"] }
rsa = "0.7.1"
rust-argon2 = "1.0.0"
serde = { version = "1.0.147", features = ["derive"] }
serde_json = "1.0.87"
serde_qs = "0.10.1"
sha2 = "0.10.6"
sqlx = { version = "0.5.12", features = ["json", "offline", "postgres", "runtime-tokio-rustls", "time", "uuid"] } # Needs to be v0.5.12 for the crates.io patch to work
thiserror = "1.0.37"
time = { version = "0.3.16", features = ["formatting"] }
tokio = { version = "1.21.2", features = ["full", "tracing"] }
toml = "0.5.9"
tower = "0.4.13"
tower-http = { version = "0.3.4", features = ["compression-full", "cors", "trace"] }
tracing = { version = "0.1.37", features = ["attributes"] }
tracing-subscriber = { version = "0.3.16", features = ["env-filter", "parking_lot"] }
url = "2.3.1"
uuid = { version = "1.2.1", features = ["serde", "v4"] }
validator = { version = "0.16.0", features = ["derive"] }
# Email functionality (optional)
lettre = { version = "0.10.1", default-features = false, features = ["builder", "hostname", "smtp-transport", "tokio1-rustls-tls", "tracing"], optional = true }
# Jaeger/OpenTelemetry (optional)
opentelemetry = { version = "0.18.0", features = ["rt-tokio"], optional = true }
opentelemetry-jaeger = { version = "0.17.0", features = ["rt-tokio"], optional = true }
tracing-opentelemetry = { version = "0.18.0", optional = true }
# Markdown posts (optional)
pulldown-cmark = { version = "0.9.2", default-features = false, optional = true }
# Memory allocators (optional)
jemalloc = { package = "jemallocator", version = "0.5.0", optional = true }
mimalloc = { version = "0.1.30", optional = true }
[dependencies.tranquility-content-length-limit]
path = "../tranquility-content-length-limit"
[dependencies.tranquility-http-signatures]
path = "../tranquility-http-signatures"
features = ["reqwest"]
[dependencies.tranquility-ratelimit]
path = "../tranquility-ratelimit"
[dependencies.tranquility-types]
path = "../tranquility-types"
features = ["activitypub", "nodeinfo", "webfinger"]
[features]
default = ["mastodon-api"]
email = ["lettre"]
jaeger = ["opentelemetry", "opentelemetry-jaeger", "tracing-opentelemetry"]
markdown = ["pulldown-cmark"]
mastodon-api = ["tranquility-types/mastodon"]
[dev-dependencies]
jsonschema = { version = "0.16.1", default-features = false }