Files
iroh/.github
Rüdiger Klaehn 647f28ed11 deps: Feature gate portmapper, and allow disabling portmapper by default. (#4011)
## Description

Iroh on esp32 is over 4 MiB out of the box, which means that it won't
run on the majority of the esp32 devices out there.

There are a number of deps we can get rid of without affecting core
functionality. Portmapper is the easiest to feature gate since it is
already disabled for wasm. Portmapper and its dep idg-next are big
enough that when disabling it it barely fits on esp32 4 MiB devices.

Implements https://github.com/n0-computer/iroh/issues/3811

## Breaking Changes

Builds that use no-default-features won't have the portmapper. This does
not change APIs, but will change functionality.

## Notes & open questions

In general, if a feature is disabled, should we stub the public API to
just report 0/noops, or hide it? E.g. if you were to stub portmapper
metrics you would not need to enable portmapper for our bench project.

## Change checklist
<!-- Remove any that are not relevant. -->
- [ ] 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.
- [ ] List all breaking changes in the above "Breaking Changes" section.
- [ ] Open an issue or PR on any number0 repos that are affected by this
breaking change. Give guidance on how the updates should be handled or
do the actual updates themselves. The major ones are:
    - [ ] [`quic-rpc`](https://github.com/n0-computer/quic-rpc)
    - [ ] [`iroh-gossip`](https://github.com/n0-computer/iroh-gossip)
    - [ ] [`iroh-blobs`](https://github.com/n0-computer/iroh-blobs)
    - [ ] [`dumbpipe`](https://github.com/n0-computer/dumbpipe)
    - [ ] [`sendme`](https://github.com/n0-computer/sendme)
2026-03-12 10:32:23 +00:00
..