Fixes needed for 0.19.0 (#2035)

* Add some more wiggle crates to publish

* Fix build of wasi-common on crates.io

* Bump crates to 0.19.1 to fix crates.io build
This commit is contained in:
Alex Crichton
2020-07-16 17:27:21 -05:00
committed by GitHub
parent 5e0268a542
commit 2f368ed5d6
7 changed files with 12 additions and 10 deletions

View File

@@ -1,6 +1,6 @@
[package]
name = "wasi-common"
version = "0.19.0"
version = "0.19.1"
authors = ["The Wasmtime Project Developers"]
description = "WASI implementation in Rust"
license = "Apache-2.0 WITH LLVM-exception"

View File

@@ -1,6 +1,6 @@
[package]
name = "wasmtime-wasi"
version = "0.19.0"
version = "0.19.1"
authors = ["The Cranelift Project Developers"]
description = "WASI API support for Wasmtime"
documentation = "https://docs.rs/wasmtime-wasi"

View File

@@ -10,7 +10,7 @@ wasmtime_wiggle::wasmtime_integration!({
// The wiggle code to integrate with lives here:
target: wasi_common::wasi,
// This must be the same witx document as used above:
witx: ["../wasi-common/WASI/phases/snapshot/witx/wasi_snapshot_preview1.witx"],
witx: ["phases/snapshot/witx/wasi_snapshot_preview1.witx"],
// This must be the same ctx type as used for the target:
ctx: WasiCtx,
// This macro will emit a struct to represent the instance,

View File

@@ -1,6 +1,6 @@
[package]
name = "wasmtime-wiggle-macro"
version = "0.19.0"
version = "0.19.1"
authors = ["Pat Hickey <phickey@fastly.com>", "Jakub Konka <kubkonk@jakubkonka.com>", "Alex Crichton <alex@alexcrichton.com>"]
edition = "2018"
license = "Apache-2.0 WITH LLVM-exception"

View File

@@ -48,9 +48,9 @@ use config::{MissingMemoryConf, ModuleConf, TargetConf};
#[proc_macro]
pub fn wasmtime_integration(args: TokenStream) -> TokenStream {
let mut config = parse_macro_input!(args as config::Config);
config.witx.make_paths_relative_to(
std::env::var("CARGO_MANIFEST_DIR").expect("CARGO_MANIFEST_DIR env var"),
);
config
.witx
.make_paths_relative_to(std::env::var("WASI_ROOT").expect("WASI_ROOT env var"));
let doc = config.load_document();
let names = Names::new(&config.ctx.name, quote!(wasmtime_wiggle));