1

Rust 用户界面开发框架

 2 years ago
source link: https://www.oschina.net/p/dioxus
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Dioxus首页、文档和下载 - Rust 用户界面开发框架 - OSCHINA - 中文开源技术交流社区

Dioxus 是一个可移植、高性能的框架,用于在 Rust 中构建跨平台的用户界面。

fn app(cx: Scope) -> Element {
    let mut count = use_state(&cx, || 0);

    cx.render(rsx!(
        h1 { "High-Five counter: {count}" }
        button { onclick: move |_| count += 1, "Up high!" }
        button { onclick: move |_| count -= 1, "Down low!" }
    ))
}

Dioxus 可用于制作 网页程序、桌面应用、静态站点、移动端应用。

Dioxus 为不同的平台都提供了很好的开发文档。

如果你会使用 React ,那 Dioxus 对你来说会很简单。

  • 原生的桌面程序支持。
  • 强大的状态管理工具。
  • 支持所有 HTML 标签,监听器和事件。
  • 超高的内存使用率,稳定的组件分配器。
  • 多通道异步调动器,超强的异步支持。
  • 更多信息请查阅: 版本发布文档
展开阅读全文

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK