-
-
Notifications
You must be signed in to change notification settings - Fork 69
/
Copy pathCargo.toml
75 lines (67 loc) · 2.1 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
[package]
name = "thunder"
version = "1.0.3"
edition = "2021"
description = "Synology NAS thunder run on Linux"
license = "MIT"
homepage = "https://github.com/gngpp/thunder"
repository = "https://github.com/gngpp/thunder.git"
readme = "README.md"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
log = "0.4.20"
anyhow = "1.0.75"
rust-embed = "8.0.0"
nix = { version = "0.26.2", features = ["mount", "signal", "user"]}
rand = "0.8.5"
ureq = "2.7.1"
indicatif = "0.17.6"
signal-hook = "0.3.17"
clap = { version = "4.4.2", features = ["derive", "env"] }
tar = "0.4.40"
libflate = "2.0.0"
core2 = "0.4.0"
xz= "0.1.0"
serde = { version = "1.0.193", features = ["derive"] }
tokio = { version = "1.35.0", features = ["fs", "process", "rt-multi-thread"] }
axum = { version = "0.6.20", features = ["http2"]}
axum-server = { version = "0.5.1", features = ["tls-rustls"] }
tokio-util = "0.7.10"
jsonwebtokens = "1.2.0"
mimalloc = { version = "0.1.39", default-features = false, optional = true }
daemonize = "0.5.0"
sysinfo = { version = "0.30.7", default-features = false }
tracing = "0.1.40"
tracing-subscriber = { version = "0.3.17", features = ["env-filter"] }
tower-http = { version = "0.5.2", default-features = false, features = ["trace"]}
[features]
default = ["mimalloc"]
mimalloc = ["dep:mimalloc"]
[[bin]]
name = "thunder"
path = "src/main.rs"
[profile.dev]
opt-level = 'z'
[profile.release]
lto = true
opt-level = 'z'
codegen-units = 1
panic = "abort"
strip = true
[package.metadata.deb]
maintainer = "gngpp <[email protected]>"
copyright = "2023, gngpp <[email protected]>"
license-file = ["LICENSE", "4"]
extended-description = "Synology NAS thunder run on Linux"
depends = "$auto"
section = "utility"
priority = "optional"
assets = [
["target/release/thunder", "usr/bin/thunder", "755"],
["README.md", "usr/share/doc/thunder/README", "644"],
]
[package.metadata.generate-rpm]
assets = [
{ source = "target/release/thunder", dest = "/usr/bin/thunder", mode = "0755" },
{ source = "LICENSE", dest = "/usr/share/doc/thunder/LICENSE", doc = true, mode = "0644" }
]