Rust 3

https://www.jetbrains.com.cn/rust/
https://yew.rs/zh-Hans/docs/getting-started/introduction

rustup target add wasm32-unknown-unknown
# note that this might take a while to install, because it compiles everything from scratch
# Trunk also provides prebuilt binaries for a number of major package managers
# See https://trunkrs.dev/#install for further details
cargo install --locked trunk

https://docs.rs/yew/latest/yew/

cargo new --bin yew-app && cd yew-app
cargo install cargo-web
cargo web start

the package yew-app1 depends on yew, with features: std_web but yew does not have these features.

[package]
name = "yew-app"
version = "0.1.0"
authors = ["Yew App Developer <name@example.com>"]
edition = "2018"

[dependencies]
yew = { version = "0.14.3", features = ["std_web"] }

上面的一切都是中文文档翻译的。已经不支持。

看下面。

cargo install cargo-generate
posted @   ukyo--碳水化合物  阅读(14)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 震惊!C++程序真的从main开始吗?99%的程序员都答错了
· 【硬核科普】Trae如何「偷看」你的代码?零基础破解AI编程运行原理
· 单元测试从入门到精通
· 上周热点回顾(3.3-3.9)
· winform 绘制太阳,地球,月球 运作规律
历史上的今天:
2022-03-12 论文
2022-03-12 黑暗森林法则
主题色彩
点击右上角即可分享
微信分享提示
没有人的文明毫无意义。