diff --git a/Cargo.toml b/Cargo.toml index 8253c94..79db3cc 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -21,12 +21,13 @@ opt-level = 1 opt-level = 1 [features] -default = ["scripting", "backend-sdl", "ogg-playback"] +default = ["scripting", "backend-sdl", "ogg-playback", "netplay"] ogg-playback = ["lewton"] backend-sdl = ["sdl2"] #backend-sokol = ["sokol"] backend-glutin = ["winit", "glutin"] scripting = ["lua-ffi"] +netplay = [] editor = [] [dependencies] diff --git a/src/lib.rs b/src/lib.rs index 9d73ea8..6bb9495 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -47,6 +47,8 @@ mod live_debugger; mod macros; mod map; mod menu; +#[cfg(feature = "netplay")] +mod netplay; mod npc; mod physics; mod player;