Migrate from winapi to windows-sys (#4346)

* Migrate from `winapi` to `windows-sys`

I believe that Microsoft itself is supporting the development of
`windows-sys` and it's also used by `cap-std` now so this switches
Wasmtime's dependencies on Windows APIs from the `winapi` crate to the
`windows-sys` crate. We still have `winapi` in our dependency graph but
that may get phased out over time.

* Make windows-sys a target-specific dependency
This commit is contained in:
Alex Crichton
2022-06-28 13:02:41 -05:00
committed by GitHub
parent 27b94a4173
commit df1502531d
15 changed files with 79 additions and 68 deletions

12
Cargo.lock generated
View File

@@ -3339,7 +3339,7 @@ dependencies = [
"wasmtime-runtime",
"wasmtime-wasi",
"wat",
"winapi",
"windows-sys",
]
[[package]]
@@ -3401,7 +3401,7 @@ dependencies = [
"sha2",
"tempfile",
"toml",
"winapi",
"windows-sys",
"zstd",
]
@@ -3442,7 +3442,7 @@ dependencies = [
"wasmtime-wast",
"wast 42.0.0",
"wat",
"winapi",
"windows-sys",
]
[[package]]
@@ -3503,7 +3503,7 @@ dependencies = [
"cc",
"cfg-if",
"rustix",
"winapi",
"windows-sys",
]
[[package]]
@@ -3569,7 +3569,7 @@ dependencies = [
"wasmtime-environ",
"wasmtime-jit-debug",
"wasmtime-runtime",
"winapi",
"windows-sys",
]
[[package]]
@@ -3603,7 +3603,7 @@ dependencies = [
"wasmtime-environ",
"wasmtime-fiber",
"wasmtime-jit-debug",
"winapi",
"windows-sys",
]
[[package]]