Repository navigation
Expand file tree
/
Copy pathCargo.toml
More file actions
57 lines (55 loc) · 1.66 KB
/
Copy pathCargo.toml
File metadata and controls
57 lines (55 loc) · 1.66 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
[package]
name = "yadex"
version = "0.1.2"
description = "Yet another index page"
edition = "2024"
license = "GPL-3.0-or-later"
authors = ["Levi Zim <rsworktech@outlook.com>", "taoky <taoky@ustclug.org>"]
readme = "README.md"
[dependencies]
axum = { version = "0.8", default-features = false, features = [
"http1",
"http2",
"matched-path",
"macros",
"tokio",
"json",
] }
chrono = { version = "0.4.39", features = ["serde"] }
clap = { version = "4.5.24", features = ["derive"] }
color-eyre = "0.6.3"
figment = { version = "0.10.19", features = ["toml"] }
futures-util = "0.3.31"
handlebars = "6.3.0"
html-escape = "0.2.13"
landlock = "0.4.3"
sd-notify = "0.4.5"
serde = { version = "1.0.217", features = ["derive"] }
snafu = { version = "0.8.5", features = ["rust_1_81"] }
tokio = { version = "1.43.1", features = [
"rt",
"net",
"fs",
"macros",
"rt-multi-thread",
] }
tokio-stream = { version = "0.1.17", features = ["fs"] }
tracing = "0.1.41"
tracing-subscriber = { version = "0.3.20", features = ["env-filter"] }
urlencoding = "2.1.3"
[package.metadata.deb]
# forked from kxxt's version and has some modifications
maintainer = "taoky <taoky@ustclug.org>"
depends = "$auto"
section = "web"
priority = "optional"
maintainer-scripts = "debian/"
assets = [
["target/release/yadex", "usr/bin/", "755"],
["etc/config.toml", "etc/yadex/", "644"],
["etc/index.html", "etc/yadex/", "644"],
# I can't help user to configure nginx -- provide an example in docs
["contrib/nginx.index.example.conf", "usr/share/doc/yadex/", "644"],
["contrib/nginx.try_files.example.conf", "usr/share/doc/yadex/", "644"],
]
systemd-units = { enable = false }