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

@@ -9,6 +9,7 @@ keywords = ["webassembly", "wasm"]
repository = "https://github.com/bytecodealliance/wasmtime"
readme = "README.md"
edition = "2018"
include = ["src/**/*", "LICENSE", "WASI/phases"]
[dependencies]
anyhow = "1.0"

View File

@@ -60,10 +60,10 @@ rustup target add wasm32-wasi
[rustup]: https://rustup.rs
Now, you should be able to run the integration testsuite by running `cargo test` on the
`test-programs` package with `test_programs` feature enabled:
`test-programs` package with `test-programs/test_programs` feature enabled:
```
cargo test --features test_programs --package test-programs
cargo test --features test-programs/test_programs --package test-programs
```
## Third-Party Code

View File

@@ -4,7 +4,7 @@
use crate::WasiCtx;
wiggle::from_witx!({
witx: ["wig/WASI/phases/snapshot/witx/wasi_snapshot_preview1.witx"],
witx: ["WASI/phases/snapshot/witx/wasi_snapshot_preview1.witx"],
ctx: WasiCtx,
});