dioxus 桌面渲染简单说明

dioxus 是基于rust 开发的支持跨平台应用开发的框架,对于桌面的支持是利用了tauri 提供的一些工具包
目前来说是利用了tao 以及wry

参考使用

  • 添加引用
    核心是添加desktop 的cargo
 
cargo add dioxus
cargo add dioxus-desktop
  • 代码
// 此处是核心
dioxus_desktop::launch(app);

说明

目前tauri github 的star 是很多的,同时提供的一些包也是很不错的,对于开发跨平台桌面应用的可以参考

参考资料

https://github.com/DioxusLabs/dioxus/tree/master/packages/desktop/src
https://github.com/tauri-apps/tao
https://github.com/tauri-apps/wry
https://github.com/tauri-apps/tauri
https://github.com/DioxusLabs/dioxus/blob/master/packages/desktop/src/lib.rs#L122

posted on 2023-12-12 15:01  荣锋亮  阅读(187)  评论(0编辑  收藏  举报

导航