Fixes for cargo publish (#1416)

* Publishing fixes.

* Make WASI a symlink.

* More fixes.

* Cargo doesn't allow dev-dependencies to have optional features.

* Remove the symlink.

* Add WASI as another git submodule.
This commit is contained in:
Dan Gohman
2020-03-26 20:31:12 -07:00
committed by GitHub
parent a628dc315e
commit 6c0c9a46f3
10 changed files with 20 additions and 15 deletions

View File

@@ -11,7 +11,7 @@ topdir=$(dirname "$0")/..
cd "$topdir"
# Publishing Wasmtime requires publishing any local Cranelift changes.
./publish-cranelift.sh
scripts/publish-cranelift.sh
# Commands needed to publish.
#
@@ -21,12 +21,16 @@ for cargo_toml in \
crates/wasi-common/winx/Cargo.toml \
crates/wasi-common/yanix/Cargo.toml \
crates/wasi-common/wig/Cargo.toml \
crates/wiggle/crates/runtime/Cargo.toml \
crates/wiggle/crates/generate/Cargo.toml \
crates/wiggle/crates/test/Cargo.toml \
crates/wiggle/Cargo.toml \
crates/wasi-common/Cargo.toml \
crates/lightbeam/Cargo.toml \
crates/profiling/Cargo.toml \
crates/environ/Cargo.toml \
crates/obj/Cargo.toml \
crates/runtime/Cargo.toml \
crates/profiling/Cargo.toml \
crates/debug/Cargo.toml \
crates/jit/Cargo.toml \
crates/api/Cargo.toml \
@@ -47,7 +51,7 @@ for cargo_toml in \
# Sleep for a few seconds to allow the server to update the index.
# https://internals.rust-lang.org/t/changes-to-how-crates-io-handles-index-updates/9608
echo sleep 10
echo sleep 20
done
echo echo git tag v$(grep "version =" Cargo.toml | head -n 1 | cut -d '"' -f 2)