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

Limit futures dependency to Stream via feature flag #1774

Merged
merged 15 commits into from
Nov 16, 2019
Merged

Commits on Nov 15, 2019

  1. remove futures dependency from tokio

    In an effort to reach API stability, the `tokio` crate is shedding its
    _public_ dependencies on crates that are either a) do not provide a
    stable (1.0+) release with longevity guarantees or b) match the `tokio`
    release cadence. Of course, implmementing `std` traits fits the
    requirements.
    
    Instead of publically dependending on `futures` from `tokio`, the
    `tokio-util` crate provides the necessary bridge to go from Tokio types
    to `futures` traits (primarily `Stream`).
    
    Instead of implementing `Stream` for iteration, types that are logically
    streams provide `async fn next_*` functions to obtain the next value.
    Avoiding the `next()` function name will allow for forwards
    compatibility once the `Stream` trait is provided by `std`.
    
    Additionally, some misc cleanup is also done:
    
    - `tokio::io::io` -> `tokio::io::util`.
    - `delay` -> `delay_until`.
    - `Timeout::new` -> `timeout(...)`.
    - `signal::ctrl_c()` returns a future instead of a stream.
    - `{tcp,unix}::Incoming` is removed (due to lack of `Stream` trait).
    - `time::Throttle` is removed (due to lack of `Stream` trait).
    carllerche committed Nov 15, 2019
    Configuration menu
    Copy the full SHA
    cd0e973 View commit details
    Browse the repository at this point in the history
  2. fmt

    carllerche committed Nov 15, 2019
    Configuration menu
    Copy the full SHA
    8cef1fa View commit details
    Browse the repository at this point in the history
  3. fix test

    carllerche committed Nov 15, 2019
    Configuration menu
    Copy the full SHA
    19006c3 View commit details
    Browse the repository at this point in the history
  4. try to fix windows

    carllerche committed Nov 15, 2019
    Configuration menu
    Copy the full SHA
    fb7f606 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    4ae6d4b View commit details
    Browse the repository at this point in the history
  6. fix tests

    carllerche committed Nov 15, 2019
    Configuration menu
    Copy the full SHA
    b419acc View commit details
    Browse the repository at this point in the history
  7. fmt

    carllerche committed Nov 15, 2019
    Configuration menu
    Copy the full SHA
    9671b4c View commit details
    Browse the repository at this point in the history
  8. try to fix ci again

    carllerche committed Nov 15, 2019
    Configuration menu
    Copy the full SHA
    b6791cd View commit details
    Browse the repository at this point in the history
  9. try to fix ci again

    carllerche committed Nov 15, 2019
    Configuration menu
    Copy the full SHA
    97371c6 View commit details
    Browse the repository at this point in the history
  10. try to fix windows again

    carllerche committed Nov 15, 2019
    Configuration menu
    Copy the full SHA
    39ea191 View commit details
    Browse the repository at this point in the history
  11. try again

    carllerche committed Nov 15, 2019
    Configuration menu
    Copy the full SHA
    0d80e87 View commit details
    Browse the repository at this point in the history
  12. and again

    carllerche committed Nov 15, 2019
    Configuration menu
    Copy the full SHA
    53278d5 View commit details
    Browse the repository at this point in the history

Commits on Nov 16, 2019

  1. Configuration menu
    Copy the full SHA
    ab2bbcd View commit details
    Browse the repository at this point in the history
  2. dox

    carllerche committed Nov 16, 2019
    Configuration menu
    Copy the full SHA
    ac047a2 View commit details
    Browse the repository at this point in the history
  3. fmt

    carllerche committed Nov 16, 2019
    Configuration menu
    Copy the full SHA
    5b962cc View commit details
    Browse the repository at this point in the history