2024-09-11 16:37:46 +00:00
|
|
|
[workspace]
|
|
|
|
members = ["common", "config-server", "hotpatch-server", "login-server", "gateway-server", "gateway-server/kcp", "shorekeeper-database", "shorekeeper-http", "shorekeeper-protokey", "shorekeeper-protocol", "shorekeeper-protocol/shorekeeper-protocol-derive", "game-server", "shorekeeper-network", "shorekeeper-data"]
|
|
|
|
resolver = "2"
|
|
|
|
|
|
|
|
[workspace.package]
|
|
|
|
version = "0.1.0"
|
|
|
|
|
|
|
|
[workspace.dependencies]
|
|
|
|
# Framework
|
|
|
|
tokio = { version = "1.39.3", features = ["full"] }
|
2024-11-01 19:13:29 +00:00
|
|
|
tower-http = { version = "0.6.1", features = ["fs", "trace"] }
|
2024-09-11 16:37:46 +00:00
|
|
|
axum = "0.7.5"
|
|
|
|
axum-server = "0.7.1"
|
|
|
|
zeromq = { version = "0.4.0", default-features = false, features = ["tokio-runtime", "tcp-transport"] }
|
|
|
|
|
|
|
|
# Database
|
|
|
|
sqlx = { version = "0.8.2", features = ["postgres", "runtime-tokio-rustls"] }
|
|
|
|
|
|
|
|
# Cryptography
|
|
|
|
aes = "0.8.4"
|
|
|
|
cbc = { version = "0.1.2", features = ["alloc"] }
|
|
|
|
cipher = "0.4.4"
|
|
|
|
rand = "0.8.5"
|
|
|
|
rsa = { version = "0.9.6", features = ["pem"] }
|
|
|
|
|
|
|
|
# Serialization
|
|
|
|
serde = { version = "1.0.209", features = ["derive"] }
|
|
|
|
serde_json = "1.0.128"
|
|
|
|
toml = "0.8.19"
|
|
|
|
prost = "0.13.2"
|
|
|
|
prost-build = "0.13.2"
|
|
|
|
|
|
|
|
# Utility
|
|
|
|
anyhow = "1.0.86"
|
|
|
|
thiserror = "1.0.63"
|
|
|
|
paste = "1.0.15"
|
|
|
|
rbase64 = "2.0.3"
|
|
|
|
dashmap = "6.1.0"
|
|
|
|
hex = "0.4.3"
|
|
|
|
byteorder = "1.5.0"
|
|
|
|
crc32fast = "1.4.2"
|
|
|
|
|
|
|
|
# Tracing
|
|
|
|
tracing = "0.1.40"
|
2024-11-01 19:13:29 +00:00
|
|
|
tracing-subscriber = { version = "0.3.18", features = ["env-filter"] }
|
2024-09-11 16:37:46 +00:00
|
|
|
|
|
|
|
# Internal
|
|
|
|
kcp = { path = "gateway-server/kcp" }
|
2024-11-01 19:13:29 +00:00
|
|
|
common = { path = "common" }
|
|
|
|
shorekeeper-http = { path = "shorekeeper-http" }
|
|
|
|
shorekeeper-data = { path = "shorekeeper-data" }
|
|
|
|
shorekeeper-database = { path = "shorekeeper-database" }
|
|
|
|
shorekeeper-network = { path = "shorekeeper-network" }
|
|
|
|
shorekeeper-protocol = { path = "shorekeeper-protocol" }
|
2024-09-11 16:37:46 +00:00
|
|
|
shorekeeper-protocol-derive = { path = "shorekeeper-protocol/shorekeeper-protocol-derive" }
|
2024-11-01 19:13:29 +00:00
|
|
|
shorekeeper-protokey = { path = "shorekeeper-protokey" }
|
2024-09-11 16:37:46 +00:00
|
|
|
|
|
|
|
[profile.release]
|
|
|
|
strip = true # Automatically strip symbols from the binary.
|
|
|
|
lto = true # Link-time optimization.
|
|
|
|
opt-level = 3 # Optimize for speed.
|
|
|
|
codegen-units = 1 # Maximum size reduction optimizations.
|