Skip to content

Commit c1510f7

Browse files
committed
add changelog entry and remove unused stuff
extern crate statements are not needed anymore, cfg_if was unused, remove unused import
1 parent ce062f4 commit c1510f7

File tree

3 files changed

+2
-11
lines changed

3 files changed

+2
-11
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** Add pregenerated bindings for Windows and Mac OS, clean bindings (remove unused aliases to integer types), 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: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ optional = true
4141

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

4645
[features]
4746

sdl2-sys/build.rs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,12 @@
11
#![allow(unused_imports, dead_code, unused_variables)]
22

3-
#[cfg(feature = "bindgen")]
4-
extern crate bindgen;
5-
#[macro_use]
6-
extern crate cfg_if;
7-
#[cfg(feature = "bundled")]
8-
extern crate cmake;
9-
#[cfg(feature = "pkg-config")]
10-
extern crate pkg_config;
11-
123
#[cfg(all(
134
update_pregenerated_bindings,
145
not(feature = "bindgen"),
156
not(feature = "bundled"),
167
))]
178
compile_error!("Enable 'bindgen' and 'bundled' features when using update_pregenerated_bindings");
189

19-
use std::io::ErrorKind;
2010
use std::path::{Path, PathBuf};
2111
use std::process::Command;
2212
use std::{env, fs, io};

0 commit comments

Comments
 (0)