From 3e4c2dbea57ad7926c9fc110778dc009fdc558a8 Mon Sep 17 00:00:00 2001 From: Antoni Spaanderman <49868160+antonilol@users.noreply.github.com> Date: Mon, 23 Jun 2025 12:08:27 +0200 Subject: [PATCH 1/2] fix windows build by adding a library (#1488) --- sdl2-sys/build.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/sdl2-sys/build.rs b/sdl2-sys/build.rs index 067d89f05a..c83366780d 100644 --- a/sdl2-sys/build.rs +++ b/sdl2-sys/build.rs @@ -286,6 +286,7 @@ fn link_sdl2(target_os: &str) { println!("cargo:rustc-link-lib=dinput8"); println!("cargo:rustc-link-lib=dxguid"); println!("cargo:rustc-link-lib=setupapi"); + println!("cargo:rustc-link-lib=advapi32"); } else if target_os == "darwin" { println!("cargo:rustc-link-lib=framework=Cocoa"); println!("cargo:rustc-link-lib=framework=IOKit"); From 81a2b2b749ffb148c44c23463dbd281ae4ee8555 Mon Sep 17 00:00:00 2001 From: Antoni Spaanderman <56turtle56@gmail.com> Date: Tue, 17 Mar 2026 09:39:39 +0100 Subject: [PATCH 2/2] v0.37.1: backport #1488 --- Cargo.toml | 2 +- README.md | 2 +- changelog.md | 4 ++++ 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index d431be61c5..c6c98941d3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,7 +3,7 @@ name = "sdl2" description = "SDL2 bindings for Rust" repository = "https://github.com/Rust-SDL2/rust-sdl2" documentation = "https://rust-sdl2.github.io/rust-sdl2/sdl2/" -version = "0.37.0" +version = "0.37.1" license = "MIT" authors = [ "Tony Aldridge ", "Cobrand "] keywords = ["SDL", "windowing", "graphics", "api", "engine"] diff --git a/README.md b/README.md index 26fec10068..d08303f365 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ Bindings for SDL2 in Rust -### [Changelog for 0.37.0](changelog.md#v0370) +### [Changelog for 0.37.1](changelog.md#v0371) # Overview diff --git a/changelog.md b/changelog.md index 2610725fd2..c9350c6c8a 100644 --- a/changelog.md +++ b/changelog.md @@ -1,6 +1,10 @@ In this file will be listed the changes, especially the breaking ones that one should be careful of when upgrading from a version of rust-sdl2 to another. +### v0.37.1 + +[PR #1488](https://github.com/Rust-SDL2/rust-sdl2/pull/1488) Fix windows build by adding a library + ### v0.37.0 [PR #1406](https://github.com/Rust-SDL2/rust-sdl2/pull/1406) Update bindings to SDL 2.0.26, add Event.is\_touch() for mouse events, upgrade wgpu to 0.20 in examples