From 0ed3156941a619639e094ab0cf070d9845720ef5 Mon Sep 17 00:00:00 2001 From: Daniel Collin Date: Tue, 19 Apr 2022 19:38:52 +0200 Subject: [PATCH] Update to 0.23 --- CHANGELOG.md | 6 ++++++ Cargo.toml | 52 ++++++++++++++++++++++++++++++++-------------------- README.md | 2 +- 3 files changed, 39 insertions(+), 21 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9771f1f..47ddc58 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,12 @@ This project follows semantic versioning. +### v0.23 (2022-04-19) + +- [fixed] wayland: Fix key character callback & Reduce wayland dependencies (Thanks vmedea!) +- [fixed] Use coercion on types failing compilation on 64 bit raspbian bullseye (Thanks wtfuzz!) +- [added] WASM support. Thanks dc740 and tversteeg! See https://github.com/dc740/minifb-async-examples for example. + ### v0.22 (2022-03-27) - [fixed] Updated docs to make it a bit more clear that only one of `update_with_buffer` or `update` should be used for updating a window. diff --git a/Cargo.toml b/Cargo.toml index 7f1e5ba..8d71d32 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "minifb" -version = "0.22.0" +version = "0.24.0" license = "MIT OR Apache-2.0" authors = ["Daniel Collin "] description = "Cross-platform window setup with optional bitmap rendering" @@ -35,20 +35,15 @@ default = ["wayland", "x11", "dlopen"] dlopen = ["wayland-client/dlopen"] x11 = ["x11-dl", "libc"] wayland = [ - "dlib", - "lazy_static", - "libc", - "tempfile", - "wayland-client", - "wayland-cursor", - "wayland-protocols", -] -web = [ - "wasm-bindgen", - "web-sys", - "instant/wasm-bindgen", - "instant/inaccurate" + "dlib", + "lazy_static", + "libc", + "tempfile", + "wayland-client", + "wayland-cursor", + "wayland-protocols", ] +web = ["wasm-bindgen", "web-sys", "instant/wasm-bindgen", "instant/inaccurate"] [target.'cfg(not(any(target_os = "macos", target_os = "redox", windows)))'.dependencies] wayland-client = { version = "0.29", optional = true } @@ -64,11 +59,9 @@ dlib = { version = "0.5", optional = true } lazy_static = { version = "1.0", optional = true } - [target.x86_64-unknown-redox.dependencies] orbclient = "0.3.20" - # The `wasm-bindgen` crate provides the bare minimum functionality needed # to interact with JavaScript. [target.'cfg(target_arch = "wasm32")'.dependencies.wasm-bindgen] @@ -82,15 +75,34 @@ features = ["serde-serialize"] version = "0.3.56" optional = true features = [ -"console", "Window", "Document", "Navigator", "Element", "Node", "ImageData", "HtmlCanvasElement", "HtmlImageElement", "CanvasRenderingContext2d", -"Headers", "Request", "RequestInit", "RequestMode", "Response", "Blob", "Url", "Gamepad", "GamepadButton", "GamepadEvent", 'MouseEvent', 'KeyboardEvent', + "console", + "Window", + "Document", + "Navigator", + "Element", + "Node", + "ImageData", + "HtmlCanvasElement", + "HtmlImageElement", + "CanvasRenderingContext2d", + "Headers", + "Request", + "RequestInit", + "RequestMode", + "Response", + "Blob", + "Url", + "Gamepad", + "GamepadButton", + "GamepadEvent", + 'MouseEvent', + 'KeyboardEvent', ] [target.'cfg(target_arch = "wasm32")'.dependencies] -instant = { version = "0.1.12", features = [ "wasm-bindgen", "inaccurate" ] } +instant = { version = "0.1.12", features = ["wasm-bindgen", "inaccurate"] } js-sys = "0.3.56" wasm-bindgen-futures = "0.4.29" serde = { version = "1.0.136", features = ["derive"] } serde_derive = "1.0.123" futures = "0.3.12" - diff --git a/README.md b/README.md index 58a8b17..44d0379 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ Usage ```toml # Cargo.toml [dependencies] -minifb = "0.22" +minifb = "0.23" ``` Example