This repository has been archived by the owner on Mar 27, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 30
/
Copy pathCargo.toml
58 lines (54 loc) · 1.5 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
[package]
name = "sfz"
version = "0.7.1"
authors = ["Weihang Lo <[email protected]>"]
description = "A simple static file serving command-line tool."
documentation = "https://github.com/weihanglo/sfz"
homepage = "https://github.com/weihanglo/sfz"
repository = "https://github.com/weihanglo/sfz"
readme = "README.md"
keywords = ["static", "file", "server", "http", "cli"]
categories = ["command-line-utilities", "web-programming::http-server"]
exclude = ["HomebrewFormula"]
license = "MIT/Apache-2.0"
edition = "2021"
[dependencies]
# Command-line
clap = { version = "3", default-features = false, features = ["std", "cargo"] }
# Server
tokio = { version = "1", features = ["rt-multi-thread", "macros"] }
tokio-util = { version = "0.7", features = ["io"] }
hyper = { version = "0.14.20", features = ["http1", "server", "tcp", "stream"] }
headers = "0.3"
mime_guess = "2.0"
percent-encoding = "2.1"
# Compression
async-compression = { version = "0.3.7", features = [
"brotli",
"deflate",
"gzip",
"tokio",
] }
# Rendering
tera = "1"
serde = { version = "1.0", features = [
"derive",
] } # For tera serializing variables to template.
ignore = "0.4" # Respect to .gitignore while listing directories.
# Logging
chrono = "0.4"
# Directory Download
qstring = "0.7"
zip = { version = "0.6", default-features = false, features = ["deflate"] }
futures = "0.3"
tempfile = "3"
bytes = "1"
[dev-dependencies]
tempfile = "3"
once_cell = "1"
[profile.dev]
codegen-units = 2
incremental = true
[profile.release]
lto = true
panic = "abort"