Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Leverage File System Standard from browsers #144

Open
eduardomourar opened this issue Sep 2, 2023 · 3 comments
Open

Leverage File System Standard from browsers #144

eduardomourar opened this issue Sep 2, 2023 · 3 comments
Labels
enhancement New feature or request target-web This issue is about the Web target wasi-preview2 This issue is about the Wasi Preview 2 API

Comments

@eduardomourar
Copy link
Contributor

eduardomourar commented Sep 2, 2023

In regards to the Preview2 shim (more specifically wasi:filesystem) for browsers, should we leverage the File System Standard as defined by the WHATWG?

@guybedford
Copy link
Collaborator

It's a good question, and a tough one as well when working through the various concerns. The best I can come up with so far is that I think we should integrate with it as opposed to treating it as the entire interface, for example allowing for mounting a local directory as a preopen within the virtual filesystem, but while still being able to have other types of virtual filesystem management existing in parallel. Generic virtualization might allow other kinds of integrations as well similarly to the virt work.

@eduardomourar
Copy link
Contributor Author

Where do you think the integration can/should be placed? Pluggable at a higher level (JavaScript in the shim) or lower level (e.g. Rust similar to the preview1 adapter)?

@guybedford
Copy link
Collaborator

I think it's best suited as a feature of the prevew2-shims? See eg #147.

@yoshuawuyts yoshuawuyts added enhancement New feature or request wasi-preview2 This issue is about the Wasi Preview 2 API target-web This issue is about the Web target labels Oct 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request target-web This issue is about the Web target wasi-preview2 This issue is about the Wasi Preview 2 API
Projects
None yet
Development

No branches or pull requests

3 participants