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

*: Remove usage of custom buffer initialization usage #1263

Merged
merged 5 commits into from
Nov 1, 2019

Conversation

mxinden
Copy link
Member

@mxinden mxinden commented Sep 30, 2019

With version 0.3.0-alpha.19 the futures-preview crate makes the
AsyncRead::initializer API unstable.

In order to improve interoperability with e.g. both a library depending
on alpha.18 as well as a library depending on alpha.19 and in order for
rust-libp2p to become stable again, this commit removes all usages of
the unstable initializer API.

Status

With version `0.3.0-alpha.19` the futures-preview crate makes the
`AsyncRead::initializer` API unstable.

In order to improve interoperability with e.g. both a library depending
on alpha.18 as well as a library depending on alpha.19 and in order for
rust-libp2p to become stable again, this commit removes all usages of
the unstable `initializer` API.
@tomaka
Copy link
Member

tomaka commented Oct 28, 2019

Is this ready? Shall we merge this? Or is there any blocker?

@mxinden
Copy link
Member Author

mxinden commented Oct 31, 2019

Not yet ready for a proper review. I will update this pull request and ping you again.

@@ -80,10 +80,6 @@ where
fn destroy_outbound(&self, _: Self::OutboundSubstream) {
}

unsafe fn prepare_uninitialized_buffer(&self, _: &mut [u8]) -> bool {
Copy link
Member Author

Choose a reason for hiding this comment

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

Should this pull request touch this as well?

@mxinden mxinden marked this pull request as ready for review October 31, 2019 13:43
With version 0.3.0-alpha.19 the futures-preview crate makes the
AsyncRead::initializer API unstable. Given that the previous commits
removed usage of the initializer API, the version pinning is not needed
any longer.
@twittner twittner merged commit 8944899 into libp2p:stable-futures Nov 1, 2019
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.

None yet

3 participants