* 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`.
27 lines
726 B
TOML
27 lines
726 B
TOML
[package]
|
|
name = "cranelift-native"
|
|
version = "0.77.0"
|
|
authors = ["The Cranelift Project Developers"]
|
|
description = "Support for targeting the host with Cranelift"
|
|
documentation = "https://docs.rs/cranelift-native"
|
|
repository = "https://github.com/bytecodealliance/wasmtime"
|
|
categories = ["no-std"]
|
|
license = "Apache-2.0 WITH LLVM-exception"
|
|
readme = "README.md"
|
|
edition = "2018"
|
|
|
|
[dependencies]
|
|
cranelift-codegen = { path = "../codegen", version = "0.77.0", default-features = false }
|
|
target-lexicon = "0.12"
|
|
|
|
[target.'cfg(target_arch = "s390x")'.dependencies]
|
|
rsix = "0.23.0"
|
|
|
|
[features]
|
|
default = ["std"]
|
|
std = ["cranelift-codegen/std"]
|
|
core = ["cranelift-codegen/core"]
|
|
|
|
[badges]
|
|
maintenance = { status = "experimental" }
|