JMS55 / bevy_dioxus

Apache License 2.0
56 stars 8 forks source link

The demo.rs example crashes #1

Closed Maximetinu closed 8 months ago

Maximetinu commented 8 months ago

If I do cargo run --example demo

it crashes immediately, like this:

image
JMS55 commented 8 months ago

Hey! I didn't actually expect anyone to test this project out so soon :sweat_smile:. Yes, not everything is implemented yet (mainly support for dynamic generation of nodes, and most style properties). Things like ECS access, the ECS hooks, click event handlers, and support for basic nodes and the rsx! macro works. For loops do not. If you want to test this project out, try reducing the example a bit and remove the for loop. It'll take some time, but I've been fleshing things out pretty quickly :)

Maximetinu commented 8 months ago

hahah no worries, I just stumbled upon your post in the thread about UI support in the Bevy repo and I wanted to give it a quick try. Just to try out this dioxus library, as I've heard of it but never used it

I will give a try to simplify the demo and play with it. Thx!

JMS55 commented 8 months ago

I've fixed a bunch of bugs and implemented some more missing features. Please try the demo now. Note, that it's expected that it will segfault when closing the app.