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

Add a WASI file system that grants access to IPFS #11

Draft
wants to merge 14 commits into
base: master
Choose a base branch
from

Conversation

mikelsr
Copy link
Collaborator

@mikelsr mikelsr commented Sep 17, 2024

No description provided.

@mikelsr mikelsr linked an issue Sep 17, 2024 that may be closed by this pull request
@mikelsr
Copy link
Collaborator Author

mikelsr commented Sep 17, 2024

I've laid out the skeleton of every trait we will have to implement to be able to provide the file system. For the time being I am hopeful we'll be able to "forward" most of these calls to an underlying attribute, but I'm also cautiously aware that it will most likely be considerably more complicated than that...

@mikelsr mikelsr self-assigned this Sep 17, 2024
@mikelsr mikelsr marked this pull request as draft September 17, 2024 18:46
Copy link
Contributor

@lthibault lthibault left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a few fly-by comments about docstrings, in case early feedback is helpful. Feel free to ignore!


use net::ipfs::Client;

pub struct IpfsFs {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we add a doc string to this type too?

self.consume_stream(stream).await
}

pub fn delete_me(&self) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's delete_me? Is that some kind of destructor method?

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

Successfully merging this pull request may close these issues.

IPFS filesystem for WASI
2 participants