Cargo Features

[dependencies]
renet2_netcode = { version = "0.1.0", default-features = false, features = ["bevy", "serde", "native_transport", "memory_transport", "wt_server_transport", "wt_client_transport", "ws_server_transport", "ws-rustls", "ws-native-tls", "ws_client_transport"] }
default = native_transport

Default features

bevy

Enable bevy integration

Enables bevy_ecs

serde

Enable serialization

Enables serde_derive of serde, serde of url

native_transport default

Enable native UdpSocket transports

memory_transport

Enable in-memory transports

Enables crossbeam

In-memory transport socket

wt_server_transport

Enable the WebTransport server transport

Enables rustls

locked to 0.23.5 until quinn updates

and anyhow and crossbeam

anyhow:

WebTransport server

and futures, http, quinn, and rcgen

futures:

WebTransport shared

and rustls-pki-types, time, tokio, urlencoding, and wtransport

rustls-pki-types:

locked to 1.7 until quinn updates

wt_client_transport

Enable the WebTransport client transport (WASM only)

Enables async-channel, fragile, futures, getrandom, js-sys, send_wrapper, urlencoding, wasm-bindgen, wasm-bindgen-futures, and web-sys

async-channel:

WebTransport client

ws_server_transport

Enable the WebSocket server transport

Enables http, tokio-tungstenite, tungstenite, and urlencoding

tungstenite:

WebSocket server

ws-rustls

Enable rustls acceptors for WebSocket server transports.

Enables tokio-rustls

ws-native-tls

Enable native TLS acceptors for WebSocket server transports.

Enables tokio-native-tls

ws_client_transport

Enable the WebSocket client transport (WASM only)

Enables anyhow, async-channel, futures, futures-channel, futures-util, js-sys, serde_json, urlencoding, wasm-bindgen, wasm-bindgen-futures, and web-sys

futures-util:

WebSocket client