-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
53 lines (50 loc) · 2.84 KB
/
Cargo.toml
File metadata and controls
53 lines (50 loc) · 2.84 KB
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
[package]
name = "Kether_Internal_Services_Server"
version = "0.0.1" #Rolling release... I don't mind changing this in future
edition = "2024"
authors = ["Dominik Adrian Grzywak <starterx4@gmail.com>"]
description = "Internal Services Server for the Kether L4D2 server website"
license = "GPL-3.0-only"
rust-version = "1.91"
repository = "https://github.com/KetherPL/Kether.pl-website-server"
homepage = "kether.pl"
[dependencies]
SC_Sub_Poster = { git = "https://github.com/KetherPL/SC_Sub_Poster.git", optional = true }
#SC_Sub_Poster = { path = "../Kether.pl-sub-poster-rust", optional = true }
clap = { version = "4.5.32", features = ["derive", "std"] }
colored = { version = "3.0.0", optional = true }
gamedig = { version = "0.6.1", optional = true }
rocket = { version = "0.5.1", features = ["json"], optional = true, default-features = false }
rocket_cors = { version = "0.6.0", optional = true }
rocket_ws = { version = "0.1", optional = true }
toml = { version = "0.8", optional = true }
steam-rs = { version = "0.5.1", optional = true }
tokio = { version = "1.46.1", features = ["rt-multi-thread", "macros"] }
futures-util = { version = "0.3", optional = true }
once_cell = "1.19.0"
smol = "2.0.2"
reedline = "0.44"
crossterm = "0.28"
chrono = "0.4"
chrono-tz = "0.9"
async-trait = "0.1"
inventory = "0.3"
# The default release profile. It contains all optimizations, without
# sacrificing debug info. With this profile (like in the standard
# release profile), the debug info and the stack traces will still be available.
[profile.release]
codegen-units = 1
lto = true
strip = true
[features]
default = ["kether_meta", "sat"] # Features starter pack
kether_meta = ["rest_json_db", "rest_steam", "server_query", "rest_call_for_sub", "fastdl"] # Meta package for Kether's needs
sat = ["rest_api"] # Satanixon's/StarterX4's-specific features ¯\_(ツ)_/¯
fastdl = ["rest_api"] # FastDL http(!) server – for Source/GoldSrc games. Both for custom server content (e.g. maps, models, sounds) and (in our usecase) MOTDs.
# /↑\ Don't forget pass it through the http. Source/GoldSrc games don't support https for FastDL.
rest_json_db = ["rest_api"] # REST API – JSON database for website (binds, bind suggestions, commands)
rest_steam = ["cfg", "rest_api", "dep:steam-rs"] # REST API – Steam part for website (fetch userdata, check if owns appid=550 (L4D2))
server_query = ["cfg", "dep:gamedig", "dep:futures-util"] # Query L4D2 servers (either through CLI or REST API)
rest_call_for_sub = ["cfg", "rest_api", "dep:SC_Sub_Poster"] # REST API – Uses NodeJS to post `!sub` requests on the Steam Group Chat
cfg = ["dep:colored", "dep:toml"] # config.toml – Steam Web API key, bot credentials, chat IDs
rest_api = ["dep:rocket", "dep:rocket_cors", "dep:rocket_ws", "dep:futures-util"] # Base REST API support