Cargo Features

naia-shared has no features set by default.

[dependencies]
naia-shared = { version = "0.23.0", features = ["wbindgen", "mquad", "bevy_support", "zstd_support", "advanced_handshake"] }
wbindgen = js-sys

Enables wbindgen of naia-socket-shared

mquad

Enables mquad of naia-socket-shared

bevy_support = bevy_ecs
zstd_support = zstd
advanced_handshake

this should be used when the underlying transport does not handle it for you (i.e. UDP)

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

js-sys wbindgen?
bevy_ecs bevy_support?
zstd zstd_support?

Enables zstd ^0.12.2