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,1254 @@
|
|
|
1
|
+
//! Streams
|
|
2
|
+
//!
|
|
3
|
+
//! This module contains a number of functions for working with `Streams`s
|
|
4
|
+
//! that return `Result`s, allowing for short-circuiting computations.
|
|
5
|
+
|
|
6
|
+
#[cfg(feature = "compat")]
|
|
7
|
+
use crate::compat::Compat;
|
|
8
|
+
use crate::fns::{
|
|
9
|
+
inspect_err_fn, inspect_ok_fn, into_fn, map_err_fn, map_ok_fn, InspectErrFn, InspectOkFn,
|
|
10
|
+
IntoFn, MapErrFn, MapOkFn,
|
|
11
|
+
};
|
|
12
|
+
use crate::future::assert_future;
|
|
13
|
+
use crate::stream::assert_stream;
|
|
14
|
+
use crate::stream::{Inspect, Map};
|
|
15
|
+
#[cfg(feature = "alloc")]
|
|
16
|
+
use alloc::vec::Vec;
|
|
17
|
+
use core::pin::Pin;
|
|
18
|
+
|
|
19
|
+
use futures_core::{
|
|
20
|
+
future::{Future, TryFuture},
|
|
21
|
+
stream::TryStream,
|
|
22
|
+
task::{Context, Poll},
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
mod and_then;
|
|
26
|
+
#[allow(unreachable_pub)] // https://github.com/rust-lang/rust/issues/57411
|
|
27
|
+
pub use self::and_then::AndThen;
|
|
28
|
+
|
|
29
|
+
delegate_all!(
|
|
30
|
+
/// Stream for the [`err_into`](super::TryStreamExt::err_into) method.
|
|
31
|
+
ErrInto<St, E>(
|
|
32
|
+
MapErr<St, IntoFn<E>>
|
|
33
|
+
): Debug + Sink + Stream + FusedStream + AccessInner[St, (.)] + New[|x: St| MapErr::new(x, into_fn())]
|
|
34
|
+
);
|
|
35
|
+
|
|
36
|
+
delegate_all!(
|
|
37
|
+
/// Stream for the [`inspect_ok`](super::TryStreamExt::inspect_ok) method.
|
|
38
|
+
InspectOk<St, F>(
|
|
39
|
+
Inspect<IntoStream<St>, InspectOkFn<F>>
|
|
40
|
+
): Debug + Sink + Stream + FusedStream + AccessInner[St, (. .)] + New[|x: St, f: F| Inspect::new(IntoStream::new(x), inspect_ok_fn(f))]
|
|
41
|
+
);
|
|
42
|
+
|
|
43
|
+
delegate_all!(
|
|
44
|
+
/// Stream for the [`inspect_err`](super::TryStreamExt::inspect_err) method.
|
|
45
|
+
InspectErr<St, F>(
|
|
46
|
+
Inspect<IntoStream<St>, InspectErrFn<F>>
|
|
47
|
+
): Debug + Sink + Stream + FusedStream + AccessInner[St, (. .)] + New[|x: St, f: F| Inspect::new(IntoStream::new(x), inspect_err_fn(f))]
|
|
48
|
+
);
|
|
49
|
+
|
|
50
|
+
mod into_stream;
|
|
51
|
+
#[allow(unreachable_pub)] // https://github.com/rust-lang/rust/issues/57411
|
|
52
|
+
pub use self::into_stream::IntoStream;
|
|
53
|
+
|
|
54
|
+
delegate_all!(
|
|
55
|
+
/// Stream for the [`map_ok`](super::TryStreamExt::map_ok) method.
|
|
56
|
+
MapOk<St, F>(
|
|
57
|
+
Map<IntoStream<St>, MapOkFn<F>>
|
|
58
|
+
): Debug + Sink + Stream + FusedStream + AccessInner[St, (. .)] + New[|x: St, f: F| Map::new(IntoStream::new(x), map_ok_fn(f))]
|
|
59
|
+
);
|
|
60
|
+
|
|
61
|
+
delegate_all!(
|
|
62
|
+
/// Stream for the [`map_err`](super::TryStreamExt::map_err) method.
|
|
63
|
+
MapErr<St, F>(
|
|
64
|
+
Map<IntoStream<St>, MapErrFn<F>>
|
|
65
|
+
): Debug + Sink + Stream + FusedStream + AccessInner[St, (. .)] + New[|x: St, f: F| Map::new(IntoStream::new(x), map_err_fn(f))]
|
|
66
|
+
);
|
|
67
|
+
|
|
68
|
+
mod or_else;
|
|
69
|
+
#[allow(unreachable_pub)] // https://github.com/rust-lang/rust/issues/57411
|
|
70
|
+
pub use self::or_else::OrElse;
|
|
71
|
+
|
|
72
|
+
mod try_next;
|
|
73
|
+
#[allow(unreachable_pub)] // https://github.com/rust-lang/rust/issues/57411
|
|
74
|
+
pub use self::try_next::TryNext;
|
|
75
|
+
|
|
76
|
+
mod try_for_each;
|
|
77
|
+
#[allow(unreachable_pub)] // https://github.com/rust-lang/rust/issues/57411
|
|
78
|
+
pub use self::try_for_each::TryForEach;
|
|
79
|
+
|
|
80
|
+
mod try_filter;
|
|
81
|
+
#[allow(unreachable_pub)] // https://github.com/rust-lang/rust/issues/57411
|
|
82
|
+
pub use self::try_filter::TryFilter;
|
|
83
|
+
|
|
84
|
+
mod try_filter_map;
|
|
85
|
+
#[allow(unreachable_pub)] // https://github.com/rust-lang/rust/issues/57411
|
|
86
|
+
pub use self::try_filter_map::TryFilterMap;
|
|
87
|
+
|
|
88
|
+
mod try_flatten;
|
|
89
|
+
#[allow(unreachable_pub)] // https://github.com/rust-lang/rust/issues/57411
|
|
90
|
+
pub use self::try_flatten::TryFlatten;
|
|
91
|
+
|
|
92
|
+
#[cfg_attr(target_os = "none", cfg(target_has_atomic = "ptr"))]
|
|
93
|
+
#[cfg(feature = "alloc")]
|
|
94
|
+
mod try_flatten_unordered;
|
|
95
|
+
#[cfg_attr(target_os = "none", cfg(target_has_atomic = "ptr"))]
|
|
96
|
+
#[cfg(feature = "alloc")]
|
|
97
|
+
#[allow(unreachable_pub)] // https://github.com/rust-lang/rust/issues/57411
|
|
98
|
+
pub use self::try_flatten_unordered::TryFlattenUnordered;
|
|
99
|
+
|
|
100
|
+
mod try_collect;
|
|
101
|
+
#[allow(unreachable_pub)] // https://github.com/rust-lang/rust/issues/57411
|
|
102
|
+
pub use self::try_collect::TryCollect;
|
|
103
|
+
|
|
104
|
+
mod try_concat;
|
|
105
|
+
#[allow(unreachable_pub)] // https://github.com/rust-lang/rust/issues/57411
|
|
106
|
+
pub use self::try_concat::TryConcat;
|
|
107
|
+
|
|
108
|
+
#[cfg(feature = "alloc")]
|
|
109
|
+
mod try_chunks;
|
|
110
|
+
#[cfg(feature = "alloc")]
|
|
111
|
+
#[allow(unreachable_pub)] // https://github.com/rust-lang/rust/issues/57411
|
|
112
|
+
pub use self::try_chunks::{TryChunks, TryChunksError};
|
|
113
|
+
|
|
114
|
+
#[cfg(feature = "alloc")]
|
|
115
|
+
mod try_ready_chunks;
|
|
116
|
+
#[cfg(feature = "alloc")]
|
|
117
|
+
#[allow(unreachable_pub)] // https://github.com/rust-lang/rust/issues/57411
|
|
118
|
+
pub use self::try_ready_chunks::{TryReadyChunks, TryReadyChunksError};
|
|
119
|
+
|
|
120
|
+
mod try_fold;
|
|
121
|
+
#[allow(unreachable_pub)] // https://github.com/rust-lang/rust/issues/57411
|
|
122
|
+
pub use self::try_fold::TryFold;
|
|
123
|
+
|
|
124
|
+
mod try_unfold;
|
|
125
|
+
#[allow(unreachable_pub)] // https://github.com/rust-lang/rust/issues/57411
|
|
126
|
+
pub use self::try_unfold::{try_unfold, TryUnfold};
|
|
127
|
+
|
|
128
|
+
mod try_skip_while;
|
|
129
|
+
#[allow(unreachable_pub)] // https://github.com/rust-lang/rust/issues/57411
|
|
130
|
+
pub use self::try_skip_while::TrySkipWhile;
|
|
131
|
+
|
|
132
|
+
mod try_take_while;
|
|
133
|
+
#[allow(unreachable_pub)] // https://github.com/rust-lang/rust/issues/57411
|
|
134
|
+
pub use self::try_take_while::TryTakeWhile;
|
|
135
|
+
|
|
136
|
+
#[cfg_attr(target_os = "none", cfg(target_has_atomic = "ptr"))]
|
|
137
|
+
#[cfg(feature = "alloc")]
|
|
138
|
+
mod try_buffer_unordered;
|
|
139
|
+
#[cfg_attr(target_os = "none", cfg(target_has_atomic = "ptr"))]
|
|
140
|
+
#[cfg(feature = "alloc")]
|
|
141
|
+
#[allow(unreachable_pub)] // https://github.com/rust-lang/rust/issues/57411
|
|
142
|
+
pub use self::try_buffer_unordered::TryBufferUnordered;
|
|
143
|
+
|
|
144
|
+
#[cfg_attr(target_os = "none", cfg(target_has_atomic = "ptr"))]
|
|
145
|
+
#[cfg(feature = "alloc")]
|
|
146
|
+
mod try_buffered;
|
|
147
|
+
#[cfg_attr(target_os = "none", cfg(target_has_atomic = "ptr"))]
|
|
148
|
+
#[cfg(feature = "alloc")]
|
|
149
|
+
#[allow(unreachable_pub)] // https://github.com/rust-lang/rust/issues/57411
|
|
150
|
+
pub use self::try_buffered::TryBuffered;
|
|
151
|
+
|
|
152
|
+
#[cfg_attr(target_os = "none", cfg(target_has_atomic = "ptr"))]
|
|
153
|
+
#[cfg(feature = "alloc")]
|
|
154
|
+
mod try_for_each_concurrent;
|
|
155
|
+
#[cfg_attr(target_os = "none", cfg(target_has_atomic = "ptr"))]
|
|
156
|
+
#[cfg(feature = "alloc")]
|
|
157
|
+
#[allow(unreachable_pub)] // https://github.com/rust-lang/rust/issues/57411
|
|
158
|
+
pub use self::try_for_each_concurrent::TryForEachConcurrent;
|
|
159
|
+
|
|
160
|
+
#[cfg(feature = "io")]
|
|
161
|
+
#[cfg(feature = "std")]
|
|
162
|
+
mod into_async_read;
|
|
163
|
+
#[cfg(feature = "io")]
|
|
164
|
+
#[cfg_attr(docsrs, doc(cfg(feature = "io")))]
|
|
165
|
+
#[cfg(feature = "std")]
|
|
166
|
+
#[allow(unreachable_pub)] // https://github.com/rust-lang/rust/issues/57411
|
|
167
|
+
pub use self::into_async_read::IntoAsyncRead;
|
|
168
|
+
|
|
169
|
+
mod try_all;
|
|
170
|
+
#[allow(unreachable_pub)] // https://github.com/rust-lang/rust/issues/57411
|
|
171
|
+
pub use self::try_all::TryAll;
|
|
172
|
+
|
|
173
|
+
mod try_any;
|
|
174
|
+
#[allow(unreachable_pub)] // https://github.com/rust-lang/rust/issues/57411
|
|
175
|
+
pub use self::try_any::TryAny;
|
|
176
|
+
|
|
177
|
+
impl<S: ?Sized + TryStream> TryStreamExt for S {}
|
|
178
|
+
|
|
179
|
+
/// Adapters specific to `Result`-returning streams
|
|
180
|
+
pub trait TryStreamExt: TryStream {
|
|
181
|
+
/// Wraps the current stream in a new stream which converts the error type
|
|
182
|
+
/// into the one provided.
|
|
183
|
+
///
|
|
184
|
+
/// # Examples
|
|
185
|
+
///
|
|
186
|
+
/// ```
|
|
187
|
+
/// # futures::executor::block_on(async {
|
|
188
|
+
/// use futures::stream::{self, TryStreamExt};
|
|
189
|
+
///
|
|
190
|
+
/// let mut stream =
|
|
191
|
+
/// stream::iter(vec![Ok(()), Err(5i32)])
|
|
192
|
+
/// .err_into::<i64>();
|
|
193
|
+
///
|
|
194
|
+
/// assert_eq!(stream.try_next().await, Ok(Some(())));
|
|
195
|
+
/// assert_eq!(stream.try_next().await, Err(5i64));
|
|
196
|
+
/// # })
|
|
197
|
+
/// ```
|
|
198
|
+
fn err_into<E>(self) -> ErrInto<Self, E>
|
|
199
|
+
where
|
|
200
|
+
Self: Sized,
|
|
201
|
+
Self::Error: Into<E>,
|
|
202
|
+
{
|
|
203
|
+
assert_stream::<Result<Self::Ok, E>, _>(ErrInto::new(self))
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
/// Wraps the current stream in a new stream which maps the success value
|
|
207
|
+
/// using the provided closure.
|
|
208
|
+
///
|
|
209
|
+
/// # Examples
|
|
210
|
+
///
|
|
211
|
+
/// ```
|
|
212
|
+
/// # futures::executor::block_on(async {
|
|
213
|
+
/// use futures::stream::{self, TryStreamExt};
|
|
214
|
+
///
|
|
215
|
+
/// let mut stream =
|
|
216
|
+
/// stream::iter(vec![Ok(5), Err(0)])
|
|
217
|
+
/// .map_ok(|x| x + 2);
|
|
218
|
+
///
|
|
219
|
+
/// assert_eq!(stream.try_next().await, Ok(Some(7)));
|
|
220
|
+
/// assert_eq!(stream.try_next().await, Err(0));
|
|
221
|
+
/// # })
|
|
222
|
+
/// ```
|
|
223
|
+
fn map_ok<T, F>(self, f: F) -> MapOk<Self, F>
|
|
224
|
+
where
|
|
225
|
+
Self: Sized,
|
|
226
|
+
F: FnMut(Self::Ok) -> T,
|
|
227
|
+
{
|
|
228
|
+
assert_stream::<Result<T, Self::Error>, _>(MapOk::new(self, f))
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
/// Wraps the current stream in a new stream which maps the error value
|
|
232
|
+
/// using the provided closure.
|
|
233
|
+
///
|
|
234
|
+
/// # Examples
|
|
235
|
+
///
|
|
236
|
+
/// ```
|
|
237
|
+
/// # futures::executor::block_on(async {
|
|
238
|
+
/// use futures::stream::{self, TryStreamExt};
|
|
239
|
+
///
|
|
240
|
+
/// let mut stream =
|
|
241
|
+
/// stream::iter(vec![Ok(5), Err(0)])
|
|
242
|
+
/// .map_err(|x| x + 2);
|
|
243
|
+
///
|
|
244
|
+
/// assert_eq!(stream.try_next().await, Ok(Some(5)));
|
|
245
|
+
/// assert_eq!(stream.try_next().await, Err(2));
|
|
246
|
+
/// # })
|
|
247
|
+
/// ```
|
|
248
|
+
fn map_err<E, F>(self, f: F) -> MapErr<Self, F>
|
|
249
|
+
where
|
|
250
|
+
Self: Sized,
|
|
251
|
+
F: FnMut(Self::Error) -> E,
|
|
252
|
+
{
|
|
253
|
+
assert_stream::<Result<Self::Ok, E>, _>(MapErr::new(self, f))
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
/// Chain on a computation for when a value is ready, passing the successful
|
|
257
|
+
/// results to the provided closure `f`.
|
|
258
|
+
///
|
|
259
|
+
/// This function can be used to run a unit of work when the next successful
|
|
260
|
+
/// value on a stream is ready. The closure provided will be yielded a value
|
|
261
|
+
/// when ready, and the returned future will then be run to completion to
|
|
262
|
+
/// produce the next value on this stream.
|
|
263
|
+
///
|
|
264
|
+
/// Any errors produced by this stream will not be passed to the closure,
|
|
265
|
+
/// and will be passed through.
|
|
266
|
+
///
|
|
267
|
+
/// The returned value of the closure must implement the `TryFuture` trait
|
|
268
|
+
/// and can represent some more work to be done before the composed stream
|
|
269
|
+
/// is finished.
|
|
270
|
+
///
|
|
271
|
+
/// Note that this function consumes the receiving stream and returns a
|
|
272
|
+
/// wrapped version of it.
|
|
273
|
+
///
|
|
274
|
+
/// To process the entire stream and return a single future representing
|
|
275
|
+
/// success or error, use `try_for_each` instead.
|
|
276
|
+
///
|
|
277
|
+
/// # Examples
|
|
278
|
+
///
|
|
279
|
+
/// ```
|
|
280
|
+
/// use futures::channel::mpsc;
|
|
281
|
+
/// use futures::future;
|
|
282
|
+
/// use futures::stream::TryStreamExt;
|
|
283
|
+
///
|
|
284
|
+
/// let (_tx, rx) = mpsc::channel::<Result<i32, ()>>(1);
|
|
285
|
+
///
|
|
286
|
+
/// let rx = rx.and_then(|result| {
|
|
287
|
+
/// future::ok(if result % 2 == 0 {
|
|
288
|
+
/// Some(result)
|
|
289
|
+
/// } else {
|
|
290
|
+
/// None
|
|
291
|
+
/// })
|
|
292
|
+
/// });
|
|
293
|
+
/// ```
|
|
294
|
+
fn and_then<Fut, F>(self, f: F) -> AndThen<Self, Fut, F>
|
|
295
|
+
where
|
|
296
|
+
F: FnMut(Self::Ok) -> Fut,
|
|
297
|
+
Fut: TryFuture<Error = Self::Error>,
|
|
298
|
+
Self: Sized,
|
|
299
|
+
{
|
|
300
|
+
assert_stream::<Result<Fut::Ok, Fut::Error>, _>(AndThen::new(self, f))
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
/// Chain on a computation for when an error happens, passing the
|
|
304
|
+
/// erroneous result to the provided closure `f`.
|
|
305
|
+
///
|
|
306
|
+
/// This function can be used to run a unit of work and attempt to recover from
|
|
307
|
+
/// an error if one happens. The closure provided will be yielded an error
|
|
308
|
+
/// when one appears, and the returned future will then be run to completion
|
|
309
|
+
/// to produce the next value on this stream.
|
|
310
|
+
///
|
|
311
|
+
/// Any successful values produced by this stream will not be passed to the
|
|
312
|
+
/// closure, and will be passed through.
|
|
313
|
+
///
|
|
314
|
+
/// The returned value of the closure must implement the [`TryFuture`](futures_core::future::TryFuture) trait
|
|
315
|
+
/// and can represent some more work to be done before the composed stream
|
|
316
|
+
/// is finished.
|
|
317
|
+
///
|
|
318
|
+
/// Note that this function consumes the receiving stream and returns a
|
|
319
|
+
/// wrapped version of it.
|
|
320
|
+
fn or_else<Fut, F>(self, f: F) -> OrElse<Self, Fut, F>
|
|
321
|
+
where
|
|
322
|
+
F: FnMut(Self::Error) -> Fut,
|
|
323
|
+
Fut: TryFuture<Ok = Self::Ok>,
|
|
324
|
+
Self: Sized,
|
|
325
|
+
{
|
|
326
|
+
assert_stream::<Result<Self::Ok, Fut::Error>, _>(OrElse::new(self, f))
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
/// Do something with the success value of this stream, afterwards passing
|
|
330
|
+
/// it on.
|
|
331
|
+
///
|
|
332
|
+
/// This is similar to the `StreamExt::inspect` method where it allows
|
|
333
|
+
/// easily inspecting the success value as it passes through the stream, for
|
|
334
|
+
/// example to debug what's going on.
|
|
335
|
+
fn inspect_ok<F>(self, f: F) -> InspectOk<Self, F>
|
|
336
|
+
where
|
|
337
|
+
F: FnMut(&Self::Ok),
|
|
338
|
+
Self: Sized,
|
|
339
|
+
{
|
|
340
|
+
assert_stream::<Result<Self::Ok, Self::Error>, _>(InspectOk::new(self, f))
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
/// Do something with the error value of this stream, afterwards passing it on.
|
|
344
|
+
///
|
|
345
|
+
/// This is similar to the `StreamExt::inspect` method where it allows
|
|
346
|
+
/// easily inspecting the error value as it passes through the stream, for
|
|
347
|
+
/// example to debug what's going on.
|
|
348
|
+
fn inspect_err<F>(self, f: F) -> InspectErr<Self, F>
|
|
349
|
+
where
|
|
350
|
+
F: FnMut(&Self::Error),
|
|
351
|
+
Self: Sized,
|
|
352
|
+
{
|
|
353
|
+
assert_stream::<Result<Self::Ok, Self::Error>, _>(InspectErr::new(self, f))
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
/// Wraps a [`TryStream`] into a type that implements
|
|
357
|
+
/// [`Stream`](futures_core::stream::Stream)
|
|
358
|
+
///
|
|
359
|
+
/// [`TryStream`]s currently do not implement the
|
|
360
|
+
/// [`Stream`](futures_core::stream::Stream) trait because of limitations
|
|
361
|
+
/// of the compiler.
|
|
362
|
+
///
|
|
363
|
+
/// # Examples
|
|
364
|
+
///
|
|
365
|
+
/// ```
|
|
366
|
+
/// use futures::stream::{Stream, TryStream, TryStreamExt};
|
|
367
|
+
///
|
|
368
|
+
/// # type T = i32;
|
|
369
|
+
/// # type E = ();
|
|
370
|
+
/// fn make_try_stream() -> impl TryStream<Ok = T, Error = E> { // ... }
|
|
371
|
+
/// # futures::stream::empty()
|
|
372
|
+
/// # }
|
|
373
|
+
/// fn take_stream(stream: impl Stream<Item = Result<T, E>>) { /* ... */ }
|
|
374
|
+
///
|
|
375
|
+
/// take_stream(make_try_stream().into_stream());
|
|
376
|
+
/// ```
|
|
377
|
+
fn into_stream(self) -> IntoStream<Self>
|
|
378
|
+
where
|
|
379
|
+
Self: Sized,
|
|
380
|
+
{
|
|
381
|
+
assert_stream::<Result<Self::Ok, Self::Error>, _>(IntoStream::new(self))
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
/// Creates a future that attempts to resolve the next item in the stream.
|
|
385
|
+
/// If an error is encountered before the next item, the error is returned
|
|
386
|
+
/// instead.
|
|
387
|
+
///
|
|
388
|
+
/// This is similar to the `Stream::next` combinator, but returns a
|
|
389
|
+
/// `Result<Option<T>, E>` rather than an `Option<Result<T, E>>`, making
|
|
390
|
+
/// for easy use with the `?` operator.
|
|
391
|
+
///
|
|
392
|
+
/// # Examples
|
|
393
|
+
///
|
|
394
|
+
/// ```
|
|
395
|
+
/// # futures::executor::block_on(async {
|
|
396
|
+
/// use futures::stream::{self, TryStreamExt};
|
|
397
|
+
///
|
|
398
|
+
/// let mut stream = stream::iter(vec![Ok(()), Err(())]);
|
|
399
|
+
///
|
|
400
|
+
/// assert_eq!(stream.try_next().await, Ok(Some(())));
|
|
401
|
+
/// assert_eq!(stream.try_next().await, Err(()));
|
|
402
|
+
/// # })
|
|
403
|
+
/// ```
|
|
404
|
+
fn try_next(&mut self) -> TryNext<'_, Self>
|
|
405
|
+
where
|
|
406
|
+
Self: Unpin,
|
|
407
|
+
{
|
|
408
|
+
assert_future::<Result<Option<Self::Ok>, Self::Error>, _>(TryNext::new(self))
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
/// Attempts to run this stream to completion, executing the provided
|
|
412
|
+
/// asynchronous closure for each element on the stream.
|
|
413
|
+
///
|
|
414
|
+
/// The provided closure will be called for each item this stream produces,
|
|
415
|
+
/// yielding a future. That future will then be executed to completion
|
|
416
|
+
/// before moving on to the next item.
|
|
417
|
+
///
|
|
418
|
+
/// The returned value is a [`Future`](futures_core::future::Future) where the
|
|
419
|
+
/// [`Output`](futures_core::future::Future::Output) type is
|
|
420
|
+
/// `Result<(), Self::Error>`. If any of the intermediate
|
|
421
|
+
/// futures or the stream returns an error, this future will return
|
|
422
|
+
/// immediately with an error.
|
|
423
|
+
///
|
|
424
|
+
/// # Examples
|
|
425
|
+
///
|
|
426
|
+
/// ```
|
|
427
|
+
/// # futures::executor::block_on(async {
|
|
428
|
+
/// use futures::future;
|
|
429
|
+
/// use futures::stream::{self, TryStreamExt};
|
|
430
|
+
///
|
|
431
|
+
/// let mut x = 0i32;
|
|
432
|
+
///
|
|
433
|
+
/// {
|
|
434
|
+
/// let fut = stream::repeat(Ok(1)).try_for_each(|item| {
|
|
435
|
+
/// x += item;
|
|
436
|
+
/// future::ready(if x == 3 { Err(()) } else { Ok(()) })
|
|
437
|
+
/// });
|
|
438
|
+
/// assert_eq!(fut.await, Err(()));
|
|
439
|
+
/// }
|
|
440
|
+
///
|
|
441
|
+
/// assert_eq!(x, 3);
|
|
442
|
+
/// # })
|
|
443
|
+
/// ```
|
|
444
|
+
fn try_for_each<Fut, F>(self, f: F) -> TryForEach<Self, Fut, F>
|
|
445
|
+
where
|
|
446
|
+
F: FnMut(Self::Ok) -> Fut,
|
|
447
|
+
Fut: TryFuture<Ok = (), Error = Self::Error>,
|
|
448
|
+
Self: Sized,
|
|
449
|
+
{
|
|
450
|
+
assert_future::<Result<(), Self::Error>, _>(TryForEach::new(self, f))
|
|
451
|
+
}
|
|
452
|
+
|
|
453
|
+
/// Skip elements on this stream while the provided asynchronous predicate
|
|
454
|
+
/// resolves to `true`.
|
|
455
|
+
///
|
|
456
|
+
/// This function is similar to
|
|
457
|
+
/// [`StreamExt::skip_while`](crate::stream::StreamExt::skip_while) but exits
|
|
458
|
+
/// early if an error occurs.
|
|
459
|
+
///
|
|
460
|
+
/// # Examples
|
|
461
|
+
///
|
|
462
|
+
/// ```
|
|
463
|
+
/// # futures::executor::block_on(async {
|
|
464
|
+
/// use futures::future;
|
|
465
|
+
/// use futures::stream::{self, TryStreamExt};
|
|
466
|
+
///
|
|
467
|
+
/// let stream = stream::iter(vec![Ok::<i32, i32>(1), Ok(3), Ok(2)]);
|
|
468
|
+
/// let stream = stream.try_skip_while(|x| future::ready(Ok(*x < 3)));
|
|
469
|
+
///
|
|
470
|
+
/// let output: Result<Vec<i32>, i32> = stream.try_collect().await;
|
|
471
|
+
/// assert_eq!(output, Ok(vec![3, 2]));
|
|
472
|
+
/// # })
|
|
473
|
+
/// ```
|
|
474
|
+
fn try_skip_while<Fut, F>(self, f: F) -> TrySkipWhile<Self, Fut, F>
|
|
475
|
+
where
|
|
476
|
+
F: FnMut(&Self::Ok) -> Fut,
|
|
477
|
+
Fut: TryFuture<Ok = bool, Error = Self::Error>,
|
|
478
|
+
Self: Sized,
|
|
479
|
+
{
|
|
480
|
+
assert_stream::<Result<Self::Ok, Self::Error>, _>(TrySkipWhile::new(self, f))
|
|
481
|
+
}
|
|
482
|
+
|
|
483
|
+
/// Take elements on this stream while the provided asynchronous predicate
|
|
484
|
+
/// resolves to `true`.
|
|
485
|
+
///
|
|
486
|
+
/// This function is similar to
|
|
487
|
+
/// [`StreamExt::take_while`](crate::stream::StreamExt::take_while) but exits
|
|
488
|
+
/// early if an error occurs.
|
|
489
|
+
///
|
|
490
|
+
/// # Examples
|
|
491
|
+
///
|
|
492
|
+
/// ```
|
|
493
|
+
/// # futures::executor::block_on(async {
|
|
494
|
+
/// use futures::future;
|
|
495
|
+
/// use futures::stream::{self, TryStreamExt};
|
|
496
|
+
///
|
|
497
|
+
/// let stream = stream::iter(vec![Ok::<i32, i32>(1), Ok(2), Ok(3), Ok(2)]);
|
|
498
|
+
/// let stream = stream.try_take_while(|x| future::ready(Ok(*x < 3)));
|
|
499
|
+
///
|
|
500
|
+
/// let output: Result<Vec<i32>, i32> = stream.try_collect().await;
|
|
501
|
+
/// assert_eq!(output, Ok(vec![1, 2]));
|
|
502
|
+
/// # })
|
|
503
|
+
/// ```
|
|
504
|
+
fn try_take_while<Fut, F>(self, f: F) -> TryTakeWhile<Self, Fut, F>
|
|
505
|
+
where
|
|
506
|
+
F: FnMut(&Self::Ok) -> Fut,
|
|
507
|
+
Fut: TryFuture<Ok = bool, Error = Self::Error>,
|
|
508
|
+
Self: Sized,
|
|
509
|
+
{
|
|
510
|
+
assert_stream::<Result<Self::Ok, Self::Error>, _>(TryTakeWhile::new(self, f))
|
|
511
|
+
}
|
|
512
|
+
|
|
513
|
+
/// Attempts to run this stream to completion, executing the provided asynchronous
|
|
514
|
+
/// closure for each element on the stream concurrently as elements become
|
|
515
|
+
/// available, exiting as soon as an error occurs.
|
|
516
|
+
///
|
|
517
|
+
/// This is similar to
|
|
518
|
+
/// [`StreamExt::for_each_concurrent`](crate::stream::StreamExt::for_each_concurrent),
|
|
519
|
+
/// but will resolve to an error immediately if the underlying stream or the provided
|
|
520
|
+
/// closure return an error.
|
|
521
|
+
///
|
|
522
|
+
/// This method is only available when the `std` or `alloc` feature of this
|
|
523
|
+
/// library is activated, and it is activated by default.
|
|
524
|
+
///
|
|
525
|
+
/// # Examples
|
|
526
|
+
///
|
|
527
|
+
/// ```
|
|
528
|
+
/// # futures::executor::block_on(async {
|
|
529
|
+
/// use futures::channel::oneshot;
|
|
530
|
+
/// use futures::stream::{self, StreamExt, TryStreamExt};
|
|
531
|
+
///
|
|
532
|
+
/// let (tx1, rx1) = oneshot::channel();
|
|
533
|
+
/// let (tx2, rx2) = oneshot::channel();
|
|
534
|
+
/// let (_tx3, rx3) = oneshot::channel();
|
|
535
|
+
///
|
|
536
|
+
/// let stream = stream::iter(vec![rx1, rx2, rx3]);
|
|
537
|
+
/// let fut = stream.map(Ok).try_for_each_concurrent(
|
|
538
|
+
/// /* limit */ 2,
|
|
539
|
+
/// |rx| async move {
|
|
540
|
+
/// let res: Result<(), oneshot::Canceled> = rx.await;
|
|
541
|
+
/// res
|
|
542
|
+
/// }
|
|
543
|
+
/// );
|
|
544
|
+
///
|
|
545
|
+
/// tx1.send(()).unwrap();
|
|
546
|
+
/// // Drop the second sender so that `rx2` resolves to `Canceled`.
|
|
547
|
+
/// drop(tx2);
|
|
548
|
+
///
|
|
549
|
+
/// // The final result is an error because the second future
|
|
550
|
+
/// // resulted in an error.
|
|
551
|
+
/// assert_eq!(Err(oneshot::Canceled), fut.await);
|
|
552
|
+
/// # })
|
|
553
|
+
/// ```
|
|
554
|
+
#[cfg_attr(target_os = "none", cfg(target_has_atomic = "ptr"))]
|
|
555
|
+
#[cfg(feature = "alloc")]
|
|
556
|
+
fn try_for_each_concurrent<Fut, F>(
|
|
557
|
+
self,
|
|
558
|
+
limit: impl Into<Option<usize>>,
|
|
559
|
+
f: F,
|
|
560
|
+
) -> TryForEachConcurrent<Self, Fut, F>
|
|
561
|
+
where
|
|
562
|
+
F: FnMut(Self::Ok) -> Fut,
|
|
563
|
+
Fut: Future<Output = Result<(), Self::Error>>,
|
|
564
|
+
Self: Sized,
|
|
565
|
+
{
|
|
566
|
+
assert_future::<Result<(), Self::Error>, _>(TryForEachConcurrent::new(
|
|
567
|
+
self,
|
|
568
|
+
limit.into(),
|
|
569
|
+
f,
|
|
570
|
+
))
|
|
571
|
+
}
|
|
572
|
+
|
|
573
|
+
/// Attempt to transform a stream into a collection,
|
|
574
|
+
/// returning a future representing the result of that computation.
|
|
575
|
+
///
|
|
576
|
+
/// This combinator will collect all successful results of this stream and
|
|
577
|
+
/// collect them into the specified collection type. If an error happens then all
|
|
578
|
+
/// collected elements will be dropped and the error will be returned.
|
|
579
|
+
///
|
|
580
|
+
/// The returned future will be resolved when the stream terminates.
|
|
581
|
+
///
|
|
582
|
+
/// # Examples
|
|
583
|
+
///
|
|
584
|
+
/// ```
|
|
585
|
+
/// # futures::executor::block_on(async {
|
|
586
|
+
/// use futures::channel::mpsc;
|
|
587
|
+
/// use futures::stream::TryStreamExt;
|
|
588
|
+
/// use std::thread;
|
|
589
|
+
///
|
|
590
|
+
/// let (tx, rx) = mpsc::unbounded();
|
|
591
|
+
///
|
|
592
|
+
/// thread::spawn(move || {
|
|
593
|
+
/// for i in 1..=5 {
|
|
594
|
+
/// tx.unbounded_send(Ok(i)).unwrap();
|
|
595
|
+
/// }
|
|
596
|
+
/// tx.unbounded_send(Err(6)).unwrap();
|
|
597
|
+
/// });
|
|
598
|
+
///
|
|
599
|
+
/// let output: Result<Vec<i32>, i32> = rx.try_collect().await;
|
|
600
|
+
/// assert_eq!(output, Err(6));
|
|
601
|
+
/// # })
|
|
602
|
+
/// ```
|
|
603
|
+
fn try_collect<C: Default + Extend<Self::Ok>>(self) -> TryCollect<Self, C>
|
|
604
|
+
where
|
|
605
|
+
Self: Sized,
|
|
606
|
+
{
|
|
607
|
+
assert_future::<Result<C, Self::Error>, _>(TryCollect::new(self))
|
|
608
|
+
}
|
|
609
|
+
|
|
610
|
+
/// An adaptor for chunking up successful items of the stream inside a vector.
|
|
611
|
+
///
|
|
612
|
+
/// This combinator will attempt to pull successful items from this stream and buffer
|
|
613
|
+
/// them into a local vector. At most `capacity` items will get buffered
|
|
614
|
+
/// before they're yielded from the returned stream.
|
|
615
|
+
///
|
|
616
|
+
/// Note that the vectors returned from this iterator may not always have
|
|
617
|
+
/// `capacity` elements. If the underlying stream ended and only a partial
|
|
618
|
+
/// vector was created, it'll be returned. Additionally if an error happens
|
|
619
|
+
/// from the underlying stream then the currently buffered items will be
|
|
620
|
+
/// yielded.
|
|
621
|
+
///
|
|
622
|
+
/// This method is only available when the `std` or `alloc` feature of this
|
|
623
|
+
/// library is activated, and it is activated by default.
|
|
624
|
+
///
|
|
625
|
+
/// This function is similar to
|
|
626
|
+
/// [`StreamExt::chunks`](crate::stream::StreamExt::chunks) but exits
|
|
627
|
+
/// early if an error occurs.
|
|
628
|
+
///
|
|
629
|
+
/// # Examples
|
|
630
|
+
///
|
|
631
|
+
/// ```
|
|
632
|
+
/// # futures::executor::block_on(async {
|
|
633
|
+
/// use futures::stream::{self, TryChunksError, TryStreamExt};
|
|
634
|
+
///
|
|
635
|
+
/// let stream = stream::iter(vec![Ok::<i32, i32>(1), Ok(2), Ok(3), Err(4), Ok(5), Ok(6)]);
|
|
636
|
+
/// let mut stream = stream.try_chunks(2);
|
|
637
|
+
///
|
|
638
|
+
/// assert_eq!(stream.try_next().await, Ok(Some(vec![1, 2])));
|
|
639
|
+
/// assert_eq!(stream.try_next().await, Err(TryChunksError(vec![3], 4)));
|
|
640
|
+
/// assert_eq!(stream.try_next().await, Ok(Some(vec![5, 6])));
|
|
641
|
+
/// # })
|
|
642
|
+
/// ```
|
|
643
|
+
///
|
|
644
|
+
/// # Panics
|
|
645
|
+
///
|
|
646
|
+
/// This method will panic if `capacity` is zero.
|
|
647
|
+
#[cfg(feature = "alloc")]
|
|
648
|
+
fn try_chunks(self, capacity: usize) -> TryChunks<Self>
|
|
649
|
+
where
|
|
650
|
+
Self: Sized,
|
|
651
|
+
{
|
|
652
|
+
assert_stream::<Result<Vec<Self::Ok>, TryChunksError<Self::Ok, Self::Error>>, _>(
|
|
653
|
+
TryChunks::new(self, capacity),
|
|
654
|
+
)
|
|
655
|
+
}
|
|
656
|
+
|
|
657
|
+
/// An adaptor for chunking up successful, ready items of the stream inside a vector.
|
|
658
|
+
///
|
|
659
|
+
/// This combinator will attempt to pull successful items from this stream and buffer
|
|
660
|
+
/// them into a local vector. At most `capacity` items will get buffered
|
|
661
|
+
/// before they're yielded from the returned stream. If the underlying stream
|
|
662
|
+
/// returns `Poll::Pending`, and the collected chunk is not empty, it will
|
|
663
|
+
/// be immediately returned.
|
|
664
|
+
///
|
|
665
|
+
/// Note that the vectors returned from this iterator may not always have
|
|
666
|
+
/// `capacity` elements. If the underlying stream ended and only a partial
|
|
667
|
+
/// vector was created, it'll be returned. Additionally if an error happens
|
|
668
|
+
/// from the underlying stream then the currently buffered items will be
|
|
669
|
+
/// yielded.
|
|
670
|
+
///
|
|
671
|
+
/// This method is only available when the `std` or `alloc` feature of this
|
|
672
|
+
/// library is activated, and it is activated by default.
|
|
673
|
+
///
|
|
674
|
+
/// This function is similar to
|
|
675
|
+
/// [`StreamExt::ready_chunks`](crate::stream::StreamExt::ready_chunks) but exits
|
|
676
|
+
/// early if an error occurs.
|
|
677
|
+
///
|
|
678
|
+
/// # Examples
|
|
679
|
+
///
|
|
680
|
+
/// ```
|
|
681
|
+
/// # futures::executor::block_on(async {
|
|
682
|
+
/// use futures::stream::{self, TryReadyChunksError, TryStreamExt};
|
|
683
|
+
///
|
|
684
|
+
/// let stream = stream::iter(vec![Ok::<i32, i32>(1), Ok(2), Ok(3), Err(4), Ok(5), Ok(6)]);
|
|
685
|
+
/// let mut stream = stream.try_ready_chunks(2);
|
|
686
|
+
///
|
|
687
|
+
/// assert_eq!(stream.try_next().await, Ok(Some(vec![1, 2])));
|
|
688
|
+
/// assert_eq!(stream.try_next().await, Err(TryReadyChunksError(vec![3], 4)));
|
|
689
|
+
/// assert_eq!(stream.try_next().await, Ok(Some(vec![5, 6])));
|
|
690
|
+
/// # })
|
|
691
|
+
/// ```
|
|
692
|
+
///
|
|
693
|
+
/// # Panics
|
|
694
|
+
///
|
|
695
|
+
/// This method will panic if `capacity` is zero.
|
|
696
|
+
#[cfg(feature = "alloc")]
|
|
697
|
+
fn try_ready_chunks(self, capacity: usize) -> TryReadyChunks<Self>
|
|
698
|
+
where
|
|
699
|
+
Self: Sized,
|
|
700
|
+
{
|
|
701
|
+
assert_stream::<Result<Vec<Self::Ok>, TryReadyChunksError<Self::Ok, Self::Error>>, _>(
|
|
702
|
+
TryReadyChunks::new(self, capacity),
|
|
703
|
+
)
|
|
704
|
+
}
|
|
705
|
+
|
|
706
|
+
/// Attempt to filter the values produced by this stream according to the
|
|
707
|
+
/// provided asynchronous closure.
|
|
708
|
+
///
|
|
709
|
+
/// As values of this stream are made available, the provided predicate `f`
|
|
710
|
+
/// will be run on them. If the predicate returns a `Future` which resolves
|
|
711
|
+
/// to `true`, then the stream will yield the value, but if the predicate
|
|
712
|
+
/// return a `Future` which resolves to `false`, then the value will be
|
|
713
|
+
/// discarded and the next value will be produced.
|
|
714
|
+
///
|
|
715
|
+
/// All errors are passed through without filtering in this combinator.
|
|
716
|
+
///
|
|
717
|
+
/// Note that this function consumes the stream passed into it and returns a
|
|
718
|
+
/// wrapped version of it, similar to the existing `filter` methods in
|
|
719
|
+
/// the standard library.
|
|
720
|
+
///
|
|
721
|
+
/// # Examples
|
|
722
|
+
/// ```
|
|
723
|
+
/// # futures::executor::block_on(async {
|
|
724
|
+
/// use futures::future;
|
|
725
|
+
/// use futures::stream::{self, StreamExt, TryStreamExt};
|
|
726
|
+
///
|
|
727
|
+
/// let stream = stream::iter(vec![Ok(1i32), Ok(2i32), Ok(3i32), Err("error")]);
|
|
728
|
+
/// let mut evens = stream.try_filter(|x| {
|
|
729
|
+
/// future::ready(x % 2 == 0)
|
|
730
|
+
/// });
|
|
731
|
+
///
|
|
732
|
+
/// assert_eq!(evens.next().await, Some(Ok(2)));
|
|
733
|
+
/// assert_eq!(evens.next().await, Some(Err("error")));
|
|
734
|
+
/// # })
|
|
735
|
+
/// ```
|
|
736
|
+
fn try_filter<Fut, F>(self, f: F) -> TryFilter<Self, Fut, F>
|
|
737
|
+
where
|
|
738
|
+
Fut: Future<Output = bool>,
|
|
739
|
+
F: FnMut(&Self::Ok) -> Fut,
|
|
740
|
+
Self: Sized,
|
|
741
|
+
{
|
|
742
|
+
assert_stream::<Result<Self::Ok, Self::Error>, _>(TryFilter::new(self, f))
|
|
743
|
+
}
|
|
744
|
+
|
|
745
|
+
/// Attempt to filter the values produced by this stream while
|
|
746
|
+
/// simultaneously mapping them to a different type according to the
|
|
747
|
+
/// provided asynchronous closure.
|
|
748
|
+
///
|
|
749
|
+
/// As values of this stream are made available, the provided function will
|
|
750
|
+
/// be run on them. If the future returned by the predicate `f` resolves to
|
|
751
|
+
/// [`Some(item)`](Some) then the stream will yield the value `item`, but if
|
|
752
|
+
/// it resolves to [`None`] then the next value will be produced.
|
|
753
|
+
///
|
|
754
|
+
/// All errors are passed through without filtering in this combinator.
|
|
755
|
+
///
|
|
756
|
+
/// Note that this function consumes the stream passed into it and returns a
|
|
757
|
+
/// wrapped version of it, similar to the existing `filter_map` methods in
|
|
758
|
+
/// the standard library.
|
|
759
|
+
///
|
|
760
|
+
/// # Examples
|
|
761
|
+
/// ```
|
|
762
|
+
/// # futures::executor::block_on(async {
|
|
763
|
+
/// use core::pin::pin;
|
|
764
|
+
///
|
|
765
|
+
/// use futures::stream;
|
|
766
|
+
/// use futures::stream::StreamExt;
|
|
767
|
+
/// use futures::stream::TryStreamExt;
|
|
768
|
+
///
|
|
769
|
+
/// let stream = stream::iter(vec![Ok(1i32), Ok(6i32), Err("error")]);
|
|
770
|
+
/// let halves = stream.try_filter_map(|x| async move {
|
|
771
|
+
/// let ret = if x % 2 == 0 { Some(x / 2) } else { None };
|
|
772
|
+
/// Ok(ret)
|
|
773
|
+
/// });
|
|
774
|
+
///
|
|
775
|
+
/// let mut halves = pin!(halves);
|
|
776
|
+
/// assert_eq!(halves.next().await, Some(Ok(3)));
|
|
777
|
+
/// assert_eq!(halves.next().await, Some(Err("error")));
|
|
778
|
+
/// # })
|
|
779
|
+
/// ```
|
|
780
|
+
fn try_filter_map<Fut, F, T>(self, f: F) -> TryFilterMap<Self, Fut, F>
|
|
781
|
+
where
|
|
782
|
+
Fut: TryFuture<Ok = Option<T>, Error = Self::Error>,
|
|
783
|
+
F: FnMut(Self::Ok) -> Fut,
|
|
784
|
+
Self: Sized,
|
|
785
|
+
{
|
|
786
|
+
assert_stream::<Result<T, Self::Error>, _>(TryFilterMap::new(self, f))
|
|
787
|
+
}
|
|
788
|
+
|
|
789
|
+
/// Flattens a stream of streams into just one continuous stream. Produced streams
|
|
790
|
+
/// will be polled concurrently and any errors will be passed through without looking at them.
|
|
791
|
+
/// If the underlying base stream returns an error, it will be **immediately** propagated.
|
|
792
|
+
///
|
|
793
|
+
/// The only argument is an optional limit on the number of concurrently
|
|
794
|
+
/// polled streams. If this limit is not `None`, no more than `limit` streams
|
|
795
|
+
/// will be polled at the same time. The `limit` argument is of type
|
|
796
|
+
/// `Into<Option<usize>>`, and so can be provided as either `None`,
|
|
797
|
+
/// `Some(10)`, or just `10`. Note: a limit of zero is interpreted as
|
|
798
|
+
/// no limit at all, and will have the same result as passing in `None`.
|
|
799
|
+
///
|
|
800
|
+
/// # Examples
|
|
801
|
+
///
|
|
802
|
+
/// ```
|
|
803
|
+
/// # futures::executor::block_on(async {
|
|
804
|
+
/// use futures::channel::mpsc;
|
|
805
|
+
/// use futures::stream::{StreamExt, TryStreamExt};
|
|
806
|
+
/// use std::thread;
|
|
807
|
+
///
|
|
808
|
+
/// let (tx1, rx1) = mpsc::unbounded();
|
|
809
|
+
/// let (tx2, rx2) = mpsc::unbounded();
|
|
810
|
+
/// let (tx3, rx3) = mpsc::unbounded();
|
|
811
|
+
///
|
|
812
|
+
/// thread::spawn(move || {
|
|
813
|
+
/// tx1.unbounded_send(Ok(1)).unwrap();
|
|
814
|
+
/// });
|
|
815
|
+
/// thread::spawn(move || {
|
|
816
|
+
/// tx2.unbounded_send(Ok(2)).unwrap();
|
|
817
|
+
/// tx2.unbounded_send(Err(3)).unwrap();
|
|
818
|
+
/// tx2.unbounded_send(Ok(4)).unwrap();
|
|
819
|
+
/// });
|
|
820
|
+
/// thread::spawn(move || {
|
|
821
|
+
/// tx3.unbounded_send(Ok(rx1)).unwrap();
|
|
822
|
+
/// tx3.unbounded_send(Ok(rx2)).unwrap();
|
|
823
|
+
/// tx3.unbounded_send(Err(5)).unwrap();
|
|
824
|
+
/// });
|
|
825
|
+
///
|
|
826
|
+
/// let stream = rx3.try_flatten_unordered(None);
|
|
827
|
+
/// let mut values: Vec<_> = stream.collect().await;
|
|
828
|
+
/// values.sort();
|
|
829
|
+
///
|
|
830
|
+
/// assert_eq!(values, vec![Ok(1), Ok(2), Ok(4), Err(3), Err(5)]);
|
|
831
|
+
/// # });
|
|
832
|
+
/// ```
|
|
833
|
+
#[cfg_attr(target_os = "none", cfg(target_has_atomic = "ptr"))]
|
|
834
|
+
#[cfg(feature = "alloc")]
|
|
835
|
+
fn try_flatten_unordered(self, limit: impl Into<Option<usize>>) -> TryFlattenUnordered<Self>
|
|
836
|
+
where
|
|
837
|
+
Self::Ok: TryStream + Unpin,
|
|
838
|
+
<Self::Ok as TryStream>::Error: From<Self::Error>,
|
|
839
|
+
Self: Sized,
|
|
840
|
+
{
|
|
841
|
+
assert_stream::<Result<<Self::Ok as TryStream>::Ok, <Self::Ok as TryStream>::Error>, _>(
|
|
842
|
+
TryFlattenUnordered::new(self, limit),
|
|
843
|
+
)
|
|
844
|
+
}
|
|
845
|
+
|
|
846
|
+
/// Flattens a stream of streams into just one continuous stream.
|
|
847
|
+
///
|
|
848
|
+
/// If this stream's elements are themselves streams then this combinator
|
|
849
|
+
/// will flatten out the entire stream to one long chain of elements. Any
|
|
850
|
+
/// errors are passed through without looking at them, but otherwise each
|
|
851
|
+
/// individual stream will get exhausted before moving on to the next.
|
|
852
|
+
///
|
|
853
|
+
/// # Examples
|
|
854
|
+
///
|
|
855
|
+
/// ```
|
|
856
|
+
/// # futures::executor::block_on(async {
|
|
857
|
+
/// use futures::channel::mpsc;
|
|
858
|
+
/// use futures::stream::{StreamExt, TryStreamExt};
|
|
859
|
+
/// use std::thread;
|
|
860
|
+
///
|
|
861
|
+
/// let (tx1, rx1) = mpsc::unbounded();
|
|
862
|
+
/// let (tx2, rx2) = mpsc::unbounded();
|
|
863
|
+
/// let (tx3, rx3) = mpsc::unbounded();
|
|
864
|
+
///
|
|
865
|
+
/// thread::spawn(move || {
|
|
866
|
+
/// tx1.unbounded_send(Ok(1)).unwrap();
|
|
867
|
+
/// });
|
|
868
|
+
/// thread::spawn(move || {
|
|
869
|
+
/// tx2.unbounded_send(Ok(2)).unwrap();
|
|
870
|
+
/// tx2.unbounded_send(Err(3)).unwrap();
|
|
871
|
+
/// tx2.unbounded_send(Ok(4)).unwrap();
|
|
872
|
+
/// });
|
|
873
|
+
/// thread::spawn(move || {
|
|
874
|
+
/// tx3.unbounded_send(Ok(rx1)).unwrap();
|
|
875
|
+
/// tx3.unbounded_send(Ok(rx2)).unwrap();
|
|
876
|
+
/// tx3.unbounded_send(Err(5)).unwrap();
|
|
877
|
+
/// });
|
|
878
|
+
///
|
|
879
|
+
/// let mut stream = rx3.try_flatten();
|
|
880
|
+
/// assert_eq!(stream.next().await, Some(Ok(1)));
|
|
881
|
+
/// assert_eq!(stream.next().await, Some(Ok(2)));
|
|
882
|
+
/// assert_eq!(stream.next().await, Some(Err(3)));
|
|
883
|
+
/// assert_eq!(stream.next().await, Some(Ok(4)));
|
|
884
|
+
/// assert_eq!(stream.next().await, Some(Err(5)));
|
|
885
|
+
/// assert_eq!(stream.next().await, None);
|
|
886
|
+
/// # });
|
|
887
|
+
/// ```
|
|
888
|
+
fn try_flatten(self) -> TryFlatten<Self>
|
|
889
|
+
where
|
|
890
|
+
Self::Ok: TryStream,
|
|
891
|
+
<Self::Ok as TryStream>::Error: From<Self::Error>,
|
|
892
|
+
Self: Sized,
|
|
893
|
+
{
|
|
894
|
+
assert_stream::<Result<<Self::Ok as TryStream>::Ok, <Self::Ok as TryStream>::Error>, _>(
|
|
895
|
+
TryFlatten::new(self),
|
|
896
|
+
)
|
|
897
|
+
}
|
|
898
|
+
|
|
899
|
+
/// Attempt to execute an accumulating asynchronous computation over a
|
|
900
|
+
/// stream, collecting all the values into one final result.
|
|
901
|
+
///
|
|
902
|
+
/// This combinator will accumulate all values returned by this stream
|
|
903
|
+
/// according to the closure provided. The initial state is also provided to
|
|
904
|
+
/// this method and then is returned again by each execution of the closure.
|
|
905
|
+
/// Once the entire stream has been exhausted the returned future will
|
|
906
|
+
/// resolve to this value.
|
|
907
|
+
///
|
|
908
|
+
/// This method is similar to [`fold`](crate::stream::StreamExt::fold), but will
|
|
909
|
+
/// exit early if an error is encountered in either the stream or the
|
|
910
|
+
/// provided closure.
|
|
911
|
+
///
|
|
912
|
+
/// # Examples
|
|
913
|
+
///
|
|
914
|
+
/// ```
|
|
915
|
+
/// # futures::executor::block_on(async {
|
|
916
|
+
/// use futures::stream::{self, TryStreamExt};
|
|
917
|
+
///
|
|
918
|
+
/// let number_stream = stream::iter(vec![Ok::<i32, i32>(1), Ok(2)]);
|
|
919
|
+
/// let sum = number_stream.try_fold(0, |acc, x| async move { Ok(acc + x) });
|
|
920
|
+
/// assert_eq!(sum.await, Ok(3));
|
|
921
|
+
///
|
|
922
|
+
/// let number_stream_with_err = stream::iter(vec![Ok::<i32, i32>(1), Err(2), Ok(1)]);
|
|
923
|
+
/// let sum = number_stream_with_err.try_fold(0, |acc, x| async move { Ok(acc + x) });
|
|
924
|
+
/// assert_eq!(sum.await, Err(2));
|
|
925
|
+
/// # })
|
|
926
|
+
/// ```
|
|
927
|
+
fn try_fold<T, Fut, F>(self, init: T, f: F) -> TryFold<Self, Fut, T, F>
|
|
928
|
+
where
|
|
929
|
+
F: FnMut(T, Self::Ok) -> Fut,
|
|
930
|
+
Fut: TryFuture<Ok = T, Error = Self::Error>,
|
|
931
|
+
Self: Sized,
|
|
932
|
+
{
|
|
933
|
+
assert_future::<Result<T, Self::Error>, _>(TryFold::new(self, f, init))
|
|
934
|
+
}
|
|
935
|
+
|
|
936
|
+
/// Attempt to concatenate all items of a stream into a single
|
|
937
|
+
/// extendable destination, returning a future representing the end result.
|
|
938
|
+
///
|
|
939
|
+
/// This combinator will extend the first item with the contents of all
|
|
940
|
+
/// the subsequent successful results of the stream. If the stream is empty,
|
|
941
|
+
/// the default value will be returned.
|
|
942
|
+
///
|
|
943
|
+
/// Works with all collections that implement the [`Extend`](std::iter::Extend) trait.
|
|
944
|
+
///
|
|
945
|
+
/// This method is similar to [`concat`](crate::stream::StreamExt::concat), but will
|
|
946
|
+
/// exit early if an error is encountered in the stream.
|
|
947
|
+
///
|
|
948
|
+
/// # Examples
|
|
949
|
+
///
|
|
950
|
+
/// ```
|
|
951
|
+
/// # futures::executor::block_on(async {
|
|
952
|
+
/// use futures::channel::mpsc;
|
|
953
|
+
/// use futures::stream::TryStreamExt;
|
|
954
|
+
/// use std::thread;
|
|
955
|
+
///
|
|
956
|
+
/// let (tx, rx) = mpsc::unbounded::<Result<Vec<i32>, ()>>();
|
|
957
|
+
///
|
|
958
|
+
/// thread::spawn(move || {
|
|
959
|
+
/// for i in (0..3).rev() {
|
|
960
|
+
/// let n = i * 3;
|
|
961
|
+
/// tx.unbounded_send(Ok(vec![n + 1, n + 2, n + 3])).unwrap();
|
|
962
|
+
/// }
|
|
963
|
+
/// });
|
|
964
|
+
///
|
|
965
|
+
/// let result = rx.try_concat().await;
|
|
966
|
+
///
|
|
967
|
+
/// assert_eq!(result, Ok(vec![7, 8, 9, 4, 5, 6, 1, 2, 3]));
|
|
968
|
+
/// # });
|
|
969
|
+
/// ```
|
|
970
|
+
fn try_concat(self) -> TryConcat<Self>
|
|
971
|
+
where
|
|
972
|
+
Self: Sized,
|
|
973
|
+
Self::Ok: Extend<<<Self as TryStream>::Ok as IntoIterator>::Item> + IntoIterator + Default,
|
|
974
|
+
{
|
|
975
|
+
assert_future::<Result<Self::Ok, Self::Error>, _>(TryConcat::new(self))
|
|
976
|
+
}
|
|
977
|
+
|
|
978
|
+
/// Attempt to execute several futures from a stream concurrently (unordered).
|
|
979
|
+
///
|
|
980
|
+
/// This stream's `Ok` type must be a [`TryFuture`](futures_core::future::TryFuture) with an `Error` type
|
|
981
|
+
/// that matches the stream's `Error` type.
|
|
982
|
+
///
|
|
983
|
+
/// This adaptor will buffer up to `n` futures and then return their
|
|
984
|
+
/// outputs in the order in which they complete. If the underlying stream
|
|
985
|
+
/// returns an error, it will be immediately propagated.
|
|
986
|
+
///
|
|
987
|
+
/// The returned stream will be a stream of results, each containing either
|
|
988
|
+
/// an error or a future's output. An error can be produced either by the
|
|
989
|
+
/// underlying stream itself or by one of the futures it yielded.
|
|
990
|
+
///
|
|
991
|
+
/// This method is only available when the `std` or `alloc` feature of this
|
|
992
|
+
/// library is activated, and it is activated by default.
|
|
993
|
+
///
|
|
994
|
+
/// # Examples
|
|
995
|
+
///
|
|
996
|
+
/// Results are returned in the order of completion:
|
|
997
|
+
/// ```
|
|
998
|
+
/// # futures::executor::block_on(async {
|
|
999
|
+
/// use futures::channel::oneshot;
|
|
1000
|
+
/// use futures::stream::{self, StreamExt, TryStreamExt};
|
|
1001
|
+
///
|
|
1002
|
+
/// let (send_one, recv_one) = oneshot::channel();
|
|
1003
|
+
/// let (send_two, recv_two) = oneshot::channel();
|
|
1004
|
+
///
|
|
1005
|
+
/// let stream_of_futures = stream::iter(vec![Ok(recv_one), Ok(recv_two)]);
|
|
1006
|
+
///
|
|
1007
|
+
/// let mut buffered = stream_of_futures.try_buffer_unordered(10);
|
|
1008
|
+
///
|
|
1009
|
+
/// send_two.send(2i32)?;
|
|
1010
|
+
/// assert_eq!(buffered.next().await, Some(Ok(2i32)));
|
|
1011
|
+
///
|
|
1012
|
+
/// send_one.send(1i32)?;
|
|
1013
|
+
/// assert_eq!(buffered.next().await, Some(Ok(1i32)));
|
|
1014
|
+
///
|
|
1015
|
+
/// assert_eq!(buffered.next().await, None);
|
|
1016
|
+
/// # Ok::<(), i32>(()) }).unwrap();
|
|
1017
|
+
/// ```
|
|
1018
|
+
///
|
|
1019
|
+
/// Errors from the underlying stream itself are propagated:
|
|
1020
|
+
/// ```
|
|
1021
|
+
/// # futures::executor::block_on(async {
|
|
1022
|
+
/// use futures::channel::mpsc;
|
|
1023
|
+
/// use futures::stream::{StreamExt, TryStreamExt};
|
|
1024
|
+
///
|
|
1025
|
+
/// let (sink, stream_of_futures) = mpsc::unbounded();
|
|
1026
|
+
/// let mut buffered = stream_of_futures.try_buffer_unordered(10);
|
|
1027
|
+
///
|
|
1028
|
+
/// sink.unbounded_send(Ok(async { Ok(7i32) }))?;
|
|
1029
|
+
/// assert_eq!(buffered.next().await, Some(Ok(7i32)));
|
|
1030
|
+
///
|
|
1031
|
+
/// sink.unbounded_send(Err("error in the stream"))?;
|
|
1032
|
+
/// assert_eq!(buffered.next().await, Some(Err("error in the stream")));
|
|
1033
|
+
/// # Ok::<(), Box<dyn std::error::Error>>(()) }).unwrap();
|
|
1034
|
+
/// ```
|
|
1035
|
+
#[cfg_attr(target_os = "none", cfg(target_has_atomic = "ptr"))]
|
|
1036
|
+
#[cfg(feature = "alloc")]
|
|
1037
|
+
fn try_buffer_unordered(self, n: usize) -> TryBufferUnordered<Self>
|
|
1038
|
+
where
|
|
1039
|
+
Self::Ok: TryFuture<Error = Self::Error>,
|
|
1040
|
+
Self: Sized,
|
|
1041
|
+
{
|
|
1042
|
+
assert_stream::<Result<<Self::Ok as TryFuture>::Ok, Self::Error>, _>(
|
|
1043
|
+
TryBufferUnordered::new(self, n),
|
|
1044
|
+
)
|
|
1045
|
+
}
|
|
1046
|
+
|
|
1047
|
+
/// Attempt to execute several futures from a stream concurrently.
|
|
1048
|
+
///
|
|
1049
|
+
/// This stream's `Ok` type must be a [`TryFuture`](futures_core::future::TryFuture) with an `Error` type
|
|
1050
|
+
/// that matches the stream's `Error` type.
|
|
1051
|
+
///
|
|
1052
|
+
/// This adaptor will buffer up to `n` futures and then return their
|
|
1053
|
+
/// outputs in the same order as the underlying stream. If the underlying stream returns an error, it will
|
|
1054
|
+
/// be immediately propagated.
|
|
1055
|
+
///
|
|
1056
|
+
/// The returned stream will be a stream of results, each containing either
|
|
1057
|
+
/// an error or a future's output. An error can be produced either by the
|
|
1058
|
+
/// underlying stream itself or by one of the futures it yielded.
|
|
1059
|
+
///
|
|
1060
|
+
/// This method is only available when the `std` or `alloc` feature of this
|
|
1061
|
+
/// library is activated, and it is activated by default.
|
|
1062
|
+
///
|
|
1063
|
+
/// # Examples
|
|
1064
|
+
///
|
|
1065
|
+
/// Results are returned in the order of addition:
|
|
1066
|
+
/// ```
|
|
1067
|
+
/// # futures::executor::block_on(async {
|
|
1068
|
+
/// use futures::channel::oneshot;
|
|
1069
|
+
/// use futures::future::lazy;
|
|
1070
|
+
/// use futures::stream::{self, StreamExt, TryStreamExt};
|
|
1071
|
+
///
|
|
1072
|
+
/// let (send_one, recv_one) = oneshot::channel();
|
|
1073
|
+
/// let (send_two, recv_two) = oneshot::channel();
|
|
1074
|
+
///
|
|
1075
|
+
/// let mut buffered = lazy(move |cx| {
|
|
1076
|
+
/// let stream_of_futures = stream::iter(vec![Ok(recv_one), Ok(recv_two)]);
|
|
1077
|
+
///
|
|
1078
|
+
/// let mut buffered = stream_of_futures.try_buffered(10);
|
|
1079
|
+
///
|
|
1080
|
+
/// assert!(buffered.try_poll_next_unpin(cx).is_pending());
|
|
1081
|
+
///
|
|
1082
|
+
/// send_two.send(2i32)?;
|
|
1083
|
+
/// assert!(buffered.try_poll_next_unpin(cx).is_pending());
|
|
1084
|
+
/// Ok::<_, i32>(buffered)
|
|
1085
|
+
/// }).await?;
|
|
1086
|
+
///
|
|
1087
|
+
/// send_one.send(1i32)?;
|
|
1088
|
+
/// assert_eq!(buffered.next().await, Some(Ok(1i32)));
|
|
1089
|
+
/// assert_eq!(buffered.next().await, Some(Ok(2i32)));
|
|
1090
|
+
///
|
|
1091
|
+
/// assert_eq!(buffered.next().await, None);
|
|
1092
|
+
/// # Ok::<(), i32>(()) }).unwrap();
|
|
1093
|
+
/// ```
|
|
1094
|
+
///
|
|
1095
|
+
/// Errors from the underlying stream itself are propagated:
|
|
1096
|
+
/// ```
|
|
1097
|
+
/// # futures::executor::block_on(async {
|
|
1098
|
+
/// use futures::channel::mpsc;
|
|
1099
|
+
/// use futures::stream::{StreamExt, TryStreamExt};
|
|
1100
|
+
///
|
|
1101
|
+
/// let (sink, stream_of_futures) = mpsc::unbounded();
|
|
1102
|
+
/// let mut buffered = stream_of_futures.try_buffered(10);
|
|
1103
|
+
///
|
|
1104
|
+
/// sink.unbounded_send(Ok(async { Ok(7i32) }))?;
|
|
1105
|
+
/// assert_eq!(buffered.next().await, Some(Ok(7i32)));
|
|
1106
|
+
///
|
|
1107
|
+
/// sink.unbounded_send(Err("error in the stream"))?;
|
|
1108
|
+
/// assert_eq!(buffered.next().await, Some(Err("error in the stream")));
|
|
1109
|
+
/// # Ok::<(), Box<dyn std::error::Error>>(()) }).unwrap();
|
|
1110
|
+
/// ```
|
|
1111
|
+
#[cfg_attr(target_os = "none", cfg(target_has_atomic = "ptr"))]
|
|
1112
|
+
#[cfg(feature = "alloc")]
|
|
1113
|
+
fn try_buffered(self, n: usize) -> TryBuffered<Self>
|
|
1114
|
+
where
|
|
1115
|
+
Self::Ok: TryFuture<Error = Self::Error>,
|
|
1116
|
+
Self: Sized,
|
|
1117
|
+
{
|
|
1118
|
+
assert_stream::<Result<<Self::Ok as TryFuture>::Ok, Self::Error>, _>(TryBuffered::new(
|
|
1119
|
+
self, n,
|
|
1120
|
+
))
|
|
1121
|
+
}
|
|
1122
|
+
|
|
1123
|
+
// TODO: false positive warning from rustdoc. Verify once #43466 settles
|
|
1124
|
+
//
|
|
1125
|
+
/// A convenience method for calling [`TryStream::try_poll_next`] on [`Unpin`]
|
|
1126
|
+
/// stream types.
|
|
1127
|
+
fn try_poll_next_unpin(
|
|
1128
|
+
&mut self,
|
|
1129
|
+
cx: &mut Context<'_>,
|
|
1130
|
+
) -> Poll<Option<Result<Self::Ok, Self::Error>>>
|
|
1131
|
+
where
|
|
1132
|
+
Self: Unpin,
|
|
1133
|
+
{
|
|
1134
|
+
Pin::new(self).try_poll_next(cx)
|
|
1135
|
+
}
|
|
1136
|
+
|
|
1137
|
+
/// Wraps a [`TryStream`] into a stream compatible with libraries using
|
|
1138
|
+
/// futures 0.1 `Stream`. Requires the `compat` feature to be enabled.
|
|
1139
|
+
/// ```
|
|
1140
|
+
/// # if cfg!(miri) { return; } // Miri does not support epoll
|
|
1141
|
+
/// use futures::future::{FutureExt, TryFutureExt};
|
|
1142
|
+
/// # let (tx, rx) = futures::channel::oneshot::channel();
|
|
1143
|
+
///
|
|
1144
|
+
/// let future03 = async {
|
|
1145
|
+
/// println!("Running on the pool");
|
|
1146
|
+
/// tx.send(42).unwrap();
|
|
1147
|
+
/// };
|
|
1148
|
+
///
|
|
1149
|
+
/// let future01 = future03
|
|
1150
|
+
/// .unit_error() // Make it a TryFuture
|
|
1151
|
+
/// .boxed() // Make it Unpin
|
|
1152
|
+
/// .compat();
|
|
1153
|
+
///
|
|
1154
|
+
/// tokio::run(future01);
|
|
1155
|
+
/// # assert_eq!(42, futures::executor::block_on(rx).unwrap());
|
|
1156
|
+
/// ```
|
|
1157
|
+
#[cfg(feature = "compat")]
|
|
1158
|
+
#[cfg_attr(docsrs, doc(cfg(feature = "compat")))]
|
|
1159
|
+
fn compat(self) -> Compat<Self>
|
|
1160
|
+
where
|
|
1161
|
+
Self: Sized + Unpin,
|
|
1162
|
+
{
|
|
1163
|
+
Compat::new(self)
|
|
1164
|
+
}
|
|
1165
|
+
|
|
1166
|
+
/// Adapter that converts this stream into an [`AsyncBufRead`](crate::io::AsyncBufRead).
|
|
1167
|
+
///
|
|
1168
|
+
/// This method is only available when the `std` feature of this
|
|
1169
|
+
/// library is activated, and it is activated by default.
|
|
1170
|
+
///
|
|
1171
|
+
/// # Examples
|
|
1172
|
+
///
|
|
1173
|
+
/// ```
|
|
1174
|
+
/// # futures::executor::block_on(async {
|
|
1175
|
+
/// use futures::stream::{self, TryStreamExt};
|
|
1176
|
+
/// use futures::io::AsyncReadExt;
|
|
1177
|
+
///
|
|
1178
|
+
/// let stream = stream::iter([Ok(vec![1, 2, 3]), Ok(vec![4, 5])]);
|
|
1179
|
+
/// let mut reader = stream.into_async_read();
|
|
1180
|
+
///
|
|
1181
|
+
/// let mut buf = Vec::new();
|
|
1182
|
+
/// reader.read_to_end(&mut buf).await.unwrap();
|
|
1183
|
+
/// assert_eq!(buf, [1, 2, 3, 4, 5]);
|
|
1184
|
+
/// # })
|
|
1185
|
+
/// ```
|
|
1186
|
+
#[cfg(feature = "io")]
|
|
1187
|
+
#[cfg_attr(docsrs, doc(cfg(feature = "io")))]
|
|
1188
|
+
#[cfg(feature = "std")]
|
|
1189
|
+
fn into_async_read(self) -> IntoAsyncRead<Self>
|
|
1190
|
+
where
|
|
1191
|
+
Self: Sized + TryStreamExt<Error = std::io::Error>,
|
|
1192
|
+
Self::Ok: AsRef<[u8]>,
|
|
1193
|
+
{
|
|
1194
|
+
crate::io::assert_read(IntoAsyncRead::new(self))
|
|
1195
|
+
}
|
|
1196
|
+
|
|
1197
|
+
/// Attempt to execute a predicate over an asynchronous stream and evaluate if all items
|
|
1198
|
+
/// satisfy the predicate. Exits early if an `Err` is encountered or if an `Ok` item is found
|
|
1199
|
+
/// that does not satisfy the predicate.
|
|
1200
|
+
///
|
|
1201
|
+
/// # Examples
|
|
1202
|
+
///
|
|
1203
|
+
/// ```
|
|
1204
|
+
/// # futures::executor::block_on(async {
|
|
1205
|
+
/// use futures::stream::{self, StreamExt, TryStreamExt};
|
|
1206
|
+
/// use std::convert::Infallible;
|
|
1207
|
+
///
|
|
1208
|
+
/// let number_stream = stream::iter(1..10).map(Ok::<_, Infallible>);
|
|
1209
|
+
/// let positive = number_stream.try_all(|i| async move { i > 0 });
|
|
1210
|
+
/// assert_eq!(positive.await, Ok(true));
|
|
1211
|
+
///
|
|
1212
|
+
/// let stream_with_errors = stream::iter([Ok(1), Err("err"), Ok(3)]);
|
|
1213
|
+
/// let positive = stream_with_errors.try_all(|i| async move { i > 0 });
|
|
1214
|
+
/// assert_eq!(positive.await, Err("err"));
|
|
1215
|
+
/// # });
|
|
1216
|
+
/// ```
|
|
1217
|
+
fn try_all<Fut, F>(self, f: F) -> TryAll<Self, Fut, F>
|
|
1218
|
+
where
|
|
1219
|
+
Self: Sized,
|
|
1220
|
+
F: FnMut(Self::Ok) -> Fut,
|
|
1221
|
+
Fut: Future<Output = bool>,
|
|
1222
|
+
{
|
|
1223
|
+
assert_future::<Result<bool, Self::Error>, _>(TryAll::new(self, f))
|
|
1224
|
+
}
|
|
1225
|
+
|
|
1226
|
+
/// Attempt to execute a predicate over an asynchronous stream and evaluate if any items
|
|
1227
|
+
/// satisfy the predicate. Exits early if an `Err` is encountered or if an `Ok` item is found
|
|
1228
|
+
/// that satisfies the predicate.
|
|
1229
|
+
///
|
|
1230
|
+
/// # Examples
|
|
1231
|
+
///
|
|
1232
|
+
/// ```
|
|
1233
|
+
/// # futures::executor::block_on(async {
|
|
1234
|
+
/// use futures::stream::{self, StreamExt, TryStreamExt};
|
|
1235
|
+
/// use std::convert::Infallible;
|
|
1236
|
+
///
|
|
1237
|
+
/// let number_stream = stream::iter(0..10).map(Ok::<_, Infallible>);
|
|
1238
|
+
/// let contain_three = number_stream.try_any(|i| async move { i == 3 });
|
|
1239
|
+
/// assert_eq!(contain_three.await, Ok(true));
|
|
1240
|
+
///
|
|
1241
|
+
/// let stream_with_errors = stream::iter([Ok(1), Err("err"), Ok(3)]);
|
|
1242
|
+
/// let contain_three = stream_with_errors.try_any(|i| async move { i == 3 });
|
|
1243
|
+
/// assert_eq!(contain_three.await, Err("err"));
|
|
1244
|
+
/// # });
|
|
1245
|
+
/// ```
|
|
1246
|
+
fn try_any<Fut, F>(self, f: F) -> TryAny<Self, Fut, F>
|
|
1247
|
+
where
|
|
1248
|
+
Self: Sized,
|
|
1249
|
+
F: FnMut(Self::Ok) -> Fut,
|
|
1250
|
+
Fut: Future<Output = bool>,
|
|
1251
|
+
{
|
|
1252
|
+
assert_future::<Result<bool, Self::Error>, _>(TryAny::new(self, f))
|
|
1253
|
+
}
|
|
1254
|
+
}
|