0
点赞
收藏
分享

微信扫一扫

dioxus 桌面渲染简单说明

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

参考使用

  • 添加引用
    核心是添加desktop 的cargo

 

cargo add dioxus
cargo add dioxus-desktop
代码
// 此处是核心
dioxus_desktop::launch(app);

cargo add dioxus-desktop

说明

目前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

举报

相关推荐

0 条评论