-
Notifications
You must be signed in to change notification settings - Fork 534
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
Add Origin Private File System support #2442
Comments
Interesting! I plan to make OpenDAL work in wasm first and than add OPFS support. |
We are ready for this now! |
That's great news ! Unfortunately, AFAIK, there is no high level API for interacting with OPFS in Rust at the moment, but the building blocks are in web-sys. The addition of OPFS was discussed in rustwasm/wasm-bindgen#2868 if anyone is interested. |
We need to wait for rustwasm/wasm-bindgen#3755 |
Hello, everyone. This issue has been submitted as this year's OSPP project. I hope we can push this issue forward. |
Apply for this project: https://summer-ospp.ac.cn/org/prodetail/241110348 GoalAdd Origin Private File System (OPFS) support for opendal so that users can use The usage will look like: let op = Operator::via_map(Scheme::Opfs, map)?;
let bs = op.read("path/to/file").await?; opfs should only be provided in wasm32 target. Requirement
MentorshipMentor: @PsiACE |
I'm interested! |
cc @PsiACE and @LYZJU2019, any updates on this? |
Here are my brief ideas on implementing this service. Tasks
|
I believe we should focus on getting our services layout ready first. #5269 is almost ready but still needs some work. Maybe we can leave all functions unimplemented for now. Hi, @LYZJU2019 do you have time to address the comments in PR? Or maybe @Eason0729 can help based on your existing work. |
Hi @Xuanwo , thanks for bringing this up. I'm happy to help out if @LYZJU2019 isn’t available. However, I’m new to this codebase, and I won’t be available for the next week. |
There is a recent Web API providing access to a file system private to the origin of the page. This could be useful for a cross platform application targeting desktop and WASM, using either the
fs
backend on desktop or the new backend on WASM.It is not a small task, but maybe some people could find this interesting.
The text was updated successfully, but these errors were encountered: