Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@

## Unreleased

* **Breaking:** Rework web handles to remove `wasm-bindgen` from public API. (#184)
- **Breaking:** Rework web handles to remove `wasm-bindgen` from public API. (#184)
- **Breaking:** Remove `WebWindowHandle` as it is no longer used. (#186)
- **Breaking:** Remove deprecated `HasRawWindowHandle` and `HasRawDisplayHandle` traits.
- **Breaking:** Remove `UiKitWindowHandle::ui_view_controller` field, retrieve this from the UIView's responder chain instead.
- **Breaking:** Rename `Web*` handles to `WasmBindgen*`, to make it clearer that these are specific to `wasm-bindgen`.
* Improve documentation on AppKit and UIKit handles.
- Enabled `std` feature by default.
- Add owned window and display handles.
- Improve documentation on AppKit and UIKit handles.

## 0.6.2 (2024-05-17)

Expand Down
12 changes: 12 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ mod drm;
mod gbm;
mod haiku;
mod ohos;
mod owned;
mod redox;
mod uikit;
mod wayland;
Expand All @@ -61,6 +62,10 @@ pub use drm::{DrmDisplayHandle, DrmWindowHandle};
pub use gbm::{GbmDisplayHandle, GbmWindowHandle};
pub use haiku::{HaikuDisplayHandle, HaikuWindowHandle};
pub use ohos::{OhosDisplayHandle, OhosNdkWindowHandle};
pub use owned::{
DisplayHandleVtable, OwnedDisplayHandle, OwnedWindowHandle, SyncDisplayHandle,
SyncWindowHandle, WindowHandleVtable,
};
pub use redox::{OrbitalDisplayHandle, OrbitalWindowHandle};
pub use uikit::{UiKitDisplayHandle, UiKitWindowHandle};
pub use wayland::{WaylandDisplayHandle, WaylandWindowHandle};
Expand Down Expand Up @@ -454,6 +459,13 @@ mod tests {
assert_not_impl_any!(WasmBindgenOffscreenCanvasWindowHandle: Send, Sync);
assert_impl_all!(AndroidNdkWindowHandle: Send, Sync);
assert_impl_all!(HaikuWindowHandle: Send, Sync);

assert_impl_all!(OwnedDisplayHandle: Unpin, UnwindSafe, RefUnwindSafe);
assert_not_impl_any!(OwnedDisplayHandle: Send, Sync);
assert_impl_all!(SyncDisplayHandle: Unpin, UnwindSafe, RefUnwindSafe, Sync, Send);
assert_impl_all!(OwnedWindowHandle: Unpin, UnwindSafe, RefUnwindSafe);
assert_not_impl_any!(OwnedWindowHandle: Send, Sync);
assert_impl_all!(SyncWindowHandle: Unpin, UnwindSafe, RefUnwindSafe, Sync, Send);
}

#[allow(unused)]
Expand Down
Loading
Loading