-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
60 lines (54 loc) · 1.51 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
[package]
name = "tdn-bevy"
version = "0.1.2"
edition = "2021"
authors = ["Dev <[email protected]>"]
readme = "README.md"
description = "TDN plugin for Bevy game engine."
repository = "https://github.com/cympletech/tdn-bevy"
keywords = ["tdn", "game", "bevy"]
license = "MIT/Apache-2.0"
[features]
default = ["ws"]
ws = ["async-tungstenite", "futures-lite", "futures-util", "tungstenite"]
wasm = [
"tungstenite",
"crossbeam-channel",
"wasm-bindgen",
"wasm-bindgen-futures",
"serde-wasm-bindgen",
"js-sys",
"web-sys"
]
p2p = []
[dependencies]
async-channel = "2.1"
bevy = { version = "0.13", default-features = false, features = ["multi-threaded"] }
serde_json = "1.0"
tungstenite = { version = "0.21", default-features = false, optional = true }
# ws
async-tungstenite = { version = "0.24", features = ["async-std-runtime"], optional = true } # bevy use async-io
futures-lite = { version = "2.2", optional = true }
futures-util = { version = "0.3", default-features = false, optional = true }
# p2p
#tdn = { version = "0.10", optional = true }
# wasm
crossbeam-channel = { version = "0.5", optional = true }
wasm-bindgen = { version = "0.2", optional = true }
wasm-bindgen-futures = { version = "0.4", optional = true }
serde-wasm-bindgen = { version = "0.4", optional = true }
js-sys = { version = "0.3", optional = true }
[dependencies.web-sys]
version = "0.3"
optional = true
features = [
'Headers',
'Request',
'RequestInit',
'Response',
'Window',
"BinaryType",
"ErrorEvent",
"MessageEvent",
"WebSocket"
]