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

Release 0.3.29 #2791

Merged
merged 26 commits into from
Oct 26, 2023
Merged

Release 0.3.29 #2791

merged 26 commits into from
Oct 26, 2023

Commits on Sep 6, 2023

  1. Configuration menu
    Copy the full SHA
    bd8215b View commit details
    Browse the repository at this point in the history
  2. ci: Fix MSRV build

    ```
    error package `log v0.4.19` cannot be built because it requires rustc 1.60.0 or newer, while the currently active rustc version is 1.56.1
    ```
    taiki-e committed Sep 6, 2023
    Configuration menu
    Copy the full SHA
    818c2fc View commit details
    Browse the repository at this point in the history
  3. Fix build error with -Z minimal-versions

    ```
    error[E0635]: unknown feature `proc_macro_span_shrink`
      --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/proc-macro2-1.0.52/src/lib.rs:92:30
       |
    92 |     feature(proc_macro_span, proc_macro_span_shrink)
       |                              ^^^^^^^^^^^^^^^^^^^^^^
    ```
    taiki-e committed Sep 6, 2023
    Configuration menu
    Copy the full SHA
    240c67a View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    4bbd20d View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    36581d6 View commit details
    Browse the repository at this point in the history
  6. Add len, is_empty methods for UnboundedSender (#2750)

    - add `len`, `is_empty` methods to inspect how many messages are
      enqueued in the message queue.
    - add test for `len` and `is_empty`
    
    Co-authored-by: Jakub Horak <[email protected]>
    2 people authored and taiki-e committed Sep 6, 2023
    Configuration menu
    Copy the full SHA
    247e1f0 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    b65bbdf View commit details
    Browse the repository at this point in the history
  8. Update CI config (#2768)

    taiki-e committed Sep 6, 2023
    Configuration menu
    Copy the full SHA
    652ec46 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    c3748e5 View commit details
    Browse the repository at this point in the history
  10. Fix typo (#2770)

    tz629 authored and taiki-e committed Sep 6, 2023
    Configuration menu
    Copy the full SHA
    2ad0d31 View commit details
    Browse the repository at this point in the history

Commits on Oct 26, 2023

  1. Configuration menu
    Copy the full SHA
    7b68b15 View commit details
    Browse the repository at this point in the history
  2. Update FuturesOrdered docs to refer to poll_next instead of poll

    and `push_back` instead of `push` (which is deprecated).
    zachs18 authored and taiki-e committed Oct 26, 2023
    Configuration menu
    Copy the full SHA
    75f6f84 View commit details
    Browse the repository at this point in the history
  3. Add doclinks to FuturesOrdered's docs.

    zachs18 authored and taiki-e committed Oct 26, 2023
    Configuration menu
    Copy the full SHA
    d02e01f View commit details
    Browse the repository at this point in the history
  4. Wrap doc comments in futures_ordered.rs

    zachs18 authored and taiki-e committed Oct 26, 2023
    Configuration menu
    Copy the full SHA
    486189d View commit details
    Browse the repository at this point in the history
  5. Panic if All or Any are polled after completing due to a short-ci…

    …rcuit
    
    These futures should panic if they are polled after completing.
    Currently they do so but only if they complete due to exhausting the
    `Stream` that they pull data from. If they complete due to
    short-circuiting, they are left in a state where `fut` and `accum` are
    still `Some`. This means that if they are polled again, they end up
    polling the inner `fut` again. That usually causes a panic but the error
    message will likely reference the internal `Future`, not `All` / `Any`.
    
    With this commit, `All` and `Any`'s internal state will be set such that
    if they are polled again after completing, they will panic without
    polling `fut`.
    cstyles authored and taiki-e committed Oct 26, 2023
    Configuration menu
    Copy the full SHA
    d551d42 View commit details
    Browse the repository at this point in the history
  6. Replace All and Any's accum field with done

    It looks like `All` was originally implemented by copying from `TryFold`
    from which it inherited its `accum` field. However, `accum` can only
    ever be one of two values: `None` (if `All` has already completed) or
    `Some(true)` (if it's still processing values from the inner `Stream`).
    It doesn't need to keep track of an accumulator because the very fact
    that it hasn't short-circuited yet means that the accumulated value
    can't be `Some(false)`. Therefore, we only need two values here and we
    can represent them with a `bool` indicating whether or not `All` has
    already completed.
    
    The same principle applies for `Any` but substituting `Some(false)` for
    `Some(true)`.
    cstyles authored and taiki-e committed Oct 26, 2023
    Configuration menu
    Copy the full SHA
    5724e31 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    13afcc8 View commit details
    Browse the repository at this point in the history
  8. Fix unused_imports warning

    ```
       error: unused import: `self::stream_select_mod::*`
        --> futures-util/src/async_await/mod.rs:38:9
         |
      38 | pub use self::stream_select_mod::*;
         |         ^^^^^^^^^^^^^^^^^^^^^^^^^^
         |
         = note: `-D unused-imports` implied by `-D warnings`
         = help: to override `-D warnings` add `#[allow(unused_imports)]`
    ```
    taiki-e committed Oct 26, 2023
    Configuration menu
    Copy the full SHA
    c9ee75c View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    c6e0092 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    6ce97ff View commit details
    Browse the repository at this point in the history
  11. Fix Sync impl of FuturesUnordered

    Fixes #2786
    taiki-e committed Oct 26, 2023
    Configuration menu
    Copy the full SHA
    38085db View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    49f24bb View commit details
    Browse the repository at this point in the history
  13. Add TryAll adapter

    cstyles authored and taiki-e committed Oct 26, 2023
    Configuration menu
    Copy the full SHA
    56835c0 View commit details
    Browse the repository at this point in the history
  14. Add TryAny adapter

    cstyles authored and taiki-e committed Oct 26, 2023
    Configuration menu
    Copy the full SHA
    cb8d168 View commit details
    Browse the repository at this point in the history
  15. Provide AtomicWaker if portable-atomic feature is enabled, even if at…

    …omic CAS is not available
    taiki-e committed Oct 26, 2023
    Configuration menu
    Copy the full SHA
    9d7f4e4 View commit details
    Browse the repository at this point in the history
  16. Release 0.3.29

    taiki-e committed Oct 26, 2023
    Configuration menu
    Copy the full SHA
    863baed View commit details
    Browse the repository at this point in the history