forked from messense/aliyundrive-webdav
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
68 lines (61 loc) · 2.69 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
[package]
name = "aliyundrive-webdav"
version = "1.3.1"
edition = "2021"
description = "WebDAV server for AliyunDrive"
license = "MIT"
homepage = "https://github.com/messense/aliyundrive-webdav"
repository = "https://github.com/messense/aliyundrive-webdav.git"
readme = "README.md"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
anyhow = "1.0.55"
bytes = "1.0.1"
clap = { version = "3.1.8", features = ["derive", "env", "wrap_help"] }
dashmap = "5.1.0"
dav-server = { version = "0.3.3", default-features = false, features = ["hyper"] }
futures-util = "0.3"
headers = "0.3.6"
hyper = { version = "0.14.18", features = ["server", "http2"] }
moka = { version = "0.8.0", default-features = false, features = ["future"] }
openssl-probe = { version = "0.1.4", optional = true }
path-slash = "0.1.4"
reqwest = { version = "0.11.7", default-features = false, features = ["json", "gzip"] }
serde = { version = "1.0.134", features = ["derive"] }
time = { version = "0.3", features = ["formatting", "parsing"] }
tokio = { version = "1.17.0", features = ["rt-multi-thread", "io-util", "net", "time", "sync", "macros", "parking_lot", "fs"] }
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter", "local-time"] }
url = "2.2.2"
zip = { version = "0.6.2", default-features = false }
# TLS server support
rustls-pemfile = { version = "1.0.0", optional = true }
tls-listener = { version = "0.5.1", features = ["hyper-h1", "hyper-h2"], optional = true }
tokio-rustls = { version = "0.23.2", optional = true }
[features]
default = ["rustls-tls", "atomic64"]
rustls-tls = ["reqwest/rustls-tls", "rustls-pemfile", "tls-listener/rustls", "hyper/stream", "tokio-rustls"]
native-tls = ["reqwest/native-tls"]
native-tls-vendored = ["reqwest/native-tls-vendored", "openssl-probe"]
atomic64 = ["moka/atomic64"]
[profile.release]
lto = true
opt-level = "z" # Optimize for size
[package.metadata.deb]
maintainer = "messense <messense@icloud.com>"
copyright = "2021-present, messense <messense@icloud.com>"
license-file = ["LICENSE", "4"]
extended-description = """\
WebDAV server for AliyunDrive"""
section = "utility"
priority = "optional"
assets = [
["target/release/aliyundrive-webdav", "usr/bin/", "755"],
["systemd.service", "etc/systemd/system/aliyundrive-webdav.service", "644"],
]
[package.metadata.generate-rpm]
assets = [
{ source = "target/release/aliyundrive-webdav", dest = "/usr/bin/aliyundrive-webdav", mode = "0755" },
{ source = "LICENSE", dest = "/usr/share/doc/aliyundrive-webdav/LICENSE", doc = true, mode = "0644" },
{ source = "systemd.service", dest = "/etc/systemd/system/aliyundrive-webdav.service", config = true, mode = "0644" },
]