html-to-markdown 2.25.1 → 2.26.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Cargo.toml +3 -0
- data/Gemfile.lock +2 -2
- data/README.md +8 -5
- data/ext/html-to-markdown-rb/native/Cargo.toml +1 -1
- data/lib/html_to_markdown/version.rb +1 -1
- data/rust-vendor/anyhow/.cargo-checksum.json +1 -1
- data/rust-vendor/anyhow/.cargo_vcs_info.json +1 -1
- data/rust-vendor/anyhow/.github/workflows/ci.yml +3 -4
- data/rust-vendor/anyhow/Cargo.lock +31 -111
- data/rust-vendor/anyhow/Cargo.toml +2 -5
- data/rust-vendor/anyhow/Cargo.toml.orig +4 -8
- data/rust-vendor/anyhow/build.rs +1 -14
- data/rust-vendor/anyhow/src/backtrace.rs +8 -370
- data/rust-vendor/anyhow/src/error.rs +12 -39
- data/rust-vendor/anyhow/src/fmt.rs +2 -2
- data/rust-vendor/anyhow/src/lib.rs +1 -1
- data/rust-vendor/async-trait/.cargo-checksum.json +1 -0
- data/rust-vendor/async-trait/.cargo_vcs_info.json +6 -0
- data/rust-vendor/async-trait/.github/FUNDING.yml +1 -0
- data/rust-vendor/async-trait/.github/workflows/ci.yml +109 -0
- data/rust-vendor/async-trait/Cargo.lock +453 -0
- data/rust-vendor/async-trait/Cargo.toml +91 -0
- data/rust-vendor/async-trait/Cargo.toml.orig +38 -0
- data/rust-vendor/async-trait/LICENSE-APACHE +176 -0
- data/rust-vendor/async-trait/README.md +205 -0
- data/rust-vendor/async-trait/src/args.rs +36 -0
- data/rust-vendor/async-trait/src/bound.rs +50 -0
- data/rust-vendor/async-trait/src/expand.rs +504 -0
- data/rust-vendor/async-trait/src/lib.rs +257 -0
- data/rust-vendor/async-trait/src/lifetime.rs +112 -0
- data/rust-vendor/async-trait/src/parse.rs +34 -0
- data/rust-vendor/async-trait/src/receiver.rs +169 -0
- data/rust-vendor/async-trait/src/verbatim.rs +34 -0
- data/rust-vendor/async-trait/tests/compiletest.rs +7 -0
- data/rust-vendor/async-trait/tests/executor/mod.rs +36 -0
- data/rust-vendor/async-trait/tests/test.rs +1728 -0
- data/rust-vendor/async-trait/tests/ui/arg-implementation-detail.rs +22 -0
- data/rust-vendor/async-trait/tests/ui/arg-implementation-detail.stderr +5 -0
- data/rust-vendor/async-trait/tests/ui/bare-trait-object.rs +15 -0
- data/rust-vendor/async-trait/tests/ui/bare-trait-object.stderr +15 -0
- data/rust-vendor/async-trait/tests/ui/consider-restricting.rs +26 -0
- data/rust-vendor/async-trait/tests/ui/consider-restricting.stderr +33 -0
- data/rust-vendor/async-trait/tests/ui/delimiter-span.rs +24 -0
- data/rust-vendor/async-trait/tests/ui/delimiter-span.stderr +21 -0
- data/rust-vendor/async-trait/tests/ui/lifetime-defined-here.rs +23 -0
- data/rust-vendor/async-trait/tests/ui/lifetime-defined-here.stderr +29 -0
- data/rust-vendor/async-trait/tests/ui/lifetime-span.rs +36 -0
- data/rust-vendor/async-trait/tests/ui/lifetime-span.stderr +33 -0
- data/rust-vendor/async-trait/tests/ui/missing-async-in-impl.rs +15 -0
- data/rust-vendor/async-trait/tests/ui/missing-async-in-impl.stderr +8 -0
- data/rust-vendor/async-trait/tests/ui/missing-async-in-trait.rs +15 -0
- data/rust-vendor/async-trait/tests/ui/missing-async-in-trait.stderr +8 -0
- data/rust-vendor/async-trait/tests/ui/missing-body.rs +15 -0
- data/rust-vendor/async-trait/tests/ui/missing-body.stderr +7 -0
- data/rust-vendor/async-trait/tests/ui/must-use.rs +21 -0
- data/rust-vendor/async-trait/tests/ui/must-use.stderr +23 -0
- data/rust-vendor/async-trait/tests/ui/no-attribute-macro.rs +13 -0
- data/rust-vendor/async-trait/tests/ui/no-attribute-macro.stderr +17 -0
- data/rust-vendor/async-trait/tests/ui/self-span.rs +30 -0
- data/rust-vendor/async-trait/tests/ui/self-span.stderr +32 -0
- data/rust-vendor/async-trait/tests/ui/send-not-implemented.rs +22 -0
- data/rust-vendor/async-trait/tests/ui/send-not-implemented.stderr +31 -0
- data/rust-vendor/async-trait/tests/ui/type-mismatch.rs +21 -0
- data/rust-vendor/async-trait/tests/ui/type-mismatch.stderr +11 -0
- data/rust-vendor/async-trait/tests/ui/unreachable.rs +20 -0
- data/rust-vendor/async-trait/tests/ui/unreachable.stderr +14 -0
- data/rust-vendor/async-trait/tests/ui/unsupported-self.rs +15 -0
- data/rust-vendor/async-trait/tests/ui/unsupported-self.stderr +5 -0
- data/rust-vendor/bumpalo/.cargo-checksum.json +1 -1
- data/rust-vendor/bumpalo/.cargo_vcs_info.json +1 -1
- data/rust-vendor/bumpalo/CHANGELOG.md +39 -0
- data/rust-vendor/bumpalo/Cargo.lock +1 -1
- data/rust-vendor/bumpalo/Cargo.toml +2 -2
- data/rust-vendor/bumpalo/Cargo.toml.orig +2 -2
- data/rust-vendor/bumpalo/src/boxed.rs +73 -25
- data/rust-vendor/bumpalo/src/collections/string.rs +41 -19
- data/rust-vendor/bumpalo/src/collections/vec.rs +27 -0
- data/rust-vendor/bumpalo/src/lib.rs +11 -0
- data/rust-vendor/futures/.cargo-checksum.json +1 -0
- data/rust-vendor/futures/.cargo_vcs_info.json +6 -0
- data/rust-vendor/futures/Cargo.lock +746 -0
- data/rust-vendor/futures/Cargo.toml +394 -0
- data/rust-vendor/futures/Cargo.toml.orig +65 -0
- data/rust-vendor/futures/LICENSE-APACHE +202 -0
- data/rust-vendor/futures/LICENSE-MIT +26 -0
- data/rust-vendor/futures/README.md +61 -0
- data/rust-vendor/futures/src/lib.rs +254 -0
- data/rust-vendor/futures/tests/_require_features.rs +13 -0
- data/rust-vendor/futures/tests/async_await_macros.rs +404 -0
- data/rust-vendor/futures/tests/auto_traits.rs +1899 -0
- data/rust-vendor/futures/tests/bilock.rs +104 -0
- data/rust-vendor/futures/tests/compat.rs +16 -0
- data/rust-vendor/futures/tests/eager_drop.rs +121 -0
- data/rust-vendor/futures/tests/eventual.rs +179 -0
- data/rust-vendor/futures/tests/future_abortable.rs +44 -0
- data/rust-vendor/futures/tests/future_basic_combinators.rs +104 -0
- data/rust-vendor/futures/tests/future_fuse.rs +12 -0
- data/rust-vendor/futures/tests/future_inspect.rs +16 -0
- data/rust-vendor/futures/tests/future_join.rs +32 -0
- data/rust-vendor/futures/tests/future_join_all.rs +40 -0
- data/rust-vendor/futures/tests/future_obj.rs +33 -0
- data/rust-vendor/futures/tests/future_select_all.rs +25 -0
- data/rust-vendor/futures/tests/future_select_ok.rs +30 -0
- data/rust-vendor/futures/tests/future_shared.rs +273 -0
- data/rust-vendor/futures/tests/future_try_flatten_stream.rs +83 -0
- data/rust-vendor/futures/tests/future_try_join_all.rs +44 -0
- data/rust-vendor/futures/tests/io_buf_reader.rs +431 -0
- data/rust-vendor/futures/tests/io_buf_writer.rs +239 -0
- data/rust-vendor/futures/tests/io_cursor.rs +30 -0
- data/rust-vendor/futures/tests/io_line_writer.rs +73 -0
- data/rust-vendor/futures/tests/io_lines.rs +84 -0
- data/rust-vendor/futures/tests/io_read.rs +64 -0
- data/rust-vendor/futures/tests/io_read_exact.rs +17 -0
- data/rust-vendor/futures/tests/io_read_line.rs +101 -0
- data/rust-vendor/futures/tests/io_read_to_end.rs +65 -0
- data/rust-vendor/futures/tests/io_read_to_string.rs +44 -0
- data/rust-vendor/futures/tests/io_read_until.rs +60 -0
- data/rust-vendor/futures/tests/io_window.rs +30 -0
- data/rust-vendor/futures/tests/io_write.rs +65 -0
- data/rust-vendor/futures/tests/lock_mutex.rs +69 -0
- data/rust-vendor/futures/tests/macro_comma_support.rs +43 -0
- data/rust-vendor/futures/tests/object_safety.rs +49 -0
- data/rust-vendor/futures/tests/oneshot.rs +78 -0
- data/rust-vendor/futures/tests/ready_queue.rs +148 -0
- data/rust-vendor/futures/tests/recurse.rs +25 -0
- data/rust-vendor/futures/tests/sink.rs +554 -0
- data/rust-vendor/futures/tests/sink_fanout.rs +24 -0
- data/rust-vendor/futures/tests/stream.rs +577 -0
- data/rust-vendor/futures/tests/stream_abortable.rs +46 -0
- data/rust-vendor/futures/tests/stream_buffer_unordered.rs +73 -0
- data/rust-vendor/futures/tests/stream_catch_unwind.rs +27 -0
- data/rust-vendor/futures/tests/stream_futures_ordered.rs +172 -0
- data/rust-vendor/futures/tests/stream_futures_unordered.rs +431 -0
- data/rust-vendor/futures/tests/stream_into_async_read.rs +94 -0
- data/rust-vendor/futures/tests/stream_peekable.rs +58 -0
- data/rust-vendor/futures/tests/stream_select_all.rs +197 -0
- data/rust-vendor/futures/tests/stream_select_next_some.rs +86 -0
- data/rust-vendor/futures/tests/stream_split.rs +57 -0
- data/rust-vendor/futures/tests/stream_try_stream.rs +183 -0
- data/rust-vendor/futures/tests/stream_unfold.rs +32 -0
- data/rust-vendor/futures/tests/task_arc_wake.rs +79 -0
- data/rust-vendor/futures/tests/task_atomic_waker.rs +48 -0
- data/rust-vendor/futures/tests/test_macro.rs +20 -0
- data/rust-vendor/futures/tests/try_join.rs +35 -0
- data/rust-vendor/futures/tests_disabled/all.rs +400 -0
- data/rust-vendor/futures/tests_disabled/stream.rs +368 -0
- data/rust-vendor/futures-channel/.cargo-checksum.json +1 -0
- data/rust-vendor/futures-channel/.cargo_vcs_info.json +6 -0
- data/rust-vendor/futures-channel/Cargo.lock +23 -0
- data/rust-vendor/futures-channel/Cargo.toml +97 -0
- data/rust-vendor/futures-channel/Cargo.toml.orig +38 -0
- data/rust-vendor/futures-channel/LICENSE-APACHE +202 -0
- data/rust-vendor/futures-channel/LICENSE-MIT +26 -0
- data/rust-vendor/futures-channel/README.md +23 -0
- data/rust-vendor/futures-channel/benches/sync_mpsc.rs +135 -0
- data/rust-vendor/futures-channel/src/lib.rs +38 -0
- data/rust-vendor/futures-channel/src/lock.rs +102 -0
- data/rust-vendor/futures-channel/src/mpsc/mod.rs +1468 -0
- data/rust-vendor/futures-channel/src/mpsc/queue.rs +177 -0
- data/rust-vendor/futures-channel/src/mpsc/sink_impl.rs +73 -0
- data/rust-vendor/futures-channel/src/oneshot.rs +488 -0
- data/rust-vendor/futures-channel/tests/channel.rs +66 -0
- data/rust-vendor/futures-channel/tests/mpsc-close.rs +332 -0
- data/rust-vendor/futures-channel/tests/mpsc-size_hint.rs +40 -0
- data/rust-vendor/futures-channel/tests/mpsc.rs +703 -0
- data/rust-vendor/futures-channel/tests/oneshot.rs +256 -0
- data/rust-vendor/futures-core/.cargo-checksum.json +1 -0
- data/rust-vendor/futures-core/.cargo_vcs_info.json +6 -0
- data/rust-vendor/futures-core/Cargo.lock +16 -0
- data/rust-vendor/futures-core/Cargo.toml +66 -0
- data/rust-vendor/futures-core/Cargo.toml.orig +35 -0
- data/rust-vendor/futures-core/LICENSE-APACHE +202 -0
- data/rust-vendor/futures-core/LICENSE-MIT +26 -0
- data/rust-vendor/futures-core/README.md +23 -0
- data/rust-vendor/futures-core/src/future.rs +113 -0
- data/rust-vendor/futures-core/src/lib.rs +27 -0
- data/rust-vendor/futures-core/src/stream.rs +245 -0
- data/rust-vendor/futures-core/src/task/__internal/atomic_waker.rs +423 -0
- data/rust-vendor/futures-core/src/task/__internal/mod.rs +7 -0
- data/rust-vendor/futures-core/src/task/mod.rs +10 -0
- data/rust-vendor/futures-core/src/task/poll.rs +15 -0
- data/rust-vendor/futures-executor/.cargo-checksum.json +1 -0
- data/rust-vendor/futures-executor/.cargo_vcs_info.json +6 -0
- data/rust-vendor/futures-executor/Cargo.lock +48 -0
- data/rust-vendor/futures-executor/Cargo.toml +82 -0
- data/rust-vendor/futures-executor/Cargo.toml.orig +32 -0
- data/rust-vendor/futures-executor/LICENSE-APACHE +202 -0
- data/rust-vendor/futures-executor/LICENSE-MIT +26 -0
- data/rust-vendor/futures-executor/README.md +23 -0
- data/rust-vendor/futures-executor/benches/thread_notify.rs +109 -0
- data/rust-vendor/futures-executor/src/enter.rs +80 -0
- data/rust-vendor/futures-executor/src/lib.rs +73 -0
- data/rust-vendor/futures-executor/src/local_pool.rs +401 -0
- data/rust-vendor/futures-executor/src/thread_pool.rs +377 -0
- data/rust-vendor/futures-executor/src/unpark_mutex.rs +137 -0
- data/rust-vendor/futures-executor/tests/local_pool.rs +497 -0
- data/rust-vendor/futures-io/.cargo-checksum.json +1 -0
- data/rust-vendor/futures-io/.cargo_vcs_info.json +6 -0
- data/rust-vendor/futures-io/Cargo.lock +6 -0
- data/rust-vendor/futures-io/Cargo.toml +58 -0
- data/rust-vendor/futures-io/Cargo.toml.orig +30 -0
- data/rust-vendor/futures-io/LICENSE-APACHE +202 -0
- data/rust-vendor/futures-io/LICENSE-MIT +26 -0
- data/rust-vendor/futures-io/README.md +23 -0
- data/rust-vendor/futures-io/src/lib.rs +561 -0
- data/rust-vendor/futures-macro/.cargo-checksum.json +1 -0
- data/rust-vendor/futures-macro/.cargo_vcs_info.json +6 -0
- data/rust-vendor/futures-macro/Cargo.lock +47 -0
- data/rust-vendor/futures-macro/Cargo.toml +57 -0
- data/rust-vendor/futures-macro/Cargo.toml.orig +25 -0
- data/rust-vendor/futures-macro/LICENSE-APACHE +202 -0
- data/rust-vendor/futures-macro/LICENSE-MIT +26 -0
- data/rust-vendor/futures-macro/src/executor.rs +56 -0
- data/rust-vendor/futures-macro/src/join.rs +144 -0
- data/rust-vendor/futures-macro/src/lib.rs +55 -0
- data/rust-vendor/futures-macro/src/select.rs +330 -0
- data/rust-vendor/futures-macro/src/stream_select.rs +113 -0
- data/rust-vendor/futures-sink/.cargo-checksum.json +1 -0
- data/rust-vendor/futures-sink/.cargo_vcs_info.json +6 -0
- data/rust-vendor/futures-sink/Cargo.lock +6 -0
- data/rust-vendor/futures-sink/Cargo.toml +54 -0
- data/rust-vendor/futures-sink/Cargo.toml.orig +25 -0
- data/rust-vendor/futures-sink/LICENSE-APACHE +202 -0
- data/rust-vendor/futures-sink/LICENSE-MIT +26 -0
- data/rust-vendor/futures-sink/README.md +23 -0
- data/rust-vendor/futures-sink/src/lib.rs +240 -0
- data/rust-vendor/futures-task/.cargo-checksum.json +1 -0
- data/rust-vendor/futures-task/.cargo_vcs_info.json +6 -0
- data/rust-vendor/futures-task/Cargo.lock +6 -0
- data/rust-vendor/futures-task/Cargo.toml +58 -0
- data/rust-vendor/futures-task/Cargo.toml.orig +33 -0
- data/rust-vendor/futures-task/LICENSE-APACHE +202 -0
- data/rust-vendor/futures-task/LICENSE-MIT +26 -0
- data/rust-vendor/futures-task/README.md +23 -0
- data/rust-vendor/futures-task/src/arc_wake.rs +49 -0
- data/rust-vendor/futures-task/src/future_obj.rs +335 -0
- data/rust-vendor/futures-task/src/lib.rs +50 -0
- data/rust-vendor/futures-task/src/noop_waker.rs +63 -0
- data/rust-vendor/futures-task/src/spawn.rs +192 -0
- data/rust-vendor/futures-task/src/waker.rs +60 -0
- data/rust-vendor/futures-task/src/waker_ref.rs +66 -0
- data/rust-vendor/futures-util/.cargo-checksum.json +1 -0
- data/rust-vendor/futures-util/.cargo_vcs_info.json +6 -0
- data/rust-vendor/futures-util/Cargo.lock +693 -0
- data/rust-vendor/futures-util/Cargo.toml +181 -0
- data/rust-vendor/futures-util/Cargo.toml.orig +65 -0
- data/rust-vendor/futures-util/LICENSE-APACHE +202 -0
- data/rust-vendor/futures-util/LICENSE-MIT +26 -0
- data/rust-vendor/futures-util/README.md +23 -0
- data/rust-vendor/futures-util/benches/bilock.rs +68 -0
- data/rust-vendor/futures-util/benches/flatten_unordered.rs +58 -0
- data/rust-vendor/futures-util/benches/futures_unordered.rs +43 -0
- data/rust-vendor/futures-util/benches/select.rs +35 -0
- data/rust-vendor/futures-util/src/abortable.rs +209 -0
- data/rust-vendor/futures-util/src/async_await/join_mod.rs +110 -0
- data/rust-vendor/futures-util/src/async_await/mod.rs +60 -0
- data/rust-vendor/futures-util/src/async_await/pending.rs +43 -0
- data/rust-vendor/futures-util/src/async_await/poll.rs +39 -0
- data/rust-vendor/futures-util/src/async_await/random.rs +54 -0
- data/rust-vendor/futures-util/src/async_await/select_mod.rs +340 -0
- data/rust-vendor/futures-util/src/async_await/stream_select_mod.rs +39 -0
- data/rust-vendor/futures-util/src/compat/compat01as03.rs +455 -0
- data/rust-vendor/futures-util/src/compat/compat03as01.rs +268 -0
- data/rust-vendor/futures-util/src/compat/executor.rs +86 -0
- data/rust-vendor/futures-util/src/compat/mod.rs +22 -0
- data/rust-vendor/futures-util/src/fns.rs +372 -0
- data/rust-vendor/futures-util/src/future/abortable.rs +19 -0
- data/rust-vendor/futures-util/src/future/always_ready.rs +62 -0
- data/rust-vendor/futures-util/src/future/either.rs +314 -0
- data/rust-vendor/futures-util/src/future/future/catch_unwind.rs +39 -0
- data/rust-vendor/futures-util/src/future/future/flatten.rs +153 -0
- data/rust-vendor/futures-util/src/future/future/fuse.rs +92 -0
- data/rust-vendor/futures-util/src/future/future/map.rs +66 -0
- data/rust-vendor/futures-util/src/future/future/mod.rs +603 -0
- data/rust-vendor/futures-util/src/future/future/remote_handle.rs +127 -0
- data/rust-vendor/futures-util/src/future/future/shared.rs +430 -0
- data/rust-vendor/futures-util/src/future/join.rs +217 -0
- data/rust-vendor/futures-util/src/future/join_all.rs +167 -0
- data/rust-vendor/futures-util/src/future/lazy.rs +60 -0
- data/rust-vendor/futures-util/src/future/maybe_done.rs +105 -0
- data/rust-vendor/futures-util/src/future/mod.rs +134 -0
- data/rust-vendor/futures-util/src/future/option.rs +64 -0
- data/rust-vendor/futures-util/src/future/pending.rs +55 -0
- data/rust-vendor/futures-util/src/future/poll_fn.rs +58 -0
- data/rust-vendor/futures-util/src/future/poll_immediate.rs +131 -0
- data/rust-vendor/futures-util/src/future/ready.rs +82 -0
- data/rust-vendor/futures-util/src/future/select.rs +133 -0
- data/rust-vendor/futures-util/src/future/select_all.rs +75 -0
- data/rust-vendor/futures-util/src/future/select_ok.rs +85 -0
- data/rust-vendor/futures-util/src/future/try_future/into_future.rs +36 -0
- data/rust-vendor/futures-util/src/future/try_future/mod.rs +625 -0
- data/rust-vendor/futures-util/src/future/try_future/try_flatten.rs +162 -0
- data/rust-vendor/futures-util/src/future/try_future/try_flatten_err.rs +62 -0
- data/rust-vendor/futures-util/src/future/try_join.rs +256 -0
- data/rust-vendor/futures-util/src/future/try_join_all.rs +201 -0
- data/rust-vendor/futures-util/src/future/try_maybe_done.rs +92 -0
- data/rust-vendor/futures-util/src/future/try_select.rs +85 -0
- data/rust-vendor/futures-util/src/io/allow_std.rs +202 -0
- data/rust-vendor/futures-util/src/io/buf_reader.rs +264 -0
- data/rust-vendor/futures-util/src/io/buf_writer.rs +229 -0
- data/rust-vendor/futures-util/src/io/chain.rs +142 -0
- data/rust-vendor/futures-util/src/io/close.rs +28 -0
- data/rust-vendor/futures-util/src/io/copy.rs +58 -0
- data/rust-vendor/futures-util/src/io/copy_buf.rs +78 -0
- data/rust-vendor/futures-util/src/io/copy_buf_abortable.rs +124 -0
- data/rust-vendor/futures-util/src/io/cursor.rs +234 -0
- data/rust-vendor/futures-util/src/io/empty.rs +59 -0
- data/rust-vendor/futures-util/src/io/fill_buf.rs +47 -0
- data/rust-vendor/futures-util/src/io/flush.rs +31 -0
- data/rust-vendor/futures-util/src/io/into_sink.rs +82 -0
- data/rust-vendor/futures-util/src/io/line_writer.rs +155 -0
- data/rust-vendor/futures-util/src/io/lines.rs +50 -0
- data/rust-vendor/futures-util/src/io/mod.rs +833 -0
- data/rust-vendor/futures-util/src/io/read.rs +30 -0
- data/rust-vendor/futures-util/src/io/read_exact.rs +42 -0
- data/rust-vendor/futures-util/src/io/read_line.rs +77 -0
- data/rust-vendor/futures-util/src/io/read_to_end.rs +90 -0
- data/rust-vendor/futures-util/src/io/read_to_string.rs +60 -0
- data/rust-vendor/futures-util/src/io/read_until.rs +60 -0
- data/rust-vendor/futures-util/src/io/read_vectored.rs +30 -0
- data/rust-vendor/futures-util/src/io/repeat.rs +66 -0
- data/rust-vendor/futures-util/src/io/seek.rs +30 -0
- data/rust-vendor/futures-util/src/io/sink.rs +67 -0
- data/rust-vendor/futures-util/src/io/split.rs +129 -0
- data/rust-vendor/futures-util/src/io/take.rs +125 -0
- data/rust-vendor/futures-util/src/io/window.rs +104 -0
- data/rust-vendor/futures-util/src/io/write.rs +30 -0
- data/rust-vendor/futures-util/src/io/write_all.rs +43 -0
- data/rust-vendor/futures-util/src/io/write_all_vectored.rs +195 -0
- data/rust-vendor/futures-util/src/io/write_vectored.rs +30 -0
- data/rust-vendor/futures-util/src/lib.rs +332 -0
- data/rust-vendor/futures-util/src/lock/bilock.rs +297 -0
- data/rust-vendor/futures-util/src/lock/mod.rs +27 -0
- data/rust-vendor/futures-util/src/lock/mutex.rs +560 -0
- data/rust-vendor/futures-util/src/macros.rs +31 -0
- data/rust-vendor/futures-util/src/never.rs +18 -0
- data/rust-vendor/futures-util/src/sink/buffer.rs +105 -0
- data/rust-vendor/futures-util/src/sink/close.rs +32 -0
- data/rust-vendor/futures-util/src/sink/drain.rs +59 -0
- data/rust-vendor/futures-util/src/sink/err_into.rs +57 -0
- data/rust-vendor/futures-util/src/sink/fanout.rs +111 -0
- data/rust-vendor/futures-util/src/sink/feed.rs +43 -0
- data/rust-vendor/futures-util/src/sink/flush.rs +36 -0
- data/rust-vendor/futures-util/src/sink/map_err.rs +65 -0
- data/rust-vendor/futures-util/src/sink/mod.rs +344 -0
- data/rust-vendor/futures-util/src/sink/send.rs +41 -0
- data/rust-vendor/futures-util/src/sink/send_all.rs +100 -0
- data/rust-vendor/futures-util/src/sink/unfold.rs +92 -0
- data/rust-vendor/futures-util/src/sink/with.rs +145 -0
- data/rust-vendor/futures-util/src/sink/with_flat_map.rs +127 -0
- data/rust-vendor/futures-util/src/stream/abortable.rs +19 -0
- data/rust-vendor/futures-util/src/stream/empty.rs +45 -0
- data/rust-vendor/futures-util/src/stream/futures_ordered.rs +260 -0
- data/rust-vendor/futures-util/src/stream/futures_unordered/abort.rs +12 -0
- data/rust-vendor/futures-util/src/stream/futures_unordered/iter.rs +172 -0
- data/rust-vendor/futures-util/src/stream/futures_unordered/mod.rs +674 -0
- data/rust-vendor/futures-util/src/stream/futures_unordered/ready_to_run_queue.rs +113 -0
- data/rust-vendor/futures-util/src/stream/futures_unordered/task.rs +214 -0
- data/rust-vendor/futures-util/src/stream/iter.rs +66 -0
- data/rust-vendor/futures-util/src/stream/mod.rs +148 -0
- data/rust-vendor/futures-util/src/stream/once.rs +67 -0
- data/rust-vendor/futures-util/src/stream/pending.rs +45 -0
- data/rust-vendor/futures-util/src/stream/poll_fn.rs +57 -0
- data/rust-vendor/futures-util/src/stream/poll_immediate.rs +80 -0
- data/rust-vendor/futures-util/src/stream/repeat.rs +58 -0
- data/rust-vendor/futures-util/src/stream/repeat_with.rs +93 -0
- data/rust-vendor/futures-util/src/stream/select.rs +117 -0
- data/rust-vendor/futures-util/src/stream/select_all.rs +249 -0
- data/rust-vendor/futures-util/src/stream/select_with_strategy.rs +304 -0
- data/rust-vendor/futures-util/src/stream/stream/all.rs +93 -0
- data/rust-vendor/futures-util/src/stream/stream/any.rs +93 -0
- data/rust-vendor/futures-util/src/stream/stream/buffer_unordered.rs +120 -0
- data/rust-vendor/futures-util/src/stream/stream/buffered.rs +118 -0
- data/rust-vendor/futures-util/src/stream/stream/catch_unwind.rs +62 -0
- data/rust-vendor/futures-util/src/stream/stream/chain.rs +76 -0
- data/rust-vendor/futures-util/src/stream/stream/chunks.rs +103 -0
- data/rust-vendor/futures-util/src/stream/stream/collect.rs +56 -0
- data/rust-vendor/futures-util/src/stream/stream/concat.rs +62 -0
- data/rust-vendor/futures-util/src/stream/stream/count.rs +53 -0
- data/rust-vendor/futures-util/src/stream/stream/cycle.rs +67 -0
- data/rust-vendor/futures-util/src/stream/stream/enumerate.rs +64 -0
- data/rust-vendor/futures-util/src/stream/stream/filter.rs +117 -0
- data/rust-vendor/futures-util/src/stream/stream/filter_map.rs +111 -0
- data/rust-vendor/futures-util/src/stream/stream/flatten.rs +73 -0
- data/rust-vendor/futures-util/src/stream/stream/flatten_unordered.rs +531 -0
- data/rust-vendor/futures-util/src/stream/stream/fold.rs +88 -0
- data/rust-vendor/futures-util/src/stream/stream/for_each.rs +78 -0
- data/rust-vendor/futures-util/src/stream/stream/for_each_concurrent.rs +119 -0
- data/rust-vendor/futures-util/src/stream/stream/forward.rs +75 -0
- data/rust-vendor/futures-util/src/stream/stream/fuse.rs +75 -0
- data/rust-vendor/futures-util/src/stream/stream/into_future.rs +90 -0
- data/rust-vendor/futures-util/src/stream/stream/map.rs +77 -0
- data/rust-vendor/futures-util/src/stream/stream/mod.rs +1697 -0
- data/rust-vendor/futures-util/src/stream/stream/next.rs +34 -0
- data/rust-vendor/futures-util/src/stream/stream/peek.rs +441 -0
- data/rust-vendor/futures-util/src/stream/stream/ready_chunks.rs +93 -0
- data/rust-vendor/futures-util/src/stream/stream/scan.rs +128 -0
- data/rust-vendor/futures-util/src/stream/stream/select_next_some.rs +42 -0
- data/rust-vendor/futures-util/src/stream/stream/skip.rs +70 -0
- data/rust-vendor/futures-util/src/stream/stream/skip_while.rs +124 -0
- data/rust-vendor/futures-util/src/stream/stream/split.rs +224 -0
- data/rust-vendor/futures-util/src/stream/stream/take.rs +86 -0
- data/rust-vendor/futures-util/src/stream/stream/take_until.rs +170 -0
- data/rust-vendor/futures-util/src/stream/stream/take_while.rs +124 -0
- data/rust-vendor/futures-util/src/stream/stream/then.rs +101 -0
- data/rust-vendor/futures-util/src/stream/stream/unzip.rs +63 -0
- data/rust-vendor/futures-util/src/stream/stream/zip.rs +128 -0
- data/rust-vendor/futures-util/src/stream/try_stream/and_then.rs +105 -0
- data/rust-vendor/futures-util/src/stream/try_stream/into_async_read.rs +166 -0
- data/rust-vendor/futures-util/src/stream/try_stream/into_stream.rs +52 -0
- data/rust-vendor/futures-util/src/stream/try_stream/mod.rs +1254 -0
- data/rust-vendor/futures-util/src/stream/try_stream/or_else.rs +109 -0
- data/rust-vendor/futures-util/src/stream/try_stream/try_all.rs +98 -0
- data/rust-vendor/futures-util/src/stream/try_stream/try_any.rs +98 -0
- data/rust-vendor/futures-util/src/stream/try_stream/try_buffer_unordered.rs +86 -0
- data/rust-vendor/futures-util/src/stream/try_stream/try_buffered.rs +87 -0
- data/rust-vendor/futures-util/src/stream/try_stream/try_chunks.rs +132 -0
- data/rust-vendor/futures-util/src/stream/try_stream/try_collect.rs +52 -0
- data/rust-vendor/futures-util/src/stream/try_stream/try_concat.rs +51 -0
- data/rust-vendor/futures-util/src/stream/try_stream/try_filter.rs +112 -0
- data/rust-vendor/futures-util/src/stream/try_stream/try_filter_map.rs +106 -0
- data/rust-vendor/futures-util/src/stream/try_stream/try_flatten.rs +84 -0
- data/rust-vendor/futures-util/src/stream/try_stream/try_flatten_unordered.rs +176 -0
- data/rust-vendor/futures-util/src/stream/try_stream/try_fold.rs +93 -0
- data/rust-vendor/futures-util/src/stream/try_stream/try_for_each.rs +68 -0
- data/rust-vendor/futures-util/src/stream/try_stream/try_for_each_concurrent.rs +132 -0
- data/rust-vendor/futures-util/src/stream/try_stream/try_next.rs +34 -0
- data/rust-vendor/futures-util/src/stream/try_stream/try_ready_chunks.rs +126 -0
- data/rust-vendor/futures-util/src/stream/try_stream/try_skip_while.rs +120 -0
- data/rust-vendor/futures-util/src/stream/try_stream/try_take_while.rs +129 -0
- data/rust-vendor/futures-util/src/stream/try_stream/try_unfold.rs +122 -0
- data/rust-vendor/futures-util/src/stream/unfold.rs +119 -0
- data/rust-vendor/futures-util/src/task/mod.rs +40 -0
- data/rust-vendor/futures-util/src/task/spawn.rs +169 -0
- data/rust-vendor/futures-util/src/unfold_state.rs +39 -0
- data/rust-vendor/html-to-markdown-rs/Cargo.toml +2 -2
- data/rust-vendor/html-to-markdown-rs/src/convert_api.rs +5 -1
- data/rust-vendor/html-to-markdown-rs/src/converter/block/paragraph.rs +1 -0
- data/rust-vendor/html-to-markdown-rs/src/converter/context.rs +5 -0
- data/rust-vendor/html-to-markdown-rs/src/converter/text_node.rs +6 -1
- data/rust-vendor/html-to-markdown-rs/src/converter/visitor_hooks.rs +9 -3
- data/rust-vendor/html-to-markdown-rs/tests/convert_with_metadata_no_frontmatter.rs +100 -0
- data/rust-vendor/html-to-markdown-rs/tests/issue_212_regressions.rs +63 -0
- data/rust-vendor/html-to-markdown-rs/tests/visitor_integration_test.rs +58 -0
- data/rust-vendor/html5ever/.cargo-checksum.json +1 -1
- data/rust-vendor/html5ever/.cargo_vcs_info.json +1 -1
- data/rust-vendor/html5ever/Cargo.lock +216 -128
- data/rust-vendor/html5ever/Cargo.toml +11 -6
- data/rust-vendor/html5ever/Cargo.toml.orig +1 -0
- data/rust-vendor/html5ever/examples/arena.rs +30 -1
- data/rust-vendor/html5ever/src/driver.rs +19 -5
- data/rust-vendor/html5ever/src/encoding.rs +173 -0
- data/rust-vendor/html5ever/src/lib.rs +1 -0
- data/rust-vendor/html5ever/src/serialize/mod.rs +2 -2
- data/rust-vendor/html5ever/src/tokenizer/interface.rs +42 -4
- data/rust-vendor/html5ever/src/tokenizer/mod.rs +24 -1
- data/rust-vendor/html5ever/src/tokenizer/states.rs +34 -0
- data/rust-vendor/html5ever/src/tree_builder/mod.rs +8 -13
- data/rust-vendor/html5ever/src/tree_builder/rules.rs +131 -153
- data/rust-vendor/html5ever/src/tree_builder/tag_sets.rs +1 -6
- data/rust-vendor/html5ever/src/tree_builder/types.rs +22 -2
- data/rust-vendor/html5ever/tests/driver.rs +111 -0
- data/rust-vendor/js-sys/.cargo-checksum.json +1 -1
- data/rust-vendor/js-sys/.cargo_vcs_info.json +1 -1
- data/rust-vendor/js-sys/Cargo.lock +19 -19
- data/rust-vendor/js-sys/Cargo.toml +7 -3
- data/rust-vendor/js-sys/Cargo.toml.orig +7 -3
- data/rust-vendor/js-sys/README.md +2 -2
- data/rust-vendor/js-sys/src/Temporal.rs +2990 -663
- data/rust-vendor/js-sys/src/lib.rs +7485 -731
- data/rust-vendor/linux-raw-sys/.cargo-checksum.json +1 -1
- data/rust-vendor/linux-raw-sys/.cargo_vcs_info.json +1 -1
- data/rust-vendor/linux-raw-sys/Cargo.lock +3 -3
- data/rust-vendor/linux-raw-sys/Cargo.toml +3 -1
- data/rust-vendor/linux-raw-sys/Cargo.toml.orig +3 -1
- data/rust-vendor/linux-raw-sys/src/aarch64/btrfs.rs +42 -1
- data/rust-vendor/linux-raw-sys/src/aarch64/general.rs +52 -2
- data/rust-vendor/linux-raw-sys/src/aarch64/if_arp.rs +6 -2
- data/rust-vendor/linux-raw-sys/src/aarch64/if_tun.rs +319 -0
- data/rust-vendor/linux-raw-sys/src/aarch64/io_uring.rs +52 -1
- data/rust-vendor/linux-raw-sys/src/aarch64/ioctl.rs +0 -1
- data/rust-vendor/linux-raw-sys/src/aarch64/net.rs +5 -1
- data/rust-vendor/linux-raw-sys/src/aarch64/netlink.rs +153 -6
- data/rust-vendor/linux-raw-sys/src/aarch64/prctl.rs +3 -2
- data/rust-vendor/linux-raw-sys/src/aarch64/ptrace.rs +2 -0
- data/rust-vendor/linux-raw-sys/src/aarch64/vm_sockets.rs +111 -0
- data/rust-vendor/linux-raw-sys/src/aarch64/xdp.rs +1 -0
- data/rust-vendor/linux-raw-sys/src/arm/btrfs.rs +42 -1
- data/rust-vendor/linux-raw-sys/src/arm/general.rs +52 -2
- data/rust-vendor/linux-raw-sys/src/arm/if_arp.rs +6 -2
- data/rust-vendor/linux-raw-sys/src/arm/if_tun.rs +317 -0
- data/rust-vendor/linux-raw-sys/src/arm/io_uring.rs +52 -1
- data/rust-vendor/linux-raw-sys/src/arm/ioctl.rs +0 -1
- data/rust-vendor/linux-raw-sys/src/arm/net.rs +5 -1
- data/rust-vendor/linux-raw-sys/src/arm/netlink.rs +153 -6
- data/rust-vendor/linux-raw-sys/src/arm/prctl.rs +3 -2
- data/rust-vendor/linux-raw-sys/src/arm/vm_sockets.rs +108 -0
- data/rust-vendor/linux-raw-sys/src/arm/xdp.rs +1 -0
- data/rust-vendor/linux-raw-sys/src/csky/btrfs.rs +42 -1
- data/rust-vendor/linux-raw-sys/src/csky/general.rs +52 -2
- data/rust-vendor/linux-raw-sys/src/csky/if_arp.rs +6 -2
- data/rust-vendor/linux-raw-sys/src/csky/if_tun.rs +317 -0
- data/rust-vendor/linux-raw-sys/src/csky/io_uring.rs +52 -1
- data/rust-vendor/linux-raw-sys/src/csky/net.rs +5 -1
- data/rust-vendor/linux-raw-sys/src/csky/netlink.rs +153 -6
- data/rust-vendor/linux-raw-sys/src/csky/prctl.rs +3 -2
- data/rust-vendor/linux-raw-sys/src/csky/vm_sockets.rs +108 -0
- data/rust-vendor/linux-raw-sys/src/csky/xdp.rs +1 -0
- data/rust-vendor/linux-raw-sys/src/hexagon/auxvec.rs +30 -0
- data/rust-vendor/linux-raw-sys/src/hexagon/bootparam.rs +3 -0
- data/rust-vendor/linux-raw-sys/src/hexagon/btrfs.rs +1935 -0
- data/rust-vendor/linux-raw-sys/src/hexagon/elf_uapi.rs +652 -0
- data/rust-vendor/linux-raw-sys/src/hexagon/errno.rs +135 -0
- data/rust-vendor/linux-raw-sys/src/hexagon/general.rs +3284 -0
- data/rust-vendor/linux-raw-sys/src/hexagon/if_arp.rs +2793 -0
- data/rust-vendor/linux-raw-sys/src/hexagon/if_ether.rs +168 -0
- data/rust-vendor/linux-raw-sys/src/hexagon/if_packet.rs +309 -0
- data/rust-vendor/linux-raw-sys/src/hexagon/if_tun.rs +317 -0
- data/rust-vendor/linux-raw-sys/src/hexagon/image.rs +3 -0
- data/rust-vendor/linux-raw-sys/src/hexagon/io_uring.rs +1489 -0
- data/rust-vendor/linux-raw-sys/src/hexagon/ioctl.rs +3 -0
- data/rust-vendor/linux-raw-sys/src/hexagon/landlock.rs +102 -0
- data/rust-vendor/linux-raw-sys/src/hexagon/loop_device.rs +132 -0
- data/rust-vendor/linux-raw-sys/src/hexagon/mempolicy.rs +175 -0
- data/rust-vendor/linux-raw-sys/src/hexagon/net.rs +3487 -0
- data/rust-vendor/linux-raw-sys/src/hexagon/netlink.rs +5606 -0
- data/rust-vendor/linux-raw-sys/src/hexagon/prctl.rs +270 -0
- data/rust-vendor/linux-raw-sys/src/hexagon/ptrace.rs +1091 -0
- data/rust-vendor/linux-raw-sys/src/hexagon/system.rs +100 -0
- data/rust-vendor/linux-raw-sys/src/hexagon/vm_sockets.rs +108 -0
- data/rust-vendor/linux-raw-sys/src/hexagon/xdp.rs +192 -0
- data/rust-vendor/linux-raw-sys/src/lib.rs +329 -0
- data/rust-vendor/linux-raw-sys/src/loongarch64/btrfs.rs +42 -1
- data/rust-vendor/linux-raw-sys/src/loongarch64/general.rs +52 -2
- data/rust-vendor/linux-raw-sys/src/loongarch64/if_arp.rs +6 -2
- data/rust-vendor/linux-raw-sys/src/loongarch64/if_tun.rs +319 -0
- data/rust-vendor/linux-raw-sys/src/loongarch64/io_uring.rs +52 -1
- data/rust-vendor/linux-raw-sys/src/loongarch64/net.rs +5 -1
- data/rust-vendor/linux-raw-sys/src/loongarch64/netlink.rs +153 -6
- data/rust-vendor/linux-raw-sys/src/loongarch64/prctl.rs +3 -2
- data/rust-vendor/linux-raw-sys/src/loongarch64/vm_sockets.rs +111 -0
- data/rust-vendor/linux-raw-sys/src/loongarch64/xdp.rs +1 -0
- data/rust-vendor/linux-raw-sys/src/m68k/auxvec.rs +30 -0
- data/rust-vendor/linux-raw-sys/src/m68k/bootparam.rs +3 -0
- data/rust-vendor/linux-raw-sys/src/m68k/btrfs.rs +1935 -0
- data/rust-vendor/linux-raw-sys/src/m68k/elf_uapi.rs +652 -0
- data/rust-vendor/linux-raw-sys/src/m68k/errno.rs +135 -0
- data/rust-vendor/linux-raw-sys/src/m68k/general.rs +3379 -0
- data/rust-vendor/linux-raw-sys/src/m68k/if_arp.rs +2793 -0
- data/rust-vendor/linux-raw-sys/src/m68k/if_ether.rs +168 -0
- data/rust-vendor/linux-raw-sys/src/m68k/if_packet.rs +309 -0
- data/rust-vendor/linux-raw-sys/src/m68k/if_tun.rs +317 -0
- data/rust-vendor/linux-raw-sys/src/m68k/image.rs +3 -0
- data/rust-vendor/linux-raw-sys/src/m68k/io_uring.rs +1489 -0
- data/rust-vendor/linux-raw-sys/src/m68k/ioctl.rs +1501 -0
- data/rust-vendor/linux-raw-sys/src/m68k/landlock.rs +102 -0
- data/rust-vendor/linux-raw-sys/src/m68k/loop_device.rs +132 -0
- data/rust-vendor/linux-raw-sys/src/m68k/mempolicy.rs +175 -0
- data/rust-vendor/linux-raw-sys/src/m68k/net.rs +3487 -0
- data/rust-vendor/linux-raw-sys/src/m68k/netlink.rs +5606 -0
- data/rust-vendor/linux-raw-sys/src/m68k/prctl.rs +270 -0
- data/rust-vendor/linux-raw-sys/src/m68k/ptrace.rs +1019 -0
- data/rust-vendor/linux-raw-sys/src/m68k/system.rs +100 -0
- data/rust-vendor/linux-raw-sys/src/m68k/vm_sockets.rs +108 -0
- data/rust-vendor/linux-raw-sys/src/m68k/xdp.rs +192 -0
- data/rust-vendor/linux-raw-sys/src/mips/btrfs.rs +42 -1
- data/rust-vendor/linux-raw-sys/src/mips/general.rs +52 -2
- data/rust-vendor/linux-raw-sys/src/mips/if_arp.rs +6 -2
- data/rust-vendor/linux-raw-sys/src/mips/if_tun.rs +327 -0
- data/rust-vendor/linux-raw-sys/src/mips/io_uring.rs +52 -1
- data/rust-vendor/linux-raw-sys/src/mips/ioctl.rs +0 -1
- data/rust-vendor/linux-raw-sys/src/mips/net.rs +5 -1
- data/rust-vendor/linux-raw-sys/src/mips/netlink.rs +153 -6
- data/rust-vendor/linux-raw-sys/src/mips/prctl.rs +3 -2
- data/rust-vendor/linux-raw-sys/src/mips/vm_sockets.rs +118 -0
- data/rust-vendor/linux-raw-sys/src/mips/xdp.rs +1 -0
- data/rust-vendor/linux-raw-sys/src/mips32r6/btrfs.rs +42 -1
- data/rust-vendor/linux-raw-sys/src/mips32r6/general.rs +52 -2
- data/rust-vendor/linux-raw-sys/src/mips32r6/if_arp.rs +6 -2
- data/rust-vendor/linux-raw-sys/src/mips32r6/if_tun.rs +327 -0
- data/rust-vendor/linux-raw-sys/src/mips32r6/io_uring.rs +52 -1
- data/rust-vendor/linux-raw-sys/src/mips32r6/ioctl.rs +0 -1
- data/rust-vendor/linux-raw-sys/src/mips32r6/net.rs +5 -1
- data/rust-vendor/linux-raw-sys/src/mips32r6/netlink.rs +153 -6
- data/rust-vendor/linux-raw-sys/src/mips32r6/prctl.rs +3 -2
- data/rust-vendor/linux-raw-sys/src/mips32r6/vm_sockets.rs +118 -0
- data/rust-vendor/linux-raw-sys/src/mips32r6/xdp.rs +1 -0
- data/rust-vendor/linux-raw-sys/src/mips64/btrfs.rs +42 -1
- data/rust-vendor/linux-raw-sys/src/mips64/general.rs +52 -2
- data/rust-vendor/linux-raw-sys/src/mips64/if_arp.rs +6 -2
- data/rust-vendor/linux-raw-sys/src/mips64/if_tun.rs +329 -0
- data/rust-vendor/linux-raw-sys/src/mips64/io_uring.rs +52 -1
- data/rust-vendor/linux-raw-sys/src/mips64/ioctl.rs +0 -1
- data/rust-vendor/linux-raw-sys/src/mips64/net.rs +5 -1
- data/rust-vendor/linux-raw-sys/src/mips64/netlink.rs +153 -6
- data/rust-vendor/linux-raw-sys/src/mips64/prctl.rs +3 -2
- data/rust-vendor/linux-raw-sys/src/mips64/vm_sockets.rs +121 -0
- data/rust-vendor/linux-raw-sys/src/mips64/xdp.rs +1 -0
- data/rust-vendor/linux-raw-sys/src/mips64r6/btrfs.rs +42 -1
- data/rust-vendor/linux-raw-sys/src/mips64r6/general.rs +52 -2
- data/rust-vendor/linux-raw-sys/src/mips64r6/if_arp.rs +6 -2
- data/rust-vendor/linux-raw-sys/src/mips64r6/if_tun.rs +329 -0
- data/rust-vendor/linux-raw-sys/src/mips64r6/io_uring.rs +52 -1
- data/rust-vendor/linux-raw-sys/src/mips64r6/ioctl.rs +0 -1
- data/rust-vendor/linux-raw-sys/src/mips64r6/net.rs +5 -1
- data/rust-vendor/linux-raw-sys/src/mips64r6/netlink.rs +153 -6
- data/rust-vendor/linux-raw-sys/src/mips64r6/prctl.rs +3 -2
- data/rust-vendor/linux-raw-sys/src/mips64r6/vm_sockets.rs +121 -0
- data/rust-vendor/linux-raw-sys/src/mips64r6/xdp.rs +1 -0
- data/rust-vendor/linux-raw-sys/src/powerpc/btrfs.rs +42 -1
- data/rust-vendor/linux-raw-sys/src/powerpc/general.rs +52 -2
- data/rust-vendor/linux-raw-sys/src/powerpc/if_arp.rs +6 -2
- data/rust-vendor/linux-raw-sys/src/powerpc/if_tun.rs +323 -0
- data/rust-vendor/linux-raw-sys/src/powerpc/io_uring.rs +52 -1
- data/rust-vendor/linux-raw-sys/src/powerpc/ioctl.rs +0 -1
- data/rust-vendor/linux-raw-sys/src/powerpc/net.rs +5 -1
- data/rust-vendor/linux-raw-sys/src/powerpc/netlink.rs +153 -6
- data/rust-vendor/linux-raw-sys/src/powerpc/prctl.rs +3 -2
- data/rust-vendor/linux-raw-sys/src/powerpc/vm_sockets.rs +114 -0
- data/rust-vendor/linux-raw-sys/src/powerpc/xdp.rs +1 -0
- data/rust-vendor/linux-raw-sys/src/powerpc64/btrfs.rs +42 -1
- data/rust-vendor/linux-raw-sys/src/powerpc64/general.rs +52 -2
- data/rust-vendor/linux-raw-sys/src/powerpc64/if_arp.rs +6 -2
- data/rust-vendor/linux-raw-sys/src/powerpc64/if_tun.rs +325 -0
- data/rust-vendor/linux-raw-sys/src/powerpc64/io_uring.rs +52 -1
- data/rust-vendor/linux-raw-sys/src/powerpc64/ioctl.rs +0 -1
- data/rust-vendor/linux-raw-sys/src/powerpc64/net.rs +5 -1
- data/rust-vendor/linux-raw-sys/src/powerpc64/netlink.rs +153 -6
- data/rust-vendor/linux-raw-sys/src/powerpc64/prctl.rs +3 -2
- data/rust-vendor/linux-raw-sys/src/powerpc64/vm_sockets.rs +117 -0
- data/rust-vendor/linux-raw-sys/src/powerpc64/xdp.rs +1 -0
- data/rust-vendor/linux-raw-sys/src/riscv32/btrfs.rs +42 -1
- data/rust-vendor/linux-raw-sys/src/riscv32/general.rs +52 -2
- data/rust-vendor/linux-raw-sys/src/riscv32/if_arp.rs +6 -2
- data/rust-vendor/linux-raw-sys/src/riscv32/if_tun.rs +317 -0
- data/rust-vendor/linux-raw-sys/src/riscv32/io_uring.rs +52 -1
- data/rust-vendor/linux-raw-sys/src/riscv32/net.rs +5 -1
- data/rust-vendor/linux-raw-sys/src/riscv32/netlink.rs +153 -6
- data/rust-vendor/linux-raw-sys/src/riscv32/prctl.rs +3 -2
- data/rust-vendor/linux-raw-sys/src/riscv32/vm_sockets.rs +108 -0
- data/rust-vendor/linux-raw-sys/src/riscv32/xdp.rs +1 -0
- data/rust-vendor/linux-raw-sys/src/riscv64/btrfs.rs +42 -1
- data/rust-vendor/linux-raw-sys/src/riscv64/general.rs +52 -2
- data/rust-vendor/linux-raw-sys/src/riscv64/if_arp.rs +6 -2
- data/rust-vendor/linux-raw-sys/src/riscv64/if_tun.rs +319 -0
- data/rust-vendor/linux-raw-sys/src/riscv64/io_uring.rs +52 -1
- data/rust-vendor/linux-raw-sys/src/riscv64/ioctl.rs +0 -1
- data/rust-vendor/linux-raw-sys/src/riscv64/net.rs +5 -1
- data/rust-vendor/linux-raw-sys/src/riscv64/netlink.rs +153 -6
- data/rust-vendor/linux-raw-sys/src/riscv64/prctl.rs +3 -2
- data/rust-vendor/linux-raw-sys/src/riscv64/vm_sockets.rs +111 -0
- data/rust-vendor/linux-raw-sys/src/riscv64/xdp.rs +1 -0
- data/rust-vendor/linux-raw-sys/src/s390x/btrfs.rs +42 -1
- data/rust-vendor/linux-raw-sys/src/s390x/general.rs +52 -2
- data/rust-vendor/linux-raw-sys/src/s390x/if_arp.rs +6 -2
- data/rust-vendor/linux-raw-sys/src/s390x/if_tun.rs +339 -0
- data/rust-vendor/linux-raw-sys/src/s390x/io_uring.rs +52 -1
- data/rust-vendor/linux-raw-sys/src/s390x/ioctl.rs +0 -1
- data/rust-vendor/linux-raw-sys/src/s390x/net.rs +5 -1
- data/rust-vendor/linux-raw-sys/src/s390x/netlink.rs +153 -6
- data/rust-vendor/linux-raw-sys/src/s390x/prctl.rs +3 -2
- data/rust-vendor/linux-raw-sys/src/s390x/vm_sockets.rs +131 -0
- data/rust-vendor/linux-raw-sys/src/s390x/xdp.rs +1 -0
- data/rust-vendor/linux-raw-sys/src/sparc/btrfs.rs +42 -1
- data/rust-vendor/linux-raw-sys/src/sparc/general.rs +52 -2
- data/rust-vendor/linux-raw-sys/src/sparc/if_arp.rs +6 -2
- data/rust-vendor/linux-raw-sys/src/sparc/if_tun.rs +317 -0
- data/rust-vendor/linux-raw-sys/src/sparc/io_uring.rs +52 -1
- data/rust-vendor/linux-raw-sys/src/sparc/net.rs +5 -1
- data/rust-vendor/linux-raw-sys/src/sparc/netlink.rs +153 -6
- data/rust-vendor/linux-raw-sys/src/sparc/prctl.rs +3 -2
- data/rust-vendor/linux-raw-sys/src/sparc/vm_sockets.rs +108 -0
- data/rust-vendor/linux-raw-sys/src/sparc/xdp.rs +1 -0
- data/rust-vendor/linux-raw-sys/src/sparc64/btrfs.rs +42 -1
- data/rust-vendor/linux-raw-sys/src/sparc64/general.rs +52 -2
- data/rust-vendor/linux-raw-sys/src/sparc64/if_arp.rs +6 -2
- data/rust-vendor/linux-raw-sys/src/sparc64/if_tun.rs +325 -0
- data/rust-vendor/linux-raw-sys/src/sparc64/io_uring.rs +52 -1
- data/rust-vendor/linux-raw-sys/src/sparc64/net.rs +5 -1
- data/rust-vendor/linux-raw-sys/src/sparc64/netlink.rs +153 -6
- data/rust-vendor/linux-raw-sys/src/sparc64/prctl.rs +3 -2
- data/rust-vendor/linux-raw-sys/src/sparc64/vm_sockets.rs +117 -0
- data/rust-vendor/linux-raw-sys/src/sparc64/xdp.rs +1 -0
- data/rust-vendor/linux-raw-sys/src/x32/btrfs.rs +42 -1
- data/rust-vendor/linux-raw-sys/src/x32/general.rs +52 -2
- data/rust-vendor/linux-raw-sys/src/x32/if_arp.rs +6 -2
- data/rust-vendor/linux-raw-sys/src/x32/if_tun.rs +319 -0
- data/rust-vendor/linux-raw-sys/src/x32/io_uring.rs +52 -1
- data/rust-vendor/linux-raw-sys/src/x32/ioctl.rs +0 -1
- data/rust-vendor/linux-raw-sys/src/x32/net.rs +5 -1
- data/rust-vendor/linux-raw-sys/src/x32/netlink.rs +153 -6
- data/rust-vendor/linux-raw-sys/src/x32/prctl.rs +3 -2
- data/rust-vendor/linux-raw-sys/src/x32/vm_sockets.rs +111 -0
- data/rust-vendor/linux-raw-sys/src/x32/xdp.rs +1 -0
- data/rust-vendor/linux-raw-sys/src/x86/btrfs.rs +42 -1
- data/rust-vendor/linux-raw-sys/src/x86/general.rs +52 -2
- data/rust-vendor/linux-raw-sys/src/x86/if_arp.rs +6 -2
- data/rust-vendor/linux-raw-sys/src/x86/if_tun.rs +317 -0
- data/rust-vendor/linux-raw-sys/src/x86/io_uring.rs +52 -1
- data/rust-vendor/linux-raw-sys/src/x86/ioctl.rs +0 -1
- data/rust-vendor/linux-raw-sys/src/x86/net.rs +5 -1
- data/rust-vendor/linux-raw-sys/src/x86/netlink.rs +153 -6
- data/rust-vendor/linux-raw-sys/src/x86/prctl.rs +3 -2
- data/rust-vendor/linux-raw-sys/src/x86/vm_sockets.rs +108 -0
- data/rust-vendor/linux-raw-sys/src/x86/xdp.rs +1 -0
- data/rust-vendor/linux-raw-sys/src/x86_64/btrfs.rs +42 -1
- data/rust-vendor/linux-raw-sys/src/x86_64/general.rs +52 -2
- data/rust-vendor/linux-raw-sys/src/x86_64/if_arp.rs +6 -2
- data/rust-vendor/linux-raw-sys/src/x86_64/if_tun.rs +319 -0
- data/rust-vendor/linux-raw-sys/src/x86_64/io_uring.rs +52 -1
- data/rust-vendor/linux-raw-sys/src/x86_64/ioctl.rs +0 -1
- data/rust-vendor/linux-raw-sys/src/x86_64/net.rs +5 -1
- data/rust-vendor/linux-raw-sys/src/x86_64/netlink.rs +153 -6
- data/rust-vendor/linux-raw-sys/src/x86_64/prctl.rs +3 -2
- data/rust-vendor/linux-raw-sys/src/x86_64/vm_sockets.rs +111 -0
- data/rust-vendor/linux-raw-sys/src/x86_64/xdp.rs +1 -0
- data/rust-vendor/markup5ever/.cargo-checksum.json +1 -1
- data/rust-vendor/markup5ever/.cargo_vcs_info.json +1 -1
- data/rust-vendor/markup5ever/Cargo.toml +6 -3
- data/rust-vendor/markup5ever/Cargo.toml.orig +3 -0
- data/rust-vendor/markup5ever/interface/mod.rs +9 -0
- data/rust-vendor/markup5ever/interface/tree_builder.rs +11 -0
- data/rust-vendor/pin-project-lite/.cargo-checksum.json +1 -0
- data/rust-vendor/pin-project-lite/.cargo_vcs_info.json +6 -0
- data/rust-vendor/pin-project-lite/CHANGELOG.md +264 -0
- data/rust-vendor/pin-project-lite/Cargo.lock +23 -0
- data/rust-vendor/pin-project-lite/Cargo.toml +198 -0
- data/rust-vendor/pin-project-lite/Cargo.toml.orig +91 -0
- data/rust-vendor/pin-project-lite/LICENSE-APACHE +177 -0
- data/rust-vendor/pin-project-lite/LICENSE-MIT +23 -0
- data/rust-vendor/pin-project-lite/README.md +129 -0
- data/rust-vendor/pin-project-lite/src/lib.rs +1770 -0
- data/rust-vendor/pin-project-lite/tests/auxiliary/mod.rs +14 -0
- data/rust-vendor/pin-project-lite/tests/compiletest.rs +11 -0
- data/rust-vendor/pin-project-lite/tests/drop_order.rs +169 -0
- data/rust-vendor/pin-project-lite/tests/expand/.rustfmt.toml +1 -0
- data/rust-vendor/pin-project-lite/tests/expand/default/enum.expanded.rs +166 -0
- data/rust-vendor/pin-project-lite/tests/expand/default/enum.rs +19 -0
- data/rust-vendor/pin-project-lite/tests/expand/default/struct.expanded.rs +107 -0
- data/rust-vendor/pin-project-lite/tests/expand/default/struct.rs +13 -0
- data/rust-vendor/pin-project-lite/tests/expand/multifields/enum.expanded.rs +102 -0
- data/rust-vendor/pin-project-lite/tests/expand/multifields/enum.rs +20 -0
- data/rust-vendor/pin-project-lite/tests/expand/multifields/struct.expanded.rs +174 -0
- data/rust-vendor/pin-project-lite/tests/expand/multifields/struct.rs +17 -0
- data/rust-vendor/pin-project-lite/tests/expand/naming/enum-all.expanded.rs +166 -0
- data/rust-vendor/pin-project-lite/tests/expand/naming/enum-all.rs +19 -0
- data/rust-vendor/pin-project-lite/tests/expand/naming/enum-mut.expanded.rs +76 -0
- data/rust-vendor/pin-project-lite/tests/expand/naming/enum-mut.rs +17 -0
- data/rust-vendor/pin-project-lite/tests/expand/naming/enum-none.expanded.rs +33 -0
- data/rust-vendor/pin-project-lite/tests/expand/naming/enum-none.rs +16 -0
- data/rust-vendor/pin-project-lite/tests/expand/naming/enum-ref.expanded.rs +76 -0
- data/rust-vendor/pin-project-lite/tests/expand/naming/enum-ref.rs +17 -0
- data/rust-vendor/pin-project-lite/tests/expand/naming/struct-all.expanded.rs +151 -0
- data/rust-vendor/pin-project-lite/tests/expand/naming/struct-all.rs +16 -0
- data/rust-vendor/pin-project-lite/tests/expand/naming/struct-mut.expanded.rs +107 -0
- data/rust-vendor/pin-project-lite/tests/expand/naming/struct-mut.rs +14 -0
- data/rust-vendor/pin-project-lite/tests/expand/naming/struct-none.expanded.rs +107 -0
- data/rust-vendor/pin-project-lite/tests/expand/naming/struct-none.rs +13 -0
- data/rust-vendor/pin-project-lite/tests/expand/naming/struct-ref.expanded.rs +107 -0
- data/rust-vendor/pin-project-lite/tests/expand/naming/struct-ref.rs +14 -0
- data/rust-vendor/pin-project-lite/tests/expand/not_unpin/enum.expanded.rs +114 -0
- data/rust-vendor/pin-project-lite/tests/expand/not_unpin/enum.rs +19 -0
- data/rust-vendor/pin-project-lite/tests/expand/not_unpin/struct.expanded.rs +103 -0
- data/rust-vendor/pin-project-lite/tests/expand/not_unpin/struct.rs +16 -0
- data/rust-vendor/pin-project-lite/tests/expand/pinned_drop/enum.expanded.rs +128 -0
- data/rust-vendor/pin-project-lite/tests/expand/pinned_drop/enum.rs +23 -0
- data/rust-vendor/pin-project-lite/tests/expand/pinned_drop/struct.expanded.rs +117 -0
- data/rust-vendor/pin-project-lite/tests/expand/pinned_drop/struct.rs +18 -0
- data/rust-vendor/pin-project-lite/tests/expand/pub/enum.expanded.rs +118 -0
- data/rust-vendor/pin-project-lite/tests/expand/pub/enum.rs +18 -0
- data/rust-vendor/pin-project-lite/tests/expand/pub/struct.expanded.rs +107 -0
- data/rust-vendor/pin-project-lite/tests/expand/pub/struct.rs +13 -0
- data/rust-vendor/pin-project-lite/tests/expandtest.rs +10 -0
- data/rust-vendor/pin-project-lite/tests/include/basic.rs +81 -0
- data/rust-vendor/pin-project-lite/tests/proper_unpin.rs +101 -0
- data/rust-vendor/pin-project-lite/tests/test.rs +699 -0
- data/rust-vendor/pin-project-lite/tests/ui/not_unpin/conflict-unpin.rs +38 -0
- data/rust-vendor/pin-project-lite/tests/ui/not_unpin/conflict-unpin.stderr +50 -0
- data/rust-vendor/pin-project-lite/tests/ui/not_unpin/negative_impls_stable.rs +22 -0
- data/rust-vendor/pin-project-lite/tests/ui/not_unpin/negative_impls_stable.stderr +16 -0
- data/rust-vendor/pin-project-lite/tests/ui/pin_project/conflict-drop.rs +17 -0
- data/rust-vendor/pin-project-lite/tests/ui/pin_project/conflict-drop.stderr +15 -0
- data/rust-vendor/pin-project-lite/tests/ui/pin_project/conflict-unpin.rs +66 -0
- data/rust-vendor/pin-project-lite/tests/ui/pin_project/conflict-unpin.stderr +81 -0
- data/rust-vendor/pin-project-lite/tests/ui/pin_project/invalid-bounds.rs +95 -0
- data/rust-vendor/pin-project-lite/tests/ui/pin_project/invalid-bounds.stderr +512 -0
- data/rust-vendor/pin-project-lite/tests/ui/pin_project/invalid.rs +27 -0
- data/rust-vendor/pin-project-lite/tests/ui/pin_project/invalid.stderr +47 -0
- data/rust-vendor/pin-project-lite/tests/ui/pin_project/negative_impls_stable.rs +21 -0
- data/rust-vendor/pin-project-lite/tests/ui/pin_project/negative_impls_stable.stderr +15 -0
- data/rust-vendor/pin-project-lite/tests/ui/pin_project/overlapping_lifetime_names.rs +12 -0
- data/rust-vendor/pin-project-lite/tests/ui/pin_project/overlapping_lifetime_names.stderr +75 -0
- data/rust-vendor/pin-project-lite/tests/ui/pin_project/overlapping_unpin_struct.rs +22 -0
- data/rust-vendor/pin-project-lite/tests/ui/pin_project/overlapping_unpin_struct.stderr +34 -0
- data/rust-vendor/pin-project-lite/tests/ui/pin_project/packed.rs +21 -0
- data/rust-vendor/pin-project-lite/tests/ui/pin_project/packed.stderr +95 -0
- data/rust-vendor/pin-project-lite/tests/ui/pin_project/unpin_sneaky.rs +14 -0
- data/rust-vendor/pin-project-lite/tests/ui/pin_project/unpin_sneaky.stderr +5 -0
- data/rust-vendor/pin-project-lite/tests/ui/pin_project/unsupported.rs +29 -0
- data/rust-vendor/pin-project-lite/tests/ui/pin_project/unsupported.stderr +111 -0
- data/rust-vendor/pin-project-lite/tests/ui/pinned_drop/call-drop-inner.rs +19 -0
- data/rust-vendor/pin-project-lite/tests/ui/pinned_drop/call-drop-inner.stderr +22 -0
- data/rust-vendor/pin-project-lite/tests/ui/pinned_drop/conditional-drop-impl.rs +28 -0
- data/rust-vendor/pin-project-lite/tests/ui/pinned_drop/conditional-drop-impl.stderr +34 -0
- data/rust-vendor/regex-syntax/.cargo-checksum.json +1 -1
- data/rust-vendor/regex-syntax/.cargo_vcs_info.json +1 -1
- data/rust-vendor/regex-syntax/Cargo.lock +1 -1
- data/rust-vendor/regex-syntax/Cargo.toml +6 -1
- data/rust-vendor/regex-syntax/Cargo.toml.orig +1 -1
- data/rust-vendor/regex-syntax/benches/bench.rs +63 -0
- data/rust-vendor/regex-syntax/src/hir/translate.rs +6 -2
- data/rust-vendor/rgb/.cargo-checksum.json +1 -1
- data/rust-vendor/rgb/.cargo_vcs_info.json +1 -1
- data/rust-vendor/rgb/Cargo.lock +31 -20
- data/rust-vendor/rgb/Cargo.toml +1 -1
- data/rust-vendor/rgb/Cargo.toml.orig +1 -1
- data/rust-vendor/rgb/examples/example.rs +1 -12
- data/rust-vendor/rgb/src/as_bytes.rs +0 -21
- data/rust-vendor/rgb/src/formats/gray.rs +3 -2
- data/rust-vendor/rgb/src/legacy/alt.rs +7 -51
- data/rust-vendor/rgb/src/legacy/internal/convert/array.rs +0 -16
- data/rust-vendor/rgb/src/legacy/internal/convert/mod.rs +24 -74
- data/rust-vendor/rgb/src/legacy/internal/convert/tuple.rs +0 -9
- data/rust-vendor/rgb/src/legacy/internal/ops.rs +0 -156
- data/rust-vendor/rgb/src/legacy/internal/pixel.rs +8 -2
- data/rust-vendor/rgb/src/legacy/internal/rgb.rs +8 -61
- data/rust-vendor/rgb/src/legacy/internal/rgba.rs +8 -92
- data/rust-vendor/rgb/src/lib.rs +6 -113
- data/rust-vendor/rustix/.cargo-checksum.json +1 -1
- data/rust-vendor/rustix/.cargo_vcs_info.json +1 -1
- data/rust-vendor/rustix/Cargo.lock +301 -91
- data/rust-vendor/rustix/Cargo.toml +5 -5
- data/rust-vendor/rustix/Cargo.toml.orig +5 -5
- data/rust-vendor/rustix/README.md +4 -5
- data/rust-vendor/rustix/src/backend/libc/fs/makedev.rs +2 -22
- data/rust-vendor/rustix/src/backend/libc/fs/syscalls.rs +20 -2
- data/rust-vendor/rustix/src/backend/libc/fs/types.rs +16 -0
- data/rust-vendor/rustix/src/backend/linux_raw/arch/riscv64.rs +432 -13
- data/rust-vendor/rustix/src/fs/at.rs +30 -14
- data/rust-vendor/rustix/src/fs/mod.rs +2 -4
- data/rust-vendor/rustix/src/process/types.rs +23 -8
- data/rust-vendor/slab/.cargo-checksum.json +1 -0
- data/rust-vendor/slab/.cargo_vcs_info.json +6 -0
- data/rust-vendor/slab/CHANGELOG.md +71 -0
- data/rust-vendor/slab/Cargo.lock +83 -0
- data/rust-vendor/slab/Cargo.toml +67 -0
- data/rust-vendor/slab/Cargo.toml.orig +29 -0
- data/rust-vendor/slab/LICENSE +25 -0
- data/rust-vendor/slab/README.md +51 -0
- data/rust-vendor/slab/SECURITY.md +9 -0
- data/rust-vendor/slab/src/builder.rs +63 -0
- data/rust-vendor/slab/src/lib.rs +1653 -0
- data/rust-vendor/slab/src/serde.rs +62 -0
- data/rust-vendor/slab/tests/serde.rs +49 -0
- data/rust-vendor/slab/tests/slab.rs +782 -0
- data/rust-vendor/syn/.cargo-checksum.json +1 -1
- data/rust-vendor/syn/.cargo_vcs_info.json +1 -1
- data/rust-vendor/syn/Cargo.lock +30 -30
- data/rust-vendor/syn/Cargo.toml +1 -1
- data/rust-vendor/syn/Cargo.toml.orig +1 -1
- data/rust-vendor/syn/src/item.rs +3 -0
- data/rust-vendor/syn/src/lib.rs +1 -1
- data/rust-vendor/syn/tests/common/eq.rs +1 -1
- data/rust-vendor/tempfile/.cargo-checksum.json +1 -1
- data/rust-vendor/tempfile/.cargo_vcs_info.json +1 -1
- data/rust-vendor/tempfile/CHANGELOG.md +4 -0
- data/rust-vendor/tempfile/Cargo.lock +7 -7
- data/rust-vendor/tempfile/Cargo.toml +2 -2
- data/rust-vendor/tempfile/Cargo.toml.orig +2 -2
- data/rust-vendor/tempfile/README.md +23 -6
- data/rust-vendor/tempfile/src/env.rs +1 -1
- data/rust-vendor/tempfile/src/file/imp/unix.rs +2 -10
- data/rust-vendor/tempfile/src/lib.rs +1 -1
- data/rust-vendor/tempfile/src/util.rs +1 -1
- data/rust-vendor/tendril/.cargo-checksum.json +1 -1
- data/rust-vendor/tendril/.cargo_vcs_info.json +2 -2
- data/rust-vendor/tendril/Cargo.lock +642 -68
- data/rust-vendor/tendril/Cargo.toml +44 -16
- data/rust-vendor/tendril/Cargo.toml.orig +26 -15
- data/rust-vendor/tendril/README.md +27 -27
- data/rust-vendor/tendril/benches/futf.rs +63 -0
- data/rust-vendor/tendril/benches/tendril.rs +158 -0
- data/rust-vendor/tendril/examples/fuzz.rs +22 -25
- data/rust-vendor/tendril/src/buf32.rs +4 -9
- data/rust-vendor/tendril/src/fmt.rs +23 -26
- data/rust-vendor/tendril/src/futf.rs +504 -0
- data/rust-vendor/tendril/src/lib.rs +13 -13
- data/rust-vendor/tendril/src/stream.rs +46 -140
- data/rust-vendor/tendril/src/tendril.rs +56 -175
- data/rust-vendor/tendril/src/utf8_decode.rs +12 -14
- data/rust-vendor/tendril/src/util.rs +5 -9
- data/rust-vendor/tokio/.cargo-checksum.json +1 -0
- data/rust-vendor/tokio/.cargo_vcs_info.json +6 -0
- data/rust-vendor/tokio/CHANGELOG.md +4253 -0
- data/rust-vendor/tokio/Cargo.toml +934 -0
- data/rust-vendor/tokio/Cargo.toml.orig +189 -0
- data/rust-vendor/tokio/LICENSE +21 -0
- data/rust-vendor/tokio/README.md +255 -0
- data/rust-vendor/tokio/docs/reactor-refactor.md +276 -0
- data/rust-vendor/tokio/src/blocking.rs +63 -0
- data/rust-vendor/tokio/src/doc/mod.rs +47 -0
- data/rust-vendor/tokio/src/doc/os.rs +68 -0
- data/rust-vendor/tokio/src/fs/canonicalize.rs +49 -0
- data/rust-vendor/tokio/src/fs/copy.rs +24 -0
- data/rust-vendor/tokio/src/fs/create_dir.rs +50 -0
- data/rust-vendor/tokio/src/fs/create_dir_all.rs +51 -0
- data/rust-vendor/tokio/src/fs/dir_builder.rs +129 -0
- data/rust-vendor/tokio/src/fs/file/tests.rs +978 -0
- data/rust-vendor/tokio/src/fs/file.rs +995 -0
- data/rust-vendor/tokio/src/fs/hard_link.rs +44 -0
- data/rust-vendor/tokio/src/fs/metadata.rs +46 -0
- data/rust-vendor/tokio/src/fs/mocks.rs +176 -0
- data/rust-vendor/tokio/src/fs/mod.rs +324 -0
- data/rust-vendor/tokio/src/fs/open_options/mock_open_options.rs +39 -0
- data/rust-vendor/tokio/src/fs/open_options/uring_open_options.rs +128 -0
- data/rust-vendor/tokio/src/fs/open_options.rs +853 -0
- data/rust-vendor/tokio/src/fs/read.rs +77 -0
- data/rust-vendor/tokio/src/fs/read_dir.rs +357 -0
- data/rust-vendor/tokio/src/fs/read_link.rs +12 -0
- data/rust-vendor/tokio/src/fs/read_to_string.rs +30 -0
- data/rust-vendor/tokio/src/fs/read_uring.rs +134 -0
- data/rust-vendor/tokio/src/fs/remove_dir.rs +12 -0
- data/rust-vendor/tokio/src/fs/remove_dir_all.rs +14 -0
- data/rust-vendor/tokio/src/fs/remove_file.rs +16 -0
- data/rust-vendor/tokio/src/fs/rename.rs +17 -0
- data/rust-vendor/tokio/src/fs/set_permissions.rs +15 -0
- data/rust-vendor/tokio/src/fs/symlink.rs +16 -0
- data/rust-vendor/tokio/src/fs/symlink_dir.rs +19 -0
- data/rust-vendor/tokio/src/fs/symlink_file.rs +19 -0
- data/rust-vendor/tokio/src/fs/symlink_metadata.rs +15 -0
- data/rust-vendor/tokio/src/fs/try_exists.rs +28 -0
- data/rust-vendor/tokio/src/fs/write.rs +96 -0
- data/rust-vendor/tokio/src/future/block_on.rs +22 -0
- data/rust-vendor/tokio/src/future/maybe_done.rs +123 -0
- data/rust-vendor/tokio/src/future/mod.rs +28 -0
- data/rust-vendor/tokio/src/future/trace.rs +11 -0
- data/rust-vendor/tokio/src/future/try_join.rs +82 -0
- data/rust-vendor/tokio/src/fuzz.rs +1 -0
- data/rust-vendor/tokio/src/io/async_buf_read.rs +117 -0
- data/rust-vendor/tokio/src/io/async_fd.rs +1439 -0
- data/rust-vendor/tokio/src/io/async_read.rs +133 -0
- data/rust-vendor/tokio/src/io/async_seek.rs +96 -0
- data/rust-vendor/tokio/src/io/async_write.rs +403 -0
- data/rust-vendor/tokio/src/io/blocking.rs +306 -0
- data/rust-vendor/tokio/src/io/bsd/poll_aio.rs +197 -0
- data/rust-vendor/tokio/src/io/interest.rs +345 -0
- data/rust-vendor/tokio/src/io/join.rs +130 -0
- data/rust-vendor/tokio/src/io/mod.rs +308 -0
- data/rust-vendor/tokio/src/io/poll_evented.rs +297 -0
- data/rust-vendor/tokio/src/io/read_buf.rs +344 -0
- data/rust-vendor/tokio/src/io/ready.rs +322 -0
- data/rust-vendor/tokio/src/io/seek.rs +57 -0
- data/rust-vendor/tokio/src/io/split.rs +166 -0
- data/rust-vendor/tokio/src/io/stderr.rs +134 -0
- data/rust-vendor/tokio/src/io/stdin.rs +98 -0
- data/rust-vendor/tokio/src/io/stdio_common.rs +222 -0
- data/rust-vendor/tokio/src/io/stdout.rs +183 -0
- data/rust-vendor/tokio/src/io/uring/mod.rs +4 -0
- data/rust-vendor/tokio/src/io/uring/open.rs +59 -0
- data/rust-vendor/tokio/src/io/uring/read.rs +61 -0
- data/rust-vendor/tokio/src/io/uring/utils.rs +6 -0
- data/rust-vendor/tokio/src/io/uring/write.rs +55 -0
- data/rust-vendor/tokio/src/io/util/async_buf_read_ext.rs +357 -0
- data/rust-vendor/tokio/src/io/util/async_read_ext.rs +1454 -0
- data/rust-vendor/tokio/src/io/util/async_seek_ext.rs +96 -0
- data/rust-vendor/tokio/src/io/util/async_write_ext.rs +1332 -0
- data/rust-vendor/tokio/src/io/util/buf_reader.rs +311 -0
- data/rust-vendor/tokio/src/io/util/buf_stream.rs +207 -0
- data/rust-vendor/tokio/src/io/util/buf_writer.rs +310 -0
- data/rust-vendor/tokio/src/io/util/chain.rs +144 -0
- data/rust-vendor/tokio/src/io/util/copy.rs +303 -0
- data/rust-vendor/tokio/src/io/util/copy_bidirectional.rs +137 -0
- data/rust-vendor/tokio/src/io/util/copy_buf.rs +117 -0
- data/rust-vendor/tokio/src/io/util/empty.rs +164 -0
- data/rust-vendor/tokio/src/io/util/fill_buf.rs +59 -0
- data/rust-vendor/tokio/src/io/util/flush.rs +47 -0
- data/rust-vendor/tokio/src/io/util/lines.rs +145 -0
- data/rust-vendor/tokio/src/io/util/mem.rs +429 -0
- data/rust-vendor/tokio/src/io/util/mod.rs +112 -0
- data/rust-vendor/tokio/src/io/util/read.rs +55 -0
- data/rust-vendor/tokio/src/io/util/read_buf.rs +71 -0
- data/rust-vendor/tokio/src/io/util/read_exact.rs +69 -0
- data/rust-vendor/tokio/src/io/util/read_int.rs +158 -0
- data/rust-vendor/tokio/src/io/util/read_line.rs +119 -0
- data/rust-vendor/tokio/src/io/util/read_to_end.rs +143 -0
- data/rust-vendor/tokio/src/io/util/read_to_string.rs +78 -0
- data/rust-vendor/tokio/src/io/util/read_until.rs +80 -0
- data/rust-vendor/tokio/src/io/util/repeat.rs +74 -0
- data/rust-vendor/tokio/src/io/util/shutdown.rs +46 -0
- data/rust-vendor/tokio/src/io/util/sink.rs +94 -0
- data/rust-vendor/tokio/src/io/util/split.rs +121 -0
- data/rust-vendor/tokio/src/io/util/take.rs +138 -0
- data/rust-vendor/tokio/src/io/util/vec_with_initialized.rs +142 -0
- data/rust-vendor/tokio/src/io/util/write.rs +46 -0
- data/rust-vendor/tokio/src/io/util/write_all.rs +55 -0
- data/rust-vendor/tokio/src/io/util/write_all_buf.rs +64 -0
- data/rust-vendor/tokio/src/io/util/write_buf.rs +55 -0
- data/rust-vendor/tokio/src/io/util/write_int.rs +151 -0
- data/rust-vendor/tokio/src/io/util/write_vectored.rs +47 -0
- data/rust-vendor/tokio/src/lib.rs +707 -0
- data/rust-vendor/tokio/src/loom/mocked.rs +85 -0
- data/rust-vendor/tokio/src/loom/mod.rs +14 -0
- data/rust-vendor/tokio/src/loom/std/atomic_u16.rs +47 -0
- data/rust-vendor/tokio/src/loom/std/atomic_u32.rs +47 -0
- data/rust-vendor/tokio/src/loom/std/atomic_u64.rs +19 -0
- data/rust-vendor/tokio/src/loom/std/atomic_u64_as_mutex.rs +76 -0
- data/rust-vendor/tokio/src/loom/std/atomic_u64_native.rs +4 -0
- data/rust-vendor/tokio/src/loom/std/atomic_u64_static_const_new.rs +12 -0
- data/rust-vendor/tokio/src/loom/std/atomic_u64_static_once_cell.rs +57 -0
- data/rust-vendor/tokio/src/loom/std/atomic_usize.rs +59 -0
- data/rust-vendor/tokio/src/loom/std/barrier.rs +223 -0
- data/rust-vendor/tokio/src/loom/std/mod.rs +124 -0
- data/rust-vendor/tokio/src/loom/std/mutex.rs +36 -0
- data/rust-vendor/tokio/src/loom/std/parking_lot.rs +195 -0
- data/rust-vendor/tokio/src/loom/std/rwlock.rs +48 -0
- data/rust-vendor/tokio/src/loom/std/unsafe_cell.rs +18 -0
- data/rust-vendor/tokio/src/macros/addr_of.rs +27 -0
- data/rust-vendor/tokio/src/macros/cfg.rs +713 -0
- data/rust-vendor/tokio/src/macros/join.rs +279 -0
- data/rust-vendor/tokio/src/macros/loom.rs +8 -0
- data/rust-vendor/tokio/src/macros/mod.rs +36 -0
- data/rust-vendor/tokio/src/macros/pin.rs +144 -0
- data/rust-vendor/tokio/src/macros/select.rs +1411 -0
- data/rust-vendor/tokio/src/macros/support.rs +32 -0
- data/rust-vendor/tokio/src/macros/thread_local.rs +18 -0
- data/rust-vendor/tokio/src/macros/trace.rs +26 -0
- data/rust-vendor/tokio/src/macros/try_join.rs +280 -0
- data/rust-vendor/tokio/src/net/addr.rs +333 -0
- data/rust-vendor/tokio/src/net/lookup_host.rs +38 -0
- data/rust-vendor/tokio/src/net/mod.rs +64 -0
- data/rust-vendor/tokio/src/net/tcp/listener.rs +460 -0
- data/rust-vendor/tokio/src/net/tcp/mod.rs +16 -0
- data/rust-vendor/tokio/src/net/tcp/socket.rs +1027 -0
- data/rust-vendor/tokio/src/net/tcp/split.rs +423 -0
- data/rust-vendor/tokio/src/net/tcp/split_owned.rs +507 -0
- data/rust-vendor/tokio/src/net/tcp/stream.rs +1541 -0
- data/rust-vendor/tokio/src/net/udp.rs +2333 -0
- data/rust-vendor/tokio/src/net/unix/datagram/mod.rs +3 -0
- data/rust-vendor/tokio/src/net/unix/datagram/socket.rs +1621 -0
- data/rust-vendor/tokio/src/net/unix/listener.rs +247 -0
- data/rust-vendor/tokio/src/net/unix/mod.rs +39 -0
- data/rust-vendor/tokio/src/net/unix/pipe.rs +1442 -0
- data/rust-vendor/tokio/src/net/unix/socket.rs +273 -0
- data/rust-vendor/tokio/src/net/unix/socketaddr.rs +66 -0
- data/rust-vendor/tokio/src/net/unix/split.rs +331 -0
- data/rust-vendor/tokio/src/net/unix/split_owned.rs +419 -0
- data/rust-vendor/tokio/src/net/unix/stream.rs +1095 -0
- data/rust-vendor/tokio/src/net/unix/ucred.rs +332 -0
- data/rust-vendor/tokio/src/net/windows/mod.rs +3 -0
- data/rust-vendor/tokio/src/net/windows/named_pipe.rs +2699 -0
- data/rust-vendor/tokio/src/process/kill.rs +13 -0
- data/rust-vendor/tokio/src/process/mod.rs +1854 -0
- data/rust-vendor/tokio/src/process/unix/mod.rs +374 -0
- data/rust-vendor/tokio/src/process/unix/orphan.rs +334 -0
- data/rust-vendor/tokio/src/process/unix/pidfd_reaper.rs +352 -0
- data/rust-vendor/tokio/src/process/unix/reap.rs +298 -0
- data/rust-vendor/tokio/src/process/windows.rs +285 -0
- data/rust-vendor/tokio/src/runtime/blocking/mod.rs +26 -0
- data/rust-vendor/tokio/src/runtime/blocking/pool.rs +606 -0
- data/rust-vendor/tokio/src/runtime/blocking/schedule.rs +66 -0
- data/rust-vendor/tokio/src/runtime/blocking/shutdown.rs +71 -0
- data/rust-vendor/tokio/src/runtime/blocking/task.rs +44 -0
- data/rust-vendor/tokio/src/runtime/builder.rs +1840 -0
- data/rust-vendor/tokio/src/runtime/config.rs +54 -0
- data/rust-vendor/tokio/src/runtime/context/blocking.rs +121 -0
- data/rust-vendor/tokio/src/runtime/context/current.rs +97 -0
- data/rust-vendor/tokio/src/runtime/context/runtime.rs +99 -0
- data/rust-vendor/tokio/src/runtime/context/runtime_mt.rs +36 -0
- data/rust-vendor/tokio/src/runtime/context/scoped.rs +56 -0
- data/rust-vendor/tokio/src/runtime/context.rs +200 -0
- data/rust-vendor/tokio/src/runtime/driver/op.rs +207 -0
- data/rust-vendor/tokio/src/runtime/driver.rs +376 -0
- data/rust-vendor/tokio/src/runtime/dump.rs +340 -0
- data/rust-vendor/tokio/src/runtime/handle.rs +710 -0
- data/rust-vendor/tokio/src/runtime/id.rs +42 -0
- data/rust-vendor/tokio/src/runtime/io/driver/signal.rs +22 -0
- data/rust-vendor/tokio/src/runtime/io/driver/uring.rs +294 -0
- data/rust-vendor/tokio/src/runtime/io/driver.rs +333 -0
- data/rust-vendor/tokio/src/runtime/io/metrics.rs +24 -0
- data/rust-vendor/tokio/src/runtime/io/mod.rs +22 -0
- data/rust-vendor/tokio/src/runtime/io/registration.rs +259 -0
- data/rust-vendor/tokio/src/runtime/io/registration_set.rs +149 -0
- data/rust-vendor/tokio/src/runtime/io/scheduled_io.rs +582 -0
- data/rust-vendor/tokio/src/runtime/local_runtime/mod.rs +7 -0
- data/rust-vendor/tokio/src/runtime/local_runtime/options.rs +18 -0
- data/rust-vendor/tokio/src/runtime/local_runtime/runtime.rs +397 -0
- data/rust-vendor/tokio/src/runtime/metrics/batch.rs +303 -0
- data/rust-vendor/tokio/src/runtime/metrics/histogram/h2_histogram.rs +526 -0
- data/rust-vendor/tokio/src/runtime/metrics/histogram.rs +629 -0
- data/rust-vendor/tokio/src/runtime/metrics/io.rs +25 -0
- data/rust-vendor/tokio/src/runtime/metrics/mock.rs +15 -0
- data/rust-vendor/tokio/src/runtime/metrics/mod.rs +40 -0
- data/rust-vendor/tokio/src/runtime/metrics/runtime.rs +1122 -0
- data/rust-vendor/tokio/src/runtime/metrics/scheduler.rs +35 -0
- data/rust-vendor/tokio/src/runtime/metrics/worker.rs +110 -0
- data/rust-vendor/tokio/src/runtime/mod.rs +604 -0
- data/rust-vendor/tokio/src/runtime/park.rs +362 -0
- data/rust-vendor/tokio/src/runtime/process.rs +44 -0
- data/rust-vendor/tokio/src/runtime/runtime.rs +515 -0
- data/rust-vendor/tokio/src/runtime/scheduler/block_in_place.rs +9 -0
- data/rust-vendor/tokio/src/runtime/scheduler/current_thread/mod.rs +861 -0
- data/rust-vendor/tokio/src/runtime/scheduler/defer.rs +43 -0
- data/rust-vendor/tokio/src/runtime/scheduler/inject/metrics.rs +7 -0
- data/rust-vendor/tokio/src/runtime/scheduler/inject/pop.rs +55 -0
- data/rust-vendor/tokio/src/runtime/scheduler/inject/rt_multi_thread.rs +122 -0
- data/rust-vendor/tokio/src/runtime/scheduler/inject/shared.rs +121 -0
- data/rust-vendor/tokio/src/runtime/scheduler/inject/synced.rs +37 -0
- data/rust-vendor/tokio/src/runtime/scheduler/inject.rs +70 -0
- data/rust-vendor/tokio/src/runtime/scheduler/lock.rs +6 -0
- data/rust-vendor/tokio/src/runtime/scheduler/mod.rs +338 -0
- data/rust-vendor/tokio/src/runtime/scheduler/multi_thread/counters.rs +62 -0
- data/rust-vendor/tokio/src/runtime/scheduler/multi_thread/handle/metrics.rs +55 -0
- data/rust-vendor/tokio/src/runtime/scheduler/multi_thread/handle/taskdump.rs +26 -0
- data/rust-vendor/tokio/src/runtime/scheduler/multi_thread/handle.rs +132 -0
- data/rust-vendor/tokio/src/runtime/scheduler/multi_thread/idle.rs +240 -0
- data/rust-vendor/tokio/src/runtime/scheduler/multi_thread/mod.rs +105 -0
- data/rust-vendor/tokio/src/runtime/scheduler/multi_thread/overflow.rs +26 -0
- data/rust-vendor/tokio/src/runtime/scheduler/multi_thread/park.rs +300 -0
- data/rust-vendor/tokio/src/runtime/scheduler/multi_thread/queue.rs +599 -0
- data/rust-vendor/tokio/src/runtime/scheduler/multi_thread/stats.rs +137 -0
- data/rust-vendor/tokio/src/runtime/scheduler/multi_thread/trace.rs +61 -0
- data/rust-vendor/tokio/src/runtime/scheduler/multi_thread/trace_mock.rs +11 -0
- data/rust-vendor/tokio/src/runtime/scheduler/multi_thread/worker/metrics.rs +15 -0
- data/rust-vendor/tokio/src/runtime/scheduler/multi_thread/worker/taskdump.rs +79 -0
- data/rust-vendor/tokio/src/runtime/scheduler/multi_thread/worker/taskdump_mock.rs +7 -0
- data/rust-vendor/tokio/src/runtime/scheduler/multi_thread/worker.rs +1497 -0
- data/rust-vendor/tokio/src/runtime/scheduler/util/mod.rs +2 -0
- data/rust-vendor/tokio/src/runtime/scheduler/util/time_alt.rs +179 -0
- data/rust-vendor/tokio/src/runtime/signal/mod.rs +143 -0
- data/rust-vendor/tokio/src/runtime/task/abort.rs +105 -0
- data/rust-vendor/tokio/src/runtime/task/core.rs +570 -0
- data/rust-vendor/tokio/src/runtime/task/error.rs +198 -0
- data/rust-vendor/tokio/src/runtime/task/harness.rs +567 -0
- data/rust-vendor/tokio/src/runtime/task/id.rs +92 -0
- data/rust-vendor/tokio/src/runtime/task/join.rs +373 -0
- data/rust-vendor/tokio/src/runtime/task/list.rs +368 -0
- data/rust-vendor/tokio/src/runtime/task/mod.rs +670 -0
- data/rust-vendor/tokio/src/runtime/task/raw.rs +378 -0
- data/rust-vendor/tokio/src/runtime/task/state.rs +662 -0
- data/rust-vendor/tokio/src/runtime/task/trace/mod.rs +364 -0
- data/rust-vendor/tokio/src/runtime/task/trace/symbol.rs +92 -0
- data/rust-vendor/tokio/src/runtime/task/trace/tree.rs +126 -0
- data/rust-vendor/tokio/src/runtime/task/waker.rs +124 -0
- data/rust-vendor/tokio/src/runtime/task_hooks.rs +83 -0
- data/rust-vendor/tokio/src/runtime/tests/inject.rs +54 -0
- data/rust-vendor/tokio/src/runtime/tests/loom_blocking.rs +102 -0
- data/rust-vendor/tokio/src/runtime/tests/loom_current_thread/yield_now.rs +30 -0
- data/rust-vendor/tokio/src/runtime/tests/loom_current_thread.rs +198 -0
- data/rust-vendor/tokio/src/runtime/tests/loom_join_set.rs +82 -0
- data/rust-vendor/tokio/src/runtime/tests/loom_local.rs +47 -0
- data/rust-vendor/tokio/src/runtime/tests/loom_multi_thread/queue.rs +205 -0
- data/rust-vendor/tokio/src/runtime/tests/loom_multi_thread/shutdown.rs +28 -0
- data/rust-vendor/tokio/src/runtime/tests/loom_multi_thread/yield_now.rs +37 -0
- data/rust-vendor/tokio/src/runtime/tests/loom_multi_thread.rs +461 -0
- data/rust-vendor/tokio/src/runtime/tests/loom_oneshot.rs +48 -0
- data/rust-vendor/tokio/src/runtime/tests/mod.rs +85 -0
- data/rust-vendor/tokio/src/runtime/tests/queue.rs +273 -0
- data/rust-vendor/tokio/src/runtime/tests/task.rs +469 -0
- data/rust-vendor/tokio/src/runtime/tests/task_combinations.rs +488 -0
- data/rust-vendor/tokio/src/runtime/thread_id.rs +31 -0
- data/rust-vendor/tokio/src/runtime/time/entry.rs +693 -0
- data/rust-vendor/tokio/src/runtime/time/handle.rs +68 -0
- data/rust-vendor/tokio/src/runtime/time/mod.rs +493 -0
- data/rust-vendor/tokio/src/runtime/time/source.rs +45 -0
- data/rust-vendor/tokio/src/runtime/time/tests/mod.rs +269 -0
- data/rust-vendor/tokio/src/runtime/time/wheel/level.rs +192 -0
- data/rust-vendor/tokio/src/runtime/time/wheel/mod.rs +331 -0
- data/rust-vendor/tokio/src/runtime/time_alt/cancellation_queue/tests.rs +97 -0
- data/rust-vendor/tokio/src/runtime/time_alt/cancellation_queue.rs +92 -0
- data/rust-vendor/tokio/src/runtime/time_alt/context.rs +47 -0
- data/rust-vendor/tokio/src/runtime/time_alt/entry.rs +276 -0
- data/rust-vendor/tokio/src/runtime/time_alt/mod.rs +24 -0
- data/rust-vendor/tokio/src/runtime/time_alt/registration_queue/tests.rs +53 -0
- data/rust-vendor/tokio/src/runtime/time_alt/registration_queue.rs +43 -0
- data/rust-vendor/tokio/src/runtime/time_alt/tests.rs +168 -0
- data/rust-vendor/tokio/src/runtime/time_alt/timer.rs +169 -0
- data/rust-vendor/tokio/src/runtime/time_alt/wake_queue/tests.rs +66 -0
- data/rust-vendor/tokio/src/runtime/time_alt/wake_queue.rs +50 -0
- data/rust-vendor/tokio/src/runtime/time_alt/wheel/level.rs +194 -0
- data/rust-vendor/tokio/src/runtime/time_alt/wheel/mod.rs +272 -0
- data/rust-vendor/tokio/src/signal/ctrl_c.rs +62 -0
- data/rust-vendor/tokio/src/signal/mod.rs +100 -0
- data/rust-vendor/tokio/src/signal/registry.rs +275 -0
- data/rust-vendor/tokio/src/signal/reusable_box.rs +230 -0
- data/rust-vendor/tokio/src/signal/unix.rs +570 -0
- data/rust-vendor/tokio/src/signal/windows/stub.rs +25 -0
- data/rust-vendor/tokio/src/signal/windows/sys.rs +244 -0
- data/rust-vendor/tokio/src/signal/windows.rs +526 -0
- data/rust-vendor/tokio/src/sync/barrier.rs +213 -0
- data/rust-vendor/tokio/src/sync/batch_semaphore.rs +780 -0
- data/rust-vendor/tokio/src/sync/broadcast.rs +1759 -0
- data/rust-vendor/tokio/src/sync/mod.rs +524 -0
- data/rust-vendor/tokio/src/sync/mpsc/block.rs +477 -0
- data/rust-vendor/tokio/src/sync/mpsc/bounded.rs +1949 -0
- data/rust-vendor/tokio/src/sync/mpsc/chan.rs +628 -0
- data/rust-vendor/tokio/src/sync/mpsc/error.rs +168 -0
- data/rust-vendor/tokio/src/sync/mpsc/list.rs +419 -0
- data/rust-vendor/tokio/src/sync/mpsc/mod.rs +144 -0
- data/rust-vendor/tokio/src/sync/mpsc/unbounded.rs +726 -0
- data/rust-vendor/tokio/src/sync/mutex.rs +1396 -0
- data/rust-vendor/tokio/src/sync/notify.rs +1409 -0
- data/rust-vendor/tokio/src/sync/once_cell.rs +512 -0
- data/rust-vendor/tokio/src/sync/oneshot.rs +1594 -0
- data/rust-vendor/tokio/src/sync/rwlock/owned_read_guard.rs +208 -0
- data/rust-vendor/tokio/src/sync/rwlock/owned_write_guard.rs +460 -0
- data/rust-vendor/tokio/src/sync/rwlock/owned_write_guard_mapped.rs +230 -0
- data/rust-vendor/tokio/src/sync/rwlock/read_guard.rs +191 -0
- data/rust-vendor/tokio/src/sync/rwlock/write_guard.rs +457 -0
- data/rust-vendor/tokio/src/sync/rwlock/write_guard_mapped.rs +213 -0
- data/rust-vendor/tokio/src/sync/rwlock.rs +1121 -0
- data/rust-vendor/tokio/src/sync/semaphore.rs +1206 -0
- data/rust-vendor/tokio/src/sync/set_once.rs +388 -0
- data/rust-vendor/tokio/src/sync/task/atomic_waker.rs +383 -0
- data/rust-vendor/tokio/src/sync/task/mod.rs +4 -0
- data/rust-vendor/tokio/src/sync/tests/atomic_waker.rs +113 -0
- data/rust-vendor/tokio/src/sync/tests/loom_atomic_waker.rs +100 -0
- data/rust-vendor/tokio/src/sync/tests/loom_broadcast.rs +207 -0
- data/rust-vendor/tokio/src/sync/tests/loom_list.rs +48 -0
- data/rust-vendor/tokio/src/sync/tests/loom_mpsc.rs +224 -0
- data/rust-vendor/tokio/src/sync/tests/loom_notify.rs +330 -0
- data/rust-vendor/tokio/src/sync/tests/loom_oneshot.rs +187 -0
- data/rust-vendor/tokio/src/sync/tests/loom_rwlock.rs +105 -0
- data/rust-vendor/tokio/src/sync/tests/loom_semaphore_batch.rs +242 -0
- data/rust-vendor/tokio/src/sync/tests/loom_set_once.rs +72 -0
- data/rust-vendor/tokio/src/sync/tests/loom_watch.rs +110 -0
- data/rust-vendor/tokio/src/sync/tests/mod.rs +18 -0
- data/rust-vendor/tokio/src/sync/tests/notify.rs +121 -0
- data/rust-vendor/tokio/src/sync/tests/semaphore_batch.rs +310 -0
- data/rust-vendor/tokio/src/sync/watch.rs +1556 -0
- data/rust-vendor/tokio/src/task/blocking.rs +212 -0
- data/rust-vendor/tokio/src/task/builder.rs +235 -0
- data/rust-vendor/tokio/src/task/coop/consume_budget.rs +39 -0
- data/rust-vendor/tokio/src/task/coop/mod.rs +573 -0
- data/rust-vendor/tokio/src/task/coop/unconstrained.rs +45 -0
- data/rust-vendor/tokio/src/task/join_set.rs +851 -0
- data/rust-vendor/tokio/src/task/local.rs +1353 -0
- data/rust-vendor/tokio/src/task/mod.rs +335 -0
- data/rust-vendor/tokio/src/task/spawn.rs +210 -0
- data/rust-vendor/tokio/src/task/task_local.rs +488 -0
- data/rust-vendor/tokio/src/task/yield_now.rs +64 -0
- data/rust-vendor/tokio/src/time/clock.rs +320 -0
- data/rust-vendor/tokio/src/time/error.rs +123 -0
- data/rust-vendor/tokio/src/time/instant.rs +223 -0
- data/rust-vendor/tokio/src/time/interval.rs +643 -0
- data/rust-vendor/tokio/src/time/mod.rs +110 -0
- data/rust-vendor/tokio/src/time/sleep.rs +469 -0
- data/rust-vendor/tokio/src/time/timeout.rs +234 -0
- data/rust-vendor/tokio/src/util/as_ref.rs +38 -0
- data/rust-vendor/tokio/src/util/atomic_cell.rs +51 -0
- data/rust-vendor/tokio/src/util/bit.rs +64 -0
- data/rust-vendor/tokio/src/util/blocking_check.rs +29 -0
- data/rust-vendor/tokio/src/util/cacheline.rs +89 -0
- data/rust-vendor/tokio/src/util/error.rs +16 -0
- data/rust-vendor/tokio/src/util/idle_notified_set.rs +512 -0
- data/rust-vendor/tokio/src/util/linked_list.rs +808 -0
- data/rust-vendor/tokio/src/util/markers.rs +9 -0
- data/rust-vendor/tokio/src/util/memchr.rs +74 -0
- data/rust-vendor/tokio/src/util/metric_atomics.rs +81 -0
- data/rust-vendor/tokio/src/util/mod.rs +110 -0
- data/rust-vendor/tokio/src/util/ptr_expose.rs +74 -0
- data/rust-vendor/tokio/src/util/rand/rt.rs +61 -0
- data/rust-vendor/tokio/src/util/rand/rt_unstable.rs +20 -0
- data/rust-vendor/tokio/src/util/rand.rs +95 -0
- data/rust-vendor/tokio/src/util/rc_cell.rs +57 -0
- data/rust-vendor/tokio/src/util/sharded_list.rs +162 -0
- data/rust-vendor/tokio/src/util/sync_wrapper.rs +37 -0
- data/rust-vendor/tokio/src/util/trace.rs +191 -0
- data/rust-vendor/tokio/src/util/try_lock.rs +80 -0
- data/rust-vendor/tokio/src/util/typeid.rs +45 -0
- data/rust-vendor/tokio/src/util/wake.rs +78 -0
- data/rust-vendor/tokio/src/util/wake_list.rs +83 -0
- data/rust-vendor/tokio/tests/_require_full.rs +8 -0
- data/rust-vendor/tokio/tests/async_send_sync.rs +778 -0
- data/rust-vendor/tokio/tests/buffered.rs +51 -0
- data/rust-vendor/tokio/tests/coop_budget.rs +93 -0
- data/rust-vendor/tokio/tests/dump.rs +199 -0
- data/rust-vendor/tokio/tests/duplex_stream.rs +47 -0
- data/rust-vendor/tokio/tests/fs.rs +36 -0
- data/rust-vendor/tokio/tests/fs_canonicalize_dir.rs +22 -0
- data/rust-vendor/tokio/tests/fs_copy.rs +41 -0
- data/rust-vendor/tokio/tests/fs_dir.rs +126 -0
- data/rust-vendor/tokio/tests/fs_file.rs +289 -0
- data/rust-vendor/tokio/tests/fs_link.rs +62 -0
- data/rust-vendor/tokio/tests/fs_open_options.rs +84 -0
- data/rust-vendor/tokio/tests/fs_open_options_windows.rs +51 -0
- data/rust-vendor/tokio/tests/fs_remove_dir_all.rs +31 -0
- data/rust-vendor/tokio/tests/fs_remove_file.rs +24 -0
- data/rust-vendor/tokio/tests/fs_rename.rs +28 -0
- data/rust-vendor/tokio/tests/fs_symlink_dir_windows.rs +31 -0
- data/rust-vendor/tokio/tests/fs_symlink_file_windows.rs +24 -0
- data/rust-vendor/tokio/tests/fs_try_exists.rs +48 -0
- data/rust-vendor/tokio/tests/fs_uring.rs +157 -0
- data/rust-vendor/tokio/tests/fs_uring_read.rs +202 -0
- data/rust-vendor/tokio/tests/fs_write.rs +16 -0
- data/rust-vendor/tokio/tests/io_async_fd.rs +958 -0
- data/rust-vendor/tokio/tests/io_async_read.rs +10 -0
- data/rust-vendor/tokio/tests/io_buf_reader.rs +379 -0
- data/rust-vendor/tokio/tests/io_buf_writer.rs +537 -0
- data/rust-vendor/tokio/tests/io_chain.rs +16 -0
- data/rust-vendor/tokio/tests/io_copy.rs +101 -0
- data/rust-vendor/tokio/tests/io_copy_bidirectional.rs +168 -0
- data/rust-vendor/tokio/tests/io_driver.rs +105 -0
- data/rust-vendor/tokio/tests/io_driver_drop.rs +62 -0
- data/rust-vendor/tokio/tests/io_fill_buf.rs +34 -0
- data/rust-vendor/tokio/tests/io_join.rs +81 -0
- data/rust-vendor/tokio/tests/io_lines.rs +19 -0
- data/rust-vendor/tokio/tests/io_mem_stream.rs +121 -0
- data/rust-vendor/tokio/tests/io_panic.rs +222 -0
- data/rust-vendor/tokio/tests/io_poll_aio.rs +339 -0
- data/rust-vendor/tokio/tests/io_read.rs +75 -0
- data/rust-vendor/tokio/tests/io_read_buf.rs +94 -0
- data/rust-vendor/tokio/tests/io_read_exact.rs +15 -0
- data/rust-vendor/tokio/tests/io_read_line.rs +107 -0
- data/rust-vendor/tokio/tests/io_read_to_end.rs +125 -0
- data/rust-vendor/tokio/tests/io_read_to_string.rs +63 -0
- data/rust-vendor/tokio/tests/io_read_until.rs +74 -0
- data/rust-vendor/tokio/tests/io_repeat.rs +18 -0
- data/rust-vendor/tokio/tests/io_sink.rs +44 -0
- data/rust-vendor/tokio/tests/io_split.rs +114 -0
- data/rust-vendor/tokio/tests/io_take.rs +74 -0
- data/rust-vendor/tokio/tests/io_util_empty.rs +61 -0
- data/rust-vendor/tokio/tests/io_write.rs +58 -0
- data/rust-vendor/tokio/tests/io_write_all.rs +51 -0
- data/rust-vendor/tokio/tests/io_write_all_buf.rs +145 -0
- data/rust-vendor/tokio/tests/io_write_buf.rs +56 -0
- data/rust-vendor/tokio/tests/io_write_int.rs +37 -0
- data/rust-vendor/tokio/tests/join_handle_panic.rs +21 -0
- data/rust-vendor/tokio/tests/macros_join.rs +256 -0
- data/rust-vendor/tokio/tests/macros_pin.rs +21 -0
- data/rust-vendor/tokio/tests/macros_rename_test.rs +35 -0
- data/rust-vendor/tokio/tests/macros_select.rs +760 -0
- data/rust-vendor/tokio/tests/macros_test.rs +117 -0
- data/rust-vendor/tokio/tests/macros_try_join.rs +269 -0
- data/rust-vendor/tokio/tests/net_bind_resource.rs +14 -0
- data/rust-vendor/tokio/tests/net_lookup_host.rs +39 -0
- data/rust-vendor/tokio/tests/net_named_pipe.rs +399 -0
- data/rust-vendor/tokio/tests/net_panic.rs +196 -0
- data/rust-vendor/tokio/tests/net_quickack.rs +71 -0
- data/rust-vendor/tokio/tests/net_unix_pipe.rs +546 -0
- data/rust-vendor/tokio/tests/no_rt.rs +47 -0
- data/rust-vendor/tokio/tests/process_arg0.rs +13 -0
- data/rust-vendor/tokio/tests/process_change_of_runtime.rs +34 -0
- data/rust-vendor/tokio/tests/process_issue_2174.rs +46 -0
- data/rust-vendor/tokio/tests/process_issue_42.rs +39 -0
- data/rust-vendor/tokio/tests/process_issue_7144.rs +28 -0
- data/rust-vendor/tokio/tests/process_kill_after_wait.rs +27 -0
- data/rust-vendor/tokio/tests/process_kill_on_drop.rs +44 -0
- data/rust-vendor/tokio/tests/process_raw_handle.rs +24 -0
- data/rust-vendor/tokio/tests/process_smoke.rs +34 -0
- data/rust-vendor/tokio/tests/rt_basic.rs +458 -0
- data/rust-vendor/tokio/tests/rt_common.rs +1438 -0
- data/rust-vendor/tokio/tests/rt_handle.rs +125 -0
- data/rust-vendor/tokio/tests/rt_handle_block_on.rs +567 -0
- data/rust-vendor/tokio/tests/rt_local.rs +170 -0
- data/rust-vendor/tokio/tests/rt_metrics.rs +233 -0
- data/rust-vendor/tokio/tests/rt_panic.rs +90 -0
- data/rust-vendor/tokio/tests/rt_poll_callbacks.rs +128 -0
- data/rust-vendor/tokio/tests/rt_threaded.rs +884 -0
- data/rust-vendor/tokio/tests/rt_time_start_paused.rs +14 -0
- data/rust-vendor/tokio/tests/rt_unstable_metrics.rs +821 -0
- data/rust-vendor/tokio/tests/signal_ctrl_c.rs +23 -0
- data/rust-vendor/tokio/tests/signal_drop_recv.rs +23 -0
- data/rust-vendor/tokio/tests/signal_drop_rt.rs +45 -0
- data/rust-vendor/tokio/tests/signal_drop_signal.rs +27 -0
- data/rust-vendor/tokio/tests/signal_info.rs +35 -0
- data/rust-vendor/tokio/tests/signal_multi_rt.rs +55 -0
- data/rust-vendor/tokio/tests/signal_no_rt.rs +13 -0
- data/rust-vendor/tokio/tests/signal_notify_both.rs +24 -0
- data/rust-vendor/tokio/tests/signal_panic.rs +31 -0
- data/rust-vendor/tokio/tests/signal_realtime.rs +105 -0
- data/rust-vendor/tokio/tests/signal_twice.rs +23 -0
- data/rust-vendor/tokio/tests/signal_usr1.rs +24 -0
- data/rust-vendor/tokio/tests/support/io_vec.rs +45 -0
- data/rust-vendor/tokio/tests/support/leaked_buffers.rs +26 -0
- data/rust-vendor/tokio/tests/support/mpsc_stream.rs +42 -0
- data/rust-vendor/tokio/tests/support/panic.rs +34 -0
- data/rust-vendor/tokio/tests/support/signal.rs +15 -0
- data/rust-vendor/tokio/tests/sync_barrier.rs +99 -0
- data/rust-vendor/tokio/tests/sync_broadcast.rs +722 -0
- data/rust-vendor/tokio/tests/sync_broadcast_weak.rs +181 -0
- data/rust-vendor/tokio/tests/sync_errors.rs +30 -0
- data/rust-vendor/tokio/tests/sync_mpsc.rs +1512 -0
- data/rust-vendor/tokio/tests/sync_mpsc_weak.rs +688 -0
- data/rust-vendor/tokio/tests/sync_mutex.rs +178 -0
- data/rust-vendor/tokio/tests/sync_mutex_owned.rs +137 -0
- data/rust-vendor/tokio/tests/sync_notify.rs +303 -0
- data/rust-vendor/tokio/tests/sync_notify_owned.rs +304 -0
- data/rust-vendor/tokio/tests/sync_once_cell.rs +250 -0
- data/rust-vendor/tokio/tests/sync_oneshot.rs +440 -0
- data/rust-vendor/tokio/tests/sync_panic.rs +231 -0
- data/rust-vendor/tokio/tests/sync_rwlock.rs +332 -0
- data/rust-vendor/tokio/tests/sync_semaphore.rs +176 -0
- data/rust-vendor/tokio/tests/sync_semaphore_owned.rs +164 -0
- data/rust-vendor/tokio/tests/sync_set_once.rs +180 -0
- data/rust-vendor/tokio/tests/sync_watch.rs +505 -0
- data/rust-vendor/tokio/tests/task_abort.rs +326 -0
- data/rust-vendor/tokio/tests/task_blocking.rs +310 -0
- data/rust-vendor/tokio/tests/task_builder.rs +105 -0
- data/rust-vendor/tokio/tests/task_hooks.rs +194 -0
- data/rust-vendor/tokio/tests/task_id.rs +300 -0
- data/rust-vendor/tokio/tests/task_join_set.rs +662 -0
- data/rust-vendor/tokio/tests/task_local.rs +171 -0
- data/rust-vendor/tokio/tests/task_local_set.rs +808 -0
- data/rust-vendor/tokio/tests/task_panic.rs +123 -0
- data/rust-vendor/tokio/tests/task_trace_self.rs +107 -0
- data/rust-vendor/tokio/tests/task_yield_now.rs +24 -0
- data/rust-vendor/tokio/tests/tcp_accept.rs +157 -0
- data/rust-vendor/tokio/tests/tcp_connect.rs +231 -0
- data/rust-vendor/tokio/tests/tcp_echo.rs +43 -0
- data/rust-vendor/tokio/tests/tcp_into_split.rs +132 -0
- data/rust-vendor/tokio/tests/tcp_into_std.rs +46 -0
- data/rust-vendor/tokio/tests/tcp_peek.rs +37 -0
- data/rust-vendor/tokio/tests/tcp_shutdown.rs +83 -0
- data/rust-vendor/tokio/tests/tcp_socket.rs +185 -0
- data/rust-vendor/tokio/tests/tcp_split.rs +43 -0
- data/rust-vendor/tokio/tests/tcp_stream.rs +407 -0
- data/rust-vendor/tokio/tests/test_clock.rs +50 -0
- data/rust-vendor/tokio/tests/time_alt.rs +108 -0
- data/rust-vendor/tokio/tests/time_interval.rs +477 -0
- data/rust-vendor/tokio/tests/time_panic.rs +139 -0
- data/rust-vendor/tokio/tests/time_pause.rs +333 -0
- data/rust-vendor/tokio/tests/time_rt.rs +166 -0
- data/rust-vendor/tokio/tests/time_sleep.rs +366 -0
- data/rust-vendor/tokio/tests/time_timeout.rs +151 -0
- data/rust-vendor/tokio/tests/time_wasm.rs +40 -0
- data/rust-vendor/tokio/tests/tracing_sync.rs +282 -0
- data/rust-vendor/tokio/tests/tracing_task.rs +186 -0
- data/rust-vendor/tokio/tests/tracing_time.rs +71 -0
- data/rust-vendor/tokio/tests/udp.rs +724 -0
- data/rust-vendor/tokio/tests/uds_cred.rs +26 -0
- data/rust-vendor/tokio/tests/uds_datagram.rs +425 -0
- data/rust-vendor/tokio/tests/uds_socket.rs +121 -0
- data/rust-vendor/tokio/tests/uds_split.rs +44 -0
- data/rust-vendor/tokio/tests/uds_stream.rs +446 -0
- data/rust-vendor/tokio/tests/unwindsafe.rs +42 -0
- data/rust-vendor/wasip2/.cargo-checksum.json +1 -1
- data/rust-vendor/wasip2/.cargo_vcs_info.json +1 -1
- data/rust-vendor/wasip2/Cargo.lock +9 -9
- data/rust-vendor/wasip2/Cargo.toml +3 -3
- data/rust-vendor/wasip2/Cargo.toml.orig +1 -1
- data/rust-vendor/wasip2/src/command.rs +95 -95
- data/rust-vendor/wasip2/src/imports.rs +283 -296
- data/rust-vendor/wasip2/src/proxy.rs +846 -842
- data/rust-vendor/wasip2/wit/deps/cli.wit +233 -0
- data/rust-vendor/wasip2/wit/deps/clocks.wit +162 -0
- data/rust-vendor/wasip2/wit/deps/filesystem.wit +587 -0
- data/rust-vendor/wasip2/wit/deps/http.wit +733 -0
- data/rust-vendor/wasip2/wit/deps/io.wit +299 -0
- data/rust-vendor/wasip2/wit/deps/random.wit +92 -0
- data/rust-vendor/wasip2/wit/deps/sockets.wit +949 -0
- data/rust-vendor/wasm-bindgen/.cargo-checksum.json +1 -1
- data/rust-vendor/wasm-bindgen/.cargo_vcs_info.json +1 -1
- data/rust-vendor/wasm-bindgen/Cargo.lock +21 -21
- data/rust-vendor/wasm-bindgen/Cargo.toml +6 -3
- data/rust-vendor/wasm-bindgen/Cargo.toml.orig +6 -4
- data/rust-vendor/wasm-bindgen/src/cast.rs +5 -1
- data/rust-vendor/wasm-bindgen/src/closure.rs +695 -245
- data/rust-vendor/wasm-bindgen/src/convert/closures.rs +324 -27
- data/rust-vendor/wasm-bindgen/src/convert/impls.rs +203 -5
- data/rust-vendor/wasm-bindgen/src/convert/slices.rs +36 -10
- data/rust-vendor/wasm-bindgen/src/convert/traits.rs +172 -1
- data/rust-vendor/wasm-bindgen/src/describe.rs +2 -2
- data/rust-vendor/wasm-bindgen/src/lib.rs +28 -7
- data/rust-vendor/wasm-bindgen/src/rt/marker.rs +104 -0
- data/rust-vendor/wasm-bindgen/src/rt/mod.rs +48 -47
- data/rust-vendor/wasm-bindgen/src/sys.rs +272 -0
- data/rust-vendor/wasm-bindgen-macro/.cargo-checksum.json +1 -1
- data/rust-vendor/wasm-bindgen-macro/.cargo_vcs_info.json +1 -1
- data/rust-vendor/wasm-bindgen-macro/Cargo.lock +27 -27
- data/rust-vendor/wasm-bindgen-macro/Cargo.toml +5 -2
- data/rust-vendor/wasm-bindgen-macro/Cargo.toml.orig +2 -2
- data/rust-vendor/wasm-bindgen-macro-support/.cargo-checksum.json +1 -1
- data/rust-vendor/wasm-bindgen-macro-support/.cargo_vcs_info.json +1 -1
- data/rust-vendor/wasm-bindgen-macro-support/Cargo.lock +13 -13
- data/rust-vendor/wasm-bindgen-macro-support/Cargo.toml +6 -2
- data/rust-vendor/wasm-bindgen-macro-support/Cargo.toml.orig +3 -3
- data/rust-vendor/wasm-bindgen-macro-support/src/ast.rs +14 -1
- data/rust-vendor/wasm-bindgen-macro-support/src/codegen.rs +789 -98
- data/rust-vendor/wasm-bindgen-macro-support/src/encode.rs +2 -0
- data/rust-vendor/wasm-bindgen-macro-support/src/generics.rs +805 -0
- data/rust-vendor/wasm-bindgen-macro-support/src/lib.rs +1 -0
- data/rust-vendor/wasm-bindgen-macro-support/src/parser.rs +209 -54
- data/rust-vendor/wasm-bindgen-shared/.cargo-checksum.json +1 -1
- data/rust-vendor/wasm-bindgen-shared/.cargo_vcs_info.json +1 -1
- data/rust-vendor/wasm-bindgen-shared/Cargo.lock +3 -3
- data/rust-vendor/wasm-bindgen-shared/Cargo.toml +4 -1
- data/rust-vendor/wasm-bindgen-shared/Cargo.toml.orig +1 -1
- data/rust-vendor/wasm-bindgen-shared/src/lib.rs +39 -1
- data/rust-vendor/wasm-bindgen-shared/src/schema_hash_approval.rs +1 -1
- data/rust-vendor/zerocopy/.cargo-checksum.json +1 -1
- data/rust-vendor/zerocopy/.cargo_vcs_info.json +1 -1
- data/rust-vendor/zerocopy/Cargo.lock +3 -188
- data/rust-vendor/zerocopy/Cargo.toml +7 -11
- data/rust-vendor/zerocopy/Cargo.toml.orig +5 -10
- data/rust-vendor/zerocopy/cargo.sh +2 -0
- data/rust-vendor/zerocopy/ci/check_fmt.sh +7 -6
- data/rust-vendor/zerocopy/ci/check_stale_stderr.sh +9 -0
- data/rust-vendor/zerocopy/ci/check_todo.sh +8 -1
- data/rust-vendor/zerocopy/githooks/pre-push +3 -3
- data/rust-vendor/zerocopy/src/macros.rs +4 -0
- data/rust-vendor/zerocopy/src/util/macro_util.rs +26 -11
- data/rust-vendor/zerocopy/tests/ui/diagnostic-not-implemented.msrv.stderr +99 -0
- data/rust-vendor/zerocopy/tests/ui/diagnostic-not-implemented.nightly.stderr +249 -0
- data/rust-vendor/zerocopy/tests/ui/diagnostic-not-implemented.rs +83 -0
- data/rust-vendor/zerocopy/tests/ui/diagnostic-not-implemented.stable.stderr +249 -0
- data/rust-vendor/zerocopy/tests/ui/include_value.msrv.stderr +19 -0
- data/rust-vendor/zerocopy/tests/ui/include_value.nightly.stderr +35 -0
- data/rust-vendor/zerocopy/tests/ui/include_value.rs +18 -0
- data/rust-vendor/zerocopy/tests/ui/include_value.stable.stderr +35 -0
- data/rust-vendor/zerocopy/tests/ui/late-compile-pass.msrv.stderr +135 -0
- data/rust-vendor/zerocopy/tests/ui/late-compile-pass.nightly.stderr +157 -0
- data/rust-vendor/zerocopy/tests/ui/late-compile-pass.rs +79 -0
- data/rust-vendor/zerocopy/tests/ui/late-compile-pass.stable.stderr +157 -0
- data/rust-vendor/zerocopy/tests/ui/max-align.msrv.stderr +9 -0
- data/rust-vendor/zerocopy/tests/ui/max-align.nightly.stderr +9 -0
- data/rust-vendor/zerocopy/tests/ui/max-align.rs +102 -0
- data/rust-vendor/zerocopy/tests/ui/max-align.stable.stderr +9 -0
- data/rust-vendor/zerocopy/tests/ui/ptr-is-invariant-over-v.msrv.stderr +21 -0
- data/rust-vendor/zerocopy/tests/ui/ptr-is-invariant-over-v.nightly.stderr +34 -0
- data/rust-vendor/zerocopy/tests/ui/ptr-is-invariant-over-v.rs +35 -0
- data/rust-vendor/zerocopy/tests/ui/ptr-is-invariant-over-v.stable.stderr +34 -0
- data/rust-vendor/zerocopy/tests/ui/transmute-ptr-to-usize.msrv.stderr +19 -0
- data/rust-vendor/zerocopy/tests/ui/transmute-ptr-to-usize.nightly.stderr +33 -0
- data/rust-vendor/zerocopy/tests/ui/transmute-ptr-to-usize.rs +22 -0
- data/rust-vendor/zerocopy/tests/ui/transmute-ptr-to-usize.stable.stderr +28 -0
- data/rust-vendor/zerocopy/tests/ui/transmute.msrv.stderr +35 -0
- data/rust-vendor/zerocopy/tests/ui/transmute.nightly.stderr +70 -0
- data/rust-vendor/zerocopy/tests/ui/transmute.rs +22 -0
- data/rust-vendor/zerocopy/tests/ui/transmute.stable.stderr +70 -0
- data/rust-vendor/zerocopy/tests/ui/transmute_mut.msrv.stderr +111 -0
- data/rust-vendor/zerocopy/tests/ui/transmute_mut.nightly.stderr +213 -0
- data/rust-vendor/zerocopy/tests/ui/transmute_mut.rs +89 -0
- data/rust-vendor/zerocopy/tests/ui/transmute_mut.stable.stderr +213 -0
- data/rust-vendor/zerocopy/tests/ui/transmute_ref.msrv.stderr +245 -0
- data/rust-vendor/zerocopy/tests/ui/transmute_ref.nightly.stderr +359 -0
- data/rust-vendor/zerocopy/tests/ui/transmute_ref.rs +86 -0
- data/rust-vendor/zerocopy/tests/ui/transmute_ref.stable.stderr +359 -0
- data/rust-vendor/zerocopy/tests/ui/try_transmute.msrv.stderr +54 -0
- data/rust-vendor/zerocopy/tests/ui/try_transmute.nightly.stderr +124 -0
- data/rust-vendor/zerocopy/tests/ui/try_transmute.rs +23 -0
- data/rust-vendor/zerocopy/tests/ui/try_transmute.stable.stderr +124 -0
- data/rust-vendor/zerocopy/tests/ui/try_transmute_mut.msrv.stderr +76 -0
- data/rust-vendor/zerocopy/tests/ui/try_transmute_mut.nightly.stderr +252 -0
- data/rust-vendor/zerocopy/tests/ui/try_transmute_mut.rs +49 -0
- data/rust-vendor/zerocopy/tests/ui/try_transmute_mut.stable.stderr +252 -0
- data/rust-vendor/zerocopy/tests/ui/try_transmute_ref.msrv.stderr +84 -0
- data/rust-vendor/zerocopy/tests/ui/try_transmute_ref.nightly.stderr +206 -0
- data/rust-vendor/zerocopy/tests/ui/try_transmute_ref.rs +36 -0
- data/rust-vendor/zerocopy/tests/ui/try_transmute_ref.stable.stderr +206 -0
- data/rust-vendor/zerocopy/tests/ui.rs +34 -0
- data/rust-vendor/zerocopy-derive/.cargo-checksum.json +1 -1
- data/rust-vendor/zerocopy-derive/.cargo_vcs_info.json +1 -1
- data/rust-vendor/zerocopy-derive/Cargo.lock +1 -180
- data/rust-vendor/zerocopy-derive/Cargo.toml +3 -13
- data/rust-vendor/zerocopy-derive/Cargo.toml.orig +1 -8
- data/rust-vendor/zerocopy-derive/src/output_tests/expected/into_bytes_enum.repr(C).expected.rs +40 -0
- data/rust-vendor/zerocopy-derive/src/output_tests/expected/into_bytes_enum.repr(i128).expected.rs +40 -0
- data/rust-vendor/zerocopy-derive/src/output_tests/expected/into_bytes_enum.repr(i16).expected.rs +40 -0
- data/rust-vendor/zerocopy-derive/src/output_tests/expected/into_bytes_enum.repr(i32).expected.rs +40 -0
- data/rust-vendor/zerocopy-derive/src/output_tests/expected/into_bytes_enum.repr(i64).expected.rs +40 -0
- data/rust-vendor/zerocopy-derive/src/output_tests/expected/into_bytes_enum.repr(i8).expected.rs +40 -0
- data/rust-vendor/zerocopy-derive/src/output_tests/expected/into_bytes_enum.repr(isize).expected.rs +40 -0
- data/rust-vendor/zerocopy-derive/src/output_tests/expected/into_bytes_enum.repr(u128).expected.rs +40 -0
- data/rust-vendor/zerocopy-derive/src/output_tests/expected/into_bytes_enum.repr(u16).expected.rs +40 -0
- data/rust-vendor/zerocopy-derive/src/output_tests/expected/into_bytes_enum.repr(u32).expected.rs +40 -0
- data/rust-vendor/zerocopy-derive/src/output_tests/expected/into_bytes_enum.repr(u64).expected.rs +40 -0
- data/rust-vendor/zerocopy-derive/src/output_tests/expected/into_bytes_enum.repr(u8).expected.rs +40 -0
- data/rust-vendor/zerocopy-derive/src/output_tests/expected/into_bytes_enum.repr(usize).expected.rs +40 -0
- data/rust-vendor/zerocopy-derive/src/output_tests/expected/into_bytes_struct_basic.expected.rs +10 -1
- data/rust-vendor/zerocopy-derive/src/output_tests/expected/into_bytes_struct_trailing.expected.rs +10 -1
- data/rust-vendor/zerocopy-derive/src/output_tests/mod.rs +4 -4
- data/rust-vendor/zerocopy-derive/src/util.rs +24 -5
- data/rust-vendor/zerocopy-derive/tests/enum_to_bytes.rs +9 -0
- data/rust-vendor/zerocopy-derive/tests/struct_to_bytes.rs +9 -0
- data/rust-vendor/zerocopy-derive/tests/ui/absence_of_deprecated_warning.msrv.stderr +14 -0
- data/rust-vendor/zerocopy-derive/tests/ui/absence_of_deprecated_warning.nightly.stderr +28 -0
- data/rust-vendor/zerocopy-derive/tests/ui/absence_of_deprecated_warning.rs +35 -0
- data/rust-vendor/zerocopy-derive/tests/ui/absence_of_deprecated_warning.stable.stderr +28 -0
- data/rust-vendor/zerocopy-derive/tests/ui/cfgs/union_into_bytes_cfg.msrv.stderr +15 -0
- data/rust-vendor/zerocopy-derive/tests/ui/derive_transparent.msrv.stderr +93 -0
- data/rust-vendor/zerocopy-derive/tests/ui/derive_transparent.nightly.stderr +198 -0
- data/rust-vendor/zerocopy-derive/tests/ui/derive_transparent.rs +48 -0
- data/rust-vendor/zerocopy-derive/tests/ui/derive_transparent.stable.stderr +173 -0
- data/rust-vendor/zerocopy-derive/tests/ui/enum.msrv.stderr +419 -0
- data/rust-vendor/zerocopy-derive/tests/ui/enum.nightly.stderr +601 -0
- data/rust-vendor/zerocopy-derive/tests/ui/enum.rs +688 -0
- data/rust-vendor/zerocopy-derive/tests/ui/enum.stable.stderr +549 -0
- data/rust-vendor/zerocopy-derive/tests/ui/enum_from_bytes_u8_too_few.msrv.stderr +14 -0
- data/rust-vendor/zerocopy-derive/tests/ui/enum_from_bytes_u8_too_few.nightly.stderr +14 -0
- data/rust-vendor/zerocopy-derive/tests/ui/enum_from_bytes_u8_too_few.rs +274 -0
- data/rust-vendor/zerocopy-derive/tests/ui/enum_from_bytes_u8_too_few.stable.stderr +14 -0
- data/rust-vendor/zerocopy-derive/tests/ui/late_compile_pass.msrv.stderr +101 -0
- data/rust-vendor/zerocopy-derive/tests/ui/late_compile_pass.nightly.stderr +335 -0
- data/rust-vendor/zerocopy-derive/tests/ui/late_compile_pass.rs +108 -0
- data/rust-vendor/zerocopy-derive/tests/ui/late_compile_pass.stable.stderr +295 -0
- data/rust-vendor/zerocopy-derive/tests/ui/mid_compile_pass.msrv.stderr +101 -0
- data/rust-vendor/zerocopy-derive/tests/ui/mid_compile_pass.nightly.stderr +114 -0
- data/rust-vendor/zerocopy-derive/tests/ui/mid_compile_pass.rs +70 -0
- data/rust-vendor/zerocopy-derive/tests/ui/mid_compile_pass.stable.stderr +114 -0
- data/rust-vendor/zerocopy-derive/tests/ui/msrv_specific.msrv.stderr +29 -0
- data/rust-vendor/zerocopy-derive/tests/ui/msrv_specific.nightly.stderr +45 -0
- data/rust-vendor/zerocopy-derive/tests/ui/msrv_specific.rs +40 -0
- data/rust-vendor/zerocopy-derive/tests/ui/msrv_specific.stable.stderr +45 -0
- data/rust-vendor/zerocopy-derive/tests/ui/privacy.msrv.stderr +147 -0
- data/rust-vendor/zerocopy-derive/tests/ui/privacy.nightly.stderr +32 -0
- data/rust-vendor/zerocopy-derive/tests/ui/privacy.rs +160 -0
- data/rust-vendor/zerocopy-derive/tests/ui/privacy.stable.stderr +32 -0
- data/rust-vendor/zerocopy-derive/tests/ui/struct.msrv.stderr +87 -0
- data/rust-vendor/zerocopy-derive/tests/ui/struct.nightly.stderr +554 -0
- data/rust-vendor/zerocopy-derive/tests/ui/struct.rs +339 -0
- data/rust-vendor/zerocopy-derive/tests/ui/struct.stable.stderr +522 -0
- data/rust-vendor/zerocopy-derive/tests/ui/union.msrv.stderr +88 -0
- data/rust-vendor/zerocopy-derive/tests/ui/union.nightly.stderr +130 -0
- data/rust-vendor/zerocopy-derive/tests/ui/union.rs +134 -0
- data/rust-vendor/zerocopy-derive/tests/ui/union.stable.stderr +125 -0
- data/rust-vendor/zerocopy-derive/tests/ui.rs +28 -0
- data/rust-vendor/zerocopy-derive/tests/union_to_bytes.rs +9 -0
- metadata +1263 -458
- data/ext/html-to-markdown-rb/native/Cargo.lock +0 -1591
- data/rust-vendor/futf/.cargo-checksum.json +0 -1
- data/rust-vendor/futf/.cargo_vcs_info.json +0 -6
- data/rust-vendor/futf/.travis.yml +0 -11
- data/rust-vendor/futf/Cargo.toml +0 -24
- data/rust-vendor/futf/Cargo.toml.orig +0 -12
- data/rust-vendor/futf/LICENSE-APACHE +0 -201
- data/rust-vendor/futf/LICENSE-MIT +0 -25
- data/rust-vendor/futf/README.md +0 -18
- data/rust-vendor/futf/src/lib.rs +0 -248
- data/rust-vendor/futf/src/test.rs +0 -270
- data/rust-vendor/html5ever/examples/capi/tokenize.c +0 -74
- data/rust-vendor/mac/.cargo-checksum.json +0 -1
- data/rust-vendor/mac/.travis.yml +0 -19
- data/rust-vendor/mac/Cargo.toml +0 -10
- data/rust-vendor/mac/README.md +0 -27
- data/rust-vendor/mac/src/cfg.rs +0 -90
- data/rust-vendor/mac/src/format.rs +0 -50
- data/rust-vendor/mac/src/inspect.rs +0 -93
- data/rust-vendor/mac/src/lib.rs +0 -71
- data/rust-vendor/mac/src/matches.rs +0 -44
- data/rust-vendor/mac/src/mem.rs +0 -44
- data/rust-vendor/mac/src/syntax_ext.rs +0 -31
- data/rust-vendor/mac/src/test.rs +0 -24
- data/rust-vendor/markup5ever/Cargo.lock +0 -292
- data/rust-vendor/tendril/.github/workflows/main.yml +0 -51
- data/rust-vendor/tendril/src/bench.rs +0 -159
- data/rust-vendor/wasip2/wit/deps/cli/command.wit +0 -10
- data/rust-vendor/wasip2/wit/deps/cli/environment.wit +0 -22
- data/rust-vendor/wasip2/wit/deps/cli/exit.wit +0 -17
- data/rust-vendor/wasip2/wit/deps/cli/imports.wit +0 -36
- data/rust-vendor/wasip2/wit/deps/cli/run.wit +0 -6
- data/rust-vendor/wasip2/wit/deps/cli/stdio.wit +0 -26
- data/rust-vendor/wasip2/wit/deps/cli/terminal.wit +0 -62
- data/rust-vendor/wasip2/wit/deps/clocks/monotonic-clock.wit +0 -50
- data/rust-vendor/wasip2/wit/deps/clocks/timezone.wit +0 -55
- data/rust-vendor/wasip2/wit/deps/clocks/wall-clock.wit +0 -46
- data/rust-vendor/wasip2/wit/deps/clocks/world.wit +0 -11
- data/rust-vendor/wasip2/wit/deps/filesystem/preopens.wit +0 -11
- data/rust-vendor/wasip2/wit/deps/filesystem/types.wit +0 -676
- data/rust-vendor/wasip2/wit/deps/filesystem/world.wit +0 -9
- data/rust-vendor/wasip2/wit/deps/http/handler.wit +0 -49
- data/rust-vendor/wasip2/wit/deps/http/proxy.wit +0 -50
- data/rust-vendor/wasip2/wit/deps/http/types.wit +0 -688
- data/rust-vendor/wasip2/wit/deps/io/error.wit +0 -34
- data/rust-vendor/wasip2/wit/deps/io/poll.wit +0 -47
- data/rust-vendor/wasip2/wit/deps/io/streams.wit +0 -290
- data/rust-vendor/wasip2/wit/deps/io/world.wit +0 -10
- data/rust-vendor/wasip2/wit/deps/random/insecure-seed.wit +0 -27
- data/rust-vendor/wasip2/wit/deps/random/insecure.wit +0 -25
- data/rust-vendor/wasip2/wit/deps/random/random.wit +0 -29
- data/rust-vendor/wasip2/wit/deps/random/world.wit +0 -13
- data/rust-vendor/wasip2/wit/deps/sockets/instance-network.wit +0 -11
- data/rust-vendor/wasip2/wit/deps/sockets/ip-name-lookup.wit +0 -56
- data/rust-vendor/wasip2/wit/deps/sockets/network.wit +0 -169
- data/rust-vendor/wasip2/wit/deps/sockets/tcp-create-socket.wit +0 -30
- data/rust-vendor/wasip2/wit/deps/sockets/tcp.wit +0 -387
- data/rust-vendor/wasip2/wit/deps/sockets/udp-create-socket.wit +0 -30
- data/rust-vendor/wasip2/wit/deps/sockets/udp.wit +0 -288
- data/rust-vendor/wasip2/wit/deps/sockets/world.wit +0 -19
- data/rust-vendor/wit-bindgen-0.46.0/.cargo-checksum.json +0 -1
- data/rust-vendor/wit-bindgen-0.46.0/.cargo_vcs_info.json +0 -6
- data/rust-vendor/wit-bindgen-0.46.0/Cargo.lock +0 -428
- data/rust-vendor/wit-bindgen-0.46.0/Cargo.toml +0 -88
- data/rust-vendor/wit-bindgen-0.46.0/Cargo.toml.orig +0 -37
- data/rust-vendor/wit-bindgen-0.46.0/LICENSE-APACHE +0 -201
- data/rust-vendor/wit-bindgen-0.46.0/LICENSE-Apache-2.0_WITH_LLVM-exception +0 -220
- data/rust-vendor/wit-bindgen-0.46.0/README.md +0 -45
- data/rust-vendor/wit-bindgen-0.46.0/build.rs +0 -32
- data/rust-vendor/wit-bindgen-0.46.0/src/examples/_0_world_imports.rs +0 -17
- data/rust-vendor/wit-bindgen-0.46.0/src/examples/_1_interface_imports.rs +0 -32
- data/rust-vendor/wit-bindgen-0.46.0/src/examples/_2_imported_resources.rs +0 -22
- data/rust-vendor/wit-bindgen-0.46.0/src/examples/_3_world_exports.rs +0 -47
- data/rust-vendor/wit-bindgen-0.46.0/src/examples/_4_exported_resources.rs +0 -26
- data/rust-vendor/wit-bindgen-0.46.0/src/examples.rs +0 -55
- data/rust-vendor/wit-bindgen-0.46.0/src/lib.rs +0 -881
- data/rust-vendor/wit-bindgen-0.46.0/src/rt/async_support/abi_buffer.rs +0 -417
- data/rust-vendor/wit-bindgen-0.46.0/src/rt/async_support/cabi.rs +0 -112
- data/rust-vendor/wit-bindgen-0.46.0/src/rt/async_support/error_context.rs +0 -94
- data/rust-vendor/wit-bindgen-0.46.0/src/rt/async_support/future_support.rs +0 -734
- data/rust-vendor/wit-bindgen-0.46.0/src/rt/async_support/stream_support.rs +0 -604
- data/rust-vendor/wit-bindgen-0.46.0/src/rt/async_support/subtask.rs +0 -289
- data/rust-vendor/wit-bindgen-0.46.0/src/rt/async_support/waitable.rs +0 -466
- data/rust-vendor/wit-bindgen-0.46.0/src/rt/async_support/waitable_set.rs +0 -100
- data/rust-vendor/wit-bindgen-0.46.0/src/rt/async_support.rs +0 -634
- data/rust-vendor/wit-bindgen-0.46.0/src/rt/mod.rs +0 -230
- data/rust-vendor/wit-bindgen-0.46.0/src/rt/wit_bindgen_cabi.c +0 -20
- data/rust-vendor/wit-bindgen-0.46.0/src/rt/wit_bindgen_cabi.o +0 -0
- data/rust-vendor/wit-bindgen-0.46.0/src/rt/wit_bindgen_cabi_realloc.c +0 -10
- data/rust-vendor/wit-bindgen-0.46.0/src/rt/wit_bindgen_cabi_realloc.o +0 -0
- data/rust-vendor/wit-bindgen-0.46.0/src/rt/wit_bindgen_cabi_realloc.rs +0 -11
- data/rust-vendor/wit-bindgen-0.46.0/src/rt/wit_bindgen_cabi_wasip3.c +0 -12
- data/rust-vendor/wit-bindgen-0.46.0/src/rt/wit_bindgen_cabi_wasip3.o +0 -0
- data/rust-vendor/wit-bindgen-0.46.0/wasi-cli@0.2.0.wasm +0 -0
- data/rust-vendor/zerocopy/tests/trybuild.rs +0 -40
- data/rust-vendor/zerocopy/tests/ui-msrv/diagnostic-not-implemented-from-bytes.rs +0 -19
- data/rust-vendor/zerocopy/tests/ui-msrv/diagnostic-not-implemented-from-bytes.stderr +0 -11
- data/rust-vendor/zerocopy/tests/ui-msrv/diagnostic-not-implemented-from-zeros.rs +0 -19
- data/rust-vendor/zerocopy/tests/ui-msrv/diagnostic-not-implemented-from-zeros.stderr +0 -11
- data/rust-vendor/zerocopy/tests/ui-msrv/diagnostic-not-implemented-immutable.rs +0 -19
- data/rust-vendor/zerocopy/tests/ui-msrv/diagnostic-not-implemented-immutable.stderr +0 -11
- data/rust-vendor/zerocopy/tests/ui-msrv/diagnostic-not-implemented-into-bytes.rs +0 -19
- data/rust-vendor/zerocopy/tests/ui-msrv/diagnostic-not-implemented-into-bytes.stderr +0 -11
- data/rust-vendor/zerocopy/tests/ui-msrv/diagnostic-not-implemented-issue-1296.rs +0 -57
- data/rust-vendor/zerocopy/tests/ui-msrv/diagnostic-not-implemented-issue-1296.stderr +0 -11
- data/rust-vendor/zerocopy/tests/ui-msrv/diagnostic-not-implemented-known-layout.rs +0 -19
- data/rust-vendor/zerocopy/tests/ui-msrv/diagnostic-not-implemented-known-layout.stderr +0 -11
- data/rust-vendor/zerocopy/tests/ui-msrv/diagnostic-not-implemented-try-from-bytes.rs +0 -19
- data/rust-vendor/zerocopy/tests/ui-msrv/diagnostic-not-implemented-try-from-bytes.stderr +0 -11
- data/rust-vendor/zerocopy/tests/ui-msrv/diagnostic-not-implemented-unaligned.rs +0 -19
- data/rust-vendor/zerocopy/tests/ui-msrv/diagnostic-not-implemented-unaligned.stderr +0 -11
- data/rust-vendor/zerocopy/tests/ui-msrv/include_value_not_from_bytes.rs +0 -17
- data/rust-vendor/zerocopy/tests/ui-msrv/include_value_not_from_bytes.stderr +0 -15
- data/rust-vendor/zerocopy/tests/ui-msrv/include_value_wrong_size.rs +0 -12
- data/rust-vendor/zerocopy/tests/ui-msrv/include_value_wrong_size.stderr +0 -9
- data/rust-vendor/zerocopy/tests/ui-msrv/max-align.rs +0 -99
- data/rust-vendor/zerocopy/tests/ui-msrv/max-align.stderr +0 -5
- data/rust-vendor/zerocopy/tests/ui-msrv/ptr-is-invariant-over-v.rs +0 -29
- data/rust-vendor/zerocopy/tests/ui-msrv/ptr-is-invariant-over-v.stderr +0 -17
- data/rust-vendor/zerocopy/tests/ui-msrv/transmute-dst-not-frombytes.rs +0 -17
- data/rust-vendor/zerocopy/tests/ui-msrv/transmute-dst-not-frombytes.stderr +0 -15
- data/rust-vendor/zerocopy/tests/ui-msrv/transmute-mut-const.rs +0 -18
- data/rust-vendor/zerocopy/tests/ui-msrv/transmute-mut-const.stderr +0 -48
- data/rust-vendor/zerocopy/tests/ui-msrv/transmute-mut-dst-not-a-reference.rs +0 -15
- data/rust-vendor/zerocopy/tests/ui-msrv/transmute-mut-dst-not-a-reference.stderr +0 -19
- data/rust-vendor/zerocopy/tests/ui-msrv/transmute-mut-dst-not-frombytes.rs +0 -22
- data/rust-vendor/zerocopy/tests/ui-msrv/transmute-mut-dst-not-frombytes.stderr +0 -7
- data/rust-vendor/zerocopy/tests/ui-msrv/transmute-mut-dst-not-intobytes.rs +0 -22
- data/rust-vendor/zerocopy/tests/ui-msrv/transmute-mut-dst-not-intobytes.stderr +0 -7
- data/rust-vendor/zerocopy/tests/ui-msrv/transmute-mut-illegal-lifetime.rs +0 -15
- data/rust-vendor/zerocopy/tests/ui-msrv/transmute-mut-illegal-lifetime.stderr +0 -9
- data/rust-vendor/zerocopy/tests/ui-msrv/transmute-mut-src-dst-not-references.rs +0 -15
- data/rust-vendor/zerocopy/tests/ui-msrv/transmute-mut-src-dst-not-references.stderr +0 -12
- data/rust-vendor/zerocopy/tests/ui-msrv/transmute-mut-src-immutable.rs +0 -16
- data/rust-vendor/zerocopy/tests/ui-msrv/transmute-mut-src-immutable.stderr +0 -11
- data/rust-vendor/zerocopy/tests/ui-msrv/transmute-mut-src-not-a-reference.rs +0 -15
- data/rust-vendor/zerocopy/tests/ui-msrv/transmute-mut-src-not-a-reference.stderr +0 -12
- data/rust-vendor/zerocopy/tests/ui-msrv/transmute-mut-src-not-frombytes.rs +0 -22
- data/rust-vendor/zerocopy/tests/ui-msrv/transmute-mut-src-not-frombytes.stderr +0 -7
- data/rust-vendor/zerocopy/tests/ui-msrv/transmute-mut-src-not-intobytes.rs +0 -22
- data/rust-vendor/zerocopy/tests/ui-msrv/transmute-mut-src-not-intobytes.stderr +0 -7
- data/rust-vendor/zerocopy/tests/ui-msrv/transmute-mut-src-unsized.rs +0 -15
- data/rust-vendor/zerocopy/tests/ui-msrv/transmute-mut-src-unsized.stderr +0 -16
- data/rust-vendor/zerocopy/tests/ui-msrv/transmute-ptr-to-usize.rs +0 -18
- data/rust-vendor/zerocopy/tests/ui-msrv/transmute-ptr-to-usize.stderr +0 -15
- data/rust-vendor/zerocopy/tests/ui-msrv/transmute-ref-dst-mutable.rs +0 -17
- data/rust-vendor/zerocopy/tests/ui-msrv/transmute-ref-dst-mutable.stderr +0 -39
- data/rust-vendor/zerocopy/tests/ui-msrv/transmute-ref-dst-not-a-reference.rs +0 -15
- data/rust-vendor/zerocopy/tests/ui-msrv/transmute-ref-dst-not-a-reference.stderr +0 -39
- data/rust-vendor/zerocopy/tests/ui-msrv/transmute-ref-dst-not-frombytes.rs +0 -21
- data/rust-vendor/zerocopy/tests/ui-msrv/transmute-ref-dst-not-frombytes.stderr +0 -12
- data/rust-vendor/zerocopy/tests/ui-msrv/transmute-ref-dst-not-nocell.rs +0 -21
- data/rust-vendor/zerocopy/tests/ui-msrv/transmute-ref-dst-not-nocell.stderr +0 -12
- data/rust-vendor/zerocopy/tests/ui-msrv/transmute-ref-illegal-lifetime.rs +0 -15
- data/rust-vendor/zerocopy/tests/ui-msrv/transmute-ref-illegal-lifetime.stderr +0 -9
- data/rust-vendor/zerocopy/tests/ui-msrv/transmute-ref-src-dst-not-references.rs +0 -15
- data/rust-vendor/zerocopy/tests/ui-msrv/transmute-ref-src-dst-not-references.stderr +0 -52
- data/rust-vendor/zerocopy/tests/ui-msrv/transmute-ref-src-not-a-reference.rs +0 -15
- data/rust-vendor/zerocopy/tests/ui-msrv/transmute-ref-src-not-a-reference.stderr +0 -12
- data/rust-vendor/zerocopy/tests/ui-msrv/transmute-ref-src-not-intobytes.rs +0 -21
- data/rust-vendor/zerocopy/tests/ui-msrv/transmute-ref-src-not-intobytes.stderr +0 -25
- data/rust-vendor/zerocopy/tests/ui-msrv/transmute-ref-src-not-nocell.rs +0 -21
- data/rust-vendor/zerocopy/tests/ui-msrv/transmute-ref-src-not-nocell.stderr +0 -25
- data/rust-vendor/zerocopy/tests/ui-msrv/transmute-ref-src-unsized.rs +0 -14
- data/rust-vendor/zerocopy/tests/ui-msrv/transmute-ref-src-unsized.stderr +0 -16
- data/rust-vendor/zerocopy/tests/ui-msrv/transmute-size-decrease.rs +0 -18
- data/rust-vendor/zerocopy/tests/ui-msrv/transmute-size-decrease.stderr +0 -9
- data/rust-vendor/zerocopy/tests/ui-msrv/transmute-size-increase-allow-shrink.rs +0 -18
- data/rust-vendor/zerocopy/tests/ui-msrv/transmute-size-increase-allow-shrink.stderr +0 -9
- data/rust-vendor/zerocopy/tests/ui-msrv/transmute-size-increase.rs +0 -18
- data/rust-vendor/zerocopy/tests/ui-msrv/transmute-size-increase.stderr +0 -9
- data/rust-vendor/zerocopy/tests/ui-msrv/transmute-src-not-intobytes.rs +0 -17
- data/rust-vendor/zerocopy/tests/ui-msrv/transmute-src-not-intobytes.stderr +0 -15
- data/rust-vendor/zerocopy/tests/ui-msrv/try_transmute-dst-not-tryfrombytes.rs +0 -16
- data/rust-vendor/zerocopy/tests/ui-msrv/try_transmute-dst-not-tryfrombytes.stderr +0 -37
- data/rust-vendor/zerocopy/tests/ui-msrv/try_transmute-size-decrease.rs +0 -18
- data/rust-vendor/zerocopy/tests/ui-msrv/try_transmute-size-decrease.stderr +0 -9
- data/rust-vendor/zerocopy/tests/ui-msrv/try_transmute-size-increase.rs +0 -18
- data/rust-vendor/zerocopy/tests/ui-msrv/try_transmute-size-increase.stderr +0 -9
- data/rust-vendor/zerocopy/tests/ui-msrv/try_transmute-src-not-intobytes.rs +0 -17
- data/rust-vendor/zerocopy/tests/ui-msrv/try_transmute-src-not-intobytes.stderr +0 -12
- data/rust-vendor/zerocopy/tests/ui-msrv/try_transmute_mut-dst-not-tryfrombytes.rs +0 -19
- data/rust-vendor/zerocopy/tests/ui-msrv/try_transmute_mut-dst-not-tryfrombytes.stderr +0 -40
- data/rust-vendor/zerocopy/tests/ui-msrv/try_transmute_mut-src-not-frombytes.rs +0 -22
- data/rust-vendor/zerocopy/tests/ui-msrv/try_transmute_mut-src-not-frombytes.stderr +0 -23
- data/rust-vendor/zerocopy/tests/ui-msrv/try_transmute_mut-src-not-intobytes.rs +0 -22
- data/rust-vendor/zerocopy/tests/ui-msrv/try_transmute_mut-src-not-intobytes.stderr +0 -23
- data/rust-vendor/zerocopy/tests/ui-msrv/try_transmute_ref-dst-mutable.rs +0 -17
- data/rust-vendor/zerocopy/tests/ui-msrv/try_transmute_ref-dst-mutable.stderr +0 -22
- data/rust-vendor/zerocopy/tests/ui-msrv/try_transmute_ref-dst-not-immutable-tryfrombytes.rs +0 -18
- data/rust-vendor/zerocopy/tests/ui-msrv/try_transmute_ref-dst-not-immutable-tryfrombytes.stderr +0 -40
- data/rust-vendor/zerocopy/tests/ui-msrv/try_transmute_ref-src-not-immutable-intobytes.rs +0 -18
- data/rust-vendor/zerocopy/tests/ui-msrv/try_transmute_ref-src-not-immutable-intobytes.stderr +0 -15
- data/rust-vendor/zerocopy/tests/ui-nightly/diagnostic-not-implemented-from-bytes.rs +0 -19
- data/rust-vendor/zerocopy/tests/ui-nightly/diagnostic-not-implemented-from-bytes.stderr +0 -27
- data/rust-vendor/zerocopy/tests/ui-nightly/diagnostic-not-implemented-from-zeros.rs +0 -19
- data/rust-vendor/zerocopy/tests/ui-nightly/diagnostic-not-implemented-from-zeros.stderr +0 -27
- data/rust-vendor/zerocopy/tests/ui-nightly/diagnostic-not-implemented-immutable.rs +0 -19
- data/rust-vendor/zerocopy/tests/ui-nightly/diagnostic-not-implemented-immutable.stderr +0 -27
- data/rust-vendor/zerocopy/tests/ui-nightly/diagnostic-not-implemented-into-bytes.rs +0 -19
- data/rust-vendor/zerocopy/tests/ui-nightly/diagnostic-not-implemented-into-bytes.stderr +0 -27
- data/rust-vendor/zerocopy/tests/ui-nightly/diagnostic-not-implemented-issue-1296.rs +0 -57
- data/rust-vendor/zerocopy/tests/ui-nightly/diagnostic-not-implemented-issue-1296.stderr +0 -49
- data/rust-vendor/zerocopy/tests/ui-nightly/diagnostic-not-implemented-known-layout.rs +0 -19
- data/rust-vendor/zerocopy/tests/ui-nightly/diagnostic-not-implemented-known-layout.stderr +0 -27
- data/rust-vendor/zerocopy/tests/ui-nightly/diagnostic-not-implemented-try-from-bytes.rs +0 -19
- data/rust-vendor/zerocopy/tests/ui-nightly/diagnostic-not-implemented-try-from-bytes.stderr +0 -27
- data/rust-vendor/zerocopy/tests/ui-nightly/diagnostic-not-implemented-unaligned.rs +0 -19
- data/rust-vendor/zerocopy/tests/ui-nightly/diagnostic-not-implemented-unaligned.stderr +0 -27
- data/rust-vendor/zerocopy/tests/ui-nightly/include_value_not_from_bytes.rs +0 -17
- data/rust-vendor/zerocopy/tests/ui-nightly/include_value_not_from_bytes.stderr +0 -31
- data/rust-vendor/zerocopy/tests/ui-nightly/include_value_wrong_size.rs +0 -12
- data/rust-vendor/zerocopy/tests/ui-nightly/include_value_wrong_size.stderr +0 -17
- data/rust-vendor/zerocopy/tests/ui-nightly/max-align.rs +0 -99
- data/rust-vendor/zerocopy/tests/ui-nightly/max-align.stderr +0 -5
- data/rust-vendor/zerocopy/tests/ui-nightly/ptr-is-invariant-over-v.rs +0 -29
- data/rust-vendor/zerocopy/tests/ui-nightly/ptr-is-invariant-over-v.stderr +0 -31
- data/rust-vendor/zerocopy/tests/ui-nightly/transmute-dst-not-frombytes.rs +0 -17
- data/rust-vendor/zerocopy/tests/ui-nightly/transmute-dst-not-frombytes.stderr +0 -31
- data/rust-vendor/zerocopy/tests/ui-nightly/transmute-mut-const.rs +0 -18
- data/rust-vendor/zerocopy/tests/ui-nightly/transmute-mut-const.stderr +0 -32
- data/rust-vendor/zerocopy/tests/ui-nightly/transmute-mut-dst-not-a-reference.rs +0 -15
- data/rust-vendor/zerocopy/tests/ui-nightly/transmute-mut-dst-not-a-reference.stderr +0 -19
- data/rust-vendor/zerocopy/tests/ui-nightly/transmute-mut-dst-not-frombytes.rs +0 -22
- data/rust-vendor/zerocopy/tests/ui-nightly/transmute-mut-dst-not-frombytes.stderr +0 -31
- data/rust-vendor/zerocopy/tests/ui-nightly/transmute-mut-dst-not-intobytes.rs +0 -22
- data/rust-vendor/zerocopy/tests/ui-nightly/transmute-mut-dst-not-intobytes.stderr +0 -31
- data/rust-vendor/zerocopy/tests/ui-nightly/transmute-mut-illegal-lifetime.rs +0 -15
- data/rust-vendor/zerocopy/tests/ui-nightly/transmute-mut-illegal-lifetime.stderr +0 -12
- data/rust-vendor/zerocopy/tests/ui-nightly/transmute-mut-src-dst-not-references.rs +0 -15
- data/rust-vendor/zerocopy/tests/ui-nightly/transmute-mut-src-dst-not-references.stderr +0 -15
- data/rust-vendor/zerocopy/tests/ui-nightly/transmute-mut-src-immutable.rs +0 -16
- data/rust-vendor/zerocopy/tests/ui-nightly/transmute-mut-src-immutable.stderr +0 -11
- data/rust-vendor/zerocopy/tests/ui-nightly/transmute-mut-src-not-a-reference.rs +0 -15
- data/rust-vendor/zerocopy/tests/ui-nightly/transmute-mut-src-not-a-reference.stderr +0 -15
- data/rust-vendor/zerocopy/tests/ui-nightly/transmute-mut-src-not-frombytes.rs +0 -22
- data/rust-vendor/zerocopy/tests/ui-nightly/transmute-mut-src-not-frombytes.stderr +0 -31
- data/rust-vendor/zerocopy/tests/ui-nightly/transmute-mut-src-not-intobytes.rs +0 -22
- data/rust-vendor/zerocopy/tests/ui-nightly/transmute-mut-src-not-intobytes.stderr +0 -31
- data/rust-vendor/zerocopy/tests/ui-nightly/transmute-mut-src-unsized.rs +0 -15
- data/rust-vendor/zerocopy/tests/ui-nightly/transmute-mut-src-unsized.stderr +0 -16
- data/rust-vendor/zerocopy/tests/ui-nightly/transmute-ptr-to-usize.rs +0 -18
- data/rust-vendor/zerocopy/tests/ui-nightly/transmute-ptr-to-usize.stderr +0 -29
- data/rust-vendor/zerocopy/tests/ui-nightly/transmute-ref-dst-mutable.rs +0 -17
- data/rust-vendor/zerocopy/tests/ui-nightly/transmute-ref-dst-mutable.stderr +0 -39
- data/rust-vendor/zerocopy/tests/ui-nightly/transmute-ref-dst-not-a-reference.rs +0 -15
- data/rust-vendor/zerocopy/tests/ui-nightly/transmute-ref-dst-not-a-reference.stderr +0 -39
- data/rust-vendor/zerocopy/tests/ui-nightly/transmute-ref-dst-not-frombytes.rs +0 -21
- data/rust-vendor/zerocopy/tests/ui-nightly/transmute-ref-dst-not-frombytes.stderr +0 -31
- data/rust-vendor/zerocopy/tests/ui-nightly/transmute-ref-dst-not-nocell.rs +0 -21
- data/rust-vendor/zerocopy/tests/ui-nightly/transmute-ref-dst-not-nocell.stderr +0 -31
- data/rust-vendor/zerocopy/tests/ui-nightly/transmute-ref-illegal-lifetime.rs +0 -15
- data/rust-vendor/zerocopy/tests/ui-nightly/transmute-ref-illegal-lifetime.stderr +0 -12
- data/rust-vendor/zerocopy/tests/ui-nightly/transmute-ref-src-dst-not-references.rs +0 -15
- data/rust-vendor/zerocopy/tests/ui-nightly/transmute-ref-src-dst-not-references.stderr +0 -55
- data/rust-vendor/zerocopy/tests/ui-nightly/transmute-ref-src-not-a-reference.rs +0 -15
- data/rust-vendor/zerocopy/tests/ui-nightly/transmute-ref-src-not-a-reference.stderr +0 -15
- data/rust-vendor/zerocopy/tests/ui-nightly/transmute-ref-src-not-intobytes.rs +0 -21
- data/rust-vendor/zerocopy/tests/ui-nightly/transmute-ref-src-not-intobytes.stderr +0 -60
- data/rust-vendor/zerocopy/tests/ui-nightly/transmute-ref-src-not-nocell.rs +0 -21
- data/rust-vendor/zerocopy/tests/ui-nightly/transmute-ref-src-not-nocell.stderr +0 -60
- data/rust-vendor/zerocopy/tests/ui-nightly/transmute-ref-src-unsized.rs +0 -14
- data/rust-vendor/zerocopy/tests/ui-nightly/transmute-ref-src-unsized.stderr +0 -16
- data/rust-vendor/zerocopy/tests/ui-nightly/transmute-size-decrease.rs +0 -18
- data/rust-vendor/zerocopy/tests/ui-nightly/transmute-size-decrease.stderr +0 -17
- data/rust-vendor/zerocopy/tests/ui-nightly/transmute-size-increase-allow-shrink.rs +0 -18
- data/rust-vendor/zerocopy/tests/ui-nightly/transmute-size-increase-allow-shrink.stderr +0 -17
- data/rust-vendor/zerocopy/tests/ui-nightly/transmute-size-increase.rs +0 -18
- data/rust-vendor/zerocopy/tests/ui-nightly/transmute-size-increase.stderr +0 -17
- data/rust-vendor/zerocopy/tests/ui-nightly/transmute-src-not-intobytes.rs +0 -17
- data/rust-vendor/zerocopy/tests/ui-nightly/transmute-src-not-intobytes.stderr +0 -34
- data/rust-vendor/zerocopy/tests/ui-nightly/try_transmute-dst-not-tryfrombytes.rs +0 -16
- data/rust-vendor/zerocopy/tests/ui-nightly/try_transmute-dst-not-tryfrombytes.stderr +0 -88
- data/rust-vendor/zerocopy/tests/ui-nightly/try_transmute-size-decrease.rs +0 -18
- data/rust-vendor/zerocopy/tests/ui-nightly/try_transmute-size-decrease.stderr +0 -9
- data/rust-vendor/zerocopy/tests/ui-nightly/try_transmute-size-increase.rs +0 -18
- data/rust-vendor/zerocopy/tests/ui-nightly/try_transmute-size-increase.stderr +0 -9
- data/rust-vendor/zerocopy/tests/ui-nightly/try_transmute-src-not-intobytes.rs +0 -17
- data/rust-vendor/zerocopy/tests/ui-nightly/try_transmute-src-not-intobytes.stderr +0 -31
- data/rust-vendor/zerocopy/tests/ui-nightly/try_transmute_mut-dst-not-tryfrombytes.rs +0 -19
- data/rust-vendor/zerocopy/tests/ui-nightly/try_transmute_mut-dst-not-tryfrombytes.stderr +0 -120
- data/rust-vendor/zerocopy/tests/ui-nightly/try_transmute_mut-src-not-frombytes.rs +0 -22
- data/rust-vendor/zerocopy/tests/ui-nightly/try_transmute_mut-src-not-frombytes.stderr +0 -95
- data/rust-vendor/zerocopy/tests/ui-nightly/try_transmute_mut-src-not-intobytes.rs +0 -22
- data/rust-vendor/zerocopy/tests/ui-nightly/try_transmute_mut-src-not-intobytes.stderr +0 -95
- data/rust-vendor/zerocopy/tests/ui-nightly/try_transmute_ref-dst-mutable.rs +0 -17
- data/rust-vendor/zerocopy/tests/ui-nightly/try_transmute_ref-dst-mutable.stderr +0 -32
- data/rust-vendor/zerocopy/tests/ui-nightly/try_transmute_ref-dst-not-immutable-tryfrombytes.rs +0 -18
- data/rust-vendor/zerocopy/tests/ui-nightly/try_transmute_ref-dst-not-immutable-tryfrombytes.stderr +0 -120
- data/rust-vendor/zerocopy/tests/ui-nightly/try_transmute_ref-src-not-immutable-intobytes.rs +0 -18
- data/rust-vendor/zerocopy/tests/ui-nightly/try_transmute_ref-src-not-immutable-intobytes.stderr +0 -63
- data/rust-vendor/zerocopy/tests/ui-stable/diagnostic-not-implemented-from-bytes.rs +0 -19
- data/rust-vendor/zerocopy/tests/ui-stable/diagnostic-not-implemented-from-bytes.stderr +0 -27
- data/rust-vendor/zerocopy/tests/ui-stable/diagnostic-not-implemented-from-zeros.rs +0 -19
- data/rust-vendor/zerocopy/tests/ui-stable/diagnostic-not-implemented-from-zeros.stderr +0 -27
- data/rust-vendor/zerocopy/tests/ui-stable/diagnostic-not-implemented-immutable.rs +0 -19
- data/rust-vendor/zerocopy/tests/ui-stable/diagnostic-not-implemented-immutable.stderr +0 -27
- data/rust-vendor/zerocopy/tests/ui-stable/diagnostic-not-implemented-into-bytes.rs +0 -19
- data/rust-vendor/zerocopy/tests/ui-stable/diagnostic-not-implemented-into-bytes.stderr +0 -27
- data/rust-vendor/zerocopy/tests/ui-stable/diagnostic-not-implemented-issue-1296.rs +0 -57
- data/rust-vendor/zerocopy/tests/ui-stable/diagnostic-not-implemented-issue-1296.stderr +0 -49
- data/rust-vendor/zerocopy/tests/ui-stable/diagnostic-not-implemented-known-layout.rs +0 -19
- data/rust-vendor/zerocopy/tests/ui-stable/diagnostic-not-implemented-known-layout.stderr +0 -27
- data/rust-vendor/zerocopy/tests/ui-stable/diagnostic-not-implemented-try-from-bytes.rs +0 -19
- data/rust-vendor/zerocopy/tests/ui-stable/diagnostic-not-implemented-try-from-bytes.stderr +0 -27
- data/rust-vendor/zerocopy/tests/ui-stable/diagnostic-not-implemented-unaligned.rs +0 -19
- data/rust-vendor/zerocopy/tests/ui-stable/diagnostic-not-implemented-unaligned.stderr +0 -27
- data/rust-vendor/zerocopy/tests/ui-stable/include_value_not_from_bytes.rs +0 -17
- data/rust-vendor/zerocopy/tests/ui-stable/include_value_not_from_bytes.stderr +0 -31
- data/rust-vendor/zerocopy/tests/ui-stable/include_value_wrong_size.rs +0 -12
- data/rust-vendor/zerocopy/tests/ui-stable/include_value_wrong_size.stderr +0 -17
- data/rust-vendor/zerocopy/tests/ui-stable/max-align.rs +0 -99
- data/rust-vendor/zerocopy/tests/ui-stable/max-align.stderr +0 -5
- data/rust-vendor/zerocopy/tests/ui-stable/ptr-is-invariant-over-v.rs +0 -29
- data/rust-vendor/zerocopy/tests/ui-stable/ptr-is-invariant-over-v.stderr +0 -31
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-dst-not-frombytes.rs +0 -17
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-dst-not-frombytes.stderr +0 -31
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-mut-const.rs +0 -18
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-mut-const.stderr +0 -32
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-mut-dst-not-a-reference.rs +0 -15
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-mut-dst-not-a-reference.stderr +0 -19
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-mut-dst-not-frombytes.rs +0 -22
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-mut-dst-not-frombytes.stderr +0 -31
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-mut-dst-not-intobytes.rs +0 -22
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-mut-dst-not-intobytes.stderr +0 -31
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-mut-illegal-lifetime.rs +0 -15
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-mut-illegal-lifetime.stderr +0 -12
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-mut-src-dst-not-references.rs +0 -15
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-mut-src-dst-not-references.stderr +0 -15
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-mut-src-immutable.rs +0 -16
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-mut-src-immutable.stderr +0 -11
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-mut-src-not-a-reference.rs +0 -15
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-mut-src-not-a-reference.stderr +0 -15
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-mut-src-not-frombytes.rs +0 -22
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-mut-src-not-frombytes.stderr +0 -31
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-mut-src-not-intobytes.rs +0 -22
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-mut-src-not-intobytes.stderr +0 -31
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-mut-src-unsized.rs +0 -15
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-mut-src-unsized.stderr +0 -16
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-ptr-to-usize.rs +0 -18
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-ptr-to-usize.stderr +0 -24
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-ref-dst-mutable.rs +0 -17
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-ref-dst-mutable.stderr +0 -39
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-ref-dst-not-a-reference.rs +0 -15
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-ref-dst-not-a-reference.stderr +0 -39
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-ref-dst-not-frombytes.rs +0 -21
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-ref-dst-not-frombytes.stderr +0 -31
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-ref-dst-not-nocell.rs +0 -21
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-ref-dst-not-nocell.stderr +0 -31
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-ref-illegal-lifetime.rs +0 -15
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-ref-illegal-lifetime.stderr +0 -12
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-ref-src-dst-not-references.rs +0 -15
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-ref-src-dst-not-references.stderr +0 -55
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-ref-src-not-a-reference.rs +0 -15
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-ref-src-not-a-reference.stderr +0 -15
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-ref-src-not-intobytes.rs +0 -21
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-ref-src-not-intobytes.stderr +0 -60
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-ref-src-not-nocell.rs +0 -21
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-ref-src-not-nocell.stderr +0 -60
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-ref-src-unsized.rs +0 -14
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-ref-src-unsized.stderr +0 -16
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-size-decrease.rs +0 -18
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-size-decrease.stderr +0 -17
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-size-increase-allow-shrink.rs +0 -18
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-size-increase-allow-shrink.stderr +0 -17
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-size-increase.rs +0 -18
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-size-increase.stderr +0 -17
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-src-not-intobytes.rs +0 -17
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-src-not-intobytes.stderr +0 -34
- data/rust-vendor/zerocopy/tests/ui-stable/try_transmute-dst-not-tryfrombytes.rs +0 -16
- data/rust-vendor/zerocopy/tests/ui-stable/try_transmute-dst-not-tryfrombytes.stderr +0 -88
- data/rust-vendor/zerocopy/tests/ui-stable/try_transmute-size-decrease.rs +0 -18
- data/rust-vendor/zerocopy/tests/ui-stable/try_transmute-size-decrease.stderr +0 -9
- data/rust-vendor/zerocopy/tests/ui-stable/try_transmute-size-increase.rs +0 -18
- data/rust-vendor/zerocopy/tests/ui-stable/try_transmute-size-increase.stderr +0 -9
- data/rust-vendor/zerocopy/tests/ui-stable/try_transmute-src-not-intobytes.rs +0 -17
- data/rust-vendor/zerocopy/tests/ui-stable/try_transmute-src-not-intobytes.stderr +0 -31
- data/rust-vendor/zerocopy/tests/ui-stable/try_transmute_mut-dst-not-tryfrombytes.rs +0 -19
- data/rust-vendor/zerocopy/tests/ui-stable/try_transmute_mut-dst-not-tryfrombytes.stderr +0 -120
- data/rust-vendor/zerocopy/tests/ui-stable/try_transmute_mut-src-not-frombytes.rs +0 -22
- data/rust-vendor/zerocopy/tests/ui-stable/try_transmute_mut-src-not-frombytes.stderr +0 -95
- data/rust-vendor/zerocopy/tests/ui-stable/try_transmute_mut-src-not-intobytes.rs +0 -22
- data/rust-vendor/zerocopy/tests/ui-stable/try_transmute_mut-src-not-intobytes.stderr +0 -95
- data/rust-vendor/zerocopy/tests/ui-stable/try_transmute_ref-dst-mutable.rs +0 -17
- data/rust-vendor/zerocopy/tests/ui-stable/try_transmute_ref-dst-mutable.stderr +0 -32
- data/rust-vendor/zerocopy/tests/ui-stable/try_transmute_ref-dst-not-immutable-tryfrombytes.rs +0 -18
- data/rust-vendor/zerocopy/tests/ui-stable/try_transmute_ref-dst-not-immutable-tryfrombytes.stderr +0 -120
- data/rust-vendor/zerocopy/tests/ui-stable/try_transmute_ref-src-not-immutable-intobytes.rs +0 -18
- data/rust-vendor/zerocopy/tests/ui-stable/try_transmute_ref-src-not-immutable-intobytes.stderr +0 -63
- data/rust-vendor/zerocopy-derive/src/output_tests/expected/into_bytes_enum.expected.rs +0 -17
- data/rust-vendor/zerocopy-derive/tests/trybuild.rs +0 -62
- data/rust-vendor/zerocopy-derive/tests/ui-msrv/cfgs/union_into_bytes_cfg.stderr +0 -8
- data/rust-vendor/zerocopy-derive/tests/ui-msrv/derive_transparent.rs +0 -39
- data/rust-vendor/zerocopy-derive/tests/ui-msrv/derive_transparent.stderr +0 -89
- data/rust-vendor/zerocopy-derive/tests/ui-msrv/enum.rs +0 -624
- data/rust-vendor/zerocopy-derive/tests/ui-msrv/enum.stderr +0 -399
- data/rust-vendor/zerocopy-derive/tests/ui-msrv/enum_from_bytes_u8_too_few.rs +0 -273
- data/rust-vendor/zerocopy-derive/tests/ui-msrv/enum_from_bytes_u8_too_few.stderr +0 -11
- data/rust-vendor/zerocopy-derive/tests/ui-msrv/late_compile_pass.rs +0 -92
- data/rust-vendor/zerocopy-derive/tests/ui-msrv/late_compile_pass.stderr +0 -97
- data/rust-vendor/zerocopy-derive/tests/ui-msrv/mid_compile_pass.rs +0 -65
- data/rust-vendor/zerocopy-derive/tests/ui-msrv/mid_compile_pass.stderr +0 -97
- data/rust-vendor/zerocopy-derive/tests/ui-msrv/msrv_specific.rs +0 -39
- data/rust-vendor/zerocopy-derive/tests/ui-msrv/msrv_specific.stderr +0 -25
- data/rust-vendor/zerocopy-derive/tests/ui-msrv/privacy.rs +0 -139
- data/rust-vendor/zerocopy-derive/tests/ui-msrv/privacy.stderr +0 -143
- data/rust-vendor/zerocopy-derive/tests/ui-msrv/struct.rs +0 -286
- data/rust-vendor/zerocopy-derive/tests/ui-msrv/struct.stderr +0 -281
- data/rust-vendor/zerocopy-derive/tests/ui-msrv/union.rs +0 -120
- data/rust-vendor/zerocopy-derive/tests/ui-msrv/union.stderr +0 -84
- data/rust-vendor/zerocopy-derive/tests/ui-nightly/absence_of_deprecated_warning.rs +0 -34
- data/rust-vendor/zerocopy-derive/tests/ui-nightly/absence_of_deprecated_warning.stderr +0 -11
- data/rust-vendor/zerocopy-derive/tests/ui-nightly/cfgs/on_error.rs +0 -19
- data/rust-vendor/zerocopy-derive/tests/ui-nightly/cfgs/union_into_bytes_cfg.rs +0 -27
- data/rust-vendor/zerocopy-derive/tests/ui-nightly/derive_transparent.rs +0 -39
- data/rust-vendor/zerocopy-derive/tests/ui-nightly/derive_transparent.stderr +0 -194
- data/rust-vendor/zerocopy-derive/tests/ui-nightly/enum.rs +0 -624
- data/rust-vendor/zerocopy-derive/tests/ui-nightly/enum.stderr +0 -578
- data/rust-vendor/zerocopy-derive/tests/ui-nightly/enum_from_bytes_u8_too_few.rs +0 -273
- data/rust-vendor/zerocopy-derive/tests/ui-nightly/enum_from_bytes_u8_too_few.stderr +0 -11
- data/rust-vendor/zerocopy-derive/tests/ui-nightly/late_compile_pass.rs +0 -92
- data/rust-vendor/zerocopy-derive/tests/ui-nightly/late_compile_pass.stderr +0 -331
- data/rust-vendor/zerocopy-derive/tests/ui-nightly/mid_compile_pass.rs +0 -65
- data/rust-vendor/zerocopy-derive/tests/ui-nightly/mid_compile_pass.stderr +0 -109
- data/rust-vendor/zerocopy-derive/tests/ui-nightly/privacy.rs +0 -139
- data/rust-vendor/zerocopy-derive/tests/ui-nightly/privacy.stderr +0 -17
- data/rust-vendor/zerocopy-derive/tests/ui-nightly/struct.rs +0 -286
- data/rust-vendor/zerocopy-derive/tests/ui-nightly/struct.stderr +0 -555
- data/rust-vendor/zerocopy-derive/tests/ui-nightly/union.rs +0 -120
- data/rust-vendor/zerocopy-derive/tests/ui-nightly/union.stderr +0 -128
- data/rust-vendor/zerocopy-derive/tests/ui-stable/cfgs/on_error.rs +0 -19
- data/rust-vendor/zerocopy-derive/tests/ui-stable/cfgs/union_into_bytes_cfg.rs +0 -27
- data/rust-vendor/zerocopy-derive/tests/ui-stable/derive_transparent.rs +0 -39
- data/rust-vendor/zerocopy-derive/tests/ui-stable/derive_transparent.stderr +0 -169
- data/rust-vendor/zerocopy-derive/tests/ui-stable/enum.rs +0 -624
- data/rust-vendor/zerocopy-derive/tests/ui-stable/enum.stderr +0 -523
- data/rust-vendor/zerocopy-derive/tests/ui-stable/enum_from_bytes_u8_too_few.rs +0 -273
- data/rust-vendor/zerocopy-derive/tests/ui-stable/enum_from_bytes_u8_too_few.stderr +0 -11
- data/rust-vendor/zerocopy-derive/tests/ui-stable/late_compile_pass.rs +0 -92
- data/rust-vendor/zerocopy-derive/tests/ui-stable/late_compile_pass.stderr +0 -291
- data/rust-vendor/zerocopy-derive/tests/ui-stable/mid_compile_pass.rs +0 -65
- data/rust-vendor/zerocopy-derive/tests/ui-stable/mid_compile_pass.stderr +0 -109
- data/rust-vendor/zerocopy-derive/tests/ui-stable/privacy.rs +0 -139
- data/rust-vendor/zerocopy-derive/tests/ui-stable/privacy.stderr +0 -17
- data/rust-vendor/zerocopy-derive/tests/ui-stable/struct.rs +0 -286
- data/rust-vendor/zerocopy-derive/tests/ui-stable/struct.stderr +0 -499
- data/rust-vendor/zerocopy-derive/tests/ui-stable/union.rs +0 -120
- data/rust-vendor/zerocopy-derive/tests/ui-stable/union.stderr +0 -120
- /data/rust-vendor/{wit-bindgen-0.46.0 → async-trait}/LICENSE-MIT +0 -0
- /data/rust-vendor/zerocopy-derive/tests/{ui-msrv/cfgs/on_error.stderr → ui/cfgs/on_error.msrv.stderr} +0 -0
- /data/rust-vendor/zerocopy-derive/tests/{ui-nightly/cfgs/on_error.stderr → ui/cfgs/on_error.nightly.stderr} +0 -0
- /data/rust-vendor/zerocopy-derive/tests/{ui-msrv → ui}/cfgs/on_error.rs +0 -0
- /data/rust-vendor/zerocopy-derive/tests/{ui-stable/cfgs/on_error.stderr → ui/cfgs/on_error.stable.stderr} +0 -0
- /data/rust-vendor/zerocopy-derive/tests/{ui-nightly/cfgs/union_into_bytes_cfg.stderr → ui/cfgs/union_into_bytes_cfg.nightly.stderr} +0 -0
- /data/rust-vendor/zerocopy-derive/tests/{ui-msrv → ui}/cfgs/union_into_bytes_cfg.rs +0 -0
- /data/rust-vendor/zerocopy-derive/tests/{ui-stable/cfgs/union_into_bytes_cfg.stderr → ui/cfgs/union_into_bytes_cfg.stable.stderr} +0 -0
|
@@ -0,0 +1,1697 @@
|
|
|
1
|
+
//! Streams
|
|
2
|
+
//!
|
|
3
|
+
//! This module contains a number of functions for working with `Stream`s,
|
|
4
|
+
//! including the `StreamExt` trait which adds methods to `Stream` types.
|
|
5
|
+
|
|
6
|
+
use crate::future::{assert_future, Either};
|
|
7
|
+
use crate::stream::assert_stream;
|
|
8
|
+
#[cfg(feature = "alloc")]
|
|
9
|
+
use alloc::boxed::Box;
|
|
10
|
+
#[cfg(feature = "alloc")]
|
|
11
|
+
use alloc::vec::Vec;
|
|
12
|
+
use core::pin::Pin;
|
|
13
|
+
#[cfg(feature = "sink")]
|
|
14
|
+
use futures_core::stream::TryStream;
|
|
15
|
+
#[cfg(feature = "alloc")]
|
|
16
|
+
use futures_core::stream::{BoxStream, LocalBoxStream};
|
|
17
|
+
use futures_core::{
|
|
18
|
+
future::Future,
|
|
19
|
+
stream::{FusedStream, Stream},
|
|
20
|
+
task::{Context, Poll},
|
|
21
|
+
};
|
|
22
|
+
#[cfg(feature = "sink")]
|
|
23
|
+
use futures_sink::Sink;
|
|
24
|
+
|
|
25
|
+
use crate::fns::{inspect_fn, InspectFn};
|
|
26
|
+
|
|
27
|
+
mod chain;
|
|
28
|
+
#[allow(unreachable_pub)] // https://github.com/rust-lang/rust/issues/57411
|
|
29
|
+
pub use self::chain::Chain;
|
|
30
|
+
|
|
31
|
+
mod collect;
|
|
32
|
+
#[allow(unreachable_pub)] // https://github.com/rust-lang/rust/issues/57411
|
|
33
|
+
pub use self::collect::Collect;
|
|
34
|
+
|
|
35
|
+
mod unzip;
|
|
36
|
+
#[allow(unreachable_pub)] // https://github.com/rust-lang/rust/issues/57411
|
|
37
|
+
pub use self::unzip::Unzip;
|
|
38
|
+
|
|
39
|
+
mod concat;
|
|
40
|
+
#[allow(unreachable_pub)] // https://github.com/rust-lang/rust/issues/57411
|
|
41
|
+
pub use self::concat::Concat;
|
|
42
|
+
|
|
43
|
+
mod count;
|
|
44
|
+
#[allow(unreachable_pub)] // https://github.com/rust-lang/rust/issues/57411
|
|
45
|
+
pub use self::count::Count;
|
|
46
|
+
|
|
47
|
+
mod cycle;
|
|
48
|
+
#[allow(unreachable_pub)] // https://github.com/rust-lang/rust/issues/57411
|
|
49
|
+
pub use self::cycle::Cycle;
|
|
50
|
+
|
|
51
|
+
mod enumerate;
|
|
52
|
+
#[allow(unreachable_pub)] // https://github.com/rust-lang/rust/issues/57411
|
|
53
|
+
pub use self::enumerate::Enumerate;
|
|
54
|
+
|
|
55
|
+
mod filter;
|
|
56
|
+
#[allow(unreachable_pub)] // https://github.com/rust-lang/rust/issues/57411
|
|
57
|
+
pub use self::filter::Filter;
|
|
58
|
+
|
|
59
|
+
mod filter_map;
|
|
60
|
+
#[allow(unreachable_pub)] // https://github.com/rust-lang/rust/issues/57411
|
|
61
|
+
pub use self::filter_map::FilterMap;
|
|
62
|
+
|
|
63
|
+
mod flatten;
|
|
64
|
+
|
|
65
|
+
delegate_all!(
|
|
66
|
+
/// Stream for the [`flatten`](StreamExt::flatten) method.
|
|
67
|
+
Flatten<St>(
|
|
68
|
+
flatten::Flatten<St, St::Item>
|
|
69
|
+
): Debug + Sink + Stream + FusedStream + AccessInner[St, (.)] + New[|x: St| flatten::Flatten::new(x)]
|
|
70
|
+
where St: Stream
|
|
71
|
+
);
|
|
72
|
+
|
|
73
|
+
mod fold;
|
|
74
|
+
#[allow(unreachable_pub)] // https://github.com/rust-lang/rust/issues/57411
|
|
75
|
+
pub use self::fold::Fold;
|
|
76
|
+
|
|
77
|
+
mod any;
|
|
78
|
+
#[allow(unreachable_pub)] // https://github.com/rust-lang/rust/issues/57411
|
|
79
|
+
pub use self::any::Any;
|
|
80
|
+
|
|
81
|
+
mod all;
|
|
82
|
+
#[allow(unreachable_pub)] // https://github.com/rust-lang/rust/issues/57411
|
|
83
|
+
pub use self::all::All;
|
|
84
|
+
|
|
85
|
+
#[cfg(feature = "sink")]
|
|
86
|
+
mod forward;
|
|
87
|
+
|
|
88
|
+
#[cfg(feature = "sink")]
|
|
89
|
+
delegate_all!(
|
|
90
|
+
/// Future for the [`forward`](super::StreamExt::forward) method.
|
|
91
|
+
#[cfg_attr(docsrs, doc(cfg(feature = "sink")))]
|
|
92
|
+
Forward<St, Si>(
|
|
93
|
+
forward::Forward<St, Si, St::Ok>
|
|
94
|
+
): Debug + Future + FusedFuture + New[|x: St, y: Si| forward::Forward::new(x, y)]
|
|
95
|
+
where St: TryStream
|
|
96
|
+
);
|
|
97
|
+
|
|
98
|
+
mod for_each;
|
|
99
|
+
#[allow(unreachable_pub)] // https://github.com/rust-lang/rust/issues/57411
|
|
100
|
+
pub use self::for_each::ForEach;
|
|
101
|
+
|
|
102
|
+
mod fuse;
|
|
103
|
+
#[allow(unreachable_pub)] // https://github.com/rust-lang/rust/issues/57411
|
|
104
|
+
pub use self::fuse::Fuse;
|
|
105
|
+
|
|
106
|
+
mod into_future;
|
|
107
|
+
#[allow(unreachable_pub)] // https://github.com/rust-lang/rust/issues/57411
|
|
108
|
+
pub use self::into_future::StreamFuture;
|
|
109
|
+
|
|
110
|
+
delegate_all!(
|
|
111
|
+
/// Stream for the [`inspect`](StreamExt::inspect) method.
|
|
112
|
+
Inspect<St, F>(
|
|
113
|
+
map::Map<St, InspectFn<F>>
|
|
114
|
+
): Debug + Sink + Stream + FusedStream + AccessInner[St, (.)] + New[|x: St, f: F| map::Map::new(x, inspect_fn(f))]
|
|
115
|
+
);
|
|
116
|
+
|
|
117
|
+
mod map;
|
|
118
|
+
#[allow(unreachable_pub)] // https://github.com/rust-lang/rust/issues/57411
|
|
119
|
+
pub use self::map::Map;
|
|
120
|
+
|
|
121
|
+
delegate_all!(
|
|
122
|
+
/// Stream for the [`flat_map`](StreamExt::flat_map) method.
|
|
123
|
+
FlatMap<St, U, F>(
|
|
124
|
+
flatten::Flatten<Map<St, F>, U>
|
|
125
|
+
): Debug + Sink + Stream + FusedStream + AccessInner[St, (. .)] + New[|x: St, f: F| flatten::Flatten::new(Map::new(x, f))]
|
|
126
|
+
);
|
|
127
|
+
|
|
128
|
+
mod next;
|
|
129
|
+
#[allow(unreachable_pub)] // https://github.com/rust-lang/rust/issues/57411
|
|
130
|
+
pub use self::next::Next;
|
|
131
|
+
|
|
132
|
+
mod select_next_some;
|
|
133
|
+
#[allow(unreachable_pub)] // https://github.com/rust-lang/rust/issues/57411
|
|
134
|
+
pub use self::select_next_some::SelectNextSome;
|
|
135
|
+
|
|
136
|
+
mod peek;
|
|
137
|
+
#[allow(unreachable_pub)] // https://github.com/rust-lang/rust/issues/57411
|
|
138
|
+
pub use self::peek::{NextIf, NextIfEq, Peek, PeekMut, Peekable};
|
|
139
|
+
|
|
140
|
+
mod skip;
|
|
141
|
+
#[allow(unreachable_pub)] // https://github.com/rust-lang/rust/issues/57411
|
|
142
|
+
pub use self::skip::Skip;
|
|
143
|
+
|
|
144
|
+
mod skip_while;
|
|
145
|
+
#[allow(unreachable_pub)] // https://github.com/rust-lang/rust/issues/57411
|
|
146
|
+
pub use self::skip_while::SkipWhile;
|
|
147
|
+
|
|
148
|
+
mod take;
|
|
149
|
+
#[allow(unreachable_pub)] // https://github.com/rust-lang/rust/issues/57411
|
|
150
|
+
pub use self::take::Take;
|
|
151
|
+
|
|
152
|
+
mod take_while;
|
|
153
|
+
#[allow(unreachable_pub)] // https://github.com/rust-lang/rust/issues/57411
|
|
154
|
+
pub use self::take_while::TakeWhile;
|
|
155
|
+
|
|
156
|
+
mod take_until;
|
|
157
|
+
#[allow(unreachable_pub)] // https://github.com/rust-lang/rust/issues/57411
|
|
158
|
+
pub use self::take_until::TakeUntil;
|
|
159
|
+
|
|
160
|
+
mod then;
|
|
161
|
+
#[allow(unreachable_pub)] // https://github.com/rust-lang/rust/issues/57411
|
|
162
|
+
pub use self::then::Then;
|
|
163
|
+
|
|
164
|
+
mod zip;
|
|
165
|
+
#[allow(unreachable_pub)] // https://github.com/rust-lang/rust/issues/57411
|
|
166
|
+
pub use self::zip::Zip;
|
|
167
|
+
|
|
168
|
+
#[cfg(feature = "alloc")]
|
|
169
|
+
mod chunks;
|
|
170
|
+
#[cfg(feature = "alloc")]
|
|
171
|
+
#[allow(unreachable_pub)] // https://github.com/rust-lang/rust/issues/57411
|
|
172
|
+
pub use self::chunks::Chunks;
|
|
173
|
+
|
|
174
|
+
#[cfg(feature = "alloc")]
|
|
175
|
+
mod ready_chunks;
|
|
176
|
+
#[cfg(feature = "alloc")]
|
|
177
|
+
#[allow(unreachable_pub)] // https://github.com/rust-lang/rust/issues/57411
|
|
178
|
+
pub use self::ready_chunks::ReadyChunks;
|
|
179
|
+
|
|
180
|
+
mod scan;
|
|
181
|
+
#[allow(unreachable_pub)] // https://github.com/rust-lang/rust/issues/57411
|
|
182
|
+
pub use self::scan::Scan;
|
|
183
|
+
|
|
184
|
+
#[cfg_attr(target_os = "none", cfg(target_has_atomic = "ptr"))]
|
|
185
|
+
#[cfg(feature = "alloc")]
|
|
186
|
+
mod buffer_unordered;
|
|
187
|
+
#[cfg_attr(target_os = "none", cfg(target_has_atomic = "ptr"))]
|
|
188
|
+
#[cfg(feature = "alloc")]
|
|
189
|
+
#[allow(unreachable_pub)] // https://github.com/rust-lang/rust/issues/57411
|
|
190
|
+
pub use self::buffer_unordered::BufferUnordered;
|
|
191
|
+
|
|
192
|
+
#[cfg_attr(target_os = "none", cfg(target_has_atomic = "ptr"))]
|
|
193
|
+
#[cfg(feature = "alloc")]
|
|
194
|
+
mod buffered;
|
|
195
|
+
#[cfg_attr(target_os = "none", cfg(target_has_atomic = "ptr"))]
|
|
196
|
+
#[cfg(feature = "alloc")]
|
|
197
|
+
#[allow(unreachable_pub)] // https://github.com/rust-lang/rust/issues/57411
|
|
198
|
+
pub use self::buffered::Buffered;
|
|
199
|
+
|
|
200
|
+
#[cfg_attr(target_os = "none", cfg(target_has_atomic = "ptr"))]
|
|
201
|
+
#[cfg(feature = "alloc")]
|
|
202
|
+
pub(crate) mod flatten_unordered;
|
|
203
|
+
|
|
204
|
+
#[cfg_attr(target_os = "none", cfg(target_has_atomic = "ptr"))]
|
|
205
|
+
#[cfg(feature = "alloc")]
|
|
206
|
+
#[allow(unreachable_pub)]
|
|
207
|
+
pub use self::flatten_unordered::FlattenUnordered;
|
|
208
|
+
|
|
209
|
+
#[cfg_attr(target_os = "none", cfg(target_has_atomic = "ptr"))]
|
|
210
|
+
#[cfg(feature = "alloc")]
|
|
211
|
+
delegate_all!(
|
|
212
|
+
/// Stream for the [`flat_map_unordered`](StreamExt::flat_map_unordered) method.
|
|
213
|
+
FlatMapUnordered<St, U, F>(
|
|
214
|
+
FlattenUnordered<Map<St, F>>
|
|
215
|
+
): Debug + Sink + Stream + FusedStream + AccessInner[St, (. .)] + New[|x: St, limit: Option<usize>, f: F| FlattenUnordered::new(Map::new(x, f), limit)]
|
|
216
|
+
where St: Stream, U: Stream, U: Unpin, F: FnMut(St::Item) -> U
|
|
217
|
+
);
|
|
218
|
+
|
|
219
|
+
#[cfg_attr(target_os = "none", cfg(target_has_atomic = "ptr"))]
|
|
220
|
+
#[cfg(feature = "alloc")]
|
|
221
|
+
mod for_each_concurrent;
|
|
222
|
+
#[cfg_attr(target_os = "none", cfg(target_has_atomic = "ptr"))]
|
|
223
|
+
#[cfg(feature = "alloc")]
|
|
224
|
+
#[allow(unreachable_pub)] // https://github.com/rust-lang/rust/issues/57411
|
|
225
|
+
pub use self::for_each_concurrent::ForEachConcurrent;
|
|
226
|
+
|
|
227
|
+
#[cfg_attr(target_os = "none", cfg(target_has_atomic = "ptr"))]
|
|
228
|
+
#[cfg(feature = "sink")]
|
|
229
|
+
#[cfg_attr(docsrs, doc(cfg(feature = "sink")))]
|
|
230
|
+
#[cfg(feature = "alloc")]
|
|
231
|
+
mod split;
|
|
232
|
+
#[cfg_attr(target_os = "none", cfg(target_has_atomic = "ptr"))]
|
|
233
|
+
#[cfg(feature = "sink")]
|
|
234
|
+
#[cfg_attr(docsrs, doc(cfg(feature = "sink")))]
|
|
235
|
+
#[cfg(feature = "alloc")]
|
|
236
|
+
#[allow(unreachable_pub)] // https://github.com/rust-lang/rust/issues/57411
|
|
237
|
+
pub use self::split::{ReuniteError, SplitSink, SplitStream};
|
|
238
|
+
|
|
239
|
+
#[cfg(feature = "std")]
|
|
240
|
+
mod catch_unwind;
|
|
241
|
+
#[cfg(feature = "std")]
|
|
242
|
+
#[allow(unreachable_pub)] // https://github.com/rust-lang/rust/issues/57411
|
|
243
|
+
pub use self::catch_unwind::CatchUnwind;
|
|
244
|
+
|
|
245
|
+
impl<T: ?Sized> StreamExt for T where T: Stream {}
|
|
246
|
+
|
|
247
|
+
/// An extension trait for `Stream`s that provides a variety of convenient
|
|
248
|
+
/// combinator functions.
|
|
249
|
+
pub trait StreamExt: Stream {
|
|
250
|
+
/// Creates a future that resolves to the next item in the stream.
|
|
251
|
+
///
|
|
252
|
+
/// Note that because `next` doesn't take ownership over the stream,
|
|
253
|
+
/// the [`Stream`] type must be [`Unpin`]. If you want to use `next` with a
|
|
254
|
+
/// [`!Unpin`](Unpin) stream, you'll first have to pin the stream. This can
|
|
255
|
+
/// be done by boxing the stream using [`Box::pin`] or
|
|
256
|
+
/// pinning it to the stack using the `pin_mut!` macro from the `pin_utils`
|
|
257
|
+
/// crate.
|
|
258
|
+
///
|
|
259
|
+
/// # Examples
|
|
260
|
+
///
|
|
261
|
+
/// ```
|
|
262
|
+
/// # futures::executor::block_on(async {
|
|
263
|
+
/// use futures::stream::{self, StreamExt};
|
|
264
|
+
///
|
|
265
|
+
/// let mut stream = stream::iter(1..=3);
|
|
266
|
+
///
|
|
267
|
+
/// assert_eq!(stream.next().await, Some(1));
|
|
268
|
+
/// assert_eq!(stream.next().await, Some(2));
|
|
269
|
+
/// assert_eq!(stream.next().await, Some(3));
|
|
270
|
+
/// assert_eq!(stream.next().await, None);
|
|
271
|
+
/// # });
|
|
272
|
+
/// ```
|
|
273
|
+
fn next(&mut self) -> Next<'_, Self>
|
|
274
|
+
where
|
|
275
|
+
Self: Unpin,
|
|
276
|
+
{
|
|
277
|
+
assert_future::<Option<Self::Item>, _>(Next::new(self))
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
/// Converts this stream into a future of `(next_item, tail_of_stream)`.
|
|
281
|
+
/// If the stream terminates, then the next item is [`None`].
|
|
282
|
+
///
|
|
283
|
+
/// The returned future can be used to compose streams and futures together
|
|
284
|
+
/// by placing everything into the "world of futures".
|
|
285
|
+
///
|
|
286
|
+
/// Note that because `into_future` moves the stream, the [`Stream`] type
|
|
287
|
+
/// must be [`Unpin`]. If you want to use `into_future` with a
|
|
288
|
+
/// [`!Unpin`](Unpin) stream, you'll first have to pin the stream. This can
|
|
289
|
+
/// be done by boxing the stream using [`Box::pin`] or
|
|
290
|
+
/// pinning it to the stack using the `pin_mut!` macro from the `pin_utils`
|
|
291
|
+
/// crate.
|
|
292
|
+
///
|
|
293
|
+
/// # Examples
|
|
294
|
+
///
|
|
295
|
+
/// ```
|
|
296
|
+
/// # futures::executor::block_on(async {
|
|
297
|
+
/// use futures::stream::{self, StreamExt};
|
|
298
|
+
///
|
|
299
|
+
/// let stream = stream::iter(1..=3);
|
|
300
|
+
///
|
|
301
|
+
/// let (item, stream) = stream.into_future().await;
|
|
302
|
+
/// assert_eq!(Some(1), item);
|
|
303
|
+
///
|
|
304
|
+
/// let (item, stream) = stream.into_future().await;
|
|
305
|
+
/// assert_eq!(Some(2), item);
|
|
306
|
+
/// # });
|
|
307
|
+
/// ```
|
|
308
|
+
fn into_future(self) -> StreamFuture<Self>
|
|
309
|
+
where
|
|
310
|
+
Self: Sized + Unpin,
|
|
311
|
+
{
|
|
312
|
+
assert_future::<(Option<Self::Item>, Self), _>(StreamFuture::new(self))
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
/// Maps this stream's items to a different type, returning a new stream of
|
|
316
|
+
/// the resulting type.
|
|
317
|
+
///
|
|
318
|
+
/// The provided closure is executed over all elements of this stream as
|
|
319
|
+
/// they are made available. It is executed inline with calls to
|
|
320
|
+
/// [`poll_next`](Stream::poll_next).
|
|
321
|
+
///
|
|
322
|
+
/// Note that this function consumes the stream passed into it and returns a
|
|
323
|
+
/// wrapped version of it, similar to the existing `map` methods in the
|
|
324
|
+
/// standard library.
|
|
325
|
+
///
|
|
326
|
+
/// See [`StreamExt::then`](Self::then) if you want to use a closure that
|
|
327
|
+
/// returns a future instead of a value.
|
|
328
|
+
///
|
|
329
|
+
/// # Examples
|
|
330
|
+
///
|
|
331
|
+
/// ```
|
|
332
|
+
/// # futures::executor::block_on(async {
|
|
333
|
+
/// use futures::stream::{self, StreamExt};
|
|
334
|
+
///
|
|
335
|
+
/// let stream = stream::iter(1..=3);
|
|
336
|
+
/// let stream = stream.map(|x| x + 3);
|
|
337
|
+
///
|
|
338
|
+
/// assert_eq!(vec![4, 5, 6], stream.collect::<Vec<_>>().await);
|
|
339
|
+
/// # });
|
|
340
|
+
/// ```
|
|
341
|
+
fn map<T, F>(self, f: F) -> Map<Self, F>
|
|
342
|
+
where
|
|
343
|
+
F: FnMut(Self::Item) -> T,
|
|
344
|
+
Self: Sized,
|
|
345
|
+
{
|
|
346
|
+
assert_stream::<T, _>(Map::new(self, f))
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
/// Creates a stream which gives the current iteration count as well as
|
|
350
|
+
/// the next value.
|
|
351
|
+
///
|
|
352
|
+
/// The stream returned yields pairs `(i, val)`, where `i` is the
|
|
353
|
+
/// current index of iteration and `val` is the value returned by the
|
|
354
|
+
/// stream.
|
|
355
|
+
///
|
|
356
|
+
/// `enumerate()` keeps its count as a [`usize`]. If you want to count by a
|
|
357
|
+
/// different sized integer, the [`zip`](StreamExt::zip) function provides similar
|
|
358
|
+
/// functionality.
|
|
359
|
+
///
|
|
360
|
+
/// # Overflow Behavior
|
|
361
|
+
///
|
|
362
|
+
/// The method does no guarding against overflows, so enumerating more than
|
|
363
|
+
/// [`usize::MAX`] elements either produces the wrong result or panics. If
|
|
364
|
+
/// debug assertions are enabled, a panic is guaranteed.
|
|
365
|
+
///
|
|
366
|
+
/// # Panics
|
|
367
|
+
///
|
|
368
|
+
/// The returned stream might panic if the to-be-returned index would
|
|
369
|
+
/// overflow a [`usize`].
|
|
370
|
+
///
|
|
371
|
+
/// # Examples
|
|
372
|
+
///
|
|
373
|
+
/// ```
|
|
374
|
+
/// # futures::executor::block_on(async {
|
|
375
|
+
/// use futures::stream::{self, StreamExt};
|
|
376
|
+
///
|
|
377
|
+
/// let stream = stream::iter(vec!['a', 'b', 'c']);
|
|
378
|
+
///
|
|
379
|
+
/// let mut stream = stream.enumerate();
|
|
380
|
+
///
|
|
381
|
+
/// assert_eq!(stream.next().await, Some((0, 'a')));
|
|
382
|
+
/// assert_eq!(stream.next().await, Some((1, 'b')));
|
|
383
|
+
/// assert_eq!(stream.next().await, Some((2, 'c')));
|
|
384
|
+
/// assert_eq!(stream.next().await, None);
|
|
385
|
+
/// # });
|
|
386
|
+
/// ```
|
|
387
|
+
fn enumerate(self) -> Enumerate<Self>
|
|
388
|
+
where
|
|
389
|
+
Self: Sized,
|
|
390
|
+
{
|
|
391
|
+
assert_stream::<(usize, Self::Item), _>(Enumerate::new(self))
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
/// Filters the values produced by this stream according to the provided
|
|
395
|
+
/// asynchronous predicate.
|
|
396
|
+
///
|
|
397
|
+
/// As values of this stream are made available, the provided predicate `f`
|
|
398
|
+
/// will be run against them. If the predicate returns a `Future` which
|
|
399
|
+
/// resolves to `true`, then the stream will yield the value, but if the
|
|
400
|
+
/// predicate returns a `Future` which resolves to `false`, then the value
|
|
401
|
+
/// will be discarded and the next value will be produced.
|
|
402
|
+
///
|
|
403
|
+
/// Note that this function consumes the stream passed into it and returns a
|
|
404
|
+
/// wrapped version of it, similar to the existing `filter` methods in the
|
|
405
|
+
/// standard library.
|
|
406
|
+
///
|
|
407
|
+
/// # Examples
|
|
408
|
+
///
|
|
409
|
+
/// ```
|
|
410
|
+
/// # futures::executor::block_on(async {
|
|
411
|
+
/// use futures::future;
|
|
412
|
+
/// use futures::stream::{self, StreamExt};
|
|
413
|
+
///
|
|
414
|
+
/// let stream = stream::iter(1..=10);
|
|
415
|
+
/// let events = stream.filter(|x| future::ready(x % 2 == 0));
|
|
416
|
+
///
|
|
417
|
+
/// assert_eq!(vec![2, 4, 6, 8, 10], events.collect::<Vec<_>>().await);
|
|
418
|
+
/// # });
|
|
419
|
+
/// ```
|
|
420
|
+
fn filter<Fut, F>(self, f: F) -> Filter<Self, Fut, F>
|
|
421
|
+
where
|
|
422
|
+
F: FnMut(&Self::Item) -> Fut,
|
|
423
|
+
Fut: Future<Output = bool>,
|
|
424
|
+
Self: Sized,
|
|
425
|
+
{
|
|
426
|
+
assert_stream::<Self::Item, _>(Filter::new(self, f))
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
/// Filters the values produced by this stream while simultaneously mapping
|
|
430
|
+
/// them to a different type according to the provided asynchronous closure.
|
|
431
|
+
///
|
|
432
|
+
/// As values of this stream are made available, the provided function will
|
|
433
|
+
/// be run on them. If the future returned by the predicate `f` resolves to
|
|
434
|
+
/// [`Some(item)`](Some) then the stream will yield the value `item`, but if
|
|
435
|
+
/// it resolves to [`None`] then the next value will be produced.
|
|
436
|
+
///
|
|
437
|
+
/// Note that this function consumes the stream passed into it and returns a
|
|
438
|
+
/// wrapped version of it, similar to the existing `filter_map` methods in
|
|
439
|
+
/// the standard library.
|
|
440
|
+
///
|
|
441
|
+
/// # Examples
|
|
442
|
+
/// ```
|
|
443
|
+
/// # futures::executor::block_on(async {
|
|
444
|
+
/// use futures::stream::{self, StreamExt};
|
|
445
|
+
///
|
|
446
|
+
/// let stream = stream::iter(1..=10);
|
|
447
|
+
/// let events = stream.filter_map(|x| async move {
|
|
448
|
+
/// if x % 2 == 0 { Some(x + 1) } else { None }
|
|
449
|
+
/// });
|
|
450
|
+
///
|
|
451
|
+
/// assert_eq!(vec![3, 5, 7, 9, 11], events.collect::<Vec<_>>().await);
|
|
452
|
+
/// # });
|
|
453
|
+
/// ```
|
|
454
|
+
fn filter_map<Fut, T, F>(self, f: F) -> FilterMap<Self, Fut, F>
|
|
455
|
+
where
|
|
456
|
+
F: FnMut(Self::Item) -> Fut,
|
|
457
|
+
Fut: Future<Output = Option<T>>,
|
|
458
|
+
Self: Sized,
|
|
459
|
+
{
|
|
460
|
+
assert_stream::<T, _>(FilterMap::new(self, f))
|
|
461
|
+
}
|
|
462
|
+
|
|
463
|
+
/// Computes from this stream's items new items of a different type using
|
|
464
|
+
/// an asynchronous closure.
|
|
465
|
+
///
|
|
466
|
+
/// The provided closure `f` will be called with an `Item` once a value is
|
|
467
|
+
/// ready, it returns a future which will then be run to completion
|
|
468
|
+
/// to produce the next value on this stream.
|
|
469
|
+
///
|
|
470
|
+
/// Note that this function consumes the stream passed into it and returns a
|
|
471
|
+
/// wrapped version of it.
|
|
472
|
+
///
|
|
473
|
+
/// See [`StreamExt::map`](Self::map) if you want to use a closure that
|
|
474
|
+
/// returns a value instead of a future.
|
|
475
|
+
///
|
|
476
|
+
/// # Examples
|
|
477
|
+
///
|
|
478
|
+
/// ```
|
|
479
|
+
/// # futures::executor::block_on(async {
|
|
480
|
+
/// use futures::stream::{self, StreamExt};
|
|
481
|
+
///
|
|
482
|
+
/// let stream = stream::iter(1..=3);
|
|
483
|
+
/// let stream = stream.then(|x| async move { x + 3 });
|
|
484
|
+
///
|
|
485
|
+
/// assert_eq!(vec![4, 5, 6], stream.collect::<Vec<_>>().await);
|
|
486
|
+
/// # });
|
|
487
|
+
/// ```
|
|
488
|
+
fn then<Fut, F>(self, f: F) -> Then<Self, Fut, F>
|
|
489
|
+
where
|
|
490
|
+
F: FnMut(Self::Item) -> Fut,
|
|
491
|
+
Fut: Future,
|
|
492
|
+
Self: Sized,
|
|
493
|
+
{
|
|
494
|
+
assert_stream::<Fut::Output, _>(Then::new(self, f))
|
|
495
|
+
}
|
|
496
|
+
|
|
497
|
+
/// Transforms a stream into a collection, returning a
|
|
498
|
+
/// future representing the result of that computation.
|
|
499
|
+
///
|
|
500
|
+
/// The returned future will be resolved when the stream terminates.
|
|
501
|
+
///
|
|
502
|
+
/// # Examples
|
|
503
|
+
///
|
|
504
|
+
/// ```
|
|
505
|
+
/// # futures::executor::block_on(async {
|
|
506
|
+
/// use futures::channel::mpsc;
|
|
507
|
+
/// use futures::stream::StreamExt;
|
|
508
|
+
/// use std::thread;
|
|
509
|
+
///
|
|
510
|
+
/// let (tx, rx) = mpsc::unbounded();
|
|
511
|
+
///
|
|
512
|
+
/// thread::spawn(move || {
|
|
513
|
+
/// for i in 1..=5 {
|
|
514
|
+
/// tx.unbounded_send(i).unwrap();
|
|
515
|
+
/// }
|
|
516
|
+
/// });
|
|
517
|
+
///
|
|
518
|
+
/// let output = rx.collect::<Vec<i32>>().await;
|
|
519
|
+
/// assert_eq!(output, vec![1, 2, 3, 4, 5]);
|
|
520
|
+
/// # });
|
|
521
|
+
/// ```
|
|
522
|
+
fn collect<C: Default + Extend<Self::Item>>(self) -> Collect<Self, C>
|
|
523
|
+
where
|
|
524
|
+
Self: Sized,
|
|
525
|
+
{
|
|
526
|
+
assert_future::<C, _>(Collect::new(self))
|
|
527
|
+
}
|
|
528
|
+
|
|
529
|
+
/// Converts a stream of pairs into a future, which
|
|
530
|
+
/// resolves to pair of containers.
|
|
531
|
+
///
|
|
532
|
+
/// `unzip()` produces a future, which resolves to two
|
|
533
|
+
/// collections: one from the left elements of the pairs,
|
|
534
|
+
/// and one from the right elements.
|
|
535
|
+
///
|
|
536
|
+
/// The returned future will be resolved when the stream terminates.
|
|
537
|
+
///
|
|
538
|
+
/// # Examples
|
|
539
|
+
///
|
|
540
|
+
/// ```
|
|
541
|
+
/// # futures::executor::block_on(async {
|
|
542
|
+
/// use futures::channel::mpsc;
|
|
543
|
+
/// use futures::stream::StreamExt;
|
|
544
|
+
/// use std::thread;
|
|
545
|
+
///
|
|
546
|
+
/// let (tx, rx) = mpsc::unbounded();
|
|
547
|
+
///
|
|
548
|
+
/// thread::spawn(move || {
|
|
549
|
+
/// tx.unbounded_send((1, 2)).unwrap();
|
|
550
|
+
/// tx.unbounded_send((3, 4)).unwrap();
|
|
551
|
+
/// tx.unbounded_send((5, 6)).unwrap();
|
|
552
|
+
/// });
|
|
553
|
+
///
|
|
554
|
+
/// let (o1, o2): (Vec<_>, Vec<_>) = rx.unzip().await;
|
|
555
|
+
/// assert_eq!(o1, vec![1, 3, 5]);
|
|
556
|
+
/// assert_eq!(o2, vec![2, 4, 6]);
|
|
557
|
+
/// # });
|
|
558
|
+
/// ```
|
|
559
|
+
fn unzip<A, B, FromA, FromB>(self) -> Unzip<Self, FromA, FromB>
|
|
560
|
+
where
|
|
561
|
+
FromA: Default + Extend<A>,
|
|
562
|
+
FromB: Default + Extend<B>,
|
|
563
|
+
Self: Sized + Stream<Item = (A, B)>,
|
|
564
|
+
{
|
|
565
|
+
assert_future::<(FromA, FromB), _>(Unzip::new(self))
|
|
566
|
+
}
|
|
567
|
+
|
|
568
|
+
/// Concatenate all items of a stream into a single extendable
|
|
569
|
+
/// destination, returning a future representing the end result.
|
|
570
|
+
///
|
|
571
|
+
/// This combinator will extend the first item with the contents
|
|
572
|
+
/// of all the subsequent results of the stream. If the stream is
|
|
573
|
+
/// empty, the default value will be returned.
|
|
574
|
+
///
|
|
575
|
+
/// Works with all collections that implement the
|
|
576
|
+
/// [`Extend`](std::iter::Extend) trait.
|
|
577
|
+
///
|
|
578
|
+
/// # Examples
|
|
579
|
+
///
|
|
580
|
+
/// ```
|
|
581
|
+
/// # futures::executor::block_on(async {
|
|
582
|
+
/// use futures::channel::mpsc;
|
|
583
|
+
/// use futures::stream::StreamExt;
|
|
584
|
+
/// use std::thread;
|
|
585
|
+
///
|
|
586
|
+
/// let (tx, rx) = mpsc::unbounded();
|
|
587
|
+
///
|
|
588
|
+
/// thread::spawn(move || {
|
|
589
|
+
/// for i in (0..3).rev() {
|
|
590
|
+
/// let n = i * 3;
|
|
591
|
+
/// tx.unbounded_send(vec![n + 1, n + 2, n + 3]).unwrap();
|
|
592
|
+
/// }
|
|
593
|
+
/// });
|
|
594
|
+
///
|
|
595
|
+
/// let result = rx.concat().await;
|
|
596
|
+
///
|
|
597
|
+
/// assert_eq!(result, vec![7, 8, 9, 4, 5, 6, 1, 2, 3]);
|
|
598
|
+
/// # });
|
|
599
|
+
/// ```
|
|
600
|
+
fn concat(self) -> Concat<Self>
|
|
601
|
+
where
|
|
602
|
+
Self: Sized,
|
|
603
|
+
Self::Item: Extend<<<Self as Stream>::Item as IntoIterator>::Item> + IntoIterator + Default,
|
|
604
|
+
{
|
|
605
|
+
assert_future::<Self::Item, _>(Concat::new(self))
|
|
606
|
+
}
|
|
607
|
+
|
|
608
|
+
/// Drives the stream to completion, counting the number of items.
|
|
609
|
+
///
|
|
610
|
+
/// # Overflow Behavior
|
|
611
|
+
///
|
|
612
|
+
/// The method does no guarding against overflows, so counting elements of a
|
|
613
|
+
/// stream with more than [`usize::MAX`] elements either produces the wrong
|
|
614
|
+
/// result or panics. If debug assertions are enabled, a panic is guaranteed.
|
|
615
|
+
///
|
|
616
|
+
/// # Panics
|
|
617
|
+
///
|
|
618
|
+
/// This function might panic if the iterator has more than [`usize::MAX`]
|
|
619
|
+
/// elements.
|
|
620
|
+
///
|
|
621
|
+
/// # Examples
|
|
622
|
+
///
|
|
623
|
+
/// ```
|
|
624
|
+
/// # futures::executor::block_on(async {
|
|
625
|
+
/// use futures::stream::{self, StreamExt};
|
|
626
|
+
///
|
|
627
|
+
/// let stream = stream::iter(1..=10);
|
|
628
|
+
/// let count = stream.count().await;
|
|
629
|
+
///
|
|
630
|
+
/// assert_eq!(count, 10);
|
|
631
|
+
/// # });
|
|
632
|
+
/// ```
|
|
633
|
+
fn count(self) -> Count<Self>
|
|
634
|
+
where
|
|
635
|
+
Self: Sized,
|
|
636
|
+
{
|
|
637
|
+
assert_future::<usize, _>(Count::new(self))
|
|
638
|
+
}
|
|
639
|
+
|
|
640
|
+
/// Repeats a stream endlessly.
|
|
641
|
+
///
|
|
642
|
+
/// The stream never terminates. Note that you likely want to avoid
|
|
643
|
+
/// usage of `collect` or such on the returned stream as it will exhaust
|
|
644
|
+
/// available memory as it tries to just fill up all RAM.
|
|
645
|
+
///
|
|
646
|
+
/// # Examples
|
|
647
|
+
///
|
|
648
|
+
/// ```
|
|
649
|
+
/// # futures::executor::block_on(async {
|
|
650
|
+
/// use futures::stream::{self, StreamExt};
|
|
651
|
+
/// let a = [1, 2, 3];
|
|
652
|
+
/// let mut s = stream::iter(a.iter()).cycle();
|
|
653
|
+
///
|
|
654
|
+
/// assert_eq!(s.next().await, Some(&1));
|
|
655
|
+
/// assert_eq!(s.next().await, Some(&2));
|
|
656
|
+
/// assert_eq!(s.next().await, Some(&3));
|
|
657
|
+
/// assert_eq!(s.next().await, Some(&1));
|
|
658
|
+
/// assert_eq!(s.next().await, Some(&2));
|
|
659
|
+
/// assert_eq!(s.next().await, Some(&3));
|
|
660
|
+
/// assert_eq!(s.next().await, Some(&1));
|
|
661
|
+
/// # });
|
|
662
|
+
/// ```
|
|
663
|
+
fn cycle(self) -> Cycle<Self>
|
|
664
|
+
where
|
|
665
|
+
Self: Sized + Clone,
|
|
666
|
+
{
|
|
667
|
+
assert_stream::<Self::Item, _>(Cycle::new(self))
|
|
668
|
+
}
|
|
669
|
+
|
|
670
|
+
/// Execute an accumulating asynchronous computation over a stream,
|
|
671
|
+
/// collecting all the values into one final result.
|
|
672
|
+
///
|
|
673
|
+
/// This combinator will accumulate all values returned by this stream
|
|
674
|
+
/// according to the closure provided. The initial state is also provided to
|
|
675
|
+
/// this method and then is returned again by each execution of the closure.
|
|
676
|
+
/// Once the entire stream has been exhausted the returned future will
|
|
677
|
+
/// resolve to this value.
|
|
678
|
+
///
|
|
679
|
+
/// # Examples
|
|
680
|
+
///
|
|
681
|
+
/// ```
|
|
682
|
+
/// # futures::executor::block_on(async {
|
|
683
|
+
/// use futures::stream::{self, StreamExt};
|
|
684
|
+
///
|
|
685
|
+
/// let number_stream = stream::iter(0..6);
|
|
686
|
+
/// let sum = number_stream.fold(0, |acc, x| async move { acc + x });
|
|
687
|
+
/// assert_eq!(sum.await, 15);
|
|
688
|
+
/// # });
|
|
689
|
+
/// ```
|
|
690
|
+
fn fold<T, Fut, F>(self, init: T, f: F) -> Fold<Self, Fut, T, F>
|
|
691
|
+
where
|
|
692
|
+
F: FnMut(T, Self::Item) -> Fut,
|
|
693
|
+
Fut: Future<Output = T>,
|
|
694
|
+
Self: Sized,
|
|
695
|
+
{
|
|
696
|
+
assert_future::<T, _>(Fold::new(self, f, init))
|
|
697
|
+
}
|
|
698
|
+
|
|
699
|
+
/// Execute predicate over asynchronous stream, and return `true` if any element in stream satisfied a predicate.
|
|
700
|
+
///
|
|
701
|
+
/// # Examples
|
|
702
|
+
///
|
|
703
|
+
/// ```
|
|
704
|
+
/// # futures::executor::block_on(async {
|
|
705
|
+
/// use futures::stream::{self, StreamExt};
|
|
706
|
+
///
|
|
707
|
+
/// let number_stream = stream::iter(0..10);
|
|
708
|
+
/// let contain_three = number_stream.any(|i| async move { i == 3 });
|
|
709
|
+
/// assert_eq!(contain_three.await, true);
|
|
710
|
+
/// # });
|
|
711
|
+
/// ```
|
|
712
|
+
fn any<Fut, F>(self, f: F) -> Any<Self, Fut, F>
|
|
713
|
+
where
|
|
714
|
+
F: FnMut(Self::Item) -> Fut,
|
|
715
|
+
Fut: Future<Output = bool>,
|
|
716
|
+
Self: Sized,
|
|
717
|
+
{
|
|
718
|
+
assert_future::<bool, _>(Any::new(self, f))
|
|
719
|
+
}
|
|
720
|
+
|
|
721
|
+
/// Execute predicate over asynchronous stream, and return `true` if all element in stream satisfied a predicate.
|
|
722
|
+
///
|
|
723
|
+
/// # Examples
|
|
724
|
+
///
|
|
725
|
+
/// ```
|
|
726
|
+
/// # futures::executor::block_on(async {
|
|
727
|
+
/// use futures::stream::{self, StreamExt};
|
|
728
|
+
///
|
|
729
|
+
/// let number_stream = stream::iter(0..10);
|
|
730
|
+
/// let less_then_twenty = number_stream.all(|i| async move { i < 20 });
|
|
731
|
+
/// assert_eq!(less_then_twenty.await, true);
|
|
732
|
+
/// # });
|
|
733
|
+
/// ```
|
|
734
|
+
fn all<Fut, F>(self, f: F) -> All<Self, Fut, F>
|
|
735
|
+
where
|
|
736
|
+
F: FnMut(Self::Item) -> Fut,
|
|
737
|
+
Fut: Future<Output = bool>,
|
|
738
|
+
Self: Sized,
|
|
739
|
+
{
|
|
740
|
+
assert_future::<bool, _>(All::new(self, f))
|
|
741
|
+
}
|
|
742
|
+
|
|
743
|
+
/// Flattens a stream of streams into just one continuous stream.
|
|
744
|
+
///
|
|
745
|
+
/// # Examples
|
|
746
|
+
///
|
|
747
|
+
/// ```
|
|
748
|
+
/// # futures::executor::block_on(async {
|
|
749
|
+
/// use futures::channel::mpsc;
|
|
750
|
+
/// use futures::stream::StreamExt;
|
|
751
|
+
/// use std::thread;
|
|
752
|
+
///
|
|
753
|
+
/// let (tx1, rx1) = mpsc::unbounded();
|
|
754
|
+
/// let (tx2, rx2) = mpsc::unbounded();
|
|
755
|
+
/// let (tx3, rx3) = mpsc::unbounded();
|
|
756
|
+
///
|
|
757
|
+
/// thread::spawn(move || {
|
|
758
|
+
/// tx1.unbounded_send(1).unwrap();
|
|
759
|
+
/// tx1.unbounded_send(2).unwrap();
|
|
760
|
+
/// });
|
|
761
|
+
/// thread::spawn(move || {
|
|
762
|
+
/// tx2.unbounded_send(3).unwrap();
|
|
763
|
+
/// tx2.unbounded_send(4).unwrap();
|
|
764
|
+
/// });
|
|
765
|
+
/// thread::spawn(move || {
|
|
766
|
+
/// tx3.unbounded_send(rx1).unwrap();
|
|
767
|
+
/// tx3.unbounded_send(rx2).unwrap();
|
|
768
|
+
/// });
|
|
769
|
+
///
|
|
770
|
+
/// let output = rx3.flatten().collect::<Vec<i32>>().await;
|
|
771
|
+
/// assert_eq!(output, vec![1, 2, 3, 4]);
|
|
772
|
+
/// # });
|
|
773
|
+
/// ```
|
|
774
|
+
fn flatten(self) -> Flatten<Self>
|
|
775
|
+
where
|
|
776
|
+
Self::Item: Stream,
|
|
777
|
+
Self: Sized,
|
|
778
|
+
{
|
|
779
|
+
assert_stream::<<Self::Item as Stream>::Item, _>(Flatten::new(self))
|
|
780
|
+
}
|
|
781
|
+
|
|
782
|
+
/// Flattens a stream of streams into just one continuous stream. Polls
|
|
783
|
+
/// inner streams produced by the base stream concurrently.
|
|
784
|
+
///
|
|
785
|
+
/// The only argument is an optional limit on the number of concurrently
|
|
786
|
+
/// polled streams. If this limit is not `None`, no more than `limit` streams
|
|
787
|
+
/// will be polled at the same time. The `limit` argument is of type
|
|
788
|
+
/// `Into<Option<usize>>`, and so can be provided as either `None`,
|
|
789
|
+
/// `Some(10)`, or just `10`. Note: a limit of zero is interpreted as
|
|
790
|
+
/// no limit at all, and will have the same result as passing in `None`.
|
|
791
|
+
///
|
|
792
|
+
/// # Examples
|
|
793
|
+
///
|
|
794
|
+
/// ```
|
|
795
|
+
/// # futures::executor::block_on(async {
|
|
796
|
+
/// use futures::channel::mpsc;
|
|
797
|
+
/// use futures::stream::StreamExt;
|
|
798
|
+
/// use std::thread;
|
|
799
|
+
///
|
|
800
|
+
/// let (tx1, rx1) = mpsc::unbounded();
|
|
801
|
+
/// let (tx2, rx2) = mpsc::unbounded();
|
|
802
|
+
/// let (tx3, rx3) = mpsc::unbounded();
|
|
803
|
+
///
|
|
804
|
+
/// thread::spawn(move || {
|
|
805
|
+
/// tx1.unbounded_send(1).unwrap();
|
|
806
|
+
/// tx1.unbounded_send(2).unwrap();
|
|
807
|
+
/// });
|
|
808
|
+
/// thread::spawn(move || {
|
|
809
|
+
/// tx2.unbounded_send(3).unwrap();
|
|
810
|
+
/// tx2.unbounded_send(4).unwrap();
|
|
811
|
+
/// });
|
|
812
|
+
/// thread::spawn(move || {
|
|
813
|
+
/// tx3.unbounded_send(rx1).unwrap();
|
|
814
|
+
/// tx3.unbounded_send(rx2).unwrap();
|
|
815
|
+
/// });
|
|
816
|
+
///
|
|
817
|
+
/// let mut output = rx3.flatten_unordered(None).collect::<Vec<i32>>().await;
|
|
818
|
+
/// output.sort();
|
|
819
|
+
///
|
|
820
|
+
/// assert_eq!(output, vec![1, 2, 3, 4]);
|
|
821
|
+
/// # });
|
|
822
|
+
/// ```
|
|
823
|
+
#[cfg_attr(target_os = "none", cfg(target_has_atomic = "ptr"))]
|
|
824
|
+
#[cfg(feature = "alloc")]
|
|
825
|
+
fn flatten_unordered(self, limit: impl Into<Option<usize>>) -> FlattenUnordered<Self>
|
|
826
|
+
where
|
|
827
|
+
Self::Item: Stream + Unpin,
|
|
828
|
+
Self: Sized,
|
|
829
|
+
{
|
|
830
|
+
assert_stream::<<Self::Item as Stream>::Item, _>(FlattenUnordered::new(self, limit.into()))
|
|
831
|
+
}
|
|
832
|
+
|
|
833
|
+
/// Maps a stream like [`StreamExt::map`] but flattens nested `Stream`s.
|
|
834
|
+
///
|
|
835
|
+
/// [`StreamExt::map`] is very useful, but if it produces a `Stream` instead,
|
|
836
|
+
/// you would have to chain combinators like `.map(f).flatten()` while this
|
|
837
|
+
/// combinator provides ability to write `.flat_map(f)` instead of chaining.
|
|
838
|
+
///
|
|
839
|
+
/// The provided closure which produces inner streams is executed over all elements
|
|
840
|
+
/// of stream as last inner stream is terminated and next stream item is available.
|
|
841
|
+
///
|
|
842
|
+
/// Note that this function consumes the stream passed into it and returns a
|
|
843
|
+
/// wrapped version of it, similar to the existing `flat_map` methods in the
|
|
844
|
+
/// standard library.
|
|
845
|
+
///
|
|
846
|
+
/// # Examples
|
|
847
|
+
///
|
|
848
|
+
/// ```
|
|
849
|
+
/// # futures::executor::block_on(async {
|
|
850
|
+
/// use futures::stream::{self, StreamExt};
|
|
851
|
+
///
|
|
852
|
+
/// let stream = stream::iter(1..=3);
|
|
853
|
+
/// let stream = stream.flat_map(|x| stream::iter(vec![x + 3; x]));
|
|
854
|
+
///
|
|
855
|
+
/// assert_eq!(vec![4, 5, 5, 6, 6, 6], stream.collect::<Vec<_>>().await);
|
|
856
|
+
/// # });
|
|
857
|
+
/// ```
|
|
858
|
+
fn flat_map<U, F>(self, f: F) -> FlatMap<Self, U, F>
|
|
859
|
+
where
|
|
860
|
+
F: FnMut(Self::Item) -> U,
|
|
861
|
+
U: Stream,
|
|
862
|
+
Self: Sized,
|
|
863
|
+
{
|
|
864
|
+
assert_stream::<U::Item, _>(FlatMap::new(self, f))
|
|
865
|
+
}
|
|
866
|
+
|
|
867
|
+
/// Maps a stream like [`StreamExt::map`] but flattens nested `Stream`s
|
|
868
|
+
/// and polls them concurrently, yielding items in any order, as they made
|
|
869
|
+
/// available.
|
|
870
|
+
///
|
|
871
|
+
/// [`StreamExt::map`] is very useful, but if it produces `Stream`s
|
|
872
|
+
/// instead, and you need to poll all of them concurrently, you would
|
|
873
|
+
/// have to use something like `for_each_concurrent` and merge values
|
|
874
|
+
/// by hand. This combinator provides ability to collect all values
|
|
875
|
+
/// from concurrently polled streams into one stream.
|
|
876
|
+
///
|
|
877
|
+
/// The first argument is an optional limit on the number of concurrently
|
|
878
|
+
/// polled streams. If this limit is not `None`, no more than `limit` streams
|
|
879
|
+
/// will be polled at the same time. The `limit` argument is of type
|
|
880
|
+
/// `Into<Option<usize>>`, and so can be provided as either `None`,
|
|
881
|
+
/// `Some(10)`, or just `10`. Note: a limit of zero is interpreted as
|
|
882
|
+
/// no limit at all, and will have the same result as passing in `None`.
|
|
883
|
+
///
|
|
884
|
+
/// The provided closure which produces inner streams is executed over
|
|
885
|
+
/// all elements of stream as next stream item is available and limit
|
|
886
|
+
/// of concurrently processed streams isn't exceeded.
|
|
887
|
+
///
|
|
888
|
+
/// Note that this function consumes the stream passed into it and
|
|
889
|
+
/// returns a wrapped version of it.
|
|
890
|
+
///
|
|
891
|
+
/// # Examples
|
|
892
|
+
///
|
|
893
|
+
/// ```
|
|
894
|
+
/// # futures::executor::block_on(async {
|
|
895
|
+
/// use futures::stream::{self, StreamExt};
|
|
896
|
+
///
|
|
897
|
+
/// let stream = stream::iter(1..5);
|
|
898
|
+
/// let stream = stream.flat_map_unordered(1, |x| stream::iter(vec![x; x]));
|
|
899
|
+
/// let mut values = stream.collect::<Vec<_>>().await;
|
|
900
|
+
/// values.sort();
|
|
901
|
+
///
|
|
902
|
+
/// assert_eq!(vec![1usize, 2, 2, 3, 3, 3, 4, 4, 4, 4], values);
|
|
903
|
+
/// # });
|
|
904
|
+
/// ```
|
|
905
|
+
#[cfg_attr(target_os = "none", cfg(target_has_atomic = "ptr"))]
|
|
906
|
+
#[cfg(feature = "alloc")]
|
|
907
|
+
fn flat_map_unordered<U, F>(
|
|
908
|
+
self,
|
|
909
|
+
limit: impl Into<Option<usize>>,
|
|
910
|
+
f: F,
|
|
911
|
+
) -> FlatMapUnordered<Self, U, F>
|
|
912
|
+
where
|
|
913
|
+
U: Stream + Unpin,
|
|
914
|
+
F: FnMut(Self::Item) -> U,
|
|
915
|
+
Self: Sized,
|
|
916
|
+
{
|
|
917
|
+
assert_stream::<U::Item, _>(FlatMapUnordered::new(self, limit.into(), f))
|
|
918
|
+
}
|
|
919
|
+
|
|
920
|
+
/// Combinator similar to [`StreamExt::fold`] that holds internal state
|
|
921
|
+
/// and produces a new stream.
|
|
922
|
+
///
|
|
923
|
+
/// Accepts initial state and closure which will be applied to each element
|
|
924
|
+
/// of the stream until provided closure returns `None`. Once `None` is
|
|
925
|
+
/// returned, stream will be terminated.
|
|
926
|
+
///
|
|
927
|
+
/// # Examples
|
|
928
|
+
///
|
|
929
|
+
/// ```
|
|
930
|
+
/// # futures::executor::block_on(async {
|
|
931
|
+
/// use futures::future;
|
|
932
|
+
/// use futures::stream::{self, StreamExt};
|
|
933
|
+
///
|
|
934
|
+
/// let stream = stream::iter(1..=10);
|
|
935
|
+
///
|
|
936
|
+
/// let stream = stream.scan(0, |state, x| {
|
|
937
|
+
/// *state += x;
|
|
938
|
+
/// future::ready(if *state < 10 { Some(x) } else { None })
|
|
939
|
+
/// });
|
|
940
|
+
///
|
|
941
|
+
/// assert_eq!(vec![1, 2, 3], stream.collect::<Vec<_>>().await);
|
|
942
|
+
/// # });
|
|
943
|
+
/// ```
|
|
944
|
+
fn scan<S, B, Fut, F>(self, initial_state: S, f: F) -> Scan<Self, S, Fut, F>
|
|
945
|
+
where
|
|
946
|
+
F: FnMut(&mut S, Self::Item) -> Fut,
|
|
947
|
+
Fut: Future<Output = Option<B>>,
|
|
948
|
+
Self: Sized,
|
|
949
|
+
{
|
|
950
|
+
assert_stream::<B, _>(Scan::new(self, initial_state, f))
|
|
951
|
+
}
|
|
952
|
+
|
|
953
|
+
/// Skip elements on this stream while the provided asynchronous predicate
|
|
954
|
+
/// resolves to `true`.
|
|
955
|
+
///
|
|
956
|
+
/// This function, like `Iterator::skip_while`, will skip elements on the
|
|
957
|
+
/// stream until the predicate `f` resolves to `false`. Once one element
|
|
958
|
+
/// returns `false`, all future elements will be returned from the underlying
|
|
959
|
+
/// stream.
|
|
960
|
+
///
|
|
961
|
+
/// # Examples
|
|
962
|
+
///
|
|
963
|
+
/// ```
|
|
964
|
+
/// # futures::executor::block_on(async {
|
|
965
|
+
/// use futures::future;
|
|
966
|
+
/// use futures::stream::{self, StreamExt};
|
|
967
|
+
///
|
|
968
|
+
/// let stream = stream::iter(1..=10);
|
|
969
|
+
///
|
|
970
|
+
/// let stream = stream.skip_while(|x| future::ready(*x <= 5));
|
|
971
|
+
///
|
|
972
|
+
/// assert_eq!(vec![6, 7, 8, 9, 10], stream.collect::<Vec<_>>().await);
|
|
973
|
+
/// # });
|
|
974
|
+
/// ```
|
|
975
|
+
fn skip_while<Fut, F>(self, f: F) -> SkipWhile<Self, Fut, F>
|
|
976
|
+
where
|
|
977
|
+
F: FnMut(&Self::Item) -> Fut,
|
|
978
|
+
Fut: Future<Output = bool>,
|
|
979
|
+
Self: Sized,
|
|
980
|
+
{
|
|
981
|
+
assert_stream::<Self::Item, _>(SkipWhile::new(self, f))
|
|
982
|
+
}
|
|
983
|
+
|
|
984
|
+
/// Take elements from this stream while the provided asynchronous predicate
|
|
985
|
+
/// resolves to `true`.
|
|
986
|
+
///
|
|
987
|
+
/// This function, like `Iterator::take_while`, will take elements from the
|
|
988
|
+
/// stream until the predicate `f` resolves to `false`. Once one element
|
|
989
|
+
/// returns `false`, it will always return that the stream is done.
|
|
990
|
+
///
|
|
991
|
+
/// # Examples
|
|
992
|
+
///
|
|
993
|
+
/// ```
|
|
994
|
+
/// # futures::executor::block_on(async {
|
|
995
|
+
/// use futures::future;
|
|
996
|
+
/// use futures::stream::{self, StreamExt};
|
|
997
|
+
///
|
|
998
|
+
/// let stream = stream::iter(1..=10);
|
|
999
|
+
///
|
|
1000
|
+
/// let stream = stream.take_while(|x| future::ready(*x <= 5));
|
|
1001
|
+
///
|
|
1002
|
+
/// assert_eq!(vec![1, 2, 3, 4, 5], stream.collect::<Vec<_>>().await);
|
|
1003
|
+
/// # });
|
|
1004
|
+
/// ```
|
|
1005
|
+
fn take_while<Fut, F>(self, f: F) -> TakeWhile<Self, Fut, F>
|
|
1006
|
+
where
|
|
1007
|
+
F: FnMut(&Self::Item) -> Fut,
|
|
1008
|
+
Fut: Future<Output = bool>,
|
|
1009
|
+
Self: Sized,
|
|
1010
|
+
{
|
|
1011
|
+
assert_stream::<Self::Item, _>(TakeWhile::new(self, f))
|
|
1012
|
+
}
|
|
1013
|
+
|
|
1014
|
+
/// Take elements from this stream until the provided future resolves.
|
|
1015
|
+
///
|
|
1016
|
+
/// This function will take elements from the stream until the provided
|
|
1017
|
+
/// stopping future `fut` resolves. Once the `fut` future becomes ready,
|
|
1018
|
+
/// this stream combinator will always return that the stream is done.
|
|
1019
|
+
///
|
|
1020
|
+
/// The stopping future may return any type. Once the stream is stopped
|
|
1021
|
+
/// the result of the stopping future may be accessed with `TakeUntil::take_result()`.
|
|
1022
|
+
/// The stream may also be resumed with `TakeUntil::take_future()`.
|
|
1023
|
+
/// See the documentation of [`TakeUntil`] for more information.
|
|
1024
|
+
///
|
|
1025
|
+
/// # Examples
|
|
1026
|
+
///
|
|
1027
|
+
/// ```
|
|
1028
|
+
/// # futures::executor::block_on(async {
|
|
1029
|
+
/// use futures::future;
|
|
1030
|
+
/// use futures::stream::{self, StreamExt};
|
|
1031
|
+
/// use futures::task::Poll;
|
|
1032
|
+
///
|
|
1033
|
+
/// let stream = stream::iter(1..=10);
|
|
1034
|
+
///
|
|
1035
|
+
/// let mut i = 0;
|
|
1036
|
+
/// let stop_fut = future::poll_fn(|_cx| {
|
|
1037
|
+
/// i += 1;
|
|
1038
|
+
/// if i <= 5 {
|
|
1039
|
+
/// Poll::Pending
|
|
1040
|
+
/// } else {
|
|
1041
|
+
/// Poll::Ready(())
|
|
1042
|
+
/// }
|
|
1043
|
+
/// });
|
|
1044
|
+
///
|
|
1045
|
+
/// let stream = stream.take_until(stop_fut);
|
|
1046
|
+
///
|
|
1047
|
+
/// assert_eq!(vec![1, 2, 3, 4, 5], stream.collect::<Vec<_>>().await);
|
|
1048
|
+
/// # });
|
|
1049
|
+
/// ```
|
|
1050
|
+
fn take_until<Fut>(self, fut: Fut) -> TakeUntil<Self, Fut>
|
|
1051
|
+
where
|
|
1052
|
+
Fut: Future,
|
|
1053
|
+
Self: Sized,
|
|
1054
|
+
{
|
|
1055
|
+
assert_stream::<Self::Item, _>(TakeUntil::new(self, fut))
|
|
1056
|
+
}
|
|
1057
|
+
|
|
1058
|
+
/// Runs this stream to completion, executing the provided asynchronous
|
|
1059
|
+
/// closure for each element on the stream.
|
|
1060
|
+
///
|
|
1061
|
+
/// The closure provided will be called for each item this stream produces,
|
|
1062
|
+
/// yielding a future. That future will then be executed to completion
|
|
1063
|
+
/// before moving on to the next item.
|
|
1064
|
+
///
|
|
1065
|
+
/// The returned value is a `Future` where the `Output` type is `()`; it is
|
|
1066
|
+
/// executed entirely for its side effects.
|
|
1067
|
+
///
|
|
1068
|
+
/// To process each item in the stream and produce another stream instead
|
|
1069
|
+
/// of a single future, use `then` instead.
|
|
1070
|
+
///
|
|
1071
|
+
/// # Examples
|
|
1072
|
+
///
|
|
1073
|
+
/// ```
|
|
1074
|
+
/// # futures::executor::block_on(async {
|
|
1075
|
+
/// use futures::future;
|
|
1076
|
+
/// use futures::stream::{self, StreamExt};
|
|
1077
|
+
///
|
|
1078
|
+
/// let mut x = 0;
|
|
1079
|
+
///
|
|
1080
|
+
/// {
|
|
1081
|
+
/// let fut = stream::repeat(1).take(3).for_each(|item| {
|
|
1082
|
+
/// x += item;
|
|
1083
|
+
/// future::ready(())
|
|
1084
|
+
/// });
|
|
1085
|
+
/// fut.await;
|
|
1086
|
+
/// }
|
|
1087
|
+
///
|
|
1088
|
+
/// assert_eq!(x, 3);
|
|
1089
|
+
/// # });
|
|
1090
|
+
/// ```
|
|
1091
|
+
fn for_each<Fut, F>(self, f: F) -> ForEach<Self, Fut, F>
|
|
1092
|
+
where
|
|
1093
|
+
F: FnMut(Self::Item) -> Fut,
|
|
1094
|
+
Fut: Future<Output = ()>,
|
|
1095
|
+
Self: Sized,
|
|
1096
|
+
{
|
|
1097
|
+
assert_future::<(), _>(ForEach::new(self, f))
|
|
1098
|
+
}
|
|
1099
|
+
|
|
1100
|
+
/// Runs this stream to completion, executing the provided asynchronous
|
|
1101
|
+
/// closure for each element on the stream concurrently as elements become
|
|
1102
|
+
/// available.
|
|
1103
|
+
///
|
|
1104
|
+
/// This is similar to [`StreamExt::for_each`], but the futures
|
|
1105
|
+
/// produced by the closure are run concurrently (but not in parallel--
|
|
1106
|
+
/// this combinator does not introduce any threads).
|
|
1107
|
+
///
|
|
1108
|
+
/// The closure provided will be called for each item this stream produces,
|
|
1109
|
+
/// yielding a future. That future will then be executed to completion
|
|
1110
|
+
/// concurrently with the other futures produced by the closure.
|
|
1111
|
+
///
|
|
1112
|
+
/// The first argument is an optional limit on the number of concurrent
|
|
1113
|
+
/// futures. If this limit is not `None`, no more than `limit` futures
|
|
1114
|
+
/// will be run concurrently. The `limit` argument is of type
|
|
1115
|
+
/// `Into<Option<usize>>`, and so can be provided as either `None`,
|
|
1116
|
+
/// `Some(10)`, or just `10`. Note: a limit of zero is interpreted as
|
|
1117
|
+
/// no limit at all, and will have the same result as passing in `None`.
|
|
1118
|
+
///
|
|
1119
|
+
/// This method is only available when the `std` or `alloc` feature of this
|
|
1120
|
+
/// library is activated, and it is activated by default.
|
|
1121
|
+
///
|
|
1122
|
+
/// # Examples
|
|
1123
|
+
///
|
|
1124
|
+
/// ```
|
|
1125
|
+
/// # futures::executor::block_on(async {
|
|
1126
|
+
/// use futures::channel::oneshot;
|
|
1127
|
+
/// use futures::stream::{self, StreamExt};
|
|
1128
|
+
///
|
|
1129
|
+
/// let (tx1, rx1) = oneshot::channel();
|
|
1130
|
+
/// let (tx2, rx2) = oneshot::channel();
|
|
1131
|
+
/// let (tx3, rx3) = oneshot::channel();
|
|
1132
|
+
///
|
|
1133
|
+
/// let fut = stream::iter(vec![rx1, rx2, rx3]).for_each_concurrent(
|
|
1134
|
+
/// /* limit */ 2,
|
|
1135
|
+
/// |rx| async move {
|
|
1136
|
+
/// rx.await.unwrap();
|
|
1137
|
+
/// }
|
|
1138
|
+
/// );
|
|
1139
|
+
/// tx1.send(()).unwrap();
|
|
1140
|
+
/// tx2.send(()).unwrap();
|
|
1141
|
+
/// tx3.send(()).unwrap();
|
|
1142
|
+
/// fut.await;
|
|
1143
|
+
/// # })
|
|
1144
|
+
/// ```
|
|
1145
|
+
#[cfg_attr(target_os = "none", cfg(target_has_atomic = "ptr"))]
|
|
1146
|
+
#[cfg(feature = "alloc")]
|
|
1147
|
+
fn for_each_concurrent<Fut, F>(
|
|
1148
|
+
self,
|
|
1149
|
+
limit: impl Into<Option<usize>>,
|
|
1150
|
+
f: F,
|
|
1151
|
+
) -> ForEachConcurrent<Self, Fut, F>
|
|
1152
|
+
where
|
|
1153
|
+
F: FnMut(Self::Item) -> Fut,
|
|
1154
|
+
Fut: Future<Output = ()>,
|
|
1155
|
+
Self: Sized,
|
|
1156
|
+
{
|
|
1157
|
+
assert_future::<(), _>(ForEachConcurrent::new(self, limit.into(), f))
|
|
1158
|
+
}
|
|
1159
|
+
|
|
1160
|
+
/// Creates a new stream of at most `n` items of the underlying stream.
|
|
1161
|
+
///
|
|
1162
|
+
/// Once `n` items have been yielded from this stream then it will always
|
|
1163
|
+
/// return that the stream is done.
|
|
1164
|
+
///
|
|
1165
|
+
/// # Examples
|
|
1166
|
+
///
|
|
1167
|
+
/// ```
|
|
1168
|
+
/// # futures::executor::block_on(async {
|
|
1169
|
+
/// use futures::stream::{self, StreamExt};
|
|
1170
|
+
///
|
|
1171
|
+
/// let stream = stream::iter(1..=10).take(3);
|
|
1172
|
+
///
|
|
1173
|
+
/// assert_eq!(vec![1, 2, 3], stream.collect::<Vec<_>>().await);
|
|
1174
|
+
/// # });
|
|
1175
|
+
/// ```
|
|
1176
|
+
fn take(self, n: usize) -> Take<Self>
|
|
1177
|
+
where
|
|
1178
|
+
Self: Sized,
|
|
1179
|
+
{
|
|
1180
|
+
assert_stream::<Self::Item, _>(Take::new(self, n))
|
|
1181
|
+
}
|
|
1182
|
+
|
|
1183
|
+
/// Creates a new stream which skips `n` items of the underlying stream.
|
|
1184
|
+
///
|
|
1185
|
+
/// Once `n` items have been skipped from this stream then it will always
|
|
1186
|
+
/// return the remaining items on this stream.
|
|
1187
|
+
///
|
|
1188
|
+
/// # Examples
|
|
1189
|
+
///
|
|
1190
|
+
/// ```
|
|
1191
|
+
/// # futures::executor::block_on(async {
|
|
1192
|
+
/// use futures::stream::{self, StreamExt};
|
|
1193
|
+
///
|
|
1194
|
+
/// let stream = stream::iter(1..=10).skip(5);
|
|
1195
|
+
///
|
|
1196
|
+
/// assert_eq!(vec![6, 7, 8, 9, 10], stream.collect::<Vec<_>>().await);
|
|
1197
|
+
/// # });
|
|
1198
|
+
/// ```
|
|
1199
|
+
fn skip(self, n: usize) -> Skip<Self>
|
|
1200
|
+
where
|
|
1201
|
+
Self: Sized,
|
|
1202
|
+
{
|
|
1203
|
+
assert_stream::<Self::Item, _>(Skip::new(self, n))
|
|
1204
|
+
}
|
|
1205
|
+
|
|
1206
|
+
/// Fuse a stream such that [`poll_next`](Stream::poll_next) will never
|
|
1207
|
+
/// again be called once it has finished. This method can be used to turn
|
|
1208
|
+
/// any `Stream` into a `FusedStream`.
|
|
1209
|
+
///
|
|
1210
|
+
/// Normally, once a stream has returned [`None`] from
|
|
1211
|
+
/// [`poll_next`](Stream::poll_next) any further calls could exhibit bad
|
|
1212
|
+
/// behavior such as block forever, panic, never return, etc. If it is known
|
|
1213
|
+
/// that [`poll_next`](Stream::poll_next) may be called after stream
|
|
1214
|
+
/// has already finished, then this method can be used to ensure that it has
|
|
1215
|
+
/// defined semantics.
|
|
1216
|
+
///
|
|
1217
|
+
/// The [`poll_next`](Stream::poll_next) method of a `fuse`d stream
|
|
1218
|
+
/// is guaranteed to return [`None`] after the underlying stream has
|
|
1219
|
+
/// finished.
|
|
1220
|
+
///
|
|
1221
|
+
/// # Examples
|
|
1222
|
+
///
|
|
1223
|
+
/// ```
|
|
1224
|
+
/// use futures::executor::block_on_stream;
|
|
1225
|
+
/// use futures::stream::{self, StreamExt};
|
|
1226
|
+
/// use futures::task::Poll;
|
|
1227
|
+
///
|
|
1228
|
+
/// let mut x = 0;
|
|
1229
|
+
/// let stream = stream::poll_fn(|_| {
|
|
1230
|
+
/// x += 1;
|
|
1231
|
+
/// match x {
|
|
1232
|
+
/// 0..=2 => Poll::Ready(Some(x)),
|
|
1233
|
+
/// 3 => Poll::Ready(None),
|
|
1234
|
+
/// _ => panic!("should not happen")
|
|
1235
|
+
/// }
|
|
1236
|
+
/// }).fuse();
|
|
1237
|
+
///
|
|
1238
|
+
/// let mut iter = block_on_stream(stream);
|
|
1239
|
+
/// assert_eq!(Some(1), iter.next());
|
|
1240
|
+
/// assert_eq!(Some(2), iter.next());
|
|
1241
|
+
/// assert_eq!(None, iter.next());
|
|
1242
|
+
/// assert_eq!(None, iter.next());
|
|
1243
|
+
/// // ...
|
|
1244
|
+
/// ```
|
|
1245
|
+
fn fuse(self) -> Fuse<Self>
|
|
1246
|
+
where
|
|
1247
|
+
Self: Sized,
|
|
1248
|
+
{
|
|
1249
|
+
assert_stream::<Self::Item, _>(Fuse::new(self))
|
|
1250
|
+
}
|
|
1251
|
+
|
|
1252
|
+
/// Borrows a stream, rather than consuming it.
|
|
1253
|
+
///
|
|
1254
|
+
/// This is useful to allow applying stream adaptors while still retaining
|
|
1255
|
+
/// ownership of the original stream.
|
|
1256
|
+
///
|
|
1257
|
+
/// # Examples
|
|
1258
|
+
///
|
|
1259
|
+
/// ```
|
|
1260
|
+
/// # futures::executor::block_on(async {
|
|
1261
|
+
/// use futures::stream::{self, StreamExt};
|
|
1262
|
+
///
|
|
1263
|
+
/// let mut stream = stream::iter(1..5);
|
|
1264
|
+
///
|
|
1265
|
+
/// let sum = stream.by_ref()
|
|
1266
|
+
/// .take(2)
|
|
1267
|
+
/// .fold(0, |a, b| async move { a + b })
|
|
1268
|
+
/// .await;
|
|
1269
|
+
/// assert_eq!(sum, 3);
|
|
1270
|
+
///
|
|
1271
|
+
/// // You can use the stream again
|
|
1272
|
+
/// let sum = stream.take(2)
|
|
1273
|
+
/// .fold(0, |a, b| async move { a + b })
|
|
1274
|
+
/// .await;
|
|
1275
|
+
/// assert_eq!(sum, 7);
|
|
1276
|
+
/// # });
|
|
1277
|
+
/// ```
|
|
1278
|
+
fn by_ref(&mut self) -> &mut Self {
|
|
1279
|
+
self
|
|
1280
|
+
}
|
|
1281
|
+
|
|
1282
|
+
/// Catches unwinding panics while polling the stream.
|
|
1283
|
+
///
|
|
1284
|
+
/// Caught panic (if any) will be the last element of the resulting stream.
|
|
1285
|
+
///
|
|
1286
|
+
/// In general, panics within a stream can propagate all the way out to the
|
|
1287
|
+
/// task level. This combinator makes it possible to halt unwinding within
|
|
1288
|
+
/// the stream itself. It's most commonly used within task executors. This
|
|
1289
|
+
/// method should not be used for error handling.
|
|
1290
|
+
///
|
|
1291
|
+
/// Note that this method requires the `UnwindSafe` bound from the standard
|
|
1292
|
+
/// library. This isn't always applied automatically, and the standard
|
|
1293
|
+
/// library provides an `AssertUnwindSafe` wrapper type to apply it
|
|
1294
|
+
/// after-the fact. To assist using this method, the [`Stream`] trait is
|
|
1295
|
+
/// also implemented for `AssertUnwindSafe<St>` where `St` implements
|
|
1296
|
+
/// [`Stream`].
|
|
1297
|
+
///
|
|
1298
|
+
/// This method is only available when the `std` feature of this
|
|
1299
|
+
/// library is activated, and it is activated by default.
|
|
1300
|
+
///
|
|
1301
|
+
/// # Examples
|
|
1302
|
+
///
|
|
1303
|
+
/// ```
|
|
1304
|
+
/// # futures::executor::block_on(async {
|
|
1305
|
+
/// use futures::stream::{self, StreamExt};
|
|
1306
|
+
///
|
|
1307
|
+
/// let stream = stream::iter(vec![Some(10), None, Some(11)]);
|
|
1308
|
+
/// // Panic on second element
|
|
1309
|
+
/// let stream_panicking = stream.map(|o| o.unwrap());
|
|
1310
|
+
/// // Collect all the results
|
|
1311
|
+
/// let stream = stream_panicking.catch_unwind();
|
|
1312
|
+
///
|
|
1313
|
+
/// let results: Vec<Result<i32, _>> = stream.collect().await;
|
|
1314
|
+
/// match results[0] {
|
|
1315
|
+
/// Ok(10) => {}
|
|
1316
|
+
/// _ => panic!("unexpected result!"),
|
|
1317
|
+
/// }
|
|
1318
|
+
/// assert!(results[1].is_err());
|
|
1319
|
+
/// assert_eq!(results.len(), 2);
|
|
1320
|
+
/// # });
|
|
1321
|
+
/// ```
|
|
1322
|
+
#[cfg(feature = "std")]
|
|
1323
|
+
fn catch_unwind(self) -> CatchUnwind<Self>
|
|
1324
|
+
where
|
|
1325
|
+
Self: Sized + std::panic::UnwindSafe,
|
|
1326
|
+
{
|
|
1327
|
+
assert_stream(CatchUnwind::new(self))
|
|
1328
|
+
}
|
|
1329
|
+
|
|
1330
|
+
/// Wrap the stream in a Box, pinning it.
|
|
1331
|
+
///
|
|
1332
|
+
/// This method is only available when the `std` or `alloc` feature of this
|
|
1333
|
+
/// library is activated, and it is activated by default.
|
|
1334
|
+
#[cfg(feature = "alloc")]
|
|
1335
|
+
fn boxed<'a>(self) -> BoxStream<'a, Self::Item>
|
|
1336
|
+
where
|
|
1337
|
+
Self: Sized + Send + 'a,
|
|
1338
|
+
{
|
|
1339
|
+
assert_stream::<Self::Item, _>(Box::pin(self))
|
|
1340
|
+
}
|
|
1341
|
+
|
|
1342
|
+
/// Wrap the stream in a Box, pinning it.
|
|
1343
|
+
///
|
|
1344
|
+
/// Similar to `boxed`, but without the `Send` requirement.
|
|
1345
|
+
///
|
|
1346
|
+
/// This method is only available when the `std` or `alloc` feature of this
|
|
1347
|
+
/// library is activated, and it is activated by default.
|
|
1348
|
+
#[cfg(feature = "alloc")]
|
|
1349
|
+
fn boxed_local<'a>(self) -> LocalBoxStream<'a, Self::Item>
|
|
1350
|
+
where
|
|
1351
|
+
Self: Sized + 'a,
|
|
1352
|
+
{
|
|
1353
|
+
assert_stream::<Self::Item, _>(Box::pin(self))
|
|
1354
|
+
}
|
|
1355
|
+
|
|
1356
|
+
/// An adaptor for creating a buffered list of pending futures.
|
|
1357
|
+
///
|
|
1358
|
+
/// If this stream's item can be converted into a future, then this adaptor
|
|
1359
|
+
/// will buffer up to at most `n` futures and then return the outputs in the
|
|
1360
|
+
/// same order as the underlying stream. No more than `n` futures will be
|
|
1361
|
+
/// buffered at any point in time, and less than `n` may also be buffered
|
|
1362
|
+
/// depending on the state of each future.
|
|
1363
|
+
///
|
|
1364
|
+
/// The returned stream will be a stream of each future's output.
|
|
1365
|
+
///
|
|
1366
|
+
/// This method is only available when the `std` or `alloc` feature of this
|
|
1367
|
+
/// library is activated, and it is activated by default.
|
|
1368
|
+
#[cfg_attr(target_os = "none", cfg(target_has_atomic = "ptr"))]
|
|
1369
|
+
#[cfg(feature = "alloc")]
|
|
1370
|
+
fn buffered(self, n: usize) -> Buffered<Self>
|
|
1371
|
+
where
|
|
1372
|
+
Self::Item: Future,
|
|
1373
|
+
Self: Sized,
|
|
1374
|
+
{
|
|
1375
|
+
assert_stream::<<Self::Item as Future>::Output, _>(Buffered::new(self, n))
|
|
1376
|
+
}
|
|
1377
|
+
|
|
1378
|
+
/// An adaptor for creating a buffered list of pending futures (unordered).
|
|
1379
|
+
///
|
|
1380
|
+
/// If this stream's item can be converted into a future, then this adaptor
|
|
1381
|
+
/// will buffer up to `n` futures and then return the outputs in the order
|
|
1382
|
+
/// in which they complete. No more than `n` futures will be buffered at
|
|
1383
|
+
/// any point in time, and less than `n` may also be buffered depending on
|
|
1384
|
+
/// the state of each future.
|
|
1385
|
+
///
|
|
1386
|
+
/// The returned stream will be a stream of each future's output.
|
|
1387
|
+
///
|
|
1388
|
+
/// This method is only available when the `std` or `alloc` feature of this
|
|
1389
|
+
/// library is activated, and it is activated by default.
|
|
1390
|
+
///
|
|
1391
|
+
/// # Examples
|
|
1392
|
+
///
|
|
1393
|
+
/// ```
|
|
1394
|
+
/// # futures::executor::block_on(async {
|
|
1395
|
+
/// use futures::channel::oneshot;
|
|
1396
|
+
/// use futures::stream::{self, StreamExt};
|
|
1397
|
+
///
|
|
1398
|
+
/// let (send_one, recv_one) = oneshot::channel();
|
|
1399
|
+
/// let (send_two, recv_two) = oneshot::channel();
|
|
1400
|
+
///
|
|
1401
|
+
/// let stream_of_futures = stream::iter(vec![recv_one, recv_two]);
|
|
1402
|
+
/// let mut buffered = stream_of_futures.buffer_unordered(10);
|
|
1403
|
+
///
|
|
1404
|
+
/// send_two.send(2i32)?;
|
|
1405
|
+
/// assert_eq!(buffered.next().await, Some(Ok(2i32)));
|
|
1406
|
+
///
|
|
1407
|
+
/// send_one.send(1i32)?;
|
|
1408
|
+
/// assert_eq!(buffered.next().await, Some(Ok(1i32)));
|
|
1409
|
+
///
|
|
1410
|
+
/// assert_eq!(buffered.next().await, None);
|
|
1411
|
+
/// # Ok::<(), i32>(()) }).unwrap();
|
|
1412
|
+
/// ```
|
|
1413
|
+
#[cfg_attr(target_os = "none", cfg(target_has_atomic = "ptr"))]
|
|
1414
|
+
#[cfg(feature = "alloc")]
|
|
1415
|
+
fn buffer_unordered(self, n: usize) -> BufferUnordered<Self>
|
|
1416
|
+
where
|
|
1417
|
+
Self::Item: Future,
|
|
1418
|
+
Self: Sized,
|
|
1419
|
+
{
|
|
1420
|
+
assert_stream::<<Self::Item as Future>::Output, _>(BufferUnordered::new(self, n))
|
|
1421
|
+
}
|
|
1422
|
+
|
|
1423
|
+
/// An adapter for zipping two streams together.
|
|
1424
|
+
///
|
|
1425
|
+
/// The zipped stream waits for both streams to produce an item, and then
|
|
1426
|
+
/// returns that pair. If either stream ends then the zipped stream will
|
|
1427
|
+
/// also end.
|
|
1428
|
+
///
|
|
1429
|
+
/// # Examples
|
|
1430
|
+
///
|
|
1431
|
+
/// ```
|
|
1432
|
+
/// # futures::executor::block_on(async {
|
|
1433
|
+
/// use futures::stream::{self, StreamExt};
|
|
1434
|
+
///
|
|
1435
|
+
/// let stream1 = stream::iter(1..=3);
|
|
1436
|
+
/// let stream2 = stream::iter(5..=10);
|
|
1437
|
+
///
|
|
1438
|
+
/// let vec = stream1.zip(stream2)
|
|
1439
|
+
/// .collect::<Vec<_>>()
|
|
1440
|
+
/// .await;
|
|
1441
|
+
/// assert_eq!(vec![(1, 5), (2, 6), (3, 7)], vec);
|
|
1442
|
+
/// # });
|
|
1443
|
+
/// ```
|
|
1444
|
+
///
|
|
1445
|
+
fn zip<St>(self, other: St) -> Zip<Self, St>
|
|
1446
|
+
where
|
|
1447
|
+
St: Stream,
|
|
1448
|
+
Self: Sized,
|
|
1449
|
+
{
|
|
1450
|
+
assert_stream::<(Self::Item, St::Item), _>(Zip::new(self, other))
|
|
1451
|
+
}
|
|
1452
|
+
|
|
1453
|
+
/// Adapter for chaining two streams.
|
|
1454
|
+
///
|
|
1455
|
+
/// The resulting stream emits elements from the first stream, and when
|
|
1456
|
+
/// first stream reaches the end, emits the elements from the second stream.
|
|
1457
|
+
///
|
|
1458
|
+
/// ```
|
|
1459
|
+
/// # futures::executor::block_on(async {
|
|
1460
|
+
/// use futures::stream::{self, StreamExt};
|
|
1461
|
+
///
|
|
1462
|
+
/// let stream1 = stream::iter(vec![Ok(10), Err(false)]);
|
|
1463
|
+
/// let stream2 = stream::iter(vec![Err(true), Ok(20)]);
|
|
1464
|
+
///
|
|
1465
|
+
/// let stream = stream1.chain(stream2);
|
|
1466
|
+
///
|
|
1467
|
+
/// let result: Vec<_> = stream.collect().await;
|
|
1468
|
+
/// assert_eq!(result, vec![
|
|
1469
|
+
/// Ok(10),
|
|
1470
|
+
/// Err(false),
|
|
1471
|
+
/// Err(true),
|
|
1472
|
+
/// Ok(20),
|
|
1473
|
+
/// ]);
|
|
1474
|
+
/// # });
|
|
1475
|
+
/// ```
|
|
1476
|
+
fn chain<St>(self, other: St) -> Chain<Self, St>
|
|
1477
|
+
where
|
|
1478
|
+
St: Stream<Item = Self::Item>,
|
|
1479
|
+
Self: Sized,
|
|
1480
|
+
{
|
|
1481
|
+
assert_stream::<Self::Item, _>(Chain::new(self, other))
|
|
1482
|
+
}
|
|
1483
|
+
|
|
1484
|
+
/// Creates a new stream which exposes a `peek` method.
|
|
1485
|
+
///
|
|
1486
|
+
/// Calling `peek` returns a reference to the next item in the stream.
|
|
1487
|
+
fn peekable(self) -> Peekable<Self>
|
|
1488
|
+
where
|
|
1489
|
+
Self: Sized,
|
|
1490
|
+
{
|
|
1491
|
+
assert_stream::<Self::Item, _>(Peekable::new(self))
|
|
1492
|
+
}
|
|
1493
|
+
|
|
1494
|
+
/// An adaptor for chunking up items of the stream inside a vector.
|
|
1495
|
+
///
|
|
1496
|
+
/// This combinator will attempt to pull items from this stream and buffer
|
|
1497
|
+
/// them into a local vector. At most `capacity` items will get buffered
|
|
1498
|
+
/// before they're yielded from the returned stream.
|
|
1499
|
+
///
|
|
1500
|
+
/// Note that the vectors returned from this iterator may not always have
|
|
1501
|
+
/// `capacity` elements. If the underlying stream ended and only a partial
|
|
1502
|
+
/// vector was created, it'll be returned. Additionally if an error happens
|
|
1503
|
+
/// from the underlying stream then the currently buffered items will be
|
|
1504
|
+
/// yielded.
|
|
1505
|
+
///
|
|
1506
|
+
/// This method is only available when the `std` or `alloc` feature of this
|
|
1507
|
+
/// library is activated, and it is activated by default.
|
|
1508
|
+
///
|
|
1509
|
+
/// # Panics
|
|
1510
|
+
///
|
|
1511
|
+
/// This method will panic if `capacity` is zero.
|
|
1512
|
+
#[cfg(feature = "alloc")]
|
|
1513
|
+
fn chunks(self, capacity: usize) -> Chunks<Self>
|
|
1514
|
+
where
|
|
1515
|
+
Self: Sized,
|
|
1516
|
+
{
|
|
1517
|
+
assert_stream::<Vec<Self::Item>, _>(Chunks::new(self, capacity))
|
|
1518
|
+
}
|
|
1519
|
+
|
|
1520
|
+
/// An adaptor for chunking up ready items of the stream inside a vector.
|
|
1521
|
+
///
|
|
1522
|
+
/// This combinator will attempt to pull ready items from this stream and
|
|
1523
|
+
/// buffer them into a local vector. At most `capacity` items will get
|
|
1524
|
+
/// buffered before they're yielded from the returned stream. If underlying
|
|
1525
|
+
/// stream returns `Poll::Pending`, and collected chunk is not empty, it will
|
|
1526
|
+
/// be immediately returned.
|
|
1527
|
+
///
|
|
1528
|
+
/// If the underlying stream ended and only a partial vector was created,
|
|
1529
|
+
/// it will be returned.
|
|
1530
|
+
///
|
|
1531
|
+
/// This method is only available when the `std` or `alloc` feature of this
|
|
1532
|
+
/// library is activated, and it is activated by default.
|
|
1533
|
+
///
|
|
1534
|
+
/// # Panics
|
|
1535
|
+
///
|
|
1536
|
+
/// This method will panic if `capacity` is zero.
|
|
1537
|
+
#[cfg(feature = "alloc")]
|
|
1538
|
+
fn ready_chunks(self, capacity: usize) -> ReadyChunks<Self>
|
|
1539
|
+
where
|
|
1540
|
+
Self: Sized,
|
|
1541
|
+
{
|
|
1542
|
+
assert_stream::<Vec<Self::Item>, _>(ReadyChunks::new(self, capacity))
|
|
1543
|
+
}
|
|
1544
|
+
|
|
1545
|
+
/// A future that completes after the given stream has been fully processed
|
|
1546
|
+
/// into the sink and the sink has been flushed and closed.
|
|
1547
|
+
///
|
|
1548
|
+
/// This future will drive the stream to keep producing items until it is
|
|
1549
|
+
/// exhausted, sending each item to the sink. It will complete once the
|
|
1550
|
+
/// stream is exhausted, the sink has received and flushed all items, and
|
|
1551
|
+
/// the sink is closed. Note that neither the original stream nor provided
|
|
1552
|
+
/// sink will be output by this future. Pass the sink by `Pin<&mut S>`
|
|
1553
|
+
/// (for example, via `forward(&mut sink)` inside an `async` fn/block) in
|
|
1554
|
+
/// order to preserve access to the `Sink`. If the stream produces an error,
|
|
1555
|
+
/// that error will be returned by this future without flushing/closing the sink.
|
|
1556
|
+
#[cfg(feature = "sink")]
|
|
1557
|
+
#[cfg_attr(docsrs, doc(cfg(feature = "sink")))]
|
|
1558
|
+
fn forward<S>(self, sink: S) -> Forward<Self, S>
|
|
1559
|
+
where
|
|
1560
|
+
S: Sink<Self::Ok, Error = Self::Error>,
|
|
1561
|
+
Self: TryStream + Sized,
|
|
1562
|
+
// Self: TryStream + Sized + Stream<Item = Result<<Self as TryStream>::Ok, <Self as TryStream>::Error>>,
|
|
1563
|
+
{
|
|
1564
|
+
// TODO: type mismatch resolving `<Self as futures_core::Stream>::Item == std::result::Result<<Self as futures_core::TryStream>::Ok, <Self as futures_core::TryStream>::Error>`
|
|
1565
|
+
// assert_future::<Result<(), Self::Error>, _>(Forward::new(self, sink))
|
|
1566
|
+
Forward::new(self, sink)
|
|
1567
|
+
}
|
|
1568
|
+
|
|
1569
|
+
/// Splits this `Stream + Sink` object into separate `Sink` and `Stream`
|
|
1570
|
+
/// objects.
|
|
1571
|
+
///
|
|
1572
|
+
/// This can be useful when you want to split ownership between tasks, or
|
|
1573
|
+
/// allow direct interaction between the two objects (e.g. via
|
|
1574
|
+
/// `Sink::send_all`).
|
|
1575
|
+
///
|
|
1576
|
+
/// This method is only available when the `std` or `alloc` feature of this
|
|
1577
|
+
/// library is activated, and it is activated by default.
|
|
1578
|
+
#[cfg(feature = "sink")]
|
|
1579
|
+
#[cfg_attr(docsrs, doc(cfg(feature = "sink")))]
|
|
1580
|
+
#[cfg_attr(target_os = "none", cfg(target_has_atomic = "ptr"))]
|
|
1581
|
+
#[cfg(feature = "alloc")]
|
|
1582
|
+
fn split<Item>(self) -> (SplitSink<Self, Item>, SplitStream<Self>)
|
|
1583
|
+
where
|
|
1584
|
+
Self: Sink<Item> + Sized,
|
|
1585
|
+
{
|
|
1586
|
+
let (sink, stream) = split::split(self);
|
|
1587
|
+
(
|
|
1588
|
+
crate::sink::assert_sink::<Item, Self::Error, _>(sink),
|
|
1589
|
+
assert_stream::<Self::Item, _>(stream),
|
|
1590
|
+
)
|
|
1591
|
+
}
|
|
1592
|
+
|
|
1593
|
+
/// Do something with each item of this stream, afterwards passing it on.
|
|
1594
|
+
///
|
|
1595
|
+
/// This is similar to the `Iterator::inspect` method in the standard
|
|
1596
|
+
/// library where it allows easily inspecting each value as it passes
|
|
1597
|
+
/// through the stream, for example to debug what's going on.
|
|
1598
|
+
fn inspect<F>(self, f: F) -> Inspect<Self, F>
|
|
1599
|
+
where
|
|
1600
|
+
F: FnMut(&Self::Item),
|
|
1601
|
+
Self: Sized,
|
|
1602
|
+
{
|
|
1603
|
+
assert_stream::<Self::Item, _>(Inspect::new(self, f))
|
|
1604
|
+
}
|
|
1605
|
+
|
|
1606
|
+
/// Wrap this stream in an `Either` stream, making it the left-hand variant
|
|
1607
|
+
/// of that `Either`.
|
|
1608
|
+
///
|
|
1609
|
+
/// This can be used in combination with the `right_stream` method to write `if`
|
|
1610
|
+
/// statements that evaluate to different streams in different branches.
|
|
1611
|
+
fn left_stream<B>(self) -> Either<Self, B>
|
|
1612
|
+
where
|
|
1613
|
+
B: Stream<Item = Self::Item>,
|
|
1614
|
+
Self: Sized,
|
|
1615
|
+
{
|
|
1616
|
+
assert_stream::<Self::Item, _>(Either::Left(self))
|
|
1617
|
+
}
|
|
1618
|
+
|
|
1619
|
+
/// Wrap this stream in an `Either` stream, making it the right-hand variant
|
|
1620
|
+
/// of that `Either`.
|
|
1621
|
+
///
|
|
1622
|
+
/// This can be used in combination with the `left_stream` method to write `if`
|
|
1623
|
+
/// statements that evaluate to different streams in different branches.
|
|
1624
|
+
fn right_stream<B>(self) -> Either<B, Self>
|
|
1625
|
+
where
|
|
1626
|
+
B: Stream<Item = Self::Item>,
|
|
1627
|
+
Self: Sized,
|
|
1628
|
+
{
|
|
1629
|
+
assert_stream::<Self::Item, _>(Either::Right(self))
|
|
1630
|
+
}
|
|
1631
|
+
|
|
1632
|
+
/// A convenience method for calling [`Stream::poll_next`] on [`Unpin`]
|
|
1633
|
+
/// stream types.
|
|
1634
|
+
fn poll_next_unpin(&mut self, cx: &mut Context<'_>) -> Poll<Option<Self::Item>>
|
|
1635
|
+
where
|
|
1636
|
+
Self: Unpin,
|
|
1637
|
+
{
|
|
1638
|
+
Pin::new(self).poll_next(cx)
|
|
1639
|
+
}
|
|
1640
|
+
|
|
1641
|
+
/// Returns a [`Future`] that resolves when the next item in this stream is
|
|
1642
|
+
/// ready.
|
|
1643
|
+
///
|
|
1644
|
+
/// This is similar to the [`next`][StreamExt::next] method, but it won't
|
|
1645
|
+
/// resolve to [`None`] if used on an empty [`Stream`]. Instead, the
|
|
1646
|
+
/// returned future type will return `true` from
|
|
1647
|
+
/// [`FusedFuture::is_terminated`][] when the [`Stream`] is empty, allowing
|
|
1648
|
+
/// [`select_next_some`][StreamExt::select_next_some] to be easily used with
|
|
1649
|
+
/// the [`select!`] macro.
|
|
1650
|
+
///
|
|
1651
|
+
/// If the future is polled after this [`Stream`] is empty it will panic.
|
|
1652
|
+
/// Using the future with a [`FusedFuture`][]-aware primitive like the
|
|
1653
|
+
/// [`select!`] macro will prevent this.
|
|
1654
|
+
///
|
|
1655
|
+
/// [`FusedFuture`]: futures_core::future::FusedFuture
|
|
1656
|
+
/// [`FusedFuture::is_terminated`]: futures_core::future::FusedFuture::is_terminated
|
|
1657
|
+
///
|
|
1658
|
+
/// # Examples
|
|
1659
|
+
///
|
|
1660
|
+
/// ```
|
|
1661
|
+
/// # futures::executor::block_on(async {
|
|
1662
|
+
/// use futures::{future, select};
|
|
1663
|
+
/// use futures::stream::{StreamExt, FuturesUnordered};
|
|
1664
|
+
///
|
|
1665
|
+
/// let mut fut = future::ready(1);
|
|
1666
|
+
/// let mut async_tasks = FuturesUnordered::new();
|
|
1667
|
+
/// let mut total = 0;
|
|
1668
|
+
/// loop {
|
|
1669
|
+
/// select! {
|
|
1670
|
+
/// num = fut => {
|
|
1671
|
+
/// // First, the `ready` future completes.
|
|
1672
|
+
/// total += num;
|
|
1673
|
+
/// // Then we spawn a new task onto `async_tasks`,
|
|
1674
|
+
/// async_tasks.push(async { 5 });
|
|
1675
|
+
/// },
|
|
1676
|
+
/// // On the next iteration of the loop, the task we spawned
|
|
1677
|
+
/// // completes.
|
|
1678
|
+
/// num = async_tasks.select_next_some() => {
|
|
1679
|
+
/// total += num;
|
|
1680
|
+
/// }
|
|
1681
|
+
/// // Finally, both the `ready` future and `async_tasks` have
|
|
1682
|
+
/// // finished, so we enter the `complete` branch.
|
|
1683
|
+
/// complete => break,
|
|
1684
|
+
/// }
|
|
1685
|
+
/// }
|
|
1686
|
+
/// assert_eq!(total, 6);
|
|
1687
|
+
/// # });
|
|
1688
|
+
/// ```
|
|
1689
|
+
///
|
|
1690
|
+
/// [`select!`]: crate::select
|
|
1691
|
+
fn select_next_some(&mut self) -> SelectNextSome<'_, Self>
|
|
1692
|
+
where
|
|
1693
|
+
Self: Unpin + FusedStream,
|
|
1694
|
+
{
|
|
1695
|
+
assert_future::<Self::Item, _>(SelectNextSome::new(self))
|
|
1696
|
+
}
|
|
1697
|
+
}
|