Skip to content

deps: bump to iroh@main and irpc@main #128

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

Merged
merged 4 commits into from
Jul 30, 2025
Merged

deps: bump to iroh@main and irpc@main #128

merged 4 commits into from
Jul 30, 2025

Conversation

Frando
Copy link
Member

@Frando Frando commented Jul 28, 2025

Description

This bumps irpc to the (not yet released) main version, adapting for the breaking changes introduced in n0-computer/irpc#46.

Breaking Changes

  • iroh_blobs::api::proto::StoreService is removed, Request now implements irpc::Service
  • iroh_blobs::api::downloader::DownloaderService is removed, SwarmProtocol now implements irpc::Service

Notes & open questions

Change checklist

  • Self-review.
  • Documentation updates following the style guide, if relevant.
  • Tests if relevant.
  • All breaking changes documented.

Copy link

github-actions bot commented Jul 28, 2025

Documentation for this PR has been generated and is available at: https://n0-computer.github.io/iroh-blobs/pr/128/docs/iroh_blobs/

Last updated: 2025-07-29T12:58:24Z

@n0bot n0bot bot added this to iroh Jul 28, 2025
@github-project-automation github-project-automation bot moved this to 🏗 In progress in iroh Jul 28, 2025
Copy link
Collaborator

@rklaehn rklaehn left a comment

Choose a reason for hiding this comment

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

Oh boy, that is probably going to be a lot of merge conflicts in my various open PRs. Still, better get it over with...

src/api.rs Outdated
Request::ClearProtected(msg) => local.send((msg, tx)),
Request::SyncDb(msg) => local.send((msg, tx)),
Request::Shutdown(msg) => local.send((msg, tx)),
BlobsApi::SetTag(msg) => local.send((msg, tx)),
Copy link
Collaborator

Choose a reason for hiding this comment

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

Was this forwarder boilerplate one of the things we can get rid of with the new features of the macro?

Just curious, perfectly reasonable to do this in a subsequent PR.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yup! Removed in the latest commit.

src/api/proto.rs Outdated
#[derive(Debug, Serialize, Deserialize)]
pub enum Request {
pub enum BlobsApi {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Not quite sure about this rename. Request as the enum of all possible serializable requests seems fine. And calling it BlobsApi creates a bit of confusion with the api module that has the actual friendly api.

Copy link
Member Author

Choose a reason for hiding this comment

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

Don't mind much. Renamed back to Request. As most things are not public that use this it's fine. My initial rename was from seeing irpc::Client<Request> and thinking "maybe better to rename to something that contains Blobs". But as this is all private it really is fine as it is.

@rklaehn
Copy link
Collaborator

rklaehn commented Jul 28, 2025

I think since the proto module is hidden but public, due to the rename there are breaking changes.

@Frando Frando changed the title deps: bump to irpc@main deps: bump to iroh@main and irpc@main Jul 29, 2025
@ramfox ramfox merged commit d23d37a into main Jul 30, 2025
24 of 25 checks passed
@github-project-automation github-project-automation bot moved this from 🏗 In progress to ✅ Done in iroh Jul 30, 2025
@ramfox ramfox deleted the Frando/bump-irpc branch July 30, 2025 18:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: ✅ Done
Development

Successfully merging this pull request may close these issues.

3 participants