Skip to content
This repository has been archived by the owner on Feb 18, 2025. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants