* Use rsix to make system calls in Wasmtime. `rsix` is a system call wrapper crate that we use in `wasi-common`, which can provide the following advantages in the rest of Wasmtime: - It eliminates some `unsafe` blocks in Wasmtime's code. There's still an `unsafe` block in the library, but this way, the `unsafe` is factored out and clearly scoped. - And, it makes error handling more consistent, factoring out code for checking return values and `io::Error::last_os_error()`, and code that does `errno::set_errno(0)`. This doesn't cover *all* system calls; `rsix` doesn't implement signal-handling APIs, and this doesn't cover calls made through `std` or crates like `userfaultfd`, `rand`, and `region`.
31 lines
830 B
TOML
31 lines
830 B
TOML
[package]
|
|
name = "wasmtime-fiber"
|
|
version = "0.30.0"
|
|
authors = ["The Wasmtime Project Developers"]
|
|
description = "Fiber support for Wasmtime"
|
|
license = "Apache-2.0 WITH LLVM-exception"
|
|
repository = "https://github.com/bytecodealliance/wasmtime"
|
|
edition = "2018"
|
|
|
|
# We link to some native code with symbols that don't change often, so let Cargo
|
|
# know that we can't show up multiple times in a crate graph. If this is an
|
|
# issue in the future we should tweak the build script to set `#define`
|
|
# directives or similar to embed a version number of this crate in symbols.
|
|
links = "wasmtime-fiber-shims"
|
|
|
|
[target.'cfg(unix)'.dependencies]
|
|
rsix = "0.23.0"
|
|
|
|
[target.'cfg(windows)'.dependencies.winapi]
|
|
version = "0.3.9"
|
|
features = [
|
|
"fibersapi",
|
|
"winbase",
|
|
]
|
|
|
|
[build-dependencies]
|
|
cc = "1.0"
|
|
|
|
[dev-dependencies]
|
|
backtrace = "0.3.61"
|