Skip to content

Commit

Permalink
Fix hello_world_par example on Linux (#4684)
Browse files Browse the repository at this point in the history
This example does not use the default features from eframe in order to
avoid accesskit, which panics when run from multiple threads, so it must
manually enable the other default features in order to compile correctly
on Linux.

* Closes <#4682>
  • Loading branch information
YgorSouza authored Jun 21, 2024
1 parent cd3e9ea commit 2c00cb3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions Cargo.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2000,6 +2000,7 @@ version = "0.1.0"
dependencies = [
"eframe",
"env_logger",
"winit",
]

[[package]]
Expand Down
7 changes: 7 additions & 0 deletions examples/hello_world_par/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,16 @@ workspace = true
eframe = { workspace = true, default-features = false, features = [
# accesskit struggles with threading
"default_fonts",
"wayland",
"x11",
"wgpu",
] }
env_logger = { version = "0.10", default-features = false, features = [
"auto-color",
"humantime",
] }
# This is normally enabled by eframe/default, which is not being used here
# because of accesskit, as mentioned above
winit = { workspace = true, features = [
"default"
] }

0 comments on commit 2c00cb3

Please sign in to comment.