Skip to content
This repository was archived by the owner on Mar 3, 2020. It is now read-only.

Codebase upgrade #112

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Codebase upgrade #112

wants to merge 4 commits into from

Conversation

vorot93
Copy link

@vorot93 vorot93 commented Dec 31, 2018

This PR upgrades the code to latest Rust nightly.

  • Fixed compilation errors in tests.
  • Removed stabilized and subsumed feature flags.
  • Switched to 2018 edition.
  • Simplified stream_yield macro.
  • Formatted the code with rustfmt
  • Fixed breakage caused by move of generators to Pin API.


extern crate futures_await as futures;
extern crate tokio_core;
extern crate tokio_io;

use std::io::{self, BufReader};

use futures::prelude::*;
use futures::prelude::{r#await, *};
Copy link
Contributor

Choose a reason for hiding this comment

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

If you activate the await_macro feature await will not be a keyword (at least at the moment).

Copy link
Author

Choose a reason for hiding this comment

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

I think adapting to "standard" language syntax rather than bringing in more features is the better way forward.

@vorot93 vorot93 mentioned this pull request Jan 30, 2019
@withoutboats
Copy link
Collaborator

I'm about to go on vacation for the rest of the week and then the next week is a Rust all hands, so I'm not sure when I'll be able to pay this proper attention. A question for you to think about in the meantime: would you be interested in maintaining this crate?

@vorot93
Copy link
Author

vorot93 commented Jan 30, 2019

@withoutboats Yes, I would.

@vorot93
Copy link
Author

vorot93 commented Feb 17, 2019

@withoutboats Could you please take a stab at reviewing this PR? futures-await has been unusable on the latest nightly for quite some time now.

@milesgranger
Copy link

This would have been great to have.

@vorot93
Copy link
Author

vorot93 commented Mar 26, 2019

At this point it looks like there is no one able to review this PR. Therefore I urge all those who depend on latest nightlies to move to mainline async/await and gen-stream crate.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants