* 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`.
29 lines
764 B
TOML
29 lines
764 B
TOML
[package]
|
|
name = "test-programs"
|
|
version = "0.19.0"
|
|
authors = ["The Wasmtime Project Developers"]
|
|
readme = "README.md"
|
|
edition = "2018"
|
|
publish = false
|
|
license = "Apache-2.0 WITH LLVM-exception"
|
|
|
|
[build-dependencies]
|
|
cfg-if = "1.0"
|
|
|
|
[dev-dependencies]
|
|
wasi-common = { path = "../wasi-common", version = "0.30.0" }
|
|
wasi-cap-std-sync = { path = "../wasi-common/cap-std-sync", version = "0.30.0" }
|
|
wasmtime = { path = "../wasmtime", version = "0.30.0" }
|
|
wasmtime-wasi = { path = "../wasi", version = "0.30.0", features = ["tokio"] }
|
|
target-lexicon = "0.12.0"
|
|
pretty_env_logger = "0.4.0"
|
|
tempfile = "3.1.0"
|
|
os_pipe = "0.9"
|
|
anyhow = "1.0.19"
|
|
wat = "1.0.37"
|
|
cap-std = "0.19.1"
|
|
tokio = { version = "1.8.0", features = ["rt-multi-thread"] }
|
|
|
|
[features]
|
|
test_programs = []
|