mirror of
https://github.com/yewstack/yew.git
synced 2025-12-08 21:26:25 +00:00
* modernize github workflows this mainly fixes some inconsistencies in style, outdated or wrong comments and action version - replace Legit-Labs/action-download-artifact with actions/download-artifact - fix Swatinem/rust-cache arguments - fix benchmark transformations - expand feature soundness lints - wording and capitalization in comments * fix no_run on crate level doc * fix some more small issues
14 lines
333 B
Bash
Executable File
14 lines
333 B
Bash
Executable File
#!/usr/bin/env bash
|
|
if [ ! -f "Cargo.lock" ]; then
|
|
cargo fetch
|
|
fi
|
|
|
|
VERSION=$(cargo pkgid --frozen wasm-bindgen | cut -d ":" -f 3)
|
|
|
|
# Cargo decided to change syntax after 1.61
|
|
if [ "$VERSION" = "" ]; then
|
|
VERSION=$(cargo pkgid --frozen wasm-bindgen | cut -d "@" -f 2)
|
|
fi
|
|
|
|
cargo +stable install --version $VERSION wasm-bindgen-cli
|