-
Notifications
You must be signed in to change notification settings - Fork 13
docs: Add module docs #114
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
Conversation
Was broken by #112
clippy was the reason I changed this in the first place... :rollseyes:
Documentation for this PR has been generated and is available at: https://n0-computer.github.io/iroh-blobs/pr/114/docs/iroh_blobs/ Last updated: 2025-07-11T15:01:47Z |
215b850
to
355a775
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just some nits
fn deref(&self) -> &Self::Target { | ||
&self.inner.store | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Personally I'm not a huge fan of derefs, but also 🤷
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Personally I'm not a huge fan of derefs, but also 🤷
If we don't like derefs in public APIs, we would also have to remove the deref from MemStore and FsStore to the client API. But if we want to do this, it would have to be a separate PR since it would affect a lot of places.
Also add a missing Deref so you can use BlobsProtocol as a Store directly.
Description
Adds module docs and includes the README.md into the docs so the example in README.md is being tested.
Breaking Changes
None, I guess. The additional deref is not breaking.
Notes & open questions
There is an unrelated change, adding back lifetimes, the lack of which that make my local clippy unhappy (I only removed the lifetimes because of clippy in the first place).
Change checklist