Rust GUI 库

2023-05-16

文章目录

  • 更新
  • egui
  • conrod
  • native-windows-gui (推荐)
  • iced (推荐)

更新

  1. 推荐阅读一篇更全面的、附有代码的 Rust GUI 梳理文章 Rust GUI: Introduction, a.k.a. the state of Rust GUI libraries (As of January 2021)
    在这里插入图片描述
  2. 以下内容整理自于相应 crate 的文档 / demo:

egui

Web GUI库,编译到webAsemmbly在浏览器中运行,它实现了简单的布局功能,基础的表单组件,滚动条区域,树型组件,鼠标绘图等
(丰富组件、功能强大)

  • github 项目:https://github.com/emilk/egui
  • 在线示例:https://emilk.github.io/egui/index.html
    在这里插入图片描述

conrod

可跨平台的、即时 2D GUI库,特点是 简单、稳健、追求原生性能的交互式界面

  • github 项目:https://github.com/pistondevelopers/conrod
  • 示例(ytb 链接):所有部件展示、与 RustAudio 结合的合成器编辑器demo
    在这里插入图片描述
    在这里插入图片描述

native-windows-gui (推荐)

windows 原生轻量级 GUI(推荐)

  • github 项目:https://github.com/gabdube/native-windows-gui
  • 示例:https://github.com/gabdube/native-windows-gui/blob/master/showcase

在这里插入图片描述

在这里插入图片描述

在这里插入图片描述

在这里插入图片描述

iced (推荐)

受 Elm 启发的跨平台 web GUI(简单、类型安全)

  1. github 项目地址:https://github.com/hecrj/iced
  2. 示例:https://iced.rs/

在这里插入图片描述

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

Rust GUI 库 的相关文章

随机推荐