diff --git a/lib/environ/Cargo.toml b/lib/environ/Cargo.toml index dd1b5ea966..e655fe0992 100644 --- a/lib/environ/Cargo.toml +++ b/lib/environ/Cargo.toml @@ -2,12 +2,17 @@ name = "wasmtime-environ" version = "0.0.0" authors = ["The Cranelift Project Developers"] -publish = false description = "Standalone environment support for WebAsssembly code in Cranelift" -repository = "https://github.com/sunfishcode/wasmtime" +repository = "https://github.com/CraneStation/wasmtime" +documentation = "https://docs.rs/wasmtime-environ/" license = "Apache-2.0 WITH LLVM-exception" +readme = "README.md" [dependencies] cranelift-codegen = "0.18.1" cranelift-wasm = "0.18.1" target-lexicon = "0.0.3" + +[badges] +maintenance = { status = "experimental" } +travis-ci = { repository = "CraneStation/wasmtime" } diff --git a/lib/environ/README.md b/lib/environ/README.md new file mode 100644 index 0000000000..3e5389f92b --- /dev/null +++ b/lib/environ/README.md @@ -0,0 +1,5 @@ +This is the `wasmtime-environ` crate, which contains the implementations +of the `ModuleEnvironment` and `FuncEnvironment` traits from +[`cranelift-wasm`](https://crates.io/crates/cranelift-wasm). They effectively +implement an ABI for basic wasm compilation, which can be used for JITing, +native object files, or other purposes. diff --git a/publish-all.sh b/publish-all.sh new file mode 100755 index 0000000000..d1d936fc2e --- /dev/null +++ b/publish-all.sh @@ -0,0 +1,42 @@ +#!/bin/bash +set -euo pipefail + +# This is a convenience script for maintainers publishing a new version of +# Wasmtime to crates.io. To use, bump the version number below, run the +# script, and then run the commands that the script prints. + +topdir=$(dirname "$0") +cd "$topdir" + +# All the wasmtime-* crates have the same version number +version="0.1.0" + +# Update all of the Cargo.toml files. +# +# The main Cargo.toml in the top-level directory is the wasmtime-tools crate which we don't publish. +echo "Updating crate versions to $version" +for crate in . lib/*; do + # Update the version number of this crate to $version. + sed -i.bk -e "s/^version = .*/version = \"$version\"/" \ + "$crate/Cargo.toml" + + # Update the required version number of any wasmtime* dependencies. + sed -i.bk -e "/^wasmtime/s/version = \"[^\"]*\"/version = \"$version\"/" \ + "$crate/Cargo.toml" +done + +# Update our local Cargo.lock (not checked in). +cargo update +./test-all.sh + +# Commands needed to publish. +# +# Note that libraries need to be published in topological order. + +echo git commit -a -m "\"Bump version to $version"\" +echo git push +for crate in \ + environ +do + echo cargo publish --manifest-path "lib/$crate/Cargo.toml" +done