yewstack / yew-trunk-minimal-template Goto Github PK
View Code? Open in Web Editor NEWTemplate for starting a Yew project using Trunk
License: Apache License 2.0
Template for starting a Yew project using Trunk
License: Apache License 2.0
% rustc -vV
rustc 1.65.0-nightly (2befdefdd 2022-08-06)
binary: rustc
commit-hash: 2befdefdda0f2bc5ff93f7f95633c98841409098
commit-date: 2022-08-06
host: aarch64-apple-darwin
release: 1.65.0-nightly
LLVM version: 14.0.6
显示
copying generated wasm-bindgen artifacts
长时间停在copying阶段
hunter@hunterdeMacBook-Pro yew-trunk-minimal-template % trunk build
2022-08-07T09:08:10.386081Z INFO 📦 starting build
2022-08-07T09:08:10.387065Z INFO spawning asset pipelines
2022-08-07T09:08:10.471323Z INFO building trunk-template
2022-08-07T09:08:10.471436Z INFO downloading sass version="1.50.0"
Finished dev [unoptimized + debuginfo] target(s) in 0.06s
2022-08-07T09:08:10.562658Z INFO fetching cargo artifacts
2022-08-07T09:08:10.636685Z INFO processing WASM for trunk-template
2022-08-07T09:08:10.644975Z INFO using system installed binary app=wasm-bindgen version=0.2.82
2022-08-07T09:08:10.645055Z INFO calling wasm-bindgen for trunk-template
2022-08-07T09:08:10.691656Z INFO copying generated wasm-bindgen artifacts
I am getting this error when I try to invoke this,
🤷 Project Name : hlug
🔧 Creating project called `hlug`...
Error: ⛔ Error replacing placeholders `/tmp/hlug/README.md`
Caused by:
liquid: Unknown variable
with:
requested variable=year
I'm just running this command per the tutorial,
cargo generate --git https://github.com/yewstack/yew-trunk-minimal-template
cargo-generate
is a developer tool to help you get up and running quickly with a new Rust project by leveraging a pre-existing git repository as a template.
We should leverage this tool to allow easy creation of Yew applications
cargo generate --git https://github.com/yewstack/yew-trunk-minimal-template
# named it hello
cd hello
rustup target add wasm32-unknown-unknown
cargo install trunk wasm-bindgen-cli
trunk serve
I ran the following commands on my m1 mac, and after updating the cargo.lock file to use "0.2.87" instead of "0.2.83" in a few places so the code would actually start, this is what I get when I go to "127.0.0.1:"
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.