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

WASM build for the library? #74

Open
ieugen opened this issue Sep 27, 2022 · 3 comments
Open

WASM build for the library? #74

ieugen opened this issue Sep 27, 2022 · 3 comments

Comments

@ieugen
Copy link

ieugen commented Sep 27, 2022

Hi,

Have you considered a WebAssembly build for the library ?
It should allow the usage of this library from any system using webassembly.

WebAssembly + WASI is getting traction and I think it's a good target to keep in mind.

@ieugen
Copy link
Author

ieugen commented Sep 27, 2022

I saw the file https://github.com/dirs-dev/directories-rs/blob/main/src/wasm.rs .
Should I assume the library is usable from web-assembly ?
I did not see any instructions / other information.

@soc
Copy link
Collaborator

soc commented Sep 27, 2022

Hi @ieugen,

it only means it builds on WASM, but no directories are provided.

I'd expect that WASI already offers an API comparable to dirs, would be crazy if they just repeated the mistakes of the last decades. Is there a listing of available APIs for WASI somewhere?

Thanks,

Simon

@ieugen
Copy link
Author

ieugen commented Sep 27, 2022

I think all authoritative documents should be here https://github.com/bytecodealliance/wasmtime/blob/main/docs/WASI-documents.md .

I think WASI is focused on providing access to the underlying platform in a portable way.
I don't think they care about standardized directory structures.

Checking out the API - it looks much lower level: https://github.com/WebAssembly/WASI/blob/main/phases/snapshot/docs.md .

https://github.com/bytecodealliance/wasmtime/blob/main/docs/WASI-overview.md

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants