内容简介:更新详情:Rust已将其目标设定为主要的WASM,并且在后端和前端Web中使用它会非常棒。除了框架之外,
Ruukh —— Rust编写的实验性下一代前端Web框架。
更新详情:
添加
-
使用状态设置器
StateSetter::state_setter
&SetState::set_state
。
改变
-
Shared
类型变化为private。 -
状态批量更新为一个。
-
升级到
rustc 1.31.0-nightly (4efdc04a5 2018-10-06)
。
修复
-
'static
prop类型在不是时被视为可选。
Ruukh 介绍:
Rust已将其目标设定为主要的WASM,并且在后端和前端Web中使用它会非常棒。 Ruukh 是实现这一梦想的努力之一。Ruukh是一个前端Web框架,受到 VueJS 和 ReactJS的 启发 。
#![feature(proc_macro_gen, proc_macro_non_items, decl_macro)] use wasm_bindgen::prelude::*; use ruukh::prelude::*; #[component] #[derive(Lifecycle)] struct MyApp; impl Render for MyApp { fn render(&self) -> Markup<Self> { html! { "Hello World!" } } } #[wasm_bindgen] pub fn run() { App::<MyApp>::new().mount("app"); }
除了框架之外,
cargo-ruukh
还提供了子命令以简化应用程序的构建和运行。
以上就是本文的全部内容,希望本文的内容对大家的学习或者工作能带来一定的帮助,也希望大家多多支持 码农网
猜你喜欢:- Ruukh 0.3 发布,Rust 编写的下一代前端 Web 框架
- [译] 下一代包管理工具
- 什么是下一代虚拟主机
- 可逆计算:下一代软件构造理论
- 下一代镜像构建工具 Buildkit
- LogRhythm的下一代SIEM
本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们。
Where Wizards Stay Up Late
Katie Hafner / Simon & Schuster / 1998-1-21 / USD 16.00
Twenty five years ago, it didn't exist. Today, twenty million people worldwide are surfing the Net. "Where Wizards Stay Up Late" is the exciting story of the pioneers responsible for creating the most......一起来看看 《Where Wizards Stay Up Late》 这本书的介绍吧!