-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathCargo.toml
83 lines (73 loc) · 2.09 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
[package]
name = "bevy_slinet"
version = "0.13.0"
authors = [
"Sliman4 <[email protected]>",
"aggyomfg <[email protected]>"
]
edition = "2021"
license = "Apache-2.0 OR MIT"
readme = "README.md"
repository = "https://github.com/aggyomfg/bevy_slinet"
homepage = "https://github.com/aggyomfg/bevy_slinet#readme"
documentation = "https://docs.rs/bevy_slinet"
description = "A simple networking plugin for bevy."
categories = ["game-development", "network-programming"]
keywords = ["gamedev", "networking", "bevy"]
[package.metadata.docs.rs]
features = [
"serializer_bincode",
"protocol_tcp",
"protocol_udp",
"client",
"server",
]
[dependencies]
bevy = { version = "0.15", default-features = false }
serde = { version = "1", features = ["derive"] }
byteorder = "1"
bincode = { version = "1", optional = true }
dashmap = { version = "6", optional = true }
log = "0.4"
tokio = { version = "1", features = [
"io-util",
"rt-multi-thread",
"sync",
"macros",
] }
async-trait = "0.1"
futures = { version = "0.3" }
[features]
serializer_bincode = ["bincode"]
protocol_tcp = ["tokio/net"]
protocol_udp = ["tokio/net", "dashmap"]
client = []
server = []
[target.'cfg(target_family = "wasm")'.dependencies]
wasm-bindgen-futures = "0.4.29"
[[example]]
name = "hello_world_tcp"
path = "examples/hello_world_tcp.rs"
required-features = ["client", "server", "protocol_tcp", "serializer_bincode"]
[[example]]
name = "hello_world_tcp_encrypted"
path = "examples/hello_world_tcp_encrypted.rs"
required-features = ["client", "server", "protocol_tcp", "serializer_bincode"]
[[example]]
name = "hello_world_udp"
path = "examples/hello_world_udp.rs"
required-features = ["client", "server", "protocol_udp", "serializer_bincode"]
[[example]]
name = "multiple_connections"
path = "examples/multiple_connections.rs"
required-features = ["client", "server", "protocol_udp", "serializer_bincode"]
[[example]]
name = "lobby_and_battle_servers"
path = "examples/lobby_and_battle_servers.rs"
required-features = [
"client",
"server",
"protocol_udp",
"protocol_tcp",
"serializer_bincode",
]