-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
91 lines (78 loc) · 2.68 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
91
[workspace]
members = [
"bevygap_matchmaker",
"bevygap_matchmaker_httpd",
"bevygap_webhook_sink",
"bevygap_shared",
"bevygap_server_plugin",
"bevygap_client_plugin",
"bevy_nfws",
]
resolver = "2"
[workspace.package]
version = "0.3.1"
authors = ["RJ <[email protected]>"]
homepage = "https://github.com/RJ/bevygap"
publish = false
edition = "2021"
license = "MIT OR Apache-2.0"
# optimisation notes: https://bevy-cheatbook.github.io/pitfalls/performance.html
# Enable max optimizations for dependencies, but not for our code:
[profile.dev.package."*"]
opt-level = 3
# If your own code does CPU-intensive work, you might want to also enable some optimization for it.
# Enable only a small amount of optimization in debug mode
[profile.dev]
opt-level = 1
# Here is a configuration for the most aggressive optimizations possible
# Read this when trying to optimise WASM build: https://bevy-cheatbook.github.io/platforms/wasm/size-opt.html
[profile.release]
lto = true
opt-level = 3
codegen-units = 1
incremental = false
debug = false
[workspace.dependencies]
bevygap_shared = { path = "./bevygap_shared", default-features = false, version = "0.3.1" }
edgegap_async = { path = "./edgegap_async", version = "0.1.0" }
bevy_nfws = { path = "./bevy_nfws", version = "0.3.1" }
# YOU MUST USE SAME LY VER AS GAME
# Otherwise resources from lightyear won't be found.
lightyear = { version = "0.18", default-features = false, features = [
"webtransport",
] }
bevy = { version = "0.15", default-features = false }
# No 0.15 version yet, PR open. vendored the source file in server plugin for now.
#bevy-tokio-tasks = "0.14"
#bevy-tokio-tasks = {git = "https://github.com/foxzool/bevy-tokio-tasks.git", rev = "8620ec1e836445f249b63c8d313f7448792364cd"}
bevy_async_task = "0.4"
rand = "*"
axum = { version = "0.7.7", features = ["ws"] }
anyhow = "1.0"
serde = { version = "1", features = ["derive"] }
serde_json = "1"
async-nats = { version = "0.36.0", features = ["service"] }
log = "0.4"
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter", "fmt"] }
futures = "0.3"
futures-util = { version = "0.3", features = ["sink"] }
# TODO: minimise tokio features as needed:
tokio = { version = "1.0", features = ["full"] }
tokio-stream = "0.1.16"
tokio-tungstenite = "0.23"
clap = { version = "4.4", features = ["derive"] }
time = { version = "0.3.36", features = ["std"] }
base64 = "0.22"
url = "^2.5"
reqwest = { version = "^0.12", features = ["json", "multipart"] }
http-body-util = "0.1.0"
tower-http = { version = "0.6.1", default-features = false, features = [
"cors",
] }
regex = "1.11.1"
async-channel = "2.3"
[workspace.lints.clippy]
type_complexity = "allow"
[workspace.lints.rust]
unsafe_code = "deny"