1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
//! Permission bits for VFS descriptors.
//!
//! These were re-exported from `wasmtime_wasi` up to wasmtime 47. wasmtime 48
//! collapsed them into a coarse `FsPerms { ReadOnly, ReadWrite }`, which cannot
//! express the distinctions the VFS host actually enforces — a directory that
//! is readable but not mutable, or a file opened write-only. They are vendored
//! here so the eryx public API and the host's permission checks are decoupled
//! from wasmtime's own preopen configuration type, which the VFS shadows
//! anyway. `FsPerms` is used only at the `preopened_dir` boundary.
//!
//! The flag values are unchanged from wasmtime-wasi 47, so serialized or
//! bit-compared values carry over.
bitflags!
bitflags!