Skip to content

Commit

Permalink
Change the "Active" struct to be sound (#116)
Browse files Browse the repository at this point in the history
* Use a new strategy for ensuring window handles are active

* Make sure android requires std

* Second look at HasWindowHandle trait

* Export the error type

* Make DisplayHandle more consistent with WindowHandle

* Fix active handle resemblance to refcounted version

* fmt

* Mark `set_inactive` as unsafe

* Add more docs

* Fix doc links

* tait -> trait

* Win32 handles can't be arbitrarily deleted

* fmt
  • Loading branch information
notgull authored Mar 29, 2023
1 parent b06ee8d commit 1e5f09d
Show file tree
Hide file tree
Showing 3 changed files with 451 additions and 227 deletions.
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ rust-version = "1.64"

[features]
alloc = []
std = ["alloc"]

[package.metadata.docs.rs]
all-features = true
Expand Down
Loading

0 comments on commit 1e5f09d

Please sign in to comment.