Skip to content

deps: replace futures with futures-lite - #92

Merged
Frando merged 2 commits into
mainfrom
deps/futures-lite
Nov 23, 2026
Merged

Frando merged 2 commits into
mainfrom
deps/futures-lite

Conversation

@Frando

@Frando Frando commented Nov 23, 2026 •

Copy link
Copy Markdown
Member

patchbay depends on the full futures crate. The library uses only
StreamExt::next on the netlink reply stream.

  • Replace futures with futures-lite in the library dependencies.
  • Keep futures-buffered as a dev-dependency. The NAT combo test uses
    it for buffered_unordered.
  • The futures-lite filter_map takes a plain closure, so the test
    passes |x| x and no longer wraps the item in an async block.

The library only needs `StreamExt::next`, which `futures-lite` has. Drop
the `futures` dependency and use `futures-lite` instead. The NAT combo
test keeps `futures-buffered` as a dev-dependency for
`buffered_unordered`. The `futures-lite` `filter_map` takes a plain
closure, so the test no longer wraps the item in an async block.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Frando
Frando merged commit 23e1def into main Nov 23, 2026
7 of 8 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.

1 participant