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
本文来自博客园,作者:ukyo--碳水化合物,转载请注明原文链接:https://www.cnblogs.com/ukzq/p/17208972.html