# 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" rust-version = "1.76" name = "lightyear" version = "0.17.1" authors = ["Charles Bournhonesque "] build = false exclude = ["/tests"] autobins = false autoexamples = false autotests = false autobenches = false description = "Server-client networking library for the Bevy game engine" readme = "README.md" keywords = [ "bevy", "multiplayer", "networking", "netcode", "gamedev", ] categories = [ "game-development", "network-programming", ] license = "MIT OR Apache-2.0" repository = "https://github.com/cBournhonesque/lightyear" [package.metadata.docs.rs] features = [ "metrics", "webtransport", "leafwing", "websocket", "steam", "zstd", ] rustdoc-args = [ "--cfg", "docsrs", ] [lib] name = "lightyear" path = "src/lib.rs" [dependencies.async-channel] version = "2.2.0" [dependencies.async-compat] version = "0.2.3" [dependencies.avian2d] version = "0.1.1" optional = true default-features = false [dependencies.avian3d] version = "0.1.1" optional = true default-features = false [dependencies.bevy] version = "0.14" features = [ "multi_threaded", "bevy_state", "serialize", ] default-features = false [dependencies.bincode] version = "2.0.0-rc.3" features = ["serde"] [dependencies.byteorder] version = "1.5.0" [dependencies.bytes] version = "1.5" features = ["serde"] [dependencies.cfg-if] version = "1.0" [dependencies.chacha20poly1305] version = "0.10" features = ["std"] [dependencies.chrono] version = "=0.4.34" [dependencies.crossbeam-channel] version = "0.5.8" features = [] [dependencies.enum_dispatch] version = "0.3" [dependencies.futures] version = "0.3.30" [dependencies.futures-util] version = "0.3.30" optional = true [dependencies.governor] version = "0.6.0" [dependencies.hashbrown] version = "0.14" [dependencies.leafwing-input-manager] version = "0.15" optional = true [dependencies.lightyear_macros] version = "0.17.1" [dependencies.lz4_flex] version = "0.11" features = ["std"] optional = true default-features = false [dependencies.metrics] version = "0.23" optional = true [dependencies.metrics-exporter-prometheus] version = "0.15.1" features = ["http-listener"] optional = true default-features = false [dependencies.metrics-tracing-context] version = "0.15" optional = true [dependencies.metrics-util] version = "0.15" optional = true [dependencies.mock_instant] version = "0.4.0" optional = true [dependencies.nonzero_ext] version = "0.3.0" [dependencies.parking_lot] version = "0.12.1" [dependencies.paste] version = "1.0" [dependencies.rand] version = "0.8" [dependencies.ringbuffer] version = "0.15" [dependencies.seahash] version = "4.1.0" [dependencies.self_cell] version = "1.0" [dependencies.serde] version = "1" features = ["derive"] [dependencies.thiserror] version = "1.0.50" [dependencies.tokio] version = "1.36" features = [ "sync", "macros", ] default-features = false [dependencies.tracing] version = "0.1.40" [dependencies.tracing-log] version = "0.2.0" [dependencies.tracing-subscriber] version = "0.3.17" features = [ "registry", "env-filter", ] [dev-dependencies.approx] version = "0.5.1" [dev-dependencies.bitvec] version = "1.0" [dev-dependencies.mock_instant] version = "0.5" [dev-dependencies.tracing-subscriber] version = "0.3.17" [dev-dependencies.wasm-bindgen-test] version = "0.3.39" [features] avian2d = ["dep:avian2d"] avian3d = [ "dep:avian3d", "avian3d/3d", ] big_messages = [] leafwing = ["dep:leafwing-input-manager"] lz4 = ["dep:lz4_flex"] metrics = [ "dep:metrics", "metrics-util", "metrics-tracing-context", "metrics-exporter-prometheus", ] mock_time = ["dep:mock_instant"] steam = ["dep:steamworks"] trace = [] websocket = [ "dep:tokio-tungstenite", "dep:futures-util", "dep:web-sys", "dep:wasm-bindgen", "dep:wasm-bindgen-futures", ] webtransport = [ "dep:wtransport", "dep:xwt-core", "dep:xwt-web-sys", "dep:web-sys", "dep:ring", "dep:wasm-bindgen-futures", ] zstd = ["dep:zstd"] [target.'cfg(not(target_family = "wasm"))'.dependencies.steamworks] version = "0.11" optional = true [target.'cfg(not(target_family = "wasm"))'.dependencies.tokio-tungstenite] version = "0.23.0" features = [ "connect", "handshake", ] optional = true [target.'cfg(not(target_family = "wasm"))'.dependencies.wtransport] version = "=0.1.14" features = [ "quinn", "self-signed", "dangerous-configuration", ] optional = true [target.'cfg(not(target_family = "wasm"))'.dependencies.zstd] version = "0.13.1" optional = true [target.'cfg(target_family = "wasm")'.dependencies.bevy_web_keepalive] version = "0.3" [target.'cfg(target_family = "wasm")'.dependencies.console_error_panic_hook] version = "0.1.7" [target.'cfg(target_family = "wasm")'.dependencies.futures-lite] version = "2.1.0" optional = true [target.'cfg(target_family = "wasm")'.dependencies.getrandom] version = "0.2.11" features = ["js"] [target.'cfg(target_family = "wasm")'.dependencies.ring] version = "0.17.8" optional = true default-features = false [target.'cfg(target_family = "wasm")'.dependencies.wasm-bindgen] version = "0.2.90" optional = true [target.'cfg(target_family = "wasm")'.dependencies.wasm-bindgen-futures] version = "0.4.42" optional = true [target.'cfg(target_family = "wasm")'.dependencies.web-sys] version = "0.3" features = [ "Document", "WebTransport", "WebTransportHash", "WebTransportOptions", "WebTransportBidirectionalStream", "WebTransportSendStream", "WebTransportReceiveStream", "ReadableStreamDefaultReader", "WritableStreamDefaultWriter", "WebTransportDatagramDuplexStream", "WebSocket", "CloseEvent", "ErrorEvent", "MessageEvent", "BinaryType", ] optional = true [target.'cfg(target_family = "wasm")'.dependencies.xwt-core] version = "0.5" optional = true [target.'cfg(target_family = "wasm")'.dependencies.xwt-web-sys] version = "0.12" optional = true [target.'cfg(target_family = "wasm")'.dependencies.zstd] version = "0.13.1" features = ["wasm"] optional = true