Commit 83c9dcb
authored
feat: varint feature flag (#54)
* 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.1 parent cd72805 commit 83c9dcb
3 files changed
+18
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
| 74 | + | |
74 | 75 | | |
75 | 76 | | |
76 | 77 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
309 | 309 | | |
310 | 310 | | |
311 | 311 | | |
312 | | - | |
313 | | - | |
314 | 312 | | |
315 | | - | |
316 | | - | |
317 | 313 | | |
318 | 314 | | |
319 | 315 | | |
| |||
1704 | 1700 | | |
1705 | 1701 | | |
1706 | 1702 | | |
| 1703 | + | |
| 1704 | + | |
| 1705 | + | |
| 1706 | + | |
1707 | 1707 | | |
1708 | 1708 | | |
1709 | 1709 | | |
| |||
1747 | 1747 | | |
1748 | 1748 | | |
1749 | 1749 | | |
| 1750 | + | |
| 1751 | + | |
1750 | 1752 | | |
1751 | 1753 | | |
1752 | 1754 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
174 | 174 | | |
175 | 175 | | |
176 | 176 | | |
177 | | - | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
178 | 182 | | |
179 | 183 | | |
180 | 184 | | |
| |||
382 | 386 | | |
383 | 387 | | |
384 | 388 | | |
385 | | - | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
386 | 395 | | |
387 | 396 | | |
388 | 397 | | |
| |||
0 commit comments