DioxusLabs / DioxusLabs/dioxus
Add library mode for serving cdylib/dylib targets (plugin / embedded use cases)
- Dominant language
- Rust
- Stars
- 39.1k
- Forks
- 1.9k
- Avg merge
- 4d 10h
- Merged PRs (30d)
- 4
Description
## Feature Request
Adding support for the Dioxus CLI to support outputting a DYLIB library meant for embedding Dioxus in external applications using something like [Baseview](https://github.com/RustAudio/baseview).
My specific use-case is for DAW plugins using [nih-plug](https://github.com/robbert-vdh/nih-plug), but this would allow features like filewatching, tailwind, hotpatching and reloading, for external Binaries like a CLAP plugin or even embedded hardware with information streaming over WS for hot-reloading support.
This would allow me to add a post-build script to symlink the target output to my DAW's plugin folder, to Dioxus could be used in placed where the dx cli doesn't own the entire lifecycle of the window. This is for use with the native blitz renderer.
From conversations in the discord, mentioning @nicoburns and @jkelleyrtp here.
## Implement Suggestion
My knowledge is too limited to suggest something worthwhile, however I think it could be possible to architect it in a way that allows much more embedded use-cases, and maybe hot-reloading over the network for devices like phones and embedded hardware for development builds.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.