Skip to content

Replace parts of futures-util with std APIs#1233

Merged
paolobarbolini merged 1 commit intorust-postgres:masterfrom
paolobarbolini:less-futures-crate
Sep 20, 2025
Merged

Replace parts of futures-util with std APIs#1233
paolobarbolini merged 1 commit intorust-postgres:masterfrom
paolobarbolini:less-futures-crate

Conversation

@paolobarbolini
Copy link
Copy Markdown
Member

Replaces the following futures-util APIs with std equivalents:

Before After Comment
futures_util::future::Future std::future::Future It was just a re-export
futures_util::future::poll_fn std::future::poll_fn Reimplements it in the same way
futures_util::future::ready std::future::ready Reimplements it in the same way
futures_util::ready! std::task::ready! Reimplements it in the same way
futures_util::pin_mut! std::pin::pin! Reimplements it in a similar way, but more powerful

std::pin::pin! should be the newest one, with a MSRV of v1.68.

@paolobarbolini paolobarbolini merged commit 406b932 into rust-postgres:master Sep 20, 2025
4 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