wasmtime-wasi 48.0.2

WASI implementation in Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use std::io;

#[cfg(not(windows))]
pub(crate) use crate::filesystem::primitives::rustix::fs::errors::*;
#[cfg(windows)]
pub(crate) use crate::filesystem::primitives::windows::fs::errors::*;

#[cold]
pub(crate) fn escape_attempt() -> io::Error {
    io::Error::new(
        io::ErrorKind::PermissionDenied,
        "a path led outside of the filesystem",
    )
}