feature request: support a virtual filesystem that is both readable and writeable.
Filesystem: Mount a read-only filesystem, configure host filesystem preopen remappings or pass-through.
Similar to this use case https://github.com/bjorn3/browser_wasi_shim?tab=readme-ov-file#usage
The stdin, stdout, stderr are handled by the Xterm terminal library, while the files are stored as Uint8Array in a tree structure in-memory.
The virtual filesystem should allow both reads and write and be flexible enough to allow any backend (in-memory, Xterm, network requests, etc.)
Thanks for posting, yes we should extend the feature set here, this is already tracking in https://github.com/bytecodealliance/WASI-Virt/issues/29.
Does that cover your requirements? Contributions are very much welcome.
Thanks for posting, yes we should extend the feature set here, this is already tracking in #29.
Does that cover your requirements? Contributions are very much welcome.
Nice, but the other issue just gives a very short description. We can close this issue and track all the requirements in #29 if you want.
Not sure if I can contribute, I have more experience with Golang than Rust 😓 , and I am still trying to wrap my head around the WASI component model own, sub, eq, resource, etc. https://github.com/WebAssembly/component-model/blob/main/design/mvp/Explainer.md