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 @ 2023-03-12 20:16  ukyo--碳水化合物  阅读(15)  评论(0)    收藏  举报