use-pkg-config feature for sdl3

This commit is contained in:
Mikkel Troels Kongsted 2026-04-23 15:42:07 +02:00
parent d1eaf6604e
commit 0b61ef417f
2 changed files with 10 additions and 1 deletions

9
game/Cargo.lock generated
View File

@ -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"

View File

@ -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"