Browse Source

Fix hello_world_par example on Linux (#4684)

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 <https://github.com/emilk/egui/issues/4682>
pull/4691/head
YgorSouza 5 months ago
committed by GitHub
parent
commit
2c00cb3991
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 1
      Cargo.lock
  2. 7
      examples/hello_world_par/Cargo.toml

1
Cargo.lock

@ -2000,6 +2000,7 @@ version = "0.1.0"
dependencies = [
"eframe",
"env_logger",
"winit",
]
[[package]]

7
examples/hello_world_par/Cargo.toml

@ -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"
] }

Loading…
Cancel
Save