Skip to content

Conversation

@Frando
Copy link
Member

@Frando Frando commented Jul 28, 2025

  • iroh-blobs uses the varint utils. Currently they are behind the rpc feature. However iroh-blobs would use those even when the quinn rpc is disabled. So I added a feature flag for this. Maybe the better thing would be to move those out into a varint crate? Dunno. But this is fine too.
  • Added a RequestError::Unreachable variant if rpc feature is disabled. Snafu chokes on empty enums somehow. This was the quick fix to have iroh_blobs build without irpc's rpc feature. Not sure if there is a better way, would need to investigate what exactly snafu does.

@Frando Frando changed the title feat: variant feature flag feat: varint feature flag Jul 28, 2025
@Frando Frando force-pushed the Frando/varint-feature branch from 3cb4704 to 1bb4dbd Compare October 21, 2025 13:55
@Frando Frando marked this pull request as ready for review October 21, 2025 14:10
pub use quinn_setup_utils::*;

#[cfg(feature = "rpc")]
#[cfg(any(feature = "rpc", feature = "varint-util"))]
Copy link
Contributor

Choose a reason for hiding this comment

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

can you add docsrs flags for better docs?

Copy link
Contributor

@dignifiedquire dignifiedquire left a comment

Choose a reason for hiding this comment

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

other than my note, looks good

@Frando Frando force-pushed the Frando/varint-feature branch from ebeff32 to 417ad94 Compare October 21, 2025 22:29
@Frando Frando merged commit 83c9dcb into main Oct 21, 2025
16 checks passed
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.

3 participants