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

How to deal with this library in WebAssembly #28

Open
HerrNamenlos123 opened this issue Jan 12, 2024 · 0 comments
Open

How to deal with this library in WebAssembly #28

HerrNamenlos123 opened this issue Jan 12, 2024 · 0 comments

Comments

@HerrNamenlos123
Copy link

Hi there, thank you for this amazing library. I used it everywhere in the past years.
Now, I am porting my desktop application framework to also run in browsers using Emscripten/WebAssembly.
The idea is to streamline app development and to be able to create apps that out of the box run on desktop, and in the browser.

Now, the library compiles fine in Emscripten, no issues there. However, if I run the program, I get an exception "Unable to get passwd struct". I see this is normal behavior, as it seems to call a system function, that is presumably doomed to fail in a web environment.
This is to be expected.

Now, you seem to have more knowledge than me about filesystems and file locations in general. Have you ever thought about WebAssembly or how your library would relate to browser environments?
I could just bypass the library and hard-code file locations, but do you know of any standards of file locations in a browser? Or virtual file systems?

TLDR there is nothing wrong with the library but I am wondering if you ever thought about it and how you would handle it.

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

1 participant