-
Notifications
You must be signed in to change notification settings - Fork 108
Expand file tree
/
Copy pathCargo.toml
More file actions
90 lines (84 loc) · 2.95 KB
/
Cargo.toml
File metadata and controls
90 lines (84 loc) · 2.95 KB
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
[package]
name = "matchbox_socket"
version = "0.12.0"
authors = ["Johan Helsing <johanhelsing@gmail.com>"]
description = "Painless WebRTC peer-to-peer full-mesh networking socket"
edition = "2024"
license = "MIT OR Apache-2.0"
keywords = ["gamedev", "webrtc", "peer-to-peer", "networking", "wasm"]
categories = [
"network-programming",
"game-development",
"wasm",
"web-programming",
]
repository = "https://github.com/johanhelsing/matchbox"
[features]
ggrs = ["dep:bincode", "dep:ggrs"]
[dependencies]
matchbox_protocol = { version = "0.12", path = "../matchbox_protocol", default-features = false }
futures-channel = { version = "0.3", default-features = false, features = [
"sink",
] }
futures = { version = "0.3", default-features = false }
futures-timer = { version = "3.0", default-features = false }
futures-util = { version = "0.3", default-features = false, features = [
"sink",
"async-await-macro",
"channel",
] }
serde = { version = "1.0", default-features = false, features = ["derive"] }
serde_json = { version = "1.0", default-features = false, features = ["alloc"] }
log = { version = "0.4", default-features = false }
thiserror = "2.0"
cfg-if = "1.0"
async-trait = "0.1"
once_cell = { version = "1.17", default-features = false, features = [
"race",
"alloc",
] }
derive_more = { version = "2.0", features = ["display", "from"] }
tokio-util = { version = "0.7", features = ["io", "compat"] }
ggrs = { version = "0.11", default-features = false, optional = true }
bincode = { version = "2.0", default-features = false, features = [
"serde",
"alloc",
], optional = true }
bytes = { version = "1.1", default-features = false }
[target.'cfg(all(target_family = "wasm", target_os = "unknown"))'.dependencies]
ggrs = { version = "0.11", default-features = false, optional = true, features = [
"wasm-bindgen",
] }
ws_stream_wasm = { version = "0.7", default-features = false }
wasm-bindgen-futures = { version = "0.4", default-features = false }
wasm-bindgen = { version = "0.2", default-features = false }
futures-timer = { version = "3.0", default-features = false, features = [
"wasm-bindgen",
] }
js-sys = { version = "0.3", default-features = false }
web-sys = { version = "0.3.22", default-features = false, features = [
"MessageEvent",
"RtcConfiguration",
"RtcDataChannel",
"RtcDataChannelInit",
"RtcDataChannelType",
"RtcIceCandidate",
"RtcIceCandidateInit",
"RtcIceConnectionState",
"RtcIceGatheringState",
"RtcPeerConnection",
"RtcPeerConnectionIceEvent",
"RtcSdpType",
"RtcSessionDescription",
"RtcSessionDescriptionInit",
] }
serde-wasm-bindgen = "0.6"
[target.'cfg(any(not(target_family = "wasm"), all(target_os = "wasi", target_env = "p2")))'.dependencies]
async-tungstenite = { version = "0.29", default-features = false, features = [
"async-std-runtime",
"async-tls",
] }
webrtc = { version = "0.13", default-features = false }
async-compat = { version = "0.2", default-features = false }
[dev-dependencies]
futures-test = "0.3"