Update to 0.23

This commit is contained in:
Daniel Collin 2022-04-19 19:38:52 +02:00
parent e96380375c
commit 0ed3156941
3 changed files with 39 additions and 21 deletions

View file

@ -2,6 +2,12 @@
This project follows semantic versioning. 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) ### 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. - [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.

View file

@ -1,6 +1,6 @@
[package] [package]
name = "minifb" name = "minifb"
version = "0.22.0" version = "0.24.0"
license = "MIT OR Apache-2.0" license = "MIT OR Apache-2.0"
authors = ["Daniel Collin <daniel@collin.com>"] authors = ["Daniel Collin <daniel@collin.com>"]
description = "Cross-platform window setup with optional bitmap rendering" description = "Cross-platform window setup with optional bitmap rendering"
@ -35,20 +35,15 @@ default = ["wayland", "x11", "dlopen"]
dlopen = ["wayland-client/dlopen"] dlopen = ["wayland-client/dlopen"]
x11 = ["x11-dl", "libc"] x11 = ["x11-dl", "libc"]
wayland = [ wayland = [
"dlib", "dlib",
"lazy_static", "lazy_static",
"libc", "libc",
"tempfile", "tempfile",
"wayland-client", "wayland-client",
"wayland-cursor", "wayland-cursor",
"wayland-protocols", "wayland-protocols",
]
web = [
"wasm-bindgen",
"web-sys",
"instant/wasm-bindgen",
"instant/inaccurate"
] ]
web = ["wasm-bindgen", "web-sys", "instant/wasm-bindgen", "instant/inaccurate"]
[target.'cfg(not(any(target_os = "macos", target_os = "redox", windows)))'.dependencies] [target.'cfg(not(any(target_os = "macos", target_os = "redox", windows)))'.dependencies]
wayland-client = { version = "0.29", optional = true } wayland-client = { version = "0.29", optional = true }
@ -64,11 +59,9 @@ dlib = { version = "0.5", optional = true }
lazy_static = { version = "1.0", optional = true } lazy_static = { version = "1.0", optional = true }
[target.x86_64-unknown-redox.dependencies] [target.x86_64-unknown-redox.dependencies]
orbclient = "0.3.20" orbclient = "0.3.20"
# The `wasm-bindgen` crate provides the bare minimum functionality needed # The `wasm-bindgen` crate provides the bare minimum functionality needed
# to interact with JavaScript. # to interact with JavaScript.
[target.'cfg(target_arch = "wasm32")'.dependencies.wasm-bindgen] [target.'cfg(target_arch = "wasm32")'.dependencies.wasm-bindgen]
@ -82,15 +75,34 @@ features = ["serde-serialize"]
version = "0.3.56" version = "0.3.56"
optional = true optional = true
features = [ features = [
"console", "Window", "Document", "Navigator", "Element", "Node", "ImageData", "HtmlCanvasElement", "HtmlImageElement", "CanvasRenderingContext2d", "console",
"Headers", "Request", "RequestInit", "RequestMode", "Response", "Blob", "Url", "Gamepad", "GamepadButton", "GamepadEvent", 'MouseEvent', 'KeyboardEvent', "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] [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" js-sys = "0.3.56"
wasm-bindgen-futures = "0.4.29" wasm-bindgen-futures = "0.4.29"
serde = { version = "1.0.136", features = ["derive"] } serde = { version = "1.0.136", features = ["derive"] }
serde_derive = "1.0.123" serde_derive = "1.0.123"
futures = "0.3.12" futures = "0.3.12"

View file

@ -13,7 +13,7 @@ Usage
```toml ```toml
# Cargo.toml # Cargo.toml
[dependencies] [dependencies]
minifb = "0.22" minifb = "0.23"
``` ```
Example Example