-
Notifications
You must be signed in to change notification settings - Fork 6
/
Cargo.toml
86 lines (73 loc) · 1.96 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
76
77
78
79
80
81
82
83
84
85
[package]
name = "fht2p"
version = "0.9.6" # alpha<alpha.1<beta<rc
authors = ["Wspsxing <biluohc@qq.com>"]
description = "A cross-platform HTTP static file server developed using Rust"
homepage = "https://github.com/biluohc/fht2p"
build = "build.rs"
license = "MIT"
edition = "2018"
[workspace]
[lib]
name = "fht2plib"
path = "src/lib.rs"
# https://doc.rust-lang.org/cargo/reference/profiles.html#lto
[profile.release]
opt-level = 3
lto = "thin"
[profile.dev]
opt-level = 0
debug = 2
lto = false
panic = 'unwind'
debug-assertions = true
overflow-checks = true
incremental = true
rpath = false
[dev-dependencies]
walkdir = "2.3.1"
[build-dependencies]
chrono = { version = "0.4.10", features = ["serde"] }
rsass = "0.13.0"
[features]
default = []
proxy-auth-hide = []
[dependencies]
nonblock-logger = { version = "0.1", features = [ "color", "dbg" ] }
clap = { version = "2.33.0", features = [ "suggestions", "color" ] }
serde = { version = "1.0.102", features = ["derive"] }
chrono = { version = "0.4.10", features = ["serde"] }
qr2term = "0.2.1"
json5 = "0.4.1"
systemstat = "0.2.3"
lazy_static = "1.4.0"
thiserror = "1.0.9"
anyhow = "1.0.25"
# bitflags = "1.2"
reqwest = { version = "0.10.3", default-features = false, features = ["rustls-tls", "cookies", "stream", "gzip"] }
tokio = { version = "0.2.5", features = [ "blocking", "io-util", "dns", "rt-threaded", "tcp", "time", "sync", "process"] }
tokio-rustls = "0.13"
futures = "0.3.2"
num_cpus = "1.12"
# pin-project-lite = "0.1"
http = "0.2.0"
hyper = { version = "0.13.2", features = ["stream"] }
bytesize = "1.0.0"
bytes = "0.5"
percent-encoding = "2.1.0"
serde_urlencoded = "0.6.1"
tower-service = "0.3.0"
mime_guess = "2.0.1"
base64 = "0.12.0"
askama = "0.10.1"
regex = "1.3.1"
flate2 = "1.0"
rand = "0.7.2"
nom = "5.0.1"
# ring = "0.16"
[package.metadata.rpm.cargo]
# target = "x86_64-unknown-linux-gnu"
target = "x86_64-unknown-linux-musl"
buildflags = ["--release"]
[package.metadata.rpm.targets]
fht2p = { path = "/usr/bin/fht2p" }