Move crates/api to crates/wasmtime (#1693)

The `wasmtime` crate currently lives in `crates/api` for historical
reasons, because we once called it `wasmtime-api` crate. This creates a
stumbling block for new contributors.

As discussed on Zulip, rename the directory to `crates/wasmtime`.
This commit is contained in:
Josh Triplett
2020-05-13 14:04:31 -07:00
committed by GitHub
parent f5eab5225f
commit 08983bf39c
34 changed files with 14 additions and 14 deletions

2
.github/labeler.yml vendored
View File

@@ -53,7 +53,7 @@
- "crates/wiggle/**" - "crates/wiggle/**"
"wasmtime:api": "wasmtime:api":
- "crates/api/**" - "crates/wasmtime/**"
"wasmtime:c-api": "wasmtime:c-api":
- "crates/c-api/**" - "crates/c-api/**"

View File

@@ -75,10 +75,10 @@ jobs:
toolchain: nightly toolchain: nightly
# Check some feature combinations of the `wasmtime` crate # Check some feature combinations of the `wasmtime` crate
- run: cargo check --manifest-path crates/api/Cargo.toml --no-default-features - run: cargo check --manifest-path crates/wasmtime/Cargo.toml --no-default-features
- run: cargo check --manifest-path crates/api/Cargo.toml --features wat - run: cargo check --manifest-path crates/wasmtime/Cargo.toml --features wat
- run: cargo check --manifest-path crates/api/Cargo.toml --features lightbeam - run: cargo check --manifest-path crates/wasmtime/Cargo.toml --features lightbeam
- run: cargo check --manifest-path crates/api/Cargo.toml --features jitdump - run: cargo check --manifest-path crates/wasmtime/Cargo.toml --features jitdump
# Check some feature combinations of the `wasmtime-c-api` crate # Check some feature combinations of the `wasmtime-c-api` crate
- run: cargo check --manifest-path crates/c-api/Cargo.toml --no-default-features - run: cargo check --manifest-path crates/c-api/Cargo.toml --no-default-features

View File

@@ -22,7 +22,7 @@ doc = false
[dependencies] [dependencies]
# Enable all supported architectures by default. # Enable all supported architectures by default.
wasmtime = { path = "crates/api", version = "0.16.0", default-features = false } wasmtime = { path = "crates/wasmtime", version = "0.16.0", default-features = false }
wasmtime-debug = { path = "crates/debug", version = "0.16.0" } wasmtime-debug = { path = "crates/debug", version = "0.16.0" }
wasmtime-environ = { path = "crates/environ", version = "0.16.0" } wasmtime-environ = { path = "crates/environ", version = "0.16.0" }
wasmtime-jit = { path = "crates/jit", version = "0.16.0" } wasmtime-jit = { path = "crates/jit", version = "0.16.0" }

View File

@@ -19,7 +19,7 @@ doctest = false
[dependencies] [dependencies]
anyhow = "1.0" anyhow = "1.0"
once_cell = "1.3" once_cell = "1.3"
wasmtime = { path = "../api", default-features = false } wasmtime = { path = "../wasmtime", default-features = false }
wasmtime-c-api-macros = { path = "macros" } wasmtime-c-api-macros = { path = "macros" }
# Optional dependency for the `wat2wasm` API # Optional dependency for the `wat2wasm` API

View File

@@ -15,7 +15,7 @@ log = "0.4.8"
rayon = "1.2.1" rayon = "1.2.1"
wasmparser = "0.52.0" wasmparser = "0.52.0"
wasmprinter = "0.2.1" wasmprinter = "0.2.1"
wasmtime = { path = "../api" } wasmtime = { path = "../wasmtime" }
wasmtime-wast = { path = "../wast" } wasmtime-wast = { path = "../wast" }
[dev-dependencies] [dev-dependencies]

View File

@@ -17,7 +17,7 @@ doctest = false
[dependencies] [dependencies]
wasmtime-rust-macro = { path = "./macro", version = "0.16.0" } wasmtime-rust-macro = { path = "./macro", version = "0.16.0" }
wasmtime-wasi = { path = "../../wasi", version = "0.16.0" } wasmtime-wasi = { path = "../../wasi", version = "0.16.0" }
wasmtime = { path = "../../api", version = "0.16.0" } wasmtime = { path = "../../wasmtime", version = "0.16.0" }
anyhow = "1.0.19" anyhow = "1.0.19"
[badges] [badges]

View File

@@ -12,7 +12,7 @@ cfg-if = "0.1.9"
[dev-dependencies] [dev-dependencies]
wasi-common = { path = "../wasi-common", version = "0.16.0" } wasi-common = { path = "../wasi-common", version = "0.16.0" }
wasmtime-wasi = { path = "../wasi", version = "0.16.0" } wasmtime-wasi = { path = "../wasi", version = "0.16.0" }
wasmtime = { path = "../api", version = "0.16.0" } wasmtime = { path = "../wasmtime", version = "0.16.0" }
target-lexicon = "0.10.0" target-lexicon = "0.10.0"
pretty_env_logger = "0.4.0" pretty_env_logger = "0.4.0"
tempfile = "3.1.0" tempfile = "3.1.0"

View File

@@ -15,7 +15,7 @@ edition = "2018"
anyhow = "1.0" anyhow = "1.0"
log = { version = "0.4.8", default-features = false } log = { version = "0.4.8", default-features = false }
wasi-common = { path = "../wasi-common", version = "0.16.0" } wasi-common = { path = "../wasi-common", version = "0.16.0" }
wasmtime = { path = "../api", version = "0.16.0", default-features = false } wasmtime = { path = "../wasmtime", version = "0.16.0", default-features = false }
wasmtime-runtime = { path = "../runtime", version = "0.16.0" } wasmtime-runtime = { path = "../runtime", version = "0.16.0" }
wig = { path = "../wasi-common/wig", version = "0.16.0" } wig = { path = "../wasi-common/wig", version = "0.16.0" }
wiggle = { path = "../wiggle", version = "0.16.0" } wiggle = { path = "../wiggle", version = "0.16.0" }

View File

@@ -12,7 +12,7 @@ edition = "2018"
[dependencies] [dependencies]
anyhow = "1.0.19" anyhow = "1.0.19"
wasmtime = { path = "../api", version = "0.16.0", default-features = false } wasmtime = { path = "../wasmtime", version = "0.16.0", default-features = false }
wast = "15.0.0" wast = "15.0.0"
[badges] [badges]

View File

@@ -14,7 +14,7 @@ cranelift-reader = { path = "../cranelift/reader" }
cranelift-wasm = { path = "../cranelift/wasm" } cranelift-wasm = { path = "../cranelift/wasm" }
libfuzzer-sys = "0.3.2" libfuzzer-sys = "0.3.2"
target-lexicon = "0.10" target-lexicon = "0.10"
wasmtime = { path = "../crates/api" } wasmtime = { path = "../crates/wasmtime" }
wasmtime-fuzzing = { path = "../crates/fuzzing" } wasmtime-fuzzing = { path = "../crates/fuzzing" }
[[bin]] [[bin]]

View File

@@ -32,7 +32,7 @@ for cargo_toml in \
crates/profiling/Cargo.toml \ crates/profiling/Cargo.toml \
crates/debug/Cargo.toml \ crates/debug/Cargo.toml \
crates/jit/Cargo.toml \ crates/jit/Cargo.toml \
crates/api/Cargo.toml \ crates/wasmtime/Cargo.toml \
crates/wasi/Cargo.toml \ crates/wasi/Cargo.toml \
crates/wast/Cargo.toml \ crates/wast/Cargo.toml \
crates/misc/rust/macro/Cargo.toml \ crates/misc/rust/macro/Cargo.toml \