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

IndexedDB backend replacement for std::fs #1

Open
iceiix opened this issue May 29, 2019 · 0 comments
Open

IndexedDB backend replacement for std::fs #1

iceiix opened this issue May 29, 2019 · 0 comments
Labels
enhancement New feature or request

Comments

@iceiix
Copy link
Owner

iceiix commented May 29, 2019

Local Storage is fine for small files, but for larger binary data it would be more appropriate to use IndexedDB API. Probably as a separate crate.

Emscripten's IndexedDB filesystem (IDBFS) for reference:

https://github.com/emscripten-core/emscripten/blob/incoming/src/IDBStore.js
https://github.com/emscripten-core/emscripten/blob/incoming/src/library_idbstore.js
https://github.com/emscripten-core/emscripten/blob/incoming/src/library_idbfs.js

Mozilla documentation: https://developer.mozilla.org/en-US/docs/Web/API/IndexedDB_API https://developer.mozilla.org/en-US/docs/Web/API/IndexedDB_API/Using_IndexedDB

Rust wasm support for IDB? Could be a good idea to use stdweb, updated koute/stdweb#342 from koute/stdweb#297 awaiting review. Or adapt Emscripten's .js files?

@iceiix iceiix added the enhancement New feature or request label May 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant