Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Replace type related to future with standard library #805

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tottoto
Copy link
Contributor

@tottoto tottoto commented Dec 19, 2024

Replaces the types from futures crates with ones from the standard library.

@tottoto tottoto force-pushed the replace-type-related-to-future-with-standard-library branch from 9724e1d to e80f387 Compare December 19, 2024 21:35
@jplatte
Copy link
Contributor

jplatte commented Jan 4, 2025

Looks like (fortunately) none of these are part of the public API. cargo semver-checks doesn't complain and I looked over the changes as well.

Comment on lines -24 to -25
# Internal
__common = ["futures-core", "pin-project-lite"]
Copy link
Contributor

Choose a reason for hiding this comment

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

If we are removing this, we probably want the removal to appear in the changelog, which may require this change to happen in a dedicated PR.

Copy link
Contributor

Choose a reason for hiding this comment

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

Do people really enable features with __-prefixed names? It seems pretty clear that it's internal and may go away at any time..

Copy link
Collaborator

Choose a reason for hiding this comment

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

The double underscores is clear to me that it's not publicly stable.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think the decision to remove it can be postponed.

@@ -12,7 +12,8 @@
//! # Examples
//!
//! ```rust
//! use futures_util::{future::poll_fn, pin_mut};
//! use std::future::poll_fn;
//! use futures_util::pin_mut;
Copy link
Contributor

Choose a reason for hiding this comment

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

The standard library also has the pin! macro that can replace this. That may also make sense to update in this PR.

(This isn't the only file using pin_mut.)

Copy link
Contributor

Choose a reason for hiding this comment

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

Not possible without bumping MSRV from 1.64 to 1.68.

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.

4 participants