Wasmtime 0.13.0 and Cranelift 0.61.0. (#1398)
This also updates the publishing scripts to work with newly added and reorganized crates.
This commit is contained in:
@@ -9,16 +9,19 @@ topdir=$(dirname "$0")/..
|
||||
cd "$topdir"
|
||||
|
||||
# All the cranelift-* crates have the same version number
|
||||
version="0.56"
|
||||
version="0.61.0"
|
||||
|
||||
# Update all of the Cargo.toml files.
|
||||
echo "Updating crate versions to $version"
|
||||
for toml in Cargo.toml crates/*/Cargo.toml crates/misc/*/Cargo.toml fuzz/Cargo.toml; do
|
||||
for toml in cranelift/Cargo.toml cranelift/*/Cargo.toml cranelift/*/*/Cargo.toml; do
|
||||
# Update the version number of this crate to $version.
|
||||
sed -i.bk -e "/^cranelift-/s/\"[^\"]*\"/\"$version\"/" \
|
||||
"$toml"
|
||||
|
||||
# Update the required version number of any cranelift* dependencies.
|
||||
sed -i.bk -e "/^cranelift-/s/version = \"[^\"]*\"/version = \"$version\"/" \
|
||||
sed -i.bk -e "/^version = /s/\"[^\"]*\"/\"$version\"/" \
|
||||
"$toml"
|
||||
done
|
||||
|
||||
# Update the required version numbers of path dependencies.
|
||||
find -name Cargo.toml \
|
||||
-not -path ./crates/wasi-common/wig/WASI/tools/witx/Cargo.toml \
|
||||
-exec sed -i.bk \
|
||||
-e "/^cranelift/s/version = \"[^\"]*\"/version = \"$version\"/" \
|
||||
{} \;
|
||||
|
||||
Reference in New Issue
Block a user