Shuffle around the wiggle crates (#1414)

* Shuffle around the wiggle crates

This commit reorganizes the wiggle crates slightly by performing the
following transforms:

* The `crates/wiggle` crate, previously named `wiggle`, was moved to
  `crates/wiggle/crates/macro` and is renamed to `wiggle-macro`.

* The `crates/wiggle/crates/runtime` crate, previously named
  `wiggle-runtime`, was moved to `crates/wiggle` and is renamed to
  `wiggle`.

* The new `wiggle` crate depends on `wiggle-macro` and reexports the macro.

The goal here is that consumers only deal with the `wiggle` crate
itself. No more crates depend on `wiggle-runtime` and all dependencies
are entirely on just the `wiggle` crate.

* Remove the `crates/wiggle/crates` directory

Move everything into `crates/wiggle` directly, like `wasi-common`

* Add wiggle-macro to test-all script

* Fixup a test
This commit is contained in:
Alex Crichton
2020-03-26 18:34:50 -05:00
committed by GitHub
parent 6fa9be7767
commit a628dc315e
47 changed files with 802 additions and 800 deletions

17
Cargo.lock generated
View File

@@ -2243,7 +2243,6 @@ dependencies = [
"thiserror",
"wig",
"wiggle",
"wiggle-runtime",
"winapi",
"winx",
"yanix",
@@ -2517,7 +2516,7 @@ dependencies = [
"wasmtime",
"wasmtime-runtime",
"wig",
"wiggle-runtime",
"wiggle",
]
[[package]]
@@ -2571,9 +2570,8 @@ name = "wiggle"
version = "0.13.0"
dependencies = [
"proptest",
"syn",
"wiggle-generate",
"wiggle-runtime",
"thiserror",
"wiggle-macro",
"wiggle-test",
"witx",
]
@@ -2587,15 +2585,16 @@ dependencies = [
"proc-macro2",
"quote",
"syn",
"wiggle-runtime",
"witx",
]
[[package]]
name = "wiggle-runtime"
name = "wiggle-macro"
version = "0.13.0"
dependencies = [
"thiserror",
"syn",
"wiggle",
"wiggle-generate",
"witx",
]
@@ -2604,7 +2603,7 @@ name = "wiggle-test"
version = "0.13.0"
dependencies = [
"proptest",
"wiggle-runtime",
"wiggle",
]
[[package]]