Function wasmer_package::package::manifest::open_file

source ยท
fn open_file(path: &Path) -> Result<OwnedBuffer, Error>
Expand description

Try to open a file, preferring mmap and falling back to std::fs::read() if mapping fails.