Repository navigation
Expand file tree
/
Copy pathCargo.toml
More file actions
163 lines (152 loc) · 5.41 KB
/
Copy pathCargo.toml
File metadata and controls
163 lines (152 loc) · 5.41 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
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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
[workspace]
members = ["backend/*", "frontend", "plugins/plugin-api", "plugins/plugin-sdk", "plugins/plugin-sdk-macros", "shared", "tools/tuliprox-testkit"]
exclude = ["vendor/reqwest", "plugins/examples"]
resolver = "2"
[patch.crates-io]
reqwest = { path = "vendor/reqwest" }
[workspace.package]
version = "3.3.214"
edition = "2021"
rust-version = "1.95.0"
[workspace.lints.clippy]
# Shared lint policy for every workspace crate.
# Extracted crates must not silently lose the lint level that previously
# existed only as a crate attribute on backend/app/src/main.rs.
all = { level = "warn", priority = -1 }
pedantic = { level = "warn", priority = -1 }
wildcard_imports = "deny"
# Allows carried over verbatim from backend/app/src/main.rs. They were already
# accepted for the backend; moving the policy to the workspace must not change
# which warnings the backend emits.
module_name_repetitions = "allow"
must_use_candidate = "allow"
return_self_not_must_use = "allow"
missing_errors_doc = "allow"
large_futures = "allow"
[workspace.dependencies]
shared = { version = "3", path = "shared" }
tuliprox-hls = { version = "3", path = "backend/hls" }
tuliprox-auth = { version = "3", path = "backend/auth" }
tuliprox-dvr = { version = "3", path = "backend/dvr" }
tuliprox-mpegts = { version = "3", path = "backend/mpegts" }
tuliprox-iptv = { version = "3", path = "backend/iptv" }
tuliprox-parser = { version = "3", path = "backend/parser" }
tuliprox-metadata = { version = "3", path = "backend/metadata" }
tuliprox-messaging = { version = "3", path = "backend/messaging" }
tuliprox-processing = { version = "3", path = "backend/processing" }
tuliprox-plugins = { version = "3", path = "backend/plugins" }
tuliprox-plugin-api = { version = "1", path = "plugins/plugin-api" }
# Plugin runtime (W0 spike): default features off. `wasmtime-wasi-http` must not
# enable `default-send-request`, which pulls ring + webpki-roots and calls
# `rustls::ClientConfig::builder()` - a runtime panic with both ring and
# aws-lc-rs in the graph. The host implements `send_request` itself.
wasmtime = { version = "50.0.1", default-features = false }
wasmtime-wasi = { version = "50.0.1", default-features = false }
wasmtime-wasi-http = { version = "50.0.1", default-features = false }
tuliprox-btree = { version = "3", path = "backend/btree" }
tuliprox-config-loader = { version = "3", path = "backend/config-loader" }
tuliprox-session = { version = "3", path = "backend/session" }
tuliprox-media-server = { version = "3", path = "backend/media-server" }
tuliprox-repository = { version = "3", path = "backend/repository" }
tuliprox-core = { version = "3", path = "backend/core" }
tuliprox-curation = { version = "3", path = "backend/curation" }
tuliprox-scripting = { version = "3", path = "backend/scripting" }
tuliprox-library = { version = "3", path = "backend/library" }
serde = { version = "1.0.229", features = ["derive", "rc"] }
serde_json = { version = "1.0.154" }
regex = "1.13.1"
log = "0.4.35"
smallvec = "1.16.0"
id-arena = "2.3.0"
chrono = "0.4.45"
bytes = "1.12.1"
base64 = "0.23.1"
blake3 = "1.8.7"
fastrand = "2.5.0"
lz4_flex = "0.14.0"
brotli = "9.1.1"
indexmap = "2.14.2"
dashmap = "6.2.1"
cookie = "0.18.2"
arc-swap = "1.9.5"
paste = "1.0.15"
# 2.9.5 scopes its native stack probe to the six targets it can measure; on musl the
# probe is disabled, so a large filter chain is not rejected as "stack limit reached".
pest = "2.9.6"
pest_derive = "2.9.6"
zeroize = "1.9.1"
deunicode = "1.6.2"
unicode-normalization = "0.1.26"
path-clean = "1.0.1"
url = "2.5.8"
cron = "0.17.0"
futures = "0.3.34"
serde-saphyr = "2.1.1"
sha2 = "0.11.1"
hmac = "0.13.0"
thiserror = "2.0.21"
tokio = { version = "1.54.1" }
strum = "0.28.0"
strum_macros = "0.28.0"
dotenvy = "0.15.7"
# Third-party crates used by more than one workspace member.
aes = "0.9.4"
async-compression = "0.4.52"
axum = "0.8.9"
chrono-tz = "0.10.4"
clap = "4.6.6"
crc32fast = "1.5.5"
ctr = "0.10.1"
env_logger = "0.11.11"
filetime = "0.2.29"
flate2 = "1.1.11"
http = "1.5.0"
http-body-util = "0.1.5"
hyper = "1.12.0"
hyper-util = "=0.1.21"
js-sys = "0.3.107"
jsonwebtoken = { version = "11.1.0", default-features = false }
libc = "0.2"
lru = "0.19.0"
mime = "0.3.18"
notify = "8.2.2"
parking_lot = "0.13.0"
quick-xml = "0.42.0"
rand = "0.10.3"
rcgen = "0.14.10"
reqwest = { version = "0.13.5", default-features = false }
rmp-serde = "1.3.1"
serde_html_form = "0.4.1"
strsim = "0.11.1"
sysinfo = { version = "0.40.1", default-features = false }
tempfile = "3.27.0"
tokio-rustls = "0.26.6"
tokio-stream = "0.1.19"
tokio-tungstenite = "0.30.0"
tokio-util = "0.7.20"
uuid = "1.29.2"
windows-sys = "0.61.2"
[profile.release]
debug = false
opt-level = 3 # Maximal performance
lto = "fat" # Enable Link Time Optimization
codegen-units = 1 # Reduce number of codegen units to increase optimizations.
panic = 'abort' # Abort on panic
strip = true
incremental = false
[profile.dev]
lto = false
incremental = true
codegen-units = 256
[profile.dev-slim]
inherits = "dev"
opt-level = 0
strip = "none"
lto = "off"
debug = "line-tables-only"
[profile.dev-slim.package."*"]
debug = false
[profile.release.package.frontend]
opt-level = 'z' # Size optimization for frontend
[profile.release.package.shared]
opt-level = 3 # optimize shared for speed