[package]
edition = "2021"
name = "naia-client-socket"
version = "0.25.0"
authors = ["connorcarpenter <connorcarpenter@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Abstraction to expose common API over a UDP socket on Linux, and a unreliable WebRTC datachannel on the browser"
homepage = "https://github.com/naia-lib/naia"
documentation = "https://docs.rs/naia-client-socket"
readme = false
keywords = [
"wasm",
"webrtc",
"udp",
"networking",
"gamedev",
]
categories = [
"network-programming",
"game-development",
"wasm",
"web-programming",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/naia-lib/naia"
[badges.maintenance]
status = "actively-developed"
[features]
mquad = [
"naia-socket-shared/mquad",
"miniquad",
]
wbindgen = [
"naia-socket-shared/wbindgen",
"wasm-bindgen",
"js-sys",
"web_sys",
"tinyjson",
]
[lib]
name = "naia_client_socket"
path = "src/lib.rs"
[dependencies.cfg-if]
version = "1.0"
[dependencies.js-sys]
version = "0.3.64"
optional = true
[dependencies.log]
version = "0.4"
[dependencies.miniquad]
version = "0.3"
features = ["log-impl"]
optional = true
[dependencies.naia-socket-shared]
version = "0.25"
[dependencies.tinyjson]
version = "2.3"
optional = true
[dependencies.wasm-bindgen]
version = "0.2"
optional = true
[dependencies.web_sys]
version = "0.3.64"
features = [
"RtcDataChannel",
"RtcDataChannelInit",
"RtcDataChannelType",
"MessageChannel",
"MessagePort",
"RtcIceCandidate",
"RtcIceCandidateInit",
"RtcConfiguration",
"RtcDataChannelState",
"RtcPeerConnection",
"RtcSdpType",
"RtcSessionDescription",
"RtcSessionDescriptionInit",
"XmlHttpRequest",
"XmlHttpRequestEventTarget",
"MessageEvent",
"ProgressEvent",
"ErrorEvent",
"Blob",
]
optional = true
package = "web-sys"
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.tokio]
version = "1.15"
features = [
"rt-multi-thread",
"sync",
]
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.webrtc-unreliable-client]
version = "0.3"
[target.'cfg(target_arch = "wasm32")'.dependencies.base64]
version = "0.13"
[target.'cfg(target_arch = "wasm32")'.dependencies.regex]
version = "1.5"