-
Notifications
You must be signed in to change notification settings - Fork 36
/
Cargo.toml
97 lines (83 loc) · 2.35 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
89
90
91
92
93
94
95
96
97
[package]
name = "audioserve"
version = "0.28.11"
authors = ["Ivan <[email protected]>"]
edition = "2021"
rust-version = "1.72"
[workspace]
members = ["crates/*"]
[dependencies]
bytes = "1.6"
env_logger = "0.11.3"
log = { version = "0.4", features = [
"release_max_level_info",
"max_level_trace",
] }
futures = "0.3"
mime = "0.3"
serde_json = "1.0.116"
serde = { version = "1.0", features = ["derive"] }
serde_yaml = "0.9"
clap = { version = "4", features = ["cargo", "env"] }
lazy_static = "1.4"
thiserror = "1.0"
anyhow = "1.0.82"
url = "2.5"
percent-encoding = "2.3"
num_cpus = "1.16"
ring = "0.17"
data-encoding = "2.6"
regex = "1.10"
tokio = { version = "1.37", features = ["full"] }
dirs = "5.0"
csv = "1.3"
image = "0.24"
leaky-cauldron = { path = "crates/leaky-cauldron" }
tokio-util = { version = "0.7.10", optional = true, features = ["codec"] }
cron = { version = "0.12", optional = true }
chrono = { version = "0.4", optional = true }
# this repo dependencies
collection = { path = "crates/collection", features = ["async"] }
simple-file-cache = { path = "crates/file-cache", features = ["asynch"] }
async-tar = { path = "crates/async-tar", optional = true }
async-zip = { path = "crates/async-zip", optional = true }
websock = { path = "crates/websock", optional = true }
myhy = { path = "crates/myhy" }
[target.'cfg(unix)'.dependencies]
nix = { version = "0.29.0", features = ["user"] }
[features]
default = [
"tls",
"symlinks",
"folder-download",
"shared-positions",
"behind-proxy",
]
# default
tls = ["myhy/tls"]
symlinks = ["collection/symlinks"]
folder-download = ["async-tar", "async-zip"]
folder-download-default-tar = []
shared-positions = ["websock", "cron", "chrono"]
behind-proxy = ["myhy/behind-proxy"]
# non-default
transcoding-cache = ["tokio-util"]
# for static compilation only
partially-static = ["collection/partially-static"]
static = ["collection/static"]
collation = ["collection/collation"]
collation-static = ["collection/collation-static"]
tags-encoding = ["collection/tags-encoding"]
[profile.release]
lto = true
codegen-units = 1
[dev-dependencies]
reqwest = { version = "0.12.4", features = [
'blocking',
'json',
], default-features = false }
escargot = "0.5.10"
tempdir = "0.3.7"
http-body-util = "0.1.1"
[target.'cfg(unix)'.dev-dependencies]
nix = { version = "0.29.0", features = ["process", "signal"] }