Skip to content

Commit 76fabbc

Browse files
committed
Remove X11 and Wayland specific items from pregenerated bindings
other less impactful changes: - Remove unused aliases to integer types from bindings - Update bindings - Refactor sdl2-sys/build.rs - Add `update_pregenerated_bindings` now that pregenerated bindings are different. (include no X11 and Wayland specific items anymore)
1 parent 72142d3 commit 76fabbc

11 files changed

+654
-2197
lines changed

changelog.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ when upgrading from a version of rust-sdl2 to another.
33

44
### v0.39.0
55

6+
[PR #1516](https://github.com/Rust-SDL2/rust-sdl2/pull/1516) **BREAKING CHANGE** Remove X11 and Wayland specific items from pregenerated bindings. Use bindgen (`use-bindgen` feature flag) if those bindings are needed. Remove unused aliases to integer types and update bindings.
7+
68
[PR #1507](https://github.com/Rust-SDL2/rust-sdl2/pull/1507) **BREAKING CHANGE** Add binding for `SDL_ComposeCustomBlendMode`. This should only be a breaking change for users relying on internal details of `BlendMode` and `SDL_BlendMode`.
79

810
[PR #1510](https://github.com/Rust-SDL2/rust-sdl2/pull/1510) Fix clippy warnings.

sdl2-sys/Cargo.toml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ categories = ["rendering","external-ffi-bindings","game-engines","multimedia"]
1010
license = "MIT AND Zlib"
1111
links = "SDL2"
1212
build = "build.rs"
13-
edition = "2018"
13+
edition = "2021"
1414

1515
[lib]
1616
name = "sdl2_sys"
@@ -41,7 +41,6 @@ optional = true
4141

4242
[build-dependencies]
4343
version-compare = "0.1"
44-
cfg-if = "^1.0"
4544

4645
[features]
4746

@@ -59,4 +58,4 @@ ttf = []
5958
gfx = []
6059

6160
[lints.rust]
62-
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(mac_framework)','cfg(ios_framework)'] }
61+
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(mac_framework)','cfg(ios_framework)','cfg(update_pregenerated_bindings)'] }

0 commit comments

Comments
 (0)