forked from Pure-Peace/pp-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
90 lines (77 loc) · 2.98 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
86
87
88
89
90
[package]
name = "pp-server"
version = "0.4.1"
authors = ["Pure-Peace <940857703@qq.com>"]
edition = "2018"
license = "MIT"
repository = "https://github.com/pure-peace/pp-server"
[[bin]]
name = "pp-server-with-peace"
path = "src/main.rs"
[[bin]]
name = "pp-server-without-db"
path = "src/main.rs"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[features]
# default = ["peace-objects/no_database"] # Not use peace database, run pp-server independently.
default = ["with_peace"] # Works with peace, including peace database
with_peace = [
"deadpool-postgres",
"deadpool-redis",
"tokio-postgres",
"peace-database",
"peace-objects/with_peace",
"peace-objects/peace_api",
"peace-utils/peace",
]
[dependencies]
askama = "0.10.5"
bytes = "1.0"
chrono = "0.4.19"
colored = "2.0.0"
config = "0.10"
derivative = "2.2.0"
dotenv = "0.15.0"
env_logger = "0.8.3"
field_names = "0.1.1"
hashbrown = "0.11"
json = "0.12.4"
log = "0.4.14"
ntex = "0.3"
prometheus = { version = "0.12", features = ["process"] }
reqwest = { version = "0.11", features = ["rustls-tls", "json"], default-features = false }
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
serde_str = "0.1.0"
tokio = { version = "1.6" }
# Feature peace
deadpool-postgres = { version = "0.7", optional = true }
deadpool-redis = { version = "0.7", optional = true }
tokio-postgres = { version = "0.7", features = ["with-chrono-0_4", "with-serde_json-1"], optional = true }
peace-performance = { git = "https://github.com/Pure-Peace/Peace-performance.git", branch = "main" }
# Git
peace-constants = { git = "https://github.com/Pure-Peace/Peace.git", branch = "main" }
peace-database = { git = "https://github.com/Pure-Peace/Peace.git", branch = "main", features = ["with_peace"], optional = true }
peace-objects = { git = "https://github.com/Pure-Peace/Peace.git", branch = "main", features = ["osu_file_downloader"], optional = true }
peace-settings = { git = "https://github.com/Pure-Peace/Peace.git", branch = "main" }
peace-utils = { git = "https://github.com/Pure-Peace/Peace.git", branch = "main", features = ["web", "async_file"] }
# Local (download peace manual)
# peace-constants = { path = "../../Peace/peace-constants" }
# peace-database = { path = "../../Peace/peace-database", features = ["with_peace"], optional = true }
# peace-objects = { path = "../../Peace/peace-objects", features = ["osu_file_downloader"], optional = true }
# peace-settings = { path = "../../Peace/peace-settings" }
# peace-utils = { path = "../../Peace/peace-utils", features = ["web", "async_file"] }
# link-time-optimization
# Enabling makes the compiled program size smaller and higher performance,
# but it will extend compilation time.
[profile.release]
lto = true
codegen-units = 1
opt-level = "s"
# link-time-optimization
# Enabling makes the compiled program size smaller and higher performance,
# but it will extend compilation time.
[profile.bench]
lto = true
codegen-units = 1
opt-level = "s"