* Add support for wasi_snapshot_preview1. This adds support for the new ABI, while preserving compatibility support for the old ABI. * Fix compilation on platforms where nlink_t isn't 64-bit. * rustfmt * Fix Windows build errors.
15 lines
415 B
Rust
15 lines
415 B
Rust
#![allow(improper_ctypes)]
|
|
|
|
mod instantiate;
|
|
pub mod old;
|
|
mod syscalls;
|
|
|
|
pub use instantiate::{create_wasi_instance, instantiate_wasi, instantiate_wasi_with_context};
|
|
|
|
pub fn is_wasi_module(name: &str) -> bool {
|
|
// FIXME: this should be more conservative, but while WASI is in flux and
|
|
// we're figuring out how to support multiple revisions, this should do the
|
|
// trick.
|
|
name.starts_with("wasi")
|
|
}
|