-
Notifications
You must be signed in to change notification settings - Fork 3
/
Cargo.toml
38 lines (33 loc) · 1.02 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
[package]
name = "rust-pong"
version = "0.1.0"
authors = ["Pascal <pascal.chen@devling.xyz>"]
edition = "2018"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
dotenv = "0.15"
env_logger = "0.8"
futures-util = "0.3"
log = "0.4"
tokio = { version = "1.2", features = ["time", "macros", "rt-multi-thread"] }
tokio-tungstenite = "0.14"
tungstenite = "0.13"
url = "2.2"
bevy = "0.5.0"
rand = "0.8.3"
[[bin]]
name = "server"
path = "src/server.rs"
[[bin]]
name = "client"
path = "src/client.rs"
[[bin]]
name = "front"
path = "src/front.rs"
[package.metadata.commands]
'run:server' = "cargo run --bin server"
'run:client' = "cargo run --bin client"
'run:front' = "cargo +nightly run --bin front --features bevy/dynamic"
'build:server' = "cargo build --bin server --release; ls target/release/server"
'build:client' = "cargo build --bin client --release; ls target/release/client"
'build:front' = "cargo +nightly build --bin front --release; ls target/release/front"