matchbox_socket 0.14.0

Painless WebRTC peer-to-peer full-mesh networking socket
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
name = "matchbox_socket"
version = "0.14.0"
authors = ["Johan Helsing <johanhelsing@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Painless WebRTC peer-to-peer full-mesh networking socket"
readme = "README.md"
keywords = [
    "gamedev",
    "webrtc",
    "peer-to-peer",
    "networking",
    "wasm",
]
categories = [
    "network-programming",
    "game-development",
    "wasm",
    "web-programming",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/johanhelsing/matchbox"
resolver = "2"

[features]
ggrs = [
    "dep:bincode",
    "dep:ggrs",
]

[lib]
name = "matchbox_socket"
path = "src/lib.rs"

[dependencies.async-trait]
version = "0.1"

[dependencies.bincode]
version = "2.0"
features = [
    "serde",
    "alloc",
]
optional = true
default-features = false

[dependencies.bytes]
version = "1.1"
default-features = false

[dependencies.cfg-if]
version = "1.0"

[dependencies.derive_more]
version = "2.0"
features = [
    "display",
    "from",
]

[dependencies.futures]
version = "0.3"
default-features = false

[dependencies.futures-channel]
version = "0.3"
features = ["sink"]
default-features = false

[dependencies.futures-timer]
version = "3.0"
default-features = false

[dependencies.futures-util]
version = "0.3"
features = [
    "sink",
    "async-await-macro",
    "channel",
]
default-features = false

[dependencies.ggrs]
version = "0.11"
optional = true
default-features = false

[dependencies.log]
version = "0.4"
default-features = false

[dependencies.matchbox_protocol]
version = "0.14"
default-features = false

[dependencies.once_cell]
version = "1.17"
features = [
    "race",
    "alloc",
]
default-features = false

[dependencies.serde]
version = "1.0"
features = ["derive"]
default-features = false

[dependencies.serde_json]
version = "1.0"
features = ["alloc"]
default-features = false

[dependencies.thiserror]
version = "2.0"

[dependencies.tokio-util]
version = "0.7"
features = [
    "io",
    "compat",
]

[dev-dependencies.futures-test]
version = "0.3"

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.async-compat]
version = "0.2"
default-features = false

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.async-tungstenite]
version = "0.32"
features = [
    "async-std-runtime",
    "async-tls",
]
default-features = false

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.webrtc]
version = "0.17"
default-features = false

[target.'cfg(target_arch = "wasm32")'.dependencies.futures-timer]
version = "3.0"
features = ["wasm-bindgen"]
default-features = false

[target.'cfg(target_arch = "wasm32")'.dependencies.ggrs]
version = "0.11"
features = ["wasm-bindgen"]
optional = true
default-features = false

[target.'cfg(target_arch = "wasm32")'.dependencies.js-sys]
version = "0.3"
default-features = false

[target.'cfg(target_arch = "wasm32")'.dependencies.serde-wasm-bindgen]
version = "0.6"

[target.'cfg(target_arch = "wasm32")'.dependencies.wasm-bindgen]
version = "0.2"
default-features = false

[target.'cfg(target_arch = "wasm32")'.dependencies.wasm-bindgen-futures]
version = "0.4"
default-features = false

[target.'cfg(target_arch = "wasm32")'.dependencies.web-sys]
version = "0.3.22"
features = [
    "MessageEvent",
    "RtcConfiguration",
    "RtcDataChannel",
    "RtcDataChannelInit",
    "RtcDataChannelType",
    "RtcIceCandidate",
    "RtcIceCandidateInit",
    "RtcIceConnectionState",
    "RtcIceGatheringState",
    "RtcPeerConnection",
    "RtcPeerConnectionIceEvent",
    "RtcSdpType",
    "RtcSessionDescription",
    "RtcSessionDescriptionInit",
]
default-features = false

[target.'cfg(target_arch = "wasm32")'.dependencies.ws_stream_wasm]
version = "0.7"
default-features = false