# 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 = "2021"
name = "renet2_netcode"
version = "0.14.0"
authors = ["koe <ukoe@protonmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Netcode integration for renet2"
readme = "README.md"
keywords = [
    "gamedev",
    "networking",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/UkoeHB/renet2"

[package.metadata.docs.rs]
features = [
    "default",
    "bevy",
    "serde",
    "memory_transport",
    "wt_server_transport",
    "ws_server_transport",
]
rustdoc-args = [
    "-Zunstable-options",
    "--cfg",
    "docsrs",
]

[features]
bevy = ["dep:bevy_ecs"]
default = ["native_transport"]
memory_transport = ["dep:crossbeam"]
native_transport = []
serde = [
    "dep:serde",
    "serde/serde_derive",
    "url/serde",
]
ws-native-tls = ["dep:tokio-native-tls"]
ws-rustls = ["dep:tokio-rustls"]
ws_client_transport = [
    "dep:anyhow",
    "dep:async-channel",
    "dep:wasm-bindgen",
    "dep:wasm-bindgen-futures",
    "dep:futures",
    "dep:js-sys",
    "dep:web-sys",
    "dep:serde_json",
    "dep:futures-util",
    "dep:futures-channel",
    "dep:urlencoding",
]
ws_server_transport = [
    "dep:anyhow",
    "dep:crossbeam",
    "dep:tungstenite",
    "dep:tokio",
    "dep:tokio-tungstenite",
    "dep:futures",
    "dep:http",
    "dep:urlencoding",
]
wt_client_transport = [
    "dep:async-channel",
    "dep:fragile",
    "dep:wasm-bindgen",
    "dep:wasm-bindgen-futures",
    "dep:futures",
    "dep:js-sys",
    "dep:send_wrapper",
    "dep:web-sys",
    "dep:urlencoding",
]
wt_server_transport = [
    "dep:crossbeam",
    "dep:anyhow",
    "dep:wtransport",
    "dep:rustls",
    "dep:rustls-pki-types",
    "dep:rcgen",
    "dep:quinn",
    "dep:http",
    "dep:tokio",
    "dep:futures",
    "dep:time",
    "dep:urlencoding",
]

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

[[example]]
name = "echo_native"
path = "examples/echo_native.rs"

[dependencies.anyhow]
version = "1.0"
optional = true

[dependencies.async-channel]
version = "2.2"
optional = true

[dependencies.bevy_ecs]
version = "0.18"
optional = true

[dependencies.bytes]
version = "1.1"

[dependencies.crossbeam]
version = "0.8"
optional = true

[dependencies.fragile]
version = "2.0"
optional = true

[dependencies.futures]
version = "0.3"
optional = true

[dependencies.futures-channel]
version = "0.3"
optional = true

[dependencies.futures-util]
version = "0.3"
features = ["std"]
optional = true
default-features = false

[dependencies.hmac-sha256]
version = "1.1"

[dependencies.http]
version = "1.0"
optional = true

[dependencies.js-sys]
version = "0.3"
optional = true

[dependencies.log]
version = "0.4"

[dependencies.octets]
version = "0.3"

[dependencies.quinn]
version = "0.11.6"
features = ["rustls-ring"]
optional = true
default-features = false

[dependencies.rcgen]
version = "0.13"
optional = true

[dependencies.renet2]
version = "0.14.0"

[dependencies.renetcode2]
version = "0.14.0"

[dependencies.rustls]
version = "0.23.5"
optional = true

[dependencies.rustls-pki-types]
version = "1.7"
optional = true

[dependencies.send_wrapper]
version = "0.6"
features = ["futures"]
optional = true

[dependencies.serde]
version = "1.0"
features = ["derive"]
optional = true

[dependencies.serde_json]
version = "1.0"
optional = true

[dependencies.time]
version = "0.3"
optional = true

[dependencies.tokio]
version = "1.32"
features = ["full"]
optional = true

[dependencies.tokio-native-tls]
version = "0.3.1"
optional = true

[dependencies.tokio-rustls]
version = "0.26.1"
optional = true

[dependencies.tokio-tungstenite]
version = "0.26.1"
optional = true

[dependencies.tungstenite]
version = "0.26.1"
optional = true

[dependencies.url]
version = "2.4"

[dependencies.urlencoding]
version = "2.1"
optional = true

[dependencies.wasm-bindgen]
version = "0.2"
optional = true

[dependencies.wasm-bindgen-futures]
version = "0.4"
optional = true

[dependencies.web-sys]
version = "0.3"
features = [
    "DomException",
    "ReadableStream",
    "WritableStream",
    "ReadableStreamDefaultReader",
    "WritableStreamDefaultWriter",
    "WebSocket",
    "MessageEvent",
    "CloseEvent",
    "Event",
    "ErrorEvent",
    "BinaryType",
    "Window",
    "Navigator",
]
optional = true

[dependencies.wtransport]
version = "0.6"
features = [
    "quinn",
    "self-signed",
]
optional = true
default-features = false

[dev-dependencies.env_logger]
version = "0.11"
