Skip to content

rydb/bevy_dioxus_sync

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bevy_dioxus_sync

bevy-dioxus interop between Dioxus and bevy to syncronize their state

bevy_dioxus_sync_V1.webm

Features

  • hooks for sending resources, components, and assets between dioxus and bevy.
  • syncronization for (some) events to and from dioxus (window resize, keyboard input).
  • native support through the ✨ new ✨ dioxus-native renderer.

To use

See hooks/{hook}.rs hook files for available hooks, or see demos in /examples.

To run

to serve bevy_dioxus_sync apps with dioxus hot-patching

ensure your dioxus-cli version matches bevy_dioxus_sync's version of dioxus.

cargo install dioxus-cli@<current-dioxus-version> --locked

then run:

dx serve (--package OR --example) <your project> --hotpatch

e.g: for minimal

dx serve --package minimal --hot-patch

About

A crate for bevy-dioxus interop and syncronization.

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages