Rust 游戏开发教程
从新思考使用Rust开发web应用
-
天然的组件使用方式 -
构建可组合的UI -
状态管理
use valerie::prelude::components::*;
use valerie::prelude::*;
fn ui() -> Node {
let string = StateMutex::new(String::new());
let length = StateAtomic::from(&string, |x| x.len());
div!(
h3!(string.clone()),
h3!(length),
input!("text").bind(string)
)
.into()
}
#[valerie(start)]
pub fn run() {
App::render_single(ui());
}
使用Rust开发一个UEFI应用
使用Rocket 0.4开发服务器的感觉
https://stu2b50.dev/posts/rust-is-surpris76171前端
本文分享自微信公众号 - Rust语言中文社区(rust-china)。
若有侵权,请联系 support@oschina.cn 删除。
本文参与“OSC源创计划”,欢迎正在阅读的你也加入,一块儿分享。web