* 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`.
35 lines
921 B
TOML
35 lines
921 B
TOML
[package]
|
|
name = "wasmtime-cache"
|
|
version = "0.30.0"
|
|
authors = ["The Wasmtime Project Developers"]
|
|
description = "Support for automatic module caching with Wasmtime"
|
|
license = "Apache-2.0 WITH LLVM-exception"
|
|
repository = "https://github.com/bytecodealliance/wasmtime"
|
|
documentation = "https://docs.rs/wasmtime-cache/"
|
|
edition = "2018"
|
|
|
|
[dependencies]
|
|
anyhow = "1.0"
|
|
base64 = "0.13.0"
|
|
bincode = "1.1.4"
|
|
directories-next = "2.0"
|
|
file-per-thread-logger = "0.1.1"
|
|
log = { version = "0.4.8", default-features = false }
|
|
serde = { version = "1.0.94", features = ["derive"] }
|
|
sha2 = "0.9.0"
|
|
toml = "0.5.5"
|
|
zstd = { version = "0.9", default-features = false }
|
|
|
|
[target.'cfg(target_os = "windows")'.dependencies]
|
|
winapi = "0.3.7"
|
|
|
|
[target.'cfg(not(target_os = "windows"))'.dependencies]
|
|
rsix = "0.23.0"
|
|
|
|
[dev-dependencies]
|
|
filetime = "0.2.7"
|
|
lazy_static = "1.3.0"
|
|
more-asserts = "0.2.1"
|
|
pretty_env_logger = "0.4.0"
|
|
tempfile = "3"
|