From 81f6ca5f0f144b413b1ef03d8b18999ea45a637b Mon Sep 17 00:00:00 2001 From: Freya Murphy Date: Tue, 11 Nov 2025 12:02:37 -0500 Subject: add x11 feature --- Cargo.toml | 1 - game/Cargo.toml | 3 ++- graphics/Cargo.toml | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 59d7251..393b189 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -36,7 +36,6 @@ git = "https://github.com/raylib-rs/raylib-rs" version = "5.7.0" default-features = false features = [ - "GLFW_BUILD_X11", "SUPPORT_MODULE_RSHAPES", "SUPPORT_MODULE_RTEXTURES", "SUPPORT_MODULE_RAUDIO", diff --git a/game/Cargo.toml b/game/Cargo.toml index 009b8b4..5cdf4af 100644 --- a/game/Cargo.toml +++ b/game/Cargo.toml @@ -16,7 +16,8 @@ graphics.workspace = true workspace = true [features] -default = [] +default = ["x11"] +x11 = ["graphics/x11"] wayland = ["graphics/wayland"] sdl = ["graphics/sdl"] static = ["graphics/static"] diff --git a/graphics/Cargo.toml b/graphics/Cargo.toml index 0fe31d0..0240745 100644 --- a/graphics/Cargo.toml +++ b/graphics/Cargo.toml @@ -16,6 +16,7 @@ workspace = true [features] default = [] +x11 = ["raylib/GLFW_BUILD_X11"] wayland = ["raylib/wayland", "raylib/GLFW_BUILD_WAYLAND"] sdl = ["raylib/sdl", "raylib/SUPPORT_MODULE_RTEXT"] static = [] -- cgit v1.2.3-freya