From 0b61ef417f1d8fddc4caab0f438cae81a4c87dd4 Mon Sep 17 00:00:00 2001 From: Mikkel Troels Kongsted Date: Thu, 23 Apr 2026 15:42:07 +0200 Subject: [PATCH] use-pkg-config feature for sdl3 --- game/Cargo.lock | 9 +++++++++ game/Cargo.toml | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/game/Cargo.lock b/game/Cargo.lock index 566bac2..50a393e 100644 --- a/game/Cargo.lock +++ b/game/Cargo.lock @@ -31,6 +31,12 @@ version = "0.2.183" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b5b646652bf6661599e1da8901b3b9522896f01e736bad5f723fe7a3a27f899d" +[[package]] +name = "pkg-config" +version = "0.3.32" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7edddbd0b52d732b21ad9a5fab5c704c14cd949e5e9a1ec5929a24fded1b904c" + [[package]] name = "ppv-lite86" version = "0.2.21" @@ -105,6 +111,9 @@ name = "sdl3-sys" version = "0.6.1+SDL-3.4.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1d73fc820b0b6b9bd0557de7b799ec9da1ca4f35fcd1cb42f7ceb85e640d1477" +dependencies = [ + "pkg-config", +] [[package]] name = "sdl3-ttf-sys" diff --git a/game/Cargo.toml b/game/Cargo.toml index 1c4a6b3..6dd648b 100644 --- a/game/Cargo.toml +++ b/game/Cargo.toml @@ -4,5 +4,5 @@ version = "0.1.0" edition = "2021" [dependencies] -sdl3 = { version = "0.18.0", features = ["ttf"] } +sdl3 = { version = "0.18.0", features = ["ttf", "use-pkg-config"] } rand = "0.8"