lightyear_netcode 0.27.0

Connection handling for the lightyear networking library
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"
rust-version = "1.88"
name = "lightyear_netcode"
version = "0.27.0"
authors = ["Charles Bournhonesque <charlesbour@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Connection handling for the lightyear networking library"
readme = false
license = "MIT OR Apache-2.0"
repository = "https://github.com/cBournhonesque/lightyear"

[package.metadata.docs.rs]
all-features = true

[features]
client = [
    "lightyear_connection/client",
    "lightyear_transport",
    "aeronet_io",
    "bevy_ecs/std",
    "bevy_reflect",
    "bevy_time",
]
default = [
    "std",
    "client",
    "server",
]
server = [
    "lightyear_connection/server",
    "lightyear_transport",
    "rand",
    "bevy_ecs/std",
    "bevy_time",
]
std = [
    "no_std_io2/std",
    "chacha20poly1305/std",
    "lightyear_transport?/std",
]
trace = []

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

[dependencies.aeronet_io]
version = "0.20"
optional = true

[dependencies.bevy_app]
version = "0.18"
default-features = false

[dependencies.bevy_ecs]
version = "0.18"
default-features = false

[dependencies.bevy_reflect]
version = "0.18"
optional = true
default-features = false

[dependencies.bevy_time]
version = "0.18"
optional = true
default-features = false

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

[dependencies.chacha20poly1305]
version = "0.10"

[dependencies.lightyear_connection]
version = "0.27.0"
default-features = false

[dependencies.lightyear_core]
version = "0.27.0"
default-features = false

[dependencies.lightyear_link]
version = "0.27.0"
default-features = false

[dependencies.lightyear_serde]
version = "0.27.0"
default-features = false

[dependencies.lightyear_transport]
version = "0.27.0"
optional = true
default-features = false

[dependencies.lightyear_utils]
version = "0.27.0"
default-features = false

[dependencies.no_std_io2]
version = "0.9"
features = ["alloc"]

[dependencies.rand]
version = "0.10"
optional = true

[dependencies.thiserror]
version = "2.0.3"

[dependencies.tracing]
version = "0.1.40"

[dev-dependencies.lightyear_serde]
version = "0.27.0"
features = ["std"]
default-features = false

[target.'cfg(target_family = "wasm")'.dependencies.web-time]
version = "1.1.0"

[lints.clippy]
alloc_instead_of_core = "warn"
len_without_is_empty = "allow"
missing_transmute_annotations = "allow"
module_inception = "allow"
std_instead_of_alloc = "warn"
std_instead_of_core = "warn"
too_many_arguments = "allow"
type_complexity = "allow"

[lints.rust]
dead_code = "allow"
unused_variables = "allow"