-
-
Notifications
You must be signed in to change notification settings - Fork 68
/
Copy pathCargo.toml
66 lines (58 loc) · 1.51 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
[package]
name = "xunlei"
version = "3.5.2-3"
edition = "2021"
description = "Synology Nas Thunder runs on Linux"
license = "MIT"
homepage = "https://github.com/messense/nas-xunlei"
repository = "https://github.com/messense/nas-xunlei.git"
readme = "README.md"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
log = "0.4.17"
env_logger = "0.10.0"
chrono = "0.4.22"
anyhow = "1.0.71"
rust-embed = "6.6.0"
libc = "0.2.140"
rand = "0.8.5"
ureq = "2.6.2"
sha3 = "0.10.8"
indicatif = "0.17.3"
rouille= "3.6.2"
signal-hook = "0.3.15"
clap = { version = "4.2.5", features = ["derive"] }
[features]
default = ["launch", "systemd", "auth"]
embed = ["launch", "systemd", "auth"]
launch = []
systemd = []
auth = []
[[bin]]
name = "xunlei"
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 runs on Linux"
depends = "$auto"
section = "utility"
priority = "optional"
assets = [
["target/release/xunlei", "usr/bin/xunlei", "755"],
["README.md", "usr/share/doc/xunlei/README", "644"],
]
[package.metadata.generate-rpm]
assets = [
{ source = "target/release/xunlei", dest = "/usr/bin/xunlei", mode = "0755" },
{ source = "LICENSE", dest = "/usr/share/doc/xunlei/LICENSE", doc = true, mode = "0644" }
]