# 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_setup"
version = "0.12.1"
authors = ["koe <ukoe@protonmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Setup utilities for renet2"
readme = "README.md"
keywords = [
    "multiplayer",
    "netcode",
    "replication",
    "server-authoritative",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/UkoeHB/renet2"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "-Zunstable-options",
    "--cfg",
    "docsrs",
]

[features]
bevy = [
    "dep:bevy_ecs",
    "renet2/bevy",
    "renet2_netcode/bevy",
]
client = [
    "netcode",
    "dep:wasm-timer",
]
client_full = [
    "memory_transport",
    "native_transport",
    "wt_client_transport",
    "ws_client_transport",
]
default = [
    "client",
    "server",
]
memory_transport = [
    "netcode",
    "renet2_netcode/memory_transport",
]
native_transport = [
    "netcode",
    "renet2_netcode/native_transport",
]
netcode = ["dep:renet2_netcode"]
server = [
    "netcode",
    "dep:wasm-timer",
]
server_full = [
    "memory_transport",
    "native_transport",
    "wt_server_transport",
    "ws_server_transport",
]
ws-native-tls = [
    "renet2_netcode/ws-native-tls",
    "dep:tokio-native-tls",
]
ws-rustls = [
    "renet2_netcode/ws-rustls",
    "dep:rustls",
    "dep:rustls-pki-types",
    "rustls/ring",
]
ws_client_transport = [
    "netcode",
    "renet2_netcode/ws_client_transport",
]
ws_server_transport = [
    "netcode",
    "renet2_netcode/ws_server_transport",
    "dep:enfync",
    "enfync/builtin",
]
wt_client_transport = [
    "netcode",
    "renet2_netcode/wt_client_transport",
]
wt_server_transport = [
    "netcode",
    "renet2_netcode/wt_server_transport",
    "dep:enfync",
    "enfync/builtin",
]

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

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

[dependencies.enfync]
version = "0.1"
optional = true
default-features = false

[dependencies.log]
version = "0.4"

[dependencies.renet2]
version = "0.12.1"
default-features = false

[dependencies.renet2_netcode]
version = "0.12.1"
features = ["serde"]
optional = true
default-features = false

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

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

[dependencies.serde]
version = "1.0"

[dependencies.serde_with]
version = "1.0"

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

[dependencies.url]
version = "2.4"

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

[target.'cfg(target_family = "wasm")'.dependencies.getrandom]
version = "0.2"
features = ["js"]
