diff --git a/Cargo.toml b/Cargo.toml index 0418964a..32c2e1c6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -4,11 +4,11 @@ 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.31.0" +version = "0.32.0-beta" license = "MIT" authors = [ "Tony Aldridge ", "Cobrand "] -keywords = ["SDL", "windowing", "graphics", "api"] -categories = ["rendering","games","api-bindings","game-engines","multimedia"] +keywords = ["SDL", "windowing", "graphics", "api", "engine", "2d"] +categories = ["rendering","api-bindings","game-engines","multimedia"] [lib] @@ -27,7 +27,7 @@ default-features = false [dependencies.sdl2-sys] path = "sdl2-sys" -version = "0.31.0" +version = "0.32.0" [dependencies.c_vec] version = ">= 1.0, <= 1.3" diff --git a/README.md b/README.md index eef7b814..8a7ad58f 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ Bindings for SDL2 in Rust -### [Changelog for 0.31](changelog.md#v031) +### [Changelog for 0.32](changelog.md#v032) # Overview @@ -257,7 +257,7 @@ download through Crates.io: ```toml [dependencies] - sdl2 = "0.31" + sdl2 = "0.32" ``` Alternatively, pull it from GitHub to obtain the latest version from master @@ -278,7 +278,7 @@ adding this instead: ```toml [dependencies.sdl2] - version = "0.31" + version = "0.32" default-features = false features = ["ttf","image","gfx","mixer"] ``` diff --git a/changelog.md b/changelog.md index f96fe3c9..05f9315c 100644 --- a/changelog.md +++ b/changelog.md @@ -1,16 +1,47 @@ 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.31.1 +### v0.32 -[PR #737](https://github.com/Rust-SDL2/rust-sdl2/pull/737) -* Fix `ClipboardUtil::set_clipboard_text` to return an Ok when it went well. +[PR #790](https://github.com/Rust-SDL2/rust-sdl2/pull/790): Added missing `window_id` field to `Event::DropFile` -[PR #733](https://github.com/Rust-SDL2/rust-sdl2/pull/733) -* Add `video::border_size -> Result<(u16, u16, u16, u16), String>` equivalent of `SDL_GetWindowBorderSize()` +[PR #789](https://github.com/Rust-SDL2/rust-sdl2/pull/789): Audio Safety Fixes -[PR #732](https://github.com/Rust-SDL2/rust-sdl2/pull/732) -* Implemented `From<(u8, u8, u8)>` and `From<(u8, u8, u8, u8)>` for `pixels::Color`. +[PR #785](https://github.com/Rust-SDL2/rust-sdl2/pull/785): Vulkan Support + +[PR #782](https://github.com/Rust-SDL2/rust-sdl2/pull/782) +* Move ffi of features (mixer, ...) into `sys` +* Updated SDL2's default version to 2.0.8 + +[PR #780](https://github.com/Rust-SDL2/rust-sdl2/pull/780): Fixed a panic in `keyboard::Mod` + +[PR #775](https://github.com/Rust-SDL2/rust-sdl2/pull/775): Added `get_platform` + +[PR #774](https://github.com/Rust-SDL2/rust-sdl2/pull/774): `add_timer` is now must_use + +[PR #764](https://github.com/Rust-SDL2/rust-sdl2/pull/764): impl `Hash` for `Point` and `Rect` + +[PR #763](https://github.com/Rust-SDL2/rust-sdl2/pull/763): Allow `-sys` to build for `windows-gnu` target + +[PR #751](https://github.com/Rust-SDL2/rust-sdl2/pull/751): +**Breaking change** `gl_setswap_interval` now returns a `Result` instead of a `bool`. + +[PR #759](https://github.com/Rust-SDL2/rust-sdl2/pull/759): Expose Joystick power level + +[PR #751](https://github.com/Rust-SDL2/rust-sdl2/pull/751) +* Fix memory leak in `filesystem::base_path()` +* Fix memory leak on `ClipboardUtil::clipboard_text()` + +[PR #740](https://github.com/Rust-SDL2/rust-sdl2/pull/740): Implement Debug for Event + +[PR #737](https://github.com/Rust-SDL2/rust-sdl2/pull/737): +Fix `ClipboardUtil::set_clipboard_text` to return an Ok when it went well. + +[PR #733](https://github.com/Rust-SDL2/rust-sdl2/pull/733): +Add `video::border_size -> Result<(u16, u16, u16, u16), String>` equivalent of `SDL_GetWindowBorderSize()` + +[PR #732](https://github.com/Rust-SDL2/rust-sdl2/pull/732): +Implemented `From<(u8, u8, u8)>` and `From<(u8, u8, u8, u8)>` for `pixels::Color`. `Canvas.set_draw_color` can now be called with tuples or other types which implements `Into` [PR #279](https://github.com/Rust-SDL2/rust-sdl2/pull/729) diff --git a/sdl2-sys/Cargo.toml b/sdl2-sys/Cargo.toml index 9f218262..a7cb9fb0 100644 --- a/sdl2-sys/Cargo.toml +++ b/sdl2-sys/Cargo.toml @@ -2,11 +2,11 @@ name = "sdl2-sys" description = "Raw SDL2 bindings for Rust, used internally rust-sdl2" -repository = "https://github.com/AngryLawyer/rust-sdl2" -version = "0.31.0" +repository = "https://github.com/rust-sdl2/rust-sdl2" +version = "0.32.0" authors = ["Tony Aldridge "] keywords = ["SDL", "windowing", "graphics", "ffi"] -categories = ["rendering","games","external-ffi-bindings","game-engines","multimedia"] +categories = ["rendering","external-ffi-bindings","game-engines","multimedia"] license = "MIT" links = "SDL2" build = "build.rs"