-
Notifications
You must be signed in to change notification settings - Fork 186
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update to egui/eframe 0.20.0 #83
Conversation
this only works with trunk egui ofc |
one solution is adding then just renaming current main fn to // this is the new main. use wasm_biindgen_futures to spawn it
#[cfg(target_arch = "wasm32")]
fn main() {
wasm_bindgen_futures::spawn_local(fake_main());
}
// this is the previous main fn. just add async to it
#[cfg(target_arch = "wasm32")]
pub async fn fake_main() {
} |
In etk crate, i personally just used this will avoid async polluting all the parent functions too (was necessary in etk because |
|
@coderedart btw, |
|
ooh, good to know. thanks. I completely forgot that webgpu is a thing.
I am relieved that its not just me. I just assumed it was rust-analyzer noise because when i pass |
@emilk yeah, its rust analyzer clashing with cargo. even without trunk, after a change, running |
had to run cargo update to resolve a dependency issue when building with wgpu, keeping those changes here