-
Notifications
You must be signed in to change notification settings - Fork 4
deps/refactor: port to iroh 0.91 #47
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
Documentation for this PR has been generated and is available at: https://n0-computer.github.io/iroh-docs/pr/47/docs/iroh_docs/ Last updated: 2025-08-01T08:39:38Z |
src/engine.rs
Outdated
}) | ||
}) | ||
} | ||
// TODO(Frando): We can't port iroh-docs to 0.90 without something like this. |
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.
hey, does this TODO need to be addressed before merging?
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.
I removed the comment. This is now just living elsewhere, as the needed iroh_blobs PR was merged.
## Description This adds back a way to externally protect blobs from garbage collection. It works like it did in blobs1: Users can provide an (async) callback to which a `&mut HashSet<Hash>` is passed. The callback is invoked before each gc run, and all hashes added to the set will be protected from gc during this run. Used in n0-computer/iroh-docs#47 ## Breaking Changes <!-- Optional, if there are any breaking changes document them, including how to migrate older code. --> ## Notes & open questions <!-- Any notes, remarks or open questions you have to make about the PR. --> ## Change checklist - [ ] Self-review. - [ ] Documentation updates following the [style guide](https://rust-lang.github.io/rfcs/1574-more-api-documentation-conventions.html#appendix-a-full-conventions-text), if relevant. - [ ] Tests if relevant. - [ ] All breaking changes documented.
Description
Ports iroh-docs to iroh 0.91 and from quic-rpc to irpc.
TODOs / Missing features vs iroh-docs 0.35:
Doc::export_file
andDoc::import_file
are missing. Would need some more work to port them, I didn't get around to that yet. But it's not super critical, as you can import via iroh-blobs and then use Doc::set_hash.Status for everything else
Breaking Changes
Quite a few. TODO: Document.
Notes & open questions
Change checklist