-
Notifications
You must be signed in to change notification settings - Fork 161
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
WASI support? #507
Comments
If it can be added as cleanly as the Windows support, then ya I'm open to merging a PR for wasm support |
Great! I'll do some experimenting later to see how plausible it is with the current file locking mechanism. On a completely different note, does redb support "unlimited" key/value sizes, or is there some hard limit? I didn't see any mention in the README or design.md. I.e., what happens if a key exceeds the page size? |
Alright, some initial findings: It looks like WASI support will actually be possible sometime in near-ish™️ future, at least using nightly! The errors I'm encountering during compilation come mostly from The only changes necessary should be adding a cargo feature to |
From my comment in #508:
|
wasm support even if read only would be amazing |
Since the |
For future implementation:
|
What would it take to support indexeddb as a backend for |
Hi! I was looking to see if redb could compile to
wasm32-wasi
and came across a handful of issues (with mmap and file locking):I was wondering if you would be willing to support WASI as a compilation target in redb. I might be able to PR to fix the above compilation issues and test the following functionality:
memmap
crate?) can probably be fixed by just copying the unix implementation (WASI has a libc that should be the same as unix)The text was updated successfully, but these errors were encountered: