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,1770 @@
|
|
|
1
|
+
// SPDX-License-Identifier: Apache-2.0 OR MIT
|
|
2
|
+
|
|
3
|
+
/*!
|
|
4
|
+
<!-- Note: Document from sync-markdown-to-rustdoc:start through sync-markdown-to-rustdoc:end
|
|
5
|
+
is synchronized from README.md. Any changes to that range are not preserved. -->
|
|
6
|
+
<!-- tidy:sync-markdown-to-rustdoc:start -->
|
|
7
|
+
|
|
8
|
+
A lightweight version of [pin-project] written with declarative macros.
|
|
9
|
+
|
|
10
|
+
## Usage
|
|
11
|
+
|
|
12
|
+
Add this to your `Cargo.toml`:
|
|
13
|
+
|
|
14
|
+
```toml
|
|
15
|
+
[dependencies]
|
|
16
|
+
pin-project-lite = "0.2"
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## Examples
|
|
20
|
+
|
|
21
|
+
[`pin_project!`] macro creates a projection type covering all the fields of
|
|
22
|
+
struct.
|
|
23
|
+
|
|
24
|
+
```
|
|
25
|
+
use std::pin::Pin;
|
|
26
|
+
|
|
27
|
+
use pin_project_lite::pin_project;
|
|
28
|
+
|
|
29
|
+
pin_project! {
|
|
30
|
+
struct Struct<T, U> {
|
|
31
|
+
#[pin]
|
|
32
|
+
pinned: T,
|
|
33
|
+
unpinned: U,
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
impl<T, U> Struct<T, U> {
|
|
38
|
+
fn method(self: Pin<&mut Self>) {
|
|
39
|
+
let this = self.project();
|
|
40
|
+
let _: Pin<&mut T> = this.pinned; // Pinned reference to the field
|
|
41
|
+
let _: &mut U = this.unpinned; // Normal reference to the field
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
To use [`pin_project!`] on enums, you need to name the projection type
|
|
47
|
+
returned from the method.
|
|
48
|
+
|
|
49
|
+
```
|
|
50
|
+
use std::pin::Pin;
|
|
51
|
+
|
|
52
|
+
use pin_project_lite::pin_project;
|
|
53
|
+
|
|
54
|
+
pin_project! {
|
|
55
|
+
#[project = EnumProj]
|
|
56
|
+
enum Enum<T, U> {
|
|
57
|
+
Variant { #[pin] pinned: T, unpinned: U },
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
impl<T, U> Enum<T, U> {
|
|
62
|
+
fn method(self: Pin<&mut Self>) {
|
|
63
|
+
match self.project() {
|
|
64
|
+
EnumProj::Variant { pinned, unpinned } => {
|
|
65
|
+
let _: Pin<&mut T> = pinned;
|
|
66
|
+
let _: &mut U = unpinned;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
## [pin-project] vs pin-project-lite
|
|
74
|
+
|
|
75
|
+
Here are some similarities and differences compared to [pin-project].
|
|
76
|
+
|
|
77
|
+
### Similar: Safety
|
|
78
|
+
|
|
79
|
+
pin-project-lite guarantees safety in much the same way as [pin-project].
|
|
80
|
+
Both are completely safe unless you write other unsafe code.
|
|
81
|
+
|
|
82
|
+
### Different: Minimal design
|
|
83
|
+
|
|
84
|
+
This library does not tackle as expansive of a range of use cases as
|
|
85
|
+
[pin-project] does. If your use case is not already covered, please use
|
|
86
|
+
[pin-project].
|
|
87
|
+
|
|
88
|
+
### Different: No proc-macro related dependencies
|
|
89
|
+
|
|
90
|
+
This is the **only** reason to use this crate. However, **if you already
|
|
91
|
+
have proc-macro related dependencies in your crate's dependency graph, there
|
|
92
|
+
is no benefit from using this crate.** (Note: There is almost no difference
|
|
93
|
+
in the amount of code generated between [pin-project] and pin-project-lite.)
|
|
94
|
+
|
|
95
|
+
### Different: No useful error messages
|
|
96
|
+
|
|
97
|
+
This macro does not handle any invalid input. So error messages are not to
|
|
98
|
+
be useful in most cases. If you do need useful error messages, then upon
|
|
99
|
+
error you can pass the same input to [pin-project] to receive a helpful
|
|
100
|
+
description of the compile error.
|
|
101
|
+
|
|
102
|
+
### Different: No support for custom Unpin implementation
|
|
103
|
+
|
|
104
|
+
pin-project supports this by [`UnsafeUnpin`][unsafe-unpin]. (`!Unpin` is supported by both [pin-project][not-unpin] and [pin-project-lite][not-unpin-lite].)
|
|
105
|
+
|
|
106
|
+
### Different: No support for tuple structs and tuple variants
|
|
107
|
+
|
|
108
|
+
pin-project supports this.
|
|
109
|
+
|
|
110
|
+
[not-unpin]: https://docs.rs/pin-project/latest/pin_project/attr.pin_project.html#unpin
|
|
111
|
+
[pin-project]: https://github.com/taiki-e/pin-project
|
|
112
|
+
[unsafe-unpin]: https://docs.rs/pin-project/latest/pin_project/attr.pin_project.html#unsafeunpin
|
|
113
|
+
|
|
114
|
+
<!-- tidy:sync-markdown-to-rustdoc:end -->
|
|
115
|
+
|
|
116
|
+
[not-unpin-lite]: pin_project#unpin
|
|
117
|
+
*/
|
|
118
|
+
|
|
119
|
+
#![no_std]
|
|
120
|
+
#![doc(test(
|
|
121
|
+
no_crate_inject,
|
|
122
|
+
attr(allow(
|
|
123
|
+
dead_code,
|
|
124
|
+
unused_variables,
|
|
125
|
+
clippy::undocumented_unsafe_blocks,
|
|
126
|
+
clippy::unused_trait_names,
|
|
127
|
+
))
|
|
128
|
+
))]
|
|
129
|
+
// #![warn(unsafe_op_in_unsafe_fn)] // requires Rust 1.52
|
|
130
|
+
#![warn(
|
|
131
|
+
// Lints that may help when writing public library.
|
|
132
|
+
missing_debug_implementations,
|
|
133
|
+
missing_docs,
|
|
134
|
+
clippy::alloc_instead_of_core,
|
|
135
|
+
clippy::exhaustive_enums,
|
|
136
|
+
clippy::exhaustive_structs,
|
|
137
|
+
clippy::impl_trait_in_params,
|
|
138
|
+
clippy::std_instead_of_alloc,
|
|
139
|
+
clippy::std_instead_of_core,
|
|
140
|
+
// clippy::missing_inline_in_public_items,
|
|
141
|
+
)]
|
|
142
|
+
|
|
143
|
+
/// A macro that creates a projection type covering all the fields of struct.
|
|
144
|
+
///
|
|
145
|
+
/// This macro creates a projection type according to the following rules:
|
|
146
|
+
///
|
|
147
|
+
/// - For the field that uses `#[pin]` attribute, makes the pinned reference to the field.
|
|
148
|
+
/// - For the other fields, makes the unpinned reference to the field.
|
|
149
|
+
///
|
|
150
|
+
/// And the following methods are implemented on the original type:
|
|
151
|
+
///
|
|
152
|
+
/// ```
|
|
153
|
+
/// # use std::pin::Pin;
|
|
154
|
+
/// # type Projection<'a> = &'a ();
|
|
155
|
+
/// # type ProjectionRef<'a> = &'a ();
|
|
156
|
+
/// # trait Dox {
|
|
157
|
+
/// fn project(self: Pin<&mut Self>) -> Projection<'_>;
|
|
158
|
+
/// fn project_ref(self: Pin<&Self>) -> ProjectionRef<'_>;
|
|
159
|
+
/// # }
|
|
160
|
+
/// ```
|
|
161
|
+
///
|
|
162
|
+
/// By passing an attribute with the same name as the method to the macro,
|
|
163
|
+
/// you can name the projection type returned from the method. This allows you
|
|
164
|
+
/// to use pattern matching on the projected types.
|
|
165
|
+
///
|
|
166
|
+
/// ```
|
|
167
|
+
/// # use pin_project_lite::pin_project;
|
|
168
|
+
/// # use std::pin::Pin;
|
|
169
|
+
/// pin_project! {
|
|
170
|
+
/// #[project = EnumProj]
|
|
171
|
+
/// enum Enum<T> {
|
|
172
|
+
/// Variant { #[pin] field: T },
|
|
173
|
+
/// }
|
|
174
|
+
/// }
|
|
175
|
+
///
|
|
176
|
+
/// impl<T> Enum<T> {
|
|
177
|
+
/// fn method(self: Pin<&mut Self>) {
|
|
178
|
+
/// let this: EnumProj<'_, T> = self.project();
|
|
179
|
+
/// match this {
|
|
180
|
+
/// EnumProj::Variant { field } => {
|
|
181
|
+
/// let _: Pin<&mut T> = field;
|
|
182
|
+
/// }
|
|
183
|
+
/// }
|
|
184
|
+
/// }
|
|
185
|
+
/// }
|
|
186
|
+
/// ```
|
|
187
|
+
///
|
|
188
|
+
/// By passing the `#[project_replace = MyProjReplace]` attribute you may create an additional
|
|
189
|
+
/// method which allows the contents of `Pin<&mut Self>` to be replaced while simultaneously moving
|
|
190
|
+
/// out all unpinned fields in `Self`.
|
|
191
|
+
///
|
|
192
|
+
/// ```
|
|
193
|
+
/// # use std::pin::Pin;
|
|
194
|
+
/// # type MyProjReplace = ();
|
|
195
|
+
/// # trait Dox {
|
|
196
|
+
/// fn project_replace(self: Pin<&mut Self>, replacement: Self) -> MyProjReplace;
|
|
197
|
+
/// # }
|
|
198
|
+
/// ```
|
|
199
|
+
///
|
|
200
|
+
/// Also, note that the projection types returned by `project` and `project_ref` have
|
|
201
|
+
/// an additional lifetime at the beginning of generics.
|
|
202
|
+
///
|
|
203
|
+
/// ```text
|
|
204
|
+
/// let this: EnumProj<'_, T> = self.project();
|
|
205
|
+
/// ^^
|
|
206
|
+
/// ```
|
|
207
|
+
///
|
|
208
|
+
/// The visibility of the projected types and projection methods is based on the
|
|
209
|
+
/// original type. However, if the visibility of the original type is `pub`, the
|
|
210
|
+
/// visibility of the projected types and the projection methods is downgraded
|
|
211
|
+
/// to `pub(crate)`.
|
|
212
|
+
///
|
|
213
|
+
/// # Safety
|
|
214
|
+
///
|
|
215
|
+
/// `pin_project!` macro guarantees safety in much the same way as [pin-project] crate.
|
|
216
|
+
/// Both are completely safe unless you write other unsafe code.
|
|
217
|
+
///
|
|
218
|
+
/// See [pin-project] crate for more details.
|
|
219
|
+
///
|
|
220
|
+
/// # Examples
|
|
221
|
+
///
|
|
222
|
+
/// ```
|
|
223
|
+
/// use std::pin::Pin;
|
|
224
|
+
///
|
|
225
|
+
/// use pin_project_lite::pin_project;
|
|
226
|
+
///
|
|
227
|
+
/// pin_project! {
|
|
228
|
+
/// struct Struct<T, U> {
|
|
229
|
+
/// #[pin]
|
|
230
|
+
/// pinned: T,
|
|
231
|
+
/// unpinned: U,
|
|
232
|
+
/// }
|
|
233
|
+
/// }
|
|
234
|
+
///
|
|
235
|
+
/// impl<T, U> Struct<T, U> {
|
|
236
|
+
/// fn method(self: Pin<&mut Self>) {
|
|
237
|
+
/// let this = self.project();
|
|
238
|
+
/// let _: Pin<&mut T> = this.pinned; // Pinned reference to the field
|
|
239
|
+
/// let _: &mut U = this.unpinned; // Normal reference to the field
|
|
240
|
+
/// }
|
|
241
|
+
/// }
|
|
242
|
+
/// ```
|
|
243
|
+
///
|
|
244
|
+
/// To use `pin_project!` on enums, you need to name the projection type
|
|
245
|
+
/// returned from the method.
|
|
246
|
+
///
|
|
247
|
+
/// ```
|
|
248
|
+
/// use std::pin::Pin;
|
|
249
|
+
///
|
|
250
|
+
/// use pin_project_lite::pin_project;
|
|
251
|
+
///
|
|
252
|
+
/// pin_project! {
|
|
253
|
+
/// #[project = EnumProj]
|
|
254
|
+
/// enum Enum<T> {
|
|
255
|
+
/// Struct {
|
|
256
|
+
/// #[pin]
|
|
257
|
+
/// field: T,
|
|
258
|
+
/// },
|
|
259
|
+
/// Unit,
|
|
260
|
+
/// }
|
|
261
|
+
/// }
|
|
262
|
+
///
|
|
263
|
+
/// impl<T> Enum<T> {
|
|
264
|
+
/// fn method(self: Pin<&mut Self>) {
|
|
265
|
+
/// match self.project() {
|
|
266
|
+
/// EnumProj::Struct { field } => {
|
|
267
|
+
/// let _: Pin<&mut T> = field;
|
|
268
|
+
/// }
|
|
269
|
+
/// EnumProj::Unit => {}
|
|
270
|
+
/// }
|
|
271
|
+
/// }
|
|
272
|
+
/// }
|
|
273
|
+
/// ```
|
|
274
|
+
///
|
|
275
|
+
/// If you want to call the `project()` method multiple times or later use the
|
|
276
|
+
/// original [`Pin`] type, it needs to use [`.as_mut()`][`Pin::as_mut`] to avoid
|
|
277
|
+
/// consuming the [`Pin`].
|
|
278
|
+
///
|
|
279
|
+
/// ```
|
|
280
|
+
/// use std::pin::Pin;
|
|
281
|
+
///
|
|
282
|
+
/// use pin_project_lite::pin_project;
|
|
283
|
+
///
|
|
284
|
+
/// pin_project! {
|
|
285
|
+
/// struct Struct<T> {
|
|
286
|
+
/// #[pin]
|
|
287
|
+
/// field: T,
|
|
288
|
+
/// }
|
|
289
|
+
/// }
|
|
290
|
+
///
|
|
291
|
+
/// impl<T> Struct<T> {
|
|
292
|
+
/// fn call_project_twice(mut self: Pin<&mut Self>) {
|
|
293
|
+
/// // `project` consumes `self`, so reborrow the `Pin<&mut Self>` via `as_mut`.
|
|
294
|
+
/// self.as_mut().project();
|
|
295
|
+
/// self.as_mut().project();
|
|
296
|
+
/// }
|
|
297
|
+
/// }
|
|
298
|
+
/// ```
|
|
299
|
+
///
|
|
300
|
+
/// # `!Unpin`
|
|
301
|
+
///
|
|
302
|
+
/// If you want to make sure `Unpin` is not implemented, use the `#[project(!Unpin)]`
|
|
303
|
+
/// attribute.
|
|
304
|
+
///
|
|
305
|
+
/// ```
|
|
306
|
+
/// use pin_project_lite::pin_project;
|
|
307
|
+
///
|
|
308
|
+
/// pin_project! {
|
|
309
|
+
/// #[project(!Unpin)]
|
|
310
|
+
/// struct Struct<T> {
|
|
311
|
+
/// #[pin]
|
|
312
|
+
/// field: T,
|
|
313
|
+
/// }
|
|
314
|
+
/// }
|
|
315
|
+
/// ```
|
|
316
|
+
///
|
|
317
|
+
/// This is equivalent to using `#[pin]` attribute for a [`PhantomPinned`] field.
|
|
318
|
+
///
|
|
319
|
+
/// ```
|
|
320
|
+
/// use std::marker::PhantomPinned;
|
|
321
|
+
///
|
|
322
|
+
/// use pin_project_lite::pin_project;
|
|
323
|
+
///
|
|
324
|
+
/// pin_project! {
|
|
325
|
+
/// struct Struct<T> {
|
|
326
|
+
/// field: T,
|
|
327
|
+
/// #[pin]
|
|
328
|
+
/// _pin: PhantomPinned,
|
|
329
|
+
/// }
|
|
330
|
+
/// }
|
|
331
|
+
/// ```
|
|
332
|
+
///
|
|
333
|
+
/// Note that using [`PhantomPinned`] without `#[pin]` or `#[project(!Unpin)]`
|
|
334
|
+
/// attribute has no effect.
|
|
335
|
+
///
|
|
336
|
+
/// # Pinned Drop
|
|
337
|
+
///
|
|
338
|
+
/// In order to correctly implement pin projections, a type's [`Drop`] impl must not move out of any
|
|
339
|
+
/// structurally pinned fields. Unfortunately, [`Drop::drop`] takes `&mut Self`, not `Pin<&mut Self>`.
|
|
340
|
+
///
|
|
341
|
+
/// To implement [`Drop`] for type that has pin, add an `impl PinnedDrop` block at the end of the
|
|
342
|
+
/// [`pin_project`] macro block. PinnedDrop has the following interface:
|
|
343
|
+
///
|
|
344
|
+
/// ```
|
|
345
|
+
/// # use std::pin::Pin;
|
|
346
|
+
/// trait PinnedDrop {
|
|
347
|
+
/// fn drop(this: Pin<&mut Self>);
|
|
348
|
+
/// }
|
|
349
|
+
/// ```
|
|
350
|
+
///
|
|
351
|
+
/// Note that the argument to `PinnedDrop::drop` cannot be named `self`.
|
|
352
|
+
///
|
|
353
|
+
/// `pin_project!` implements the actual [`Drop`] trait via PinnedDrop you implemented. To
|
|
354
|
+
/// explicitly drop a type that implements PinnedDrop, use the [drop] function just like dropping a
|
|
355
|
+
/// type that directly implements [`Drop`].
|
|
356
|
+
///
|
|
357
|
+
/// `PinnedDrop::drop` will never be called more than once, just like [`Drop::drop`].
|
|
358
|
+
///
|
|
359
|
+
/// ```
|
|
360
|
+
/// use pin_project_lite::pin_project;
|
|
361
|
+
///
|
|
362
|
+
/// pin_project! {
|
|
363
|
+
/// pub struct Struct<'a> {
|
|
364
|
+
/// was_dropped: &'a mut bool,
|
|
365
|
+
/// #[pin]
|
|
366
|
+
/// field: u8,
|
|
367
|
+
/// }
|
|
368
|
+
///
|
|
369
|
+
/// impl PinnedDrop for Struct<'_> {
|
|
370
|
+
/// fn drop(this: Pin<&mut Self>) { // <----- NOTE: this is not `self`
|
|
371
|
+
/// **this.project().was_dropped = true;
|
|
372
|
+
/// }
|
|
373
|
+
/// }
|
|
374
|
+
/// }
|
|
375
|
+
///
|
|
376
|
+
/// let mut was_dropped = false;
|
|
377
|
+
/// drop(Struct { was_dropped: &mut was_dropped, field: 42 });
|
|
378
|
+
/// assert!(was_dropped);
|
|
379
|
+
/// ```
|
|
380
|
+
///
|
|
381
|
+
/// [`PhantomPinned`]: core::marker::PhantomPinned
|
|
382
|
+
/// [`Pin::as_mut`]: core::pin::Pin::as_mut
|
|
383
|
+
/// [`Pin`]: core::pin::Pin
|
|
384
|
+
/// [pin-project]: https://github.com/taiki-e/pin-project
|
|
385
|
+
#[macro_export]
|
|
386
|
+
macro_rules! pin_project {
|
|
387
|
+
($($tt:tt)*) => {
|
|
388
|
+
$crate::__pin_project_internal! {
|
|
389
|
+
[][][][][]
|
|
390
|
+
$($tt)*
|
|
391
|
+
}
|
|
392
|
+
};
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
// limitations:
|
|
396
|
+
// - no support for tuple structs and tuple variant (wontfix).
|
|
397
|
+
// - no support for multiple trait/lifetime bounds.
|
|
398
|
+
// - no support for `Self` in where clauses. (wontfix)
|
|
399
|
+
// - no support for overlapping lifetime names. (wontfix)
|
|
400
|
+
// - no interoperability with other field attributes.
|
|
401
|
+
// - no useful error messages. (wontfix)
|
|
402
|
+
// etc...
|
|
403
|
+
|
|
404
|
+
#[doc(hidden)]
|
|
405
|
+
#[macro_export]
|
|
406
|
+
macro_rules! __pin_project_expand {
|
|
407
|
+
(
|
|
408
|
+
[$($proj_mut_ident:ident)?]
|
|
409
|
+
[$($proj_ref_ident:ident)?]
|
|
410
|
+
[$($proj_replace_ident:ident)?]
|
|
411
|
+
[$($proj_not_unpin_mark:ident)?]
|
|
412
|
+
[$proj_vis:vis]
|
|
413
|
+
[$(#[$attrs:meta])* $vis:vis $struct_ty_ident:ident $ident:ident]
|
|
414
|
+
[$($def_generics:tt)*]
|
|
415
|
+
[$($impl_generics:tt)*] [$($ty_generics:tt)*] [$(where $($where_clause:tt)*)?]
|
|
416
|
+
{
|
|
417
|
+
$($body_data:tt)*
|
|
418
|
+
}
|
|
419
|
+
$($(#[$drop_impl_attrs:meta])* impl $($pinned_drop:tt)*)?
|
|
420
|
+
) => {
|
|
421
|
+
$crate::__pin_project_reconstruct! {
|
|
422
|
+
[$(#[$attrs])* $vis $struct_ty_ident $ident]
|
|
423
|
+
[$($def_generics)*] [$($impl_generics)*]
|
|
424
|
+
[$($ty_generics)*] [$(where $($where_clause)*)?]
|
|
425
|
+
{
|
|
426
|
+
$($body_data)*
|
|
427
|
+
}
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
$crate::__pin_project_make_proj_ty! {
|
|
431
|
+
[$($proj_mut_ident)?]
|
|
432
|
+
[$proj_vis $struct_ty_ident $ident]
|
|
433
|
+
[__pin_project_make_proj_field_mut]
|
|
434
|
+
[$($impl_generics)*] [$($ty_generics)*] [$(where $($where_clause)*)?]
|
|
435
|
+
{
|
|
436
|
+
$($body_data)*
|
|
437
|
+
}
|
|
438
|
+
}
|
|
439
|
+
$crate::__pin_project_make_proj_ty! {
|
|
440
|
+
[$($proj_ref_ident)?]
|
|
441
|
+
[$proj_vis $struct_ty_ident $ident]
|
|
442
|
+
[__pin_project_make_proj_field_ref]
|
|
443
|
+
[$($impl_generics)*] [$($ty_generics)*] [$(where $($where_clause)*)?]
|
|
444
|
+
{
|
|
445
|
+
$($body_data)*
|
|
446
|
+
}
|
|
447
|
+
}
|
|
448
|
+
$crate::__pin_project_make_proj_replace_ty! {
|
|
449
|
+
[$($proj_replace_ident)?]
|
|
450
|
+
[$proj_vis $struct_ty_ident]
|
|
451
|
+
[__pin_project_make_proj_field_replace]
|
|
452
|
+
[$($impl_generics)*] [$($ty_generics)*] [$(where $($where_clause)*)?]
|
|
453
|
+
{
|
|
454
|
+
$($body_data)*
|
|
455
|
+
}
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
$crate::__pin_project_constant! {
|
|
459
|
+
[$(#[$attrs])* $vis $struct_ty_ident $ident]
|
|
460
|
+
[$($proj_mut_ident)?] [$($proj_ref_ident)?] [$($proj_replace_ident)?]
|
|
461
|
+
[$($proj_not_unpin_mark)?]
|
|
462
|
+
[$proj_vis]
|
|
463
|
+
[$($def_generics)*] [$($impl_generics)*]
|
|
464
|
+
[$($ty_generics)*] [$(where $($where_clause)*)?]
|
|
465
|
+
{
|
|
466
|
+
$($body_data)*
|
|
467
|
+
}
|
|
468
|
+
$($(#[$drop_impl_attrs])* impl $($pinned_drop)*)?
|
|
469
|
+
}
|
|
470
|
+
};
|
|
471
|
+
}
|
|
472
|
+
|
|
473
|
+
#[doc(hidden)]
|
|
474
|
+
#[macro_export]
|
|
475
|
+
macro_rules! __pin_project_constant {
|
|
476
|
+
(
|
|
477
|
+
[$(#[$attrs:meta])* $vis:vis struct $ident:ident]
|
|
478
|
+
[$($proj_mut_ident:ident)?] [$($proj_ref_ident:ident)?] [$($proj_replace_ident:ident)?]
|
|
479
|
+
[$($proj_not_unpin_mark:ident)?]
|
|
480
|
+
[$proj_vis:vis]
|
|
481
|
+
[$($def_generics:tt)*]
|
|
482
|
+
[$($impl_generics:tt)*] [$($ty_generics:tt)*] [$(where $($where_clause:tt)*)?]
|
|
483
|
+
{
|
|
484
|
+
$(
|
|
485
|
+
$(#[$pin:ident])?
|
|
486
|
+
$field_vis:vis $field:ident: $field_ty:ty
|
|
487
|
+
),+ $(,)?
|
|
488
|
+
}
|
|
489
|
+
$($(#[$drop_impl_attrs:meta])* impl $($pinned_drop:tt)*)?
|
|
490
|
+
) => {
|
|
491
|
+
#[allow(
|
|
492
|
+
explicit_outlives_requirements, // https://github.com/rust-lang/rust/issues/60993
|
|
493
|
+
single_use_lifetimes, // https://github.com/rust-lang/rust/issues/55058
|
|
494
|
+
// This lint warns of `clippy::*` generated by external macros.
|
|
495
|
+
// We allow this lint for compatibility with older compilers.
|
|
496
|
+
clippy::unknown_clippy_lints,
|
|
497
|
+
clippy::absolute_paths,
|
|
498
|
+
clippy::min_ident_chars,
|
|
499
|
+
clippy::redundant_pub_crate, // This lint warns `pub(crate)` field in private struct.
|
|
500
|
+
clippy::single_char_lifetime_names,
|
|
501
|
+
clippy::used_underscore_binding
|
|
502
|
+
)]
|
|
503
|
+
const _: () = {
|
|
504
|
+
$crate::__pin_project_make_proj_ty! {
|
|
505
|
+
[$($proj_mut_ident)? Projection]
|
|
506
|
+
[$proj_vis struct $ident]
|
|
507
|
+
[__pin_project_make_proj_field_mut]
|
|
508
|
+
[$($impl_generics)*] [$($ty_generics)*] [$(where $($where_clause)*)?]
|
|
509
|
+
{
|
|
510
|
+
$(
|
|
511
|
+
$(#[$pin])?
|
|
512
|
+
$field_vis $field: $field_ty
|
|
513
|
+
),+
|
|
514
|
+
}
|
|
515
|
+
}
|
|
516
|
+
$crate::__pin_project_make_proj_ty! {
|
|
517
|
+
[$($proj_ref_ident)? ProjectionRef]
|
|
518
|
+
[$proj_vis struct $ident]
|
|
519
|
+
[__pin_project_make_proj_field_ref]
|
|
520
|
+
[$($impl_generics)*] [$($ty_generics)*] [$(where $($where_clause)*)?]
|
|
521
|
+
{
|
|
522
|
+
$(
|
|
523
|
+
$(#[$pin])?
|
|
524
|
+
$field_vis $field: $field_ty
|
|
525
|
+
),+
|
|
526
|
+
}
|
|
527
|
+
}
|
|
528
|
+
|
|
529
|
+
impl<$($impl_generics)*> $ident <$($ty_generics)*>
|
|
530
|
+
$(where
|
|
531
|
+
$($where_clause)*)?
|
|
532
|
+
{
|
|
533
|
+
$crate::__pin_project_struct_make_proj_method! {
|
|
534
|
+
[$($proj_mut_ident)? Projection]
|
|
535
|
+
[$proj_vis]
|
|
536
|
+
[project get_unchecked_mut mut]
|
|
537
|
+
[$($ty_generics)*]
|
|
538
|
+
{
|
|
539
|
+
$(
|
|
540
|
+
$(#[$pin])?
|
|
541
|
+
$field_vis $field
|
|
542
|
+
),+
|
|
543
|
+
}
|
|
544
|
+
}
|
|
545
|
+
$crate::__pin_project_struct_make_proj_method! {
|
|
546
|
+
[$($proj_ref_ident)? ProjectionRef]
|
|
547
|
+
[$proj_vis]
|
|
548
|
+
[project_ref get_ref]
|
|
549
|
+
[$($ty_generics)*]
|
|
550
|
+
{
|
|
551
|
+
$(
|
|
552
|
+
$(#[$pin])?
|
|
553
|
+
$field_vis $field
|
|
554
|
+
),+
|
|
555
|
+
}
|
|
556
|
+
}
|
|
557
|
+
$crate::__pin_project_struct_make_proj_replace_method! {
|
|
558
|
+
[$($proj_replace_ident)?]
|
|
559
|
+
[$proj_vis]
|
|
560
|
+
[ProjectionReplace]
|
|
561
|
+
[$($ty_generics)*]
|
|
562
|
+
{
|
|
563
|
+
$(
|
|
564
|
+
$(#[$pin])?
|
|
565
|
+
$field_vis $field
|
|
566
|
+
),+
|
|
567
|
+
}
|
|
568
|
+
}
|
|
569
|
+
}
|
|
570
|
+
|
|
571
|
+
$crate::__pin_project_make_unpin_impl! {
|
|
572
|
+
[$($proj_not_unpin_mark)?]
|
|
573
|
+
[$vis $ident]
|
|
574
|
+
[$($impl_generics)*] [$($ty_generics)*] [$(where $($where_clause)*)?]
|
|
575
|
+
$(
|
|
576
|
+
$field: $crate::__pin_project_make_unpin_bound!(
|
|
577
|
+
$(#[$pin])? $field_ty
|
|
578
|
+
)
|
|
579
|
+
),+
|
|
580
|
+
}
|
|
581
|
+
|
|
582
|
+
$crate::__pin_project_make_drop_impl! {
|
|
583
|
+
[$ident]
|
|
584
|
+
[$($impl_generics)*] [$($ty_generics)*] [$(where $($where_clause)*)?]
|
|
585
|
+
$($(#[$drop_impl_attrs])* impl $($pinned_drop)*)?
|
|
586
|
+
}
|
|
587
|
+
|
|
588
|
+
// Ensure that it's impossible to use pin projections on a #[repr(packed)] struct.
|
|
589
|
+
//
|
|
590
|
+
// Taking a reference to a packed field is UB, and applying
|
|
591
|
+
// `#[forbid(unaligned_references)]` makes sure that doing this is a hard error.
|
|
592
|
+
//
|
|
593
|
+
// If the struct ends up having #[repr(packed)] applied somehow,
|
|
594
|
+
// this will generate an (unfriendly) error message. Under all reasonable
|
|
595
|
+
// circumstances, we'll detect the #[repr(packed)] attribute, and generate
|
|
596
|
+
// a much nicer error above.
|
|
597
|
+
//
|
|
598
|
+
// See https://github.com/taiki-e/pin-project/pull/34 for more details.
|
|
599
|
+
//
|
|
600
|
+
// Note:
|
|
601
|
+
// - Lint-based tricks aren't perfect, but they're much better than nothing:
|
|
602
|
+
// https://github.com/taiki-e/pin-project-lite/issues/26
|
|
603
|
+
//
|
|
604
|
+
// - Enable both unaligned_references and safe_packed_borrows lints
|
|
605
|
+
// because unaligned_references lint does not exist in older compilers:
|
|
606
|
+
// https://github.com/taiki-e/pin-project-lite/pull/55
|
|
607
|
+
// https://github.com/rust-lang/rust/pull/82525
|
|
608
|
+
#[forbid(unaligned_references, safe_packed_borrows)]
|
|
609
|
+
fn __assert_not_repr_packed <$($impl_generics)*> (this: &$ident <$($ty_generics)*>)
|
|
610
|
+
$(where
|
|
611
|
+
$($where_clause)*)?
|
|
612
|
+
{
|
|
613
|
+
$(
|
|
614
|
+
let _ = &this.$field;
|
|
615
|
+
)+
|
|
616
|
+
}
|
|
617
|
+
};
|
|
618
|
+
};
|
|
619
|
+
(
|
|
620
|
+
[$(#[$attrs:meta])* $vis:vis enum $ident:ident]
|
|
621
|
+
[$($proj_mut_ident:ident)?] [$($proj_ref_ident:ident)?] [$($proj_replace_ident:ident)?]
|
|
622
|
+
[$($proj_not_unpin_mark:ident)?]
|
|
623
|
+
[$proj_vis:vis]
|
|
624
|
+
[$($def_generics:tt)*]
|
|
625
|
+
[$($impl_generics:tt)*] [$($ty_generics:tt)*] [$(where $($where_clause:tt)*)?]
|
|
626
|
+
{
|
|
627
|
+
$(
|
|
628
|
+
$(#[$variant_attrs:meta])*
|
|
629
|
+
$variant:ident $({
|
|
630
|
+
$(
|
|
631
|
+
$(#[$pin:ident])?
|
|
632
|
+
$field:ident: $field_ty:ty
|
|
633
|
+
),+ $(,)?
|
|
634
|
+
})?
|
|
635
|
+
),+ $(,)?
|
|
636
|
+
}
|
|
637
|
+
$($(#[$drop_impl_attrs:meta])* impl $($pinned_drop:tt)*)?
|
|
638
|
+
) => {
|
|
639
|
+
#[allow(
|
|
640
|
+
single_use_lifetimes, // https://github.com/rust-lang/rust/issues/55058
|
|
641
|
+
// This lint warns of `clippy::*` generated by external macros.
|
|
642
|
+
// We allow this lint for compatibility with older compilers.
|
|
643
|
+
clippy::unknown_clippy_lints,
|
|
644
|
+
clippy::absolute_paths,
|
|
645
|
+
clippy::min_ident_chars,
|
|
646
|
+
clippy::single_char_lifetime_names,
|
|
647
|
+
clippy::used_underscore_binding
|
|
648
|
+
)]
|
|
649
|
+
const _: () = {
|
|
650
|
+
impl<$($impl_generics)*> $ident <$($ty_generics)*>
|
|
651
|
+
$(where
|
|
652
|
+
$($where_clause)*)?
|
|
653
|
+
{
|
|
654
|
+
$crate::__pin_project_enum_make_proj_method! {
|
|
655
|
+
[$($proj_mut_ident)?]
|
|
656
|
+
[$proj_vis]
|
|
657
|
+
[project get_unchecked_mut mut]
|
|
658
|
+
[$($ty_generics)*]
|
|
659
|
+
{
|
|
660
|
+
$(
|
|
661
|
+
$variant $({
|
|
662
|
+
$(
|
|
663
|
+
$(#[$pin])?
|
|
664
|
+
$field
|
|
665
|
+
),+
|
|
666
|
+
})?
|
|
667
|
+
),+
|
|
668
|
+
}
|
|
669
|
+
}
|
|
670
|
+
$crate::__pin_project_enum_make_proj_method! {
|
|
671
|
+
[$($proj_ref_ident)?]
|
|
672
|
+
[$proj_vis]
|
|
673
|
+
[project_ref get_ref]
|
|
674
|
+
[$($ty_generics)*]
|
|
675
|
+
{
|
|
676
|
+
$(
|
|
677
|
+
$variant $({
|
|
678
|
+
$(
|
|
679
|
+
$(#[$pin])?
|
|
680
|
+
$field
|
|
681
|
+
),+
|
|
682
|
+
})?
|
|
683
|
+
),+
|
|
684
|
+
}
|
|
685
|
+
}
|
|
686
|
+
$crate::__pin_project_enum_make_proj_replace_method! {
|
|
687
|
+
[$($proj_replace_ident)?]
|
|
688
|
+
[$proj_vis]
|
|
689
|
+
[$($ty_generics)*]
|
|
690
|
+
{
|
|
691
|
+
$(
|
|
692
|
+
$variant $({
|
|
693
|
+
$(
|
|
694
|
+
$(#[$pin])?
|
|
695
|
+
$field
|
|
696
|
+
),+
|
|
697
|
+
})?
|
|
698
|
+
),+
|
|
699
|
+
}
|
|
700
|
+
}
|
|
701
|
+
}
|
|
702
|
+
|
|
703
|
+
$crate::__pin_project_make_unpin_impl! {
|
|
704
|
+
[$($proj_not_unpin_mark)?]
|
|
705
|
+
[$vis $ident]
|
|
706
|
+
[$($impl_generics)*] [$($ty_generics)*] [$(where $($where_clause)*)?]
|
|
707
|
+
$(
|
|
708
|
+
$variant: ($(
|
|
709
|
+
$(
|
|
710
|
+
$crate::__pin_project_make_unpin_bound!(
|
|
711
|
+
$(#[$pin])? $field_ty
|
|
712
|
+
)
|
|
713
|
+
),+
|
|
714
|
+
)?)
|
|
715
|
+
),+
|
|
716
|
+
}
|
|
717
|
+
|
|
718
|
+
$crate::__pin_project_make_drop_impl! {
|
|
719
|
+
[$ident]
|
|
720
|
+
[$($impl_generics)*] [$($ty_generics)*] [$(where $($where_clause)*)?]
|
|
721
|
+
$($(#[$drop_impl_attrs])* impl $($pinned_drop)*)?
|
|
722
|
+
}
|
|
723
|
+
|
|
724
|
+
// We don't need to check for '#[repr(packed)]',
|
|
725
|
+
// since it does not apply to enums.
|
|
726
|
+
};
|
|
727
|
+
};
|
|
728
|
+
}
|
|
729
|
+
|
|
730
|
+
#[doc(hidden)]
|
|
731
|
+
#[macro_export]
|
|
732
|
+
macro_rules! __pin_project_reconstruct {
|
|
733
|
+
(
|
|
734
|
+
[$(#[$attrs:meta])* $vis:vis struct $ident:ident]
|
|
735
|
+
[$($def_generics:tt)*] [$($impl_generics:tt)*]
|
|
736
|
+
[$($ty_generics:tt)*] [$(where $($where_clause:tt)*)?]
|
|
737
|
+
{
|
|
738
|
+
$(
|
|
739
|
+
$(#[$pin:ident])?
|
|
740
|
+
$field_vis:vis $field:ident: $field_ty:ty
|
|
741
|
+
),+ $(,)?
|
|
742
|
+
}
|
|
743
|
+
) => {
|
|
744
|
+
$(#[$attrs])*
|
|
745
|
+
$vis struct $ident $($def_generics)*
|
|
746
|
+
$(where
|
|
747
|
+
$($where_clause)*)?
|
|
748
|
+
{
|
|
749
|
+
$(
|
|
750
|
+
$field_vis $field: $field_ty
|
|
751
|
+
),+
|
|
752
|
+
}
|
|
753
|
+
};
|
|
754
|
+
(
|
|
755
|
+
[$(#[$attrs:meta])* $vis:vis enum $ident:ident]
|
|
756
|
+
[$($def_generics:tt)*] [$($impl_generics:tt)*]
|
|
757
|
+
[$($ty_generics:tt)*] [$(where $($where_clause:tt)*)?]
|
|
758
|
+
{
|
|
759
|
+
$(
|
|
760
|
+
$(#[$variant_attrs:meta])*
|
|
761
|
+
$variant:ident $({
|
|
762
|
+
$(
|
|
763
|
+
$(#[$pin:ident])?
|
|
764
|
+
$field:ident: $field_ty:ty
|
|
765
|
+
),+ $(,)?
|
|
766
|
+
})?
|
|
767
|
+
),+ $(,)?
|
|
768
|
+
}
|
|
769
|
+
) => {
|
|
770
|
+
$(#[$attrs])*
|
|
771
|
+
$vis enum $ident $($def_generics)*
|
|
772
|
+
$(where
|
|
773
|
+
$($where_clause)*)?
|
|
774
|
+
{
|
|
775
|
+
$(
|
|
776
|
+
$(#[$variant_attrs])*
|
|
777
|
+
$variant $({
|
|
778
|
+
$(
|
|
779
|
+
$field: $field_ty
|
|
780
|
+
),+
|
|
781
|
+
})?
|
|
782
|
+
),+
|
|
783
|
+
}
|
|
784
|
+
};
|
|
785
|
+
}
|
|
786
|
+
|
|
787
|
+
#[doc(hidden)]
|
|
788
|
+
#[macro_export]
|
|
789
|
+
macro_rules! __pin_project_make_proj_ty {
|
|
790
|
+
([] $($field:tt)*) => {};
|
|
791
|
+
(
|
|
792
|
+
[$proj_ty_ident:ident $default_ident:ident]
|
|
793
|
+
[$proj_vis:vis struct $ident:ident]
|
|
794
|
+
$($field:tt)*
|
|
795
|
+
) => {};
|
|
796
|
+
(
|
|
797
|
+
[$proj_ty_ident:ident]
|
|
798
|
+
[$proj_vis:vis struct $ident:ident]
|
|
799
|
+
[$__pin_project_make_proj_field:ident]
|
|
800
|
+
[$($impl_generics:tt)*] [$($ty_generics:tt)*] [$(where $($where_clause:tt)*)?]
|
|
801
|
+
{
|
|
802
|
+
$(
|
|
803
|
+
$(#[$pin:ident])?
|
|
804
|
+
$field_vis:vis $field:ident: $field_ty:ty
|
|
805
|
+
),+ $(,)?
|
|
806
|
+
}
|
|
807
|
+
) => {
|
|
808
|
+
$crate::__pin_project_make_proj_ty_body! {
|
|
809
|
+
[$proj_ty_ident]
|
|
810
|
+
[$proj_vis struct $ident]
|
|
811
|
+
[$($impl_generics)*] [$($ty_generics)*] [$(where $($where_clause)*)?]
|
|
812
|
+
[
|
|
813
|
+
$(
|
|
814
|
+
$field_vis $field: $crate::$__pin_project_make_proj_field!(
|
|
815
|
+
$(#[$pin])? $field_ty
|
|
816
|
+
)
|
|
817
|
+
),+
|
|
818
|
+
]
|
|
819
|
+
}
|
|
820
|
+
};
|
|
821
|
+
(
|
|
822
|
+
[$proj_ty_ident:ident]
|
|
823
|
+
[$proj_vis:vis enum $ident:ident]
|
|
824
|
+
[$__pin_project_make_proj_field:ident]
|
|
825
|
+
[$($impl_generics:tt)*] [$($ty_generics:tt)*] [$(where $($where_clause:tt)*)?]
|
|
826
|
+
{
|
|
827
|
+
$(
|
|
828
|
+
$(#[$variant_attrs:meta])*
|
|
829
|
+
$variant:ident $({
|
|
830
|
+
$(
|
|
831
|
+
$(#[$pin:ident])?
|
|
832
|
+
$field:ident: $field_ty:ty
|
|
833
|
+
),+ $(,)?
|
|
834
|
+
})?
|
|
835
|
+
),+ $(,)?
|
|
836
|
+
}
|
|
837
|
+
) => {
|
|
838
|
+
$crate::__pin_project_make_proj_ty_body! {
|
|
839
|
+
[$proj_ty_ident]
|
|
840
|
+
[$proj_vis enum $ident]
|
|
841
|
+
[$($impl_generics)*] [$($ty_generics)*] [$(where $($where_clause)*)?]
|
|
842
|
+
[
|
|
843
|
+
$(
|
|
844
|
+
$variant $({
|
|
845
|
+
$(
|
|
846
|
+
$field: $crate::$__pin_project_make_proj_field!(
|
|
847
|
+
$(#[$pin])? $field_ty
|
|
848
|
+
)
|
|
849
|
+
),+
|
|
850
|
+
})?
|
|
851
|
+
),+
|
|
852
|
+
]
|
|
853
|
+
}
|
|
854
|
+
};
|
|
855
|
+
}
|
|
856
|
+
|
|
857
|
+
#[doc(hidden)]
|
|
858
|
+
#[macro_export]
|
|
859
|
+
macro_rules! __pin_project_make_proj_ty_body {
|
|
860
|
+
(
|
|
861
|
+
[$proj_ty_ident:ident]
|
|
862
|
+
[$proj_vis:vis $struct_ty_ident:ident $ident:ident]
|
|
863
|
+
[$($impl_generics:tt)*] [$($ty_generics:tt)*] [$(where $($where_clause:tt)*)?]
|
|
864
|
+
[$($body_data:tt)+]
|
|
865
|
+
) => {
|
|
866
|
+
#[doc(hidden)] // Workaround for rustc bug: see https://github.com/taiki-e/pin-project-lite/issues/77#issuecomment-1671540180 for more.
|
|
867
|
+
#[allow(
|
|
868
|
+
dead_code, // This lint warns unused fields/variants.
|
|
869
|
+
single_use_lifetimes, // https://github.com/rust-lang/rust/issues/55058
|
|
870
|
+
// This lint warns of `clippy::*` generated by external macros.
|
|
871
|
+
// We allow this lint for compatibility with older compilers.
|
|
872
|
+
clippy::unknown_clippy_lints,
|
|
873
|
+
clippy::absolute_paths,
|
|
874
|
+
clippy::min_ident_chars,
|
|
875
|
+
clippy::mut_mut, // This lint warns `&mut &mut <ty>`. (only needed for project)
|
|
876
|
+
clippy::redundant_pub_crate, // This lint warns `pub(crate)` field in private struct.
|
|
877
|
+
clippy::ref_option_ref, // This lint warns `&Option<&<ty>>`. (only needed for project_ref)
|
|
878
|
+
clippy::single_char_lifetime_names,
|
|
879
|
+
clippy::type_repetition_in_bounds // https://github.com/rust-lang/rust-clippy/issues/4326
|
|
880
|
+
)]
|
|
881
|
+
$proj_vis $struct_ty_ident $proj_ty_ident <'__pin, $($impl_generics)*>
|
|
882
|
+
where
|
|
883
|
+
$ident <$($ty_generics)*>: '__pin
|
|
884
|
+
$(, $($where_clause)*)?
|
|
885
|
+
{
|
|
886
|
+
$($body_data)+
|
|
887
|
+
}
|
|
888
|
+
};
|
|
889
|
+
}
|
|
890
|
+
|
|
891
|
+
#[doc(hidden)]
|
|
892
|
+
#[macro_export]
|
|
893
|
+
macro_rules! __pin_project_make_proj_replace_ty {
|
|
894
|
+
([] $($field:tt)*) => {};
|
|
895
|
+
(
|
|
896
|
+
[$proj_ty_ident:ident]
|
|
897
|
+
[$proj_vis:vis struct]
|
|
898
|
+
[$__pin_project_make_proj_field:ident]
|
|
899
|
+
[$($impl_generics:tt)*] [$($ty_generics:tt)*] [$(where $($where_clause:tt)*)?]
|
|
900
|
+
{
|
|
901
|
+
$(
|
|
902
|
+
$(#[$pin:ident])?
|
|
903
|
+
$field_vis:vis $field:ident: $field_ty:ty
|
|
904
|
+
),+ $(,)?
|
|
905
|
+
}
|
|
906
|
+
) => {
|
|
907
|
+
$crate::__pin_project_make_proj_replace_ty_body! {
|
|
908
|
+
[$proj_ty_ident]
|
|
909
|
+
[$proj_vis struct]
|
|
910
|
+
[$($impl_generics)*] [$($ty_generics)*] [$(where $($where_clause)*)?]
|
|
911
|
+
[
|
|
912
|
+
$(
|
|
913
|
+
$field_vis $field: $crate::$__pin_project_make_proj_field!(
|
|
914
|
+
$(#[$pin])? $field_ty
|
|
915
|
+
)
|
|
916
|
+
),+
|
|
917
|
+
]
|
|
918
|
+
}
|
|
919
|
+
};
|
|
920
|
+
(
|
|
921
|
+
[$proj_ty_ident:ident]
|
|
922
|
+
[$proj_vis:vis enum]
|
|
923
|
+
[$__pin_project_make_proj_field:ident]
|
|
924
|
+
[$($impl_generics:tt)*] [$($ty_generics:tt)*] [$(where $($where_clause:tt)*)?]
|
|
925
|
+
{
|
|
926
|
+
$(
|
|
927
|
+
$(#[$variant_attrs:meta])*
|
|
928
|
+
$variant:ident $({
|
|
929
|
+
$(
|
|
930
|
+
$(#[$pin:ident])?
|
|
931
|
+
$field:ident: $field_ty:ty
|
|
932
|
+
),+ $(,)?
|
|
933
|
+
})?
|
|
934
|
+
),+ $(,)?
|
|
935
|
+
}
|
|
936
|
+
) => {
|
|
937
|
+
$crate::__pin_project_make_proj_replace_ty_body! {
|
|
938
|
+
[$proj_ty_ident]
|
|
939
|
+
[$proj_vis enum]
|
|
940
|
+
[$($impl_generics)*] [$($ty_generics)*] [$(where $($where_clause)*)?]
|
|
941
|
+
[
|
|
942
|
+
$(
|
|
943
|
+
$variant $({
|
|
944
|
+
$(
|
|
945
|
+
$field: $crate::$__pin_project_make_proj_field!(
|
|
946
|
+
$(#[$pin])? $field_ty
|
|
947
|
+
)
|
|
948
|
+
),+
|
|
949
|
+
})?
|
|
950
|
+
),+
|
|
951
|
+
]
|
|
952
|
+
}
|
|
953
|
+
};
|
|
954
|
+
}
|
|
955
|
+
|
|
956
|
+
#[doc(hidden)]
|
|
957
|
+
#[macro_export]
|
|
958
|
+
macro_rules! __pin_project_make_proj_replace_ty_body {
|
|
959
|
+
(
|
|
960
|
+
[$proj_ty_ident:ident]
|
|
961
|
+
[$proj_vis:vis $struct_ty_ident:ident]
|
|
962
|
+
[$($impl_generics:tt)*] [$($ty_generics:tt)*] [$(where $($where_clause:tt)*)?]
|
|
963
|
+
[$($body_data:tt)+]
|
|
964
|
+
) => {
|
|
965
|
+
#[doc(hidden)] // Workaround for rustc bug: see https://github.com/taiki-e/pin-project-lite/issues/77#issuecomment-1671540180 for more.
|
|
966
|
+
#[allow(
|
|
967
|
+
dead_code, // This lint warns unused fields/variants.
|
|
968
|
+
single_use_lifetimes, // https://github.com/rust-lang/rust/issues/55058
|
|
969
|
+
// This lint warns of `clippy::*` generated by external macros.
|
|
970
|
+
// We allow this lint for compatibility with older compilers.
|
|
971
|
+
clippy::unknown_clippy_lints,
|
|
972
|
+
clippy::absolute_paths,
|
|
973
|
+
clippy::min_ident_chars,
|
|
974
|
+
clippy::mut_mut, // This lint warns `&mut &mut <ty>`. (only needed for project)
|
|
975
|
+
clippy::redundant_pub_crate, // This lint warns `pub(crate)` field in private struct.
|
|
976
|
+
clippy::single_char_lifetime_names,
|
|
977
|
+
clippy::type_repetition_in_bounds // https://github.com/rust-lang/rust-clippy/issues/4326
|
|
978
|
+
)]
|
|
979
|
+
$proj_vis $struct_ty_ident $proj_ty_ident <$($impl_generics)*>
|
|
980
|
+
where
|
|
981
|
+
$($($where_clause)*)?
|
|
982
|
+
{
|
|
983
|
+
$($body_data)+
|
|
984
|
+
}
|
|
985
|
+
};
|
|
986
|
+
}
|
|
987
|
+
|
|
988
|
+
#[doc(hidden)]
|
|
989
|
+
#[macro_export]
|
|
990
|
+
macro_rules! __pin_project_make_proj_replace_block {
|
|
991
|
+
(
|
|
992
|
+
[$($proj_path:tt)+]
|
|
993
|
+
{
|
|
994
|
+
$(
|
|
995
|
+
$(#[$pin:ident])?
|
|
996
|
+
$field_vis:vis $field:ident
|
|
997
|
+
),+
|
|
998
|
+
}
|
|
999
|
+
) => {
|
|
1000
|
+
let result = $($proj_path)* {
|
|
1001
|
+
$(
|
|
1002
|
+
$field: $crate::__pin_project_make_replace_field_proj!(
|
|
1003
|
+
$(#[$pin])? $field
|
|
1004
|
+
)
|
|
1005
|
+
),+
|
|
1006
|
+
};
|
|
1007
|
+
|
|
1008
|
+
{
|
|
1009
|
+
( $(
|
|
1010
|
+
$crate::__pin_project_make_unsafe_drop_in_place_guard!(
|
|
1011
|
+
$(#[$pin])? $field
|
|
1012
|
+
),
|
|
1013
|
+
)* );
|
|
1014
|
+
}
|
|
1015
|
+
|
|
1016
|
+
result
|
|
1017
|
+
};
|
|
1018
|
+
([$($proj_path:tt)+]) => { $($proj_path)* };
|
|
1019
|
+
}
|
|
1020
|
+
|
|
1021
|
+
#[doc(hidden)]
|
|
1022
|
+
#[macro_export]
|
|
1023
|
+
macro_rules! __pin_project_struct_make_proj_method {
|
|
1024
|
+
([] $($variant:tt)*) => {};
|
|
1025
|
+
(
|
|
1026
|
+
[$proj_ty_ident:ident $_ignored_default_arg:ident]
|
|
1027
|
+
[$proj_vis:vis]
|
|
1028
|
+
[$method_ident:ident $get_method:ident $($mut:ident)?]
|
|
1029
|
+
[$($ty_generics:tt)*]
|
|
1030
|
+
$($variant:tt)*
|
|
1031
|
+
) => {
|
|
1032
|
+
$crate::__pin_project_struct_make_proj_method! {
|
|
1033
|
+
[$proj_ty_ident]
|
|
1034
|
+
[$proj_vis]
|
|
1035
|
+
[$method_ident $get_method $($mut)?]
|
|
1036
|
+
[$($ty_generics)*]
|
|
1037
|
+
$($variant)*
|
|
1038
|
+
}
|
|
1039
|
+
};
|
|
1040
|
+
(
|
|
1041
|
+
[$proj_ty_ident:ident]
|
|
1042
|
+
[$proj_vis:vis]
|
|
1043
|
+
[$method_ident:ident $get_method:ident $($mut:ident)?]
|
|
1044
|
+
[$($ty_generics:tt)*]
|
|
1045
|
+
{
|
|
1046
|
+
$(
|
|
1047
|
+
$(#[$pin:ident])?
|
|
1048
|
+
$field_vis:vis $field:ident
|
|
1049
|
+
),+
|
|
1050
|
+
}
|
|
1051
|
+
) => {
|
|
1052
|
+
#[doc(hidden)] // Workaround for rustc bug: see https://github.com/taiki-e/pin-project-lite/issues/77#issuecomment-1671540180 for more.
|
|
1053
|
+
#[inline]
|
|
1054
|
+
$proj_vis fn $method_ident<'__pin>(
|
|
1055
|
+
self: $crate::__private::Pin<&'__pin $($mut)? Self>,
|
|
1056
|
+
) -> $proj_ty_ident <'__pin, $($ty_generics)*> {
|
|
1057
|
+
unsafe {
|
|
1058
|
+
let Self { $($field),* } = self.$get_method();
|
|
1059
|
+
$proj_ty_ident {
|
|
1060
|
+
$(
|
|
1061
|
+
$field: $crate::__pin_project_make_unsafe_field_proj!(
|
|
1062
|
+
$(#[$pin])? $field
|
|
1063
|
+
)
|
|
1064
|
+
),+
|
|
1065
|
+
}
|
|
1066
|
+
}
|
|
1067
|
+
}
|
|
1068
|
+
};
|
|
1069
|
+
}
|
|
1070
|
+
|
|
1071
|
+
#[doc(hidden)]
|
|
1072
|
+
#[macro_export]
|
|
1073
|
+
macro_rules! __pin_project_struct_make_proj_replace_method {
|
|
1074
|
+
([] $($field:tt)*) => {};
|
|
1075
|
+
(
|
|
1076
|
+
[$proj_ty_ident:ident]
|
|
1077
|
+
[$proj_vis:vis]
|
|
1078
|
+
[$_proj_ty_ident:ident]
|
|
1079
|
+
[$($ty_generics:tt)*]
|
|
1080
|
+
{
|
|
1081
|
+
$(
|
|
1082
|
+
$(#[$pin:ident])?
|
|
1083
|
+
$field_vis:vis $field:ident
|
|
1084
|
+
),+
|
|
1085
|
+
}
|
|
1086
|
+
) => {
|
|
1087
|
+
#[doc(hidden)] // Workaround for rustc bug: see https://github.com/taiki-e/pin-project-lite/issues/77#issuecomment-1671540180 for more.
|
|
1088
|
+
#[inline]
|
|
1089
|
+
$proj_vis fn project_replace(
|
|
1090
|
+
self: $crate::__private::Pin<&mut Self>,
|
|
1091
|
+
replacement: Self,
|
|
1092
|
+
) -> $proj_ty_ident <$($ty_generics)*> {
|
|
1093
|
+
unsafe {
|
|
1094
|
+
let __self_ptr: *mut Self = self.get_unchecked_mut();
|
|
1095
|
+
|
|
1096
|
+
// Destructors will run in reverse order, so next create a guard to overwrite
|
|
1097
|
+
// `self` with the replacement value without calling destructors.
|
|
1098
|
+
let __guard = $crate::__private::UnsafeOverwriteGuard::new(__self_ptr, replacement);
|
|
1099
|
+
|
|
1100
|
+
let Self { $($field),* } = &mut *__self_ptr;
|
|
1101
|
+
|
|
1102
|
+
$crate::__pin_project_make_proj_replace_block! {
|
|
1103
|
+
[$proj_ty_ident]
|
|
1104
|
+
{
|
|
1105
|
+
$(
|
|
1106
|
+
$(#[$pin])?
|
|
1107
|
+
$field
|
|
1108
|
+
),+
|
|
1109
|
+
}
|
|
1110
|
+
}
|
|
1111
|
+
}
|
|
1112
|
+
}
|
|
1113
|
+
};
|
|
1114
|
+
}
|
|
1115
|
+
|
|
1116
|
+
#[doc(hidden)]
|
|
1117
|
+
#[macro_export]
|
|
1118
|
+
macro_rules! __pin_project_enum_make_proj_method {
|
|
1119
|
+
([] $($variant:tt)*) => {};
|
|
1120
|
+
(
|
|
1121
|
+
[$proj_ty_ident:ident]
|
|
1122
|
+
[$proj_vis:vis]
|
|
1123
|
+
[$method_ident:ident $get_method:ident $($mut:ident)?]
|
|
1124
|
+
[$($ty_generics:tt)*]
|
|
1125
|
+
{
|
|
1126
|
+
$(
|
|
1127
|
+
$variant:ident $({
|
|
1128
|
+
$(
|
|
1129
|
+
$(#[$pin:ident])?
|
|
1130
|
+
$field:ident
|
|
1131
|
+
),+
|
|
1132
|
+
})?
|
|
1133
|
+
),+
|
|
1134
|
+
}
|
|
1135
|
+
) => {
|
|
1136
|
+
#[doc(hidden)] // Workaround for rustc bug: see https://github.com/taiki-e/pin-project-lite/issues/77#issuecomment-1671540180 for more.
|
|
1137
|
+
#[inline]
|
|
1138
|
+
$proj_vis fn $method_ident<'__pin>(
|
|
1139
|
+
self: $crate::__private::Pin<&'__pin $($mut)? Self>,
|
|
1140
|
+
) -> $proj_ty_ident <'__pin, $($ty_generics)*> {
|
|
1141
|
+
unsafe {
|
|
1142
|
+
match self.$get_method() {
|
|
1143
|
+
$(
|
|
1144
|
+
Self::$variant $({
|
|
1145
|
+
$($field),+
|
|
1146
|
+
})? => {
|
|
1147
|
+
$proj_ty_ident::$variant $({
|
|
1148
|
+
$(
|
|
1149
|
+
$field: $crate::__pin_project_make_unsafe_field_proj!(
|
|
1150
|
+
$(#[$pin])? $field
|
|
1151
|
+
)
|
|
1152
|
+
),+
|
|
1153
|
+
})?
|
|
1154
|
+
}
|
|
1155
|
+
),+
|
|
1156
|
+
}
|
|
1157
|
+
}
|
|
1158
|
+
}
|
|
1159
|
+
};
|
|
1160
|
+
}
|
|
1161
|
+
|
|
1162
|
+
#[doc(hidden)]
|
|
1163
|
+
#[macro_export]
|
|
1164
|
+
macro_rules! __pin_project_enum_make_proj_replace_method {
|
|
1165
|
+
([] $($field:tt)*) => {};
|
|
1166
|
+
(
|
|
1167
|
+
[$proj_ty_ident:ident]
|
|
1168
|
+
[$proj_vis:vis]
|
|
1169
|
+
[$($ty_generics:tt)*]
|
|
1170
|
+
{
|
|
1171
|
+
$(
|
|
1172
|
+
$variant:ident $({
|
|
1173
|
+
$(
|
|
1174
|
+
$(#[$pin:ident])?
|
|
1175
|
+
$field:ident
|
|
1176
|
+
),+
|
|
1177
|
+
})?
|
|
1178
|
+
),+
|
|
1179
|
+
}
|
|
1180
|
+
) => {
|
|
1181
|
+
#[doc(hidden)] // Workaround for rustc bug: see https://github.com/taiki-e/pin-project-lite/issues/77#issuecomment-1671540180 for more.
|
|
1182
|
+
#[inline]
|
|
1183
|
+
$proj_vis fn project_replace(
|
|
1184
|
+
self: $crate::__private::Pin<&mut Self>,
|
|
1185
|
+
replacement: Self,
|
|
1186
|
+
) -> $proj_ty_ident <$($ty_generics)*> {
|
|
1187
|
+
unsafe {
|
|
1188
|
+
let __self_ptr: *mut Self = self.get_unchecked_mut();
|
|
1189
|
+
|
|
1190
|
+
// Destructors will run in reverse order, so next create a guard to overwrite
|
|
1191
|
+
// `self` with the replacement value without calling destructors.
|
|
1192
|
+
let __guard = $crate::__private::UnsafeOverwriteGuard::new(__self_ptr, replacement);
|
|
1193
|
+
|
|
1194
|
+
match &mut *__self_ptr {
|
|
1195
|
+
$(
|
|
1196
|
+
Self::$variant $({
|
|
1197
|
+
$($field),+
|
|
1198
|
+
})? => {
|
|
1199
|
+
$crate::__pin_project_make_proj_replace_block! {
|
|
1200
|
+
[$proj_ty_ident :: $variant]
|
|
1201
|
+
$({
|
|
1202
|
+
$(
|
|
1203
|
+
$(#[$pin])?
|
|
1204
|
+
$field
|
|
1205
|
+
),+
|
|
1206
|
+
})?
|
|
1207
|
+
}
|
|
1208
|
+
}
|
|
1209
|
+
),+
|
|
1210
|
+
}
|
|
1211
|
+
}
|
|
1212
|
+
}
|
|
1213
|
+
};
|
|
1214
|
+
}
|
|
1215
|
+
|
|
1216
|
+
#[doc(hidden)]
|
|
1217
|
+
#[macro_export]
|
|
1218
|
+
macro_rules! __pin_project_make_unpin_impl {
|
|
1219
|
+
(
|
|
1220
|
+
[]
|
|
1221
|
+
[$vis:vis $ident:ident]
|
|
1222
|
+
[$($impl_generics:tt)*] [$($ty_generics:tt)*] [$(where $($where_clause:tt)*)?]
|
|
1223
|
+
$($field:tt)*
|
|
1224
|
+
) => {
|
|
1225
|
+
// Automatically create the appropriate conditional `Unpin` implementation.
|
|
1226
|
+
//
|
|
1227
|
+
// Basically this is equivalent to the following code:
|
|
1228
|
+
// ```
|
|
1229
|
+
// impl<T, U> Unpin for Struct<T, U> where T: Unpin {}
|
|
1230
|
+
// ```
|
|
1231
|
+
//
|
|
1232
|
+
// However, if struct is public and there is a private type field,
|
|
1233
|
+
// this would cause an E0446 (private type in public interface).
|
|
1234
|
+
//
|
|
1235
|
+
// When RFC 2145 is implemented (rust-lang/rust#48054),
|
|
1236
|
+
// this will become a lint, rather than a hard error.
|
|
1237
|
+
//
|
|
1238
|
+
// As a workaround for this, we generate a new struct, containing all of the pinned
|
|
1239
|
+
// fields from our #[pin_project] type. This struct is declared within
|
|
1240
|
+
// a function, which makes it impossible to be named by user code.
|
|
1241
|
+
// This guarantees that it will use the default auto-trait impl for Unpin -
|
|
1242
|
+
// that is, it will implement Unpin iff all of its fields implement Unpin.
|
|
1243
|
+
// This type can be safely declared as 'public', satisfying the privacy
|
|
1244
|
+
// checker without actually allowing user code to access it.
|
|
1245
|
+
//
|
|
1246
|
+
// This allows users to apply the #[pin_project] attribute to types
|
|
1247
|
+
// regardless of the privacy of the types of their fields.
|
|
1248
|
+
//
|
|
1249
|
+
// See also https://github.com/taiki-e/pin-project/pull/53.
|
|
1250
|
+
#[allow(non_snake_case)]
|
|
1251
|
+
$vis struct __Origin<'__pin, $($impl_generics)*>
|
|
1252
|
+
$(where
|
|
1253
|
+
$($where_clause)*)?
|
|
1254
|
+
{
|
|
1255
|
+
__dummy_lifetime: $crate::__private::PhantomData<&'__pin ()>,
|
|
1256
|
+
$($field)*
|
|
1257
|
+
}
|
|
1258
|
+
impl<'__pin, $($impl_generics)*> $crate::__private::Unpin for $ident <$($ty_generics)*>
|
|
1259
|
+
where
|
|
1260
|
+
$crate::__private::PinnedFieldsOf<__Origin<'__pin, $($ty_generics)*>>:
|
|
1261
|
+
$crate::__private::Unpin
|
|
1262
|
+
$(, $($where_clause)*)?
|
|
1263
|
+
{
|
|
1264
|
+
}
|
|
1265
|
+
};
|
|
1266
|
+
(
|
|
1267
|
+
[$proj_not_unpin_mark:ident]
|
|
1268
|
+
[$vis:vis $ident:ident]
|
|
1269
|
+
[$($impl_generics:tt)*] [$($ty_generics:tt)*] [$(where $($where_clause:tt)*)?]
|
|
1270
|
+
$($field:tt)*
|
|
1271
|
+
) => {
|
|
1272
|
+
// TODO: Using `<unsized type>: Sized` here allow emulating real negative_impls...
|
|
1273
|
+
// https://github.com/taiki-e/pin-project/issues/340#issuecomment-2428002670
|
|
1274
|
+
#[doc(hidden)]
|
|
1275
|
+
impl<'__pin, $($impl_generics)*> $crate::__private::Unpin for $ident <$($ty_generics)*>
|
|
1276
|
+
where
|
|
1277
|
+
(
|
|
1278
|
+
$crate::__private::PhantomData<&'__pin ()>,
|
|
1279
|
+
$crate::__private::PhantomPinned,
|
|
1280
|
+
): $crate::__private::Unpin
|
|
1281
|
+
$(, $($where_clause)*)?
|
|
1282
|
+
{
|
|
1283
|
+
}
|
|
1284
|
+
}
|
|
1285
|
+
}
|
|
1286
|
+
|
|
1287
|
+
#[doc(hidden)]
|
|
1288
|
+
#[macro_export]
|
|
1289
|
+
macro_rules! __pin_project_make_drop_impl {
|
|
1290
|
+
(
|
|
1291
|
+
[$_ident:ident]
|
|
1292
|
+
[$($_impl_generics:tt)*] [$($_ty_generics:tt)*] [$(where $($_where_clause:tt)*)?]
|
|
1293
|
+
$(#[$drop_impl_attrs:meta])*
|
|
1294
|
+
impl $(<
|
|
1295
|
+
$( $lifetime:lifetime $(: $lifetime_bound:lifetime)? ),* $(,)?
|
|
1296
|
+
$( $generics:ident
|
|
1297
|
+
$(: $generics_bound:path)?
|
|
1298
|
+
$(: ?$generics_unsized_bound:path)?
|
|
1299
|
+
$(: $generics_lifetime_bound:lifetime)?
|
|
1300
|
+
),*
|
|
1301
|
+
>)? PinnedDrop for $self_ty:ty
|
|
1302
|
+
$(where
|
|
1303
|
+
$( $where_clause_ty:ty
|
|
1304
|
+
$(: $where_clause_bound:path)?
|
|
1305
|
+
$(: ?$where_clause_unsized_bound:path)?
|
|
1306
|
+
$(: $where_clause_lifetime_bound:lifetime)?
|
|
1307
|
+
),* $(,)?
|
|
1308
|
+
)?
|
|
1309
|
+
{
|
|
1310
|
+
$(#[$drop_fn_attrs:meta])*
|
|
1311
|
+
fn drop($($arg:ident)+: Pin<&mut Self>) {
|
|
1312
|
+
$($tt:tt)*
|
|
1313
|
+
}
|
|
1314
|
+
}
|
|
1315
|
+
) => {
|
|
1316
|
+
$(#[$drop_impl_attrs])*
|
|
1317
|
+
impl $(<
|
|
1318
|
+
$( $lifetime $(: $lifetime_bound)? ,)*
|
|
1319
|
+
$( $generics
|
|
1320
|
+
$(: $generics_bound)?
|
|
1321
|
+
$(: ?$generics_unsized_bound)?
|
|
1322
|
+
$(: $generics_lifetime_bound)?
|
|
1323
|
+
),*
|
|
1324
|
+
>)? $crate::__private::Drop for $self_ty
|
|
1325
|
+
$(where
|
|
1326
|
+
$( $where_clause_ty
|
|
1327
|
+
$(: $where_clause_bound)?
|
|
1328
|
+
$(: ?$where_clause_unsized_bound)?
|
|
1329
|
+
$(: $where_clause_lifetime_bound)?
|
|
1330
|
+
),*
|
|
1331
|
+
)?
|
|
1332
|
+
{
|
|
1333
|
+
$(#[$drop_fn_attrs])*
|
|
1334
|
+
fn drop(&mut self) {
|
|
1335
|
+
// Implementing `__DropInner::__drop_inner` is safe, but calling it is not safe.
|
|
1336
|
+
// This is because destructors can be called multiple times in safe code and
|
|
1337
|
+
// [double dropping is unsound](https://github.com/rust-lang/rust/pull/62360).
|
|
1338
|
+
//
|
|
1339
|
+
// `__drop_inner` is defined as a safe method, but this is fine since
|
|
1340
|
+
// `__drop_inner` is not accessible by the users and we call `__drop_inner` only
|
|
1341
|
+
// once.
|
|
1342
|
+
//
|
|
1343
|
+
// Users can implement [`Drop`] safely using `pin_project!` and can drop a
|
|
1344
|
+
// type that implements `PinnedDrop` using the [`drop`] function safely.
|
|
1345
|
+
fn __drop_inner $(<
|
|
1346
|
+
$( $lifetime $(: $lifetime_bound)? ,)*
|
|
1347
|
+
$( $generics
|
|
1348
|
+
$(: $generics_bound)?
|
|
1349
|
+
$(: ?$generics_unsized_bound)?
|
|
1350
|
+
$(: $generics_lifetime_bound)?
|
|
1351
|
+
),*
|
|
1352
|
+
>)? (
|
|
1353
|
+
$($arg)+: $crate::__private::Pin<&mut $self_ty>,
|
|
1354
|
+
)
|
|
1355
|
+
$(where
|
|
1356
|
+
$( $where_clause_ty
|
|
1357
|
+
$(: $where_clause_bound)?
|
|
1358
|
+
$(: ?$where_clause_unsized_bound)?
|
|
1359
|
+
$(: $where_clause_lifetime_bound)?
|
|
1360
|
+
),*
|
|
1361
|
+
)?
|
|
1362
|
+
{
|
|
1363
|
+
// A dummy `__drop_inner` function to prevent users call outer `__drop_inner`.
|
|
1364
|
+
fn __drop_inner() {}
|
|
1365
|
+
$($tt)*
|
|
1366
|
+
}
|
|
1367
|
+
|
|
1368
|
+
// Safety - we're in 'drop', so we know that 'self' will
|
|
1369
|
+
// never move again.
|
|
1370
|
+
let pinned_self: $crate::__private::Pin<&mut Self>
|
|
1371
|
+
= unsafe { $crate::__private::Pin::new_unchecked(self) };
|
|
1372
|
+
// We call `__drop_inner` only once. Since `__DropInner::__drop_inner`
|
|
1373
|
+
// is not accessible by the users, it is never called again.
|
|
1374
|
+
__drop_inner(pinned_self);
|
|
1375
|
+
}
|
|
1376
|
+
}
|
|
1377
|
+
};
|
|
1378
|
+
(
|
|
1379
|
+
[$ident:ident]
|
|
1380
|
+
[$($impl_generics:tt)*] [$($ty_generics:tt)*] [$(where $($where_clause:tt)*)?]
|
|
1381
|
+
) => {
|
|
1382
|
+
// Ensure that struct does not implement `Drop`.
|
|
1383
|
+
//
|
|
1384
|
+
// There are two possible cases:
|
|
1385
|
+
// 1. The user type does not implement Drop. In this case,
|
|
1386
|
+
// the first blanket impl will not apply to it. This code
|
|
1387
|
+
// will compile, as there is only one impl of MustNotImplDrop for the user type
|
|
1388
|
+
// 2. The user type does impl Drop. This will make the blanket impl applicable,
|
|
1389
|
+
// which will then conflict with the explicit MustNotImplDrop impl below.
|
|
1390
|
+
// This will result in a compilation error, which is exactly what we want.
|
|
1391
|
+
trait MustNotImplDrop {}
|
|
1392
|
+
#[allow(clippy::drop_bounds, drop_bounds)]
|
|
1393
|
+
impl<T: $crate::__private::Drop> MustNotImplDrop for T {}
|
|
1394
|
+
impl<$($impl_generics)*> MustNotImplDrop for $ident <$($ty_generics)*>
|
|
1395
|
+
$(where
|
|
1396
|
+
$($where_clause)*)?
|
|
1397
|
+
{
|
|
1398
|
+
}
|
|
1399
|
+
};
|
|
1400
|
+
}
|
|
1401
|
+
|
|
1402
|
+
#[doc(hidden)]
|
|
1403
|
+
#[macro_export]
|
|
1404
|
+
macro_rules! __pin_project_make_unpin_bound {
|
|
1405
|
+
(#[pin] $field_ty:ty) => {
|
|
1406
|
+
$field_ty
|
|
1407
|
+
};
|
|
1408
|
+
($field_ty:ty) => {
|
|
1409
|
+
$crate::__private::AlwaysUnpin<$field_ty>
|
|
1410
|
+
};
|
|
1411
|
+
}
|
|
1412
|
+
|
|
1413
|
+
#[doc(hidden)]
|
|
1414
|
+
#[macro_export]
|
|
1415
|
+
macro_rules! __pin_project_make_unsafe_field_proj {
|
|
1416
|
+
(#[pin] $field:ident) => {
|
|
1417
|
+
$crate::__private::Pin::new_unchecked($field)
|
|
1418
|
+
};
|
|
1419
|
+
($field:ident) => {
|
|
1420
|
+
$field
|
|
1421
|
+
};
|
|
1422
|
+
}
|
|
1423
|
+
|
|
1424
|
+
#[doc(hidden)]
|
|
1425
|
+
#[macro_export]
|
|
1426
|
+
macro_rules! __pin_project_make_replace_field_proj {
|
|
1427
|
+
(#[pin] $field:ident) => {
|
|
1428
|
+
$crate::__private::PhantomData
|
|
1429
|
+
};
|
|
1430
|
+
($field:ident) => {
|
|
1431
|
+
$crate::__private::ptr::read($field)
|
|
1432
|
+
};
|
|
1433
|
+
}
|
|
1434
|
+
|
|
1435
|
+
#[doc(hidden)]
|
|
1436
|
+
#[macro_export]
|
|
1437
|
+
macro_rules! __pin_project_make_unsafe_drop_in_place_guard {
|
|
1438
|
+
(#[pin] $field:ident) => {
|
|
1439
|
+
$crate::__private::UnsafeDropInPlaceGuard::new($field)
|
|
1440
|
+
};
|
|
1441
|
+
($field:ident) => {
|
|
1442
|
+
()
|
|
1443
|
+
};
|
|
1444
|
+
}
|
|
1445
|
+
|
|
1446
|
+
#[doc(hidden)]
|
|
1447
|
+
#[macro_export]
|
|
1448
|
+
macro_rules! __pin_project_make_proj_field_mut {
|
|
1449
|
+
(#[pin] $field_ty:ty) => {
|
|
1450
|
+
$crate::__private::Pin<&'__pin mut ($field_ty)>
|
|
1451
|
+
};
|
|
1452
|
+
($field_ty:ty) => {
|
|
1453
|
+
&'__pin mut ($field_ty)
|
|
1454
|
+
};
|
|
1455
|
+
}
|
|
1456
|
+
|
|
1457
|
+
#[doc(hidden)]
|
|
1458
|
+
#[macro_export]
|
|
1459
|
+
macro_rules! __pin_project_make_proj_field_ref {
|
|
1460
|
+
(#[pin] $field_ty:ty) => {
|
|
1461
|
+
$crate::__private::Pin<&'__pin ($field_ty)>
|
|
1462
|
+
};
|
|
1463
|
+
($field_ty:ty) => {
|
|
1464
|
+
&'__pin ($field_ty)
|
|
1465
|
+
};
|
|
1466
|
+
}
|
|
1467
|
+
|
|
1468
|
+
#[doc(hidden)]
|
|
1469
|
+
#[macro_export]
|
|
1470
|
+
macro_rules! __pin_project_make_proj_field_replace {
|
|
1471
|
+
(#[pin] $field_ty:ty) => {
|
|
1472
|
+
$crate::__private::PhantomData<$field_ty>
|
|
1473
|
+
};
|
|
1474
|
+
($field_ty:ty) => {
|
|
1475
|
+
$field_ty
|
|
1476
|
+
};
|
|
1477
|
+
}
|
|
1478
|
+
|
|
1479
|
+
#[doc(hidden)]
|
|
1480
|
+
#[macro_export]
|
|
1481
|
+
macro_rules! __pin_project_internal {
|
|
1482
|
+
// parsing proj_mut_ident
|
|
1483
|
+
(
|
|
1484
|
+
[]
|
|
1485
|
+
[$($proj_ref_ident:ident)?]
|
|
1486
|
+
[$($proj_replace_ident:ident)?]
|
|
1487
|
+
[$( ! $proj_not_unpin_mark:ident)?]
|
|
1488
|
+
[$($attrs:tt)*]
|
|
1489
|
+
|
|
1490
|
+
#[project = $proj_mut_ident:ident]
|
|
1491
|
+
$($tt:tt)*
|
|
1492
|
+
) => {
|
|
1493
|
+
$crate::__pin_project_internal! {
|
|
1494
|
+
[$proj_mut_ident]
|
|
1495
|
+
[$($proj_ref_ident)?]
|
|
1496
|
+
[$($proj_replace_ident)?]
|
|
1497
|
+
[$( ! $proj_not_unpin_mark)?]
|
|
1498
|
+
[$($attrs)*]
|
|
1499
|
+
$($tt)*
|
|
1500
|
+
}
|
|
1501
|
+
};
|
|
1502
|
+
// parsing proj_ref_ident
|
|
1503
|
+
(
|
|
1504
|
+
[$($proj_mut_ident:ident)?]
|
|
1505
|
+
[]
|
|
1506
|
+
[$($proj_replace_ident:ident)?]
|
|
1507
|
+
[$( ! $proj_not_unpin_mark:ident)?]
|
|
1508
|
+
[$($attrs:tt)*]
|
|
1509
|
+
|
|
1510
|
+
#[project_ref = $proj_ref_ident:ident]
|
|
1511
|
+
$($tt:tt)*
|
|
1512
|
+
) => {
|
|
1513
|
+
$crate::__pin_project_internal! {
|
|
1514
|
+
[$($proj_mut_ident)?]
|
|
1515
|
+
[$proj_ref_ident]
|
|
1516
|
+
[$($proj_replace_ident)?]
|
|
1517
|
+
[$( ! $proj_not_unpin_mark)?]
|
|
1518
|
+
[$($attrs)*]
|
|
1519
|
+
$($tt)*
|
|
1520
|
+
}
|
|
1521
|
+
};
|
|
1522
|
+
// parsing proj_replace_ident
|
|
1523
|
+
(
|
|
1524
|
+
[$($proj_mut_ident:ident)?]
|
|
1525
|
+
[$($proj_ref_ident:ident)?]
|
|
1526
|
+
[]
|
|
1527
|
+
[$( ! $proj_not_unpin_mark:ident)?]
|
|
1528
|
+
[$($attrs:tt)*]
|
|
1529
|
+
|
|
1530
|
+
#[project_replace = $proj_replace_ident:ident]
|
|
1531
|
+
$($tt:tt)*
|
|
1532
|
+
) => {
|
|
1533
|
+
$crate::__pin_project_internal! {
|
|
1534
|
+
[$($proj_mut_ident)?]
|
|
1535
|
+
[$($proj_ref_ident)?]
|
|
1536
|
+
[$proj_replace_ident]
|
|
1537
|
+
[$( ! $proj_not_unpin_mark)?]
|
|
1538
|
+
[$($attrs)*]
|
|
1539
|
+
$($tt)*
|
|
1540
|
+
}
|
|
1541
|
+
};
|
|
1542
|
+
// parsing !Unpin
|
|
1543
|
+
(
|
|
1544
|
+
[$($proj_mut_ident:ident)?]
|
|
1545
|
+
[$($proj_ref_ident:ident)?]
|
|
1546
|
+
[$($proj_replace_ident:ident)?]
|
|
1547
|
+
[]
|
|
1548
|
+
[$($attrs:tt)*]
|
|
1549
|
+
|
|
1550
|
+
#[project( ! $proj_not_unpin_mark:ident)]
|
|
1551
|
+
$($tt:tt)*
|
|
1552
|
+
) => {
|
|
1553
|
+
$crate::__pin_project_internal! {
|
|
1554
|
+
[$($proj_mut_ident)?]
|
|
1555
|
+
[$($proj_ref_ident)?]
|
|
1556
|
+
[$($proj_replace_ident)?]
|
|
1557
|
+
[ ! $proj_not_unpin_mark]
|
|
1558
|
+
[$($attrs)*]
|
|
1559
|
+
$($tt)*
|
|
1560
|
+
}
|
|
1561
|
+
};
|
|
1562
|
+
// this is actually part of a recursive step that picks off a single non-`pin_project_lite` attribute
|
|
1563
|
+
// there could be more to parse
|
|
1564
|
+
(
|
|
1565
|
+
[$($proj_mut_ident:ident)?]
|
|
1566
|
+
[$($proj_ref_ident:ident)?]
|
|
1567
|
+
[$($proj_replace_ident:ident)?]
|
|
1568
|
+
[$( ! $proj_not_unpin_mark:ident)?]
|
|
1569
|
+
[$($attrs:tt)*]
|
|
1570
|
+
|
|
1571
|
+
#[$($attr:tt)*]
|
|
1572
|
+
$($tt:tt)*
|
|
1573
|
+
) => {
|
|
1574
|
+
$crate::__pin_project_internal! {
|
|
1575
|
+
[$($proj_mut_ident)?]
|
|
1576
|
+
[$($proj_ref_ident)?]
|
|
1577
|
+
[$($proj_replace_ident)?]
|
|
1578
|
+
[$( ! $proj_not_unpin_mark)?]
|
|
1579
|
+
[$($attrs)* #[$($attr)*]]
|
|
1580
|
+
$($tt)*
|
|
1581
|
+
}
|
|
1582
|
+
};
|
|
1583
|
+
// now determine visibility
|
|
1584
|
+
// if public, downgrade
|
|
1585
|
+
(
|
|
1586
|
+
[$($proj_mut_ident:ident)?]
|
|
1587
|
+
[$($proj_ref_ident:ident)?]
|
|
1588
|
+
[$($proj_replace_ident:ident)?]
|
|
1589
|
+
[$( ! $proj_not_unpin_mark:ident)?]
|
|
1590
|
+
[$($attrs:tt)*]
|
|
1591
|
+
pub $struct_ty_ident:ident $ident:ident
|
|
1592
|
+
$($tt:tt)*
|
|
1593
|
+
) => {
|
|
1594
|
+
$crate::__pin_project_parse_generics! {
|
|
1595
|
+
[$($proj_mut_ident)?]
|
|
1596
|
+
[$($proj_ref_ident)?]
|
|
1597
|
+
[$($proj_replace_ident)?]
|
|
1598
|
+
[$($proj_not_unpin_mark)?]
|
|
1599
|
+
[$($attrs)*]
|
|
1600
|
+
[pub $struct_ty_ident $ident pub(crate)]
|
|
1601
|
+
$($tt)*
|
|
1602
|
+
}
|
|
1603
|
+
};
|
|
1604
|
+
(
|
|
1605
|
+
[$($proj_mut_ident:ident)?]
|
|
1606
|
+
[$($proj_ref_ident:ident)?]
|
|
1607
|
+
[$($proj_replace_ident:ident)?]
|
|
1608
|
+
[$( ! $proj_not_unpin_mark:ident)?]
|
|
1609
|
+
[$($attrs:tt)*]
|
|
1610
|
+
$vis:vis $struct_ty_ident:ident $ident:ident
|
|
1611
|
+
$($tt:tt)*
|
|
1612
|
+
) => {
|
|
1613
|
+
$crate::__pin_project_parse_generics! {
|
|
1614
|
+
[$($proj_mut_ident)?]
|
|
1615
|
+
[$($proj_ref_ident)?]
|
|
1616
|
+
[$($proj_replace_ident)?]
|
|
1617
|
+
[$($proj_not_unpin_mark)?]
|
|
1618
|
+
[$($attrs)*]
|
|
1619
|
+
[$vis $struct_ty_ident $ident $vis]
|
|
1620
|
+
$($tt)*
|
|
1621
|
+
}
|
|
1622
|
+
};
|
|
1623
|
+
}
|
|
1624
|
+
|
|
1625
|
+
#[doc(hidden)]
|
|
1626
|
+
#[macro_export]
|
|
1627
|
+
macro_rules! __pin_project_parse_generics {
|
|
1628
|
+
(
|
|
1629
|
+
[$($proj_mut_ident:ident)?]
|
|
1630
|
+
[$($proj_ref_ident:ident)?]
|
|
1631
|
+
[$($proj_replace_ident:ident)?]
|
|
1632
|
+
[$($proj_not_unpin_mark:ident)?]
|
|
1633
|
+
[$($attrs:tt)*]
|
|
1634
|
+
[$vis:vis $struct_ty_ident:ident $ident:ident $proj_vis:vis]
|
|
1635
|
+
$(<
|
|
1636
|
+
$( $lifetime:lifetime $(: $lifetime_bound:lifetime)? ),* $(,)?
|
|
1637
|
+
$( $generics:ident
|
|
1638
|
+
$(: $generics_bound:path)?
|
|
1639
|
+
$(: ?$generics_unsized_bound:path)?
|
|
1640
|
+
$(: $generics_lifetime_bound:lifetime)?
|
|
1641
|
+
$(= $generics_default:ty)?
|
|
1642
|
+
),* $(,)?
|
|
1643
|
+
>)?
|
|
1644
|
+
$(where
|
|
1645
|
+
$( $where_clause_ty:ty
|
|
1646
|
+
$(: $where_clause_bound:path)?
|
|
1647
|
+
$(: ?$where_clause_unsized_bound:path)?
|
|
1648
|
+
$(: $where_clause_lifetime_bound:lifetime)?
|
|
1649
|
+
),* $(,)?
|
|
1650
|
+
)?
|
|
1651
|
+
{
|
|
1652
|
+
$($body_data:tt)*
|
|
1653
|
+
}
|
|
1654
|
+
$($(#[$drop_impl_attrs:meta])* impl $($pinned_drop:tt)*)?
|
|
1655
|
+
) => {
|
|
1656
|
+
$crate::__pin_project_expand! {
|
|
1657
|
+
[$($proj_mut_ident)?]
|
|
1658
|
+
[$($proj_ref_ident)?]
|
|
1659
|
+
[$($proj_replace_ident)?]
|
|
1660
|
+
[$($proj_not_unpin_mark)?]
|
|
1661
|
+
[$proj_vis]
|
|
1662
|
+
[$($attrs)* $vis $struct_ty_ident $ident]
|
|
1663
|
+
[$(<
|
|
1664
|
+
$( $lifetime $(: $lifetime_bound)? ,)*
|
|
1665
|
+
$( $generics
|
|
1666
|
+
$(: $generics_bound)?
|
|
1667
|
+
$(: ?$generics_unsized_bound)?
|
|
1668
|
+
$(: $generics_lifetime_bound)?
|
|
1669
|
+
$(= $generics_default)?
|
|
1670
|
+
),*
|
|
1671
|
+
>)?]
|
|
1672
|
+
[$(
|
|
1673
|
+
$( $lifetime $(: $lifetime_bound)? ,)*
|
|
1674
|
+
$( $generics
|
|
1675
|
+
$(: $generics_bound)?
|
|
1676
|
+
$(: ?$generics_unsized_bound)?
|
|
1677
|
+
$(: $generics_lifetime_bound)?
|
|
1678
|
+
),*
|
|
1679
|
+
)?]
|
|
1680
|
+
[$( $( $lifetime ,)* $( $generics ),* )?]
|
|
1681
|
+
[$(where $( $where_clause_ty
|
|
1682
|
+
$(: $where_clause_bound)?
|
|
1683
|
+
$(: ?$where_clause_unsized_bound)?
|
|
1684
|
+
$(: $where_clause_lifetime_bound)?
|
|
1685
|
+
),* )?]
|
|
1686
|
+
{
|
|
1687
|
+
$($body_data)*
|
|
1688
|
+
}
|
|
1689
|
+
$($(#[$drop_impl_attrs])* impl $($pinned_drop)*)?
|
|
1690
|
+
}
|
|
1691
|
+
};
|
|
1692
|
+
}
|
|
1693
|
+
|
|
1694
|
+
// Not public API.
|
|
1695
|
+
#[doc(hidden)]
|
|
1696
|
+
#[allow(missing_debug_implementations)]
|
|
1697
|
+
pub mod __private {
|
|
1698
|
+
use core::mem::ManuallyDrop;
|
|
1699
|
+
#[doc(hidden)]
|
|
1700
|
+
pub use core::{
|
|
1701
|
+
marker::{PhantomData, PhantomPinned, Unpin},
|
|
1702
|
+
ops::Drop,
|
|
1703
|
+
pin::Pin,
|
|
1704
|
+
ptr,
|
|
1705
|
+
};
|
|
1706
|
+
|
|
1707
|
+
// Workaround for issue on unstable negative_impls feature that allows unsound overlapping Unpin
|
|
1708
|
+
// implementations and rustc bug that leaks unstable negative_impls into stable.
|
|
1709
|
+
// See https://github.com/taiki-e/pin-project/issues/340#issuecomment-2432146009 for details.
|
|
1710
|
+
#[doc(hidden)]
|
|
1711
|
+
pub type PinnedFieldsOf<T> =
|
|
1712
|
+
<PinnedFieldsOfHelperStruct<T> as PinnedFieldsOfHelperTrait>::Actual;
|
|
1713
|
+
// We cannot use <Option<T> as IntoIterator>::Item or similar since we should allow ?Sized in T.
|
|
1714
|
+
#[doc(hidden)]
|
|
1715
|
+
pub trait PinnedFieldsOfHelperTrait {
|
|
1716
|
+
type Actual: ?Sized;
|
|
1717
|
+
}
|
|
1718
|
+
#[doc(hidden)]
|
|
1719
|
+
pub struct PinnedFieldsOfHelperStruct<T: ?Sized>(T);
|
|
1720
|
+
impl<T: ?Sized> PinnedFieldsOfHelperTrait for PinnedFieldsOfHelperStruct<T> {
|
|
1721
|
+
type Actual = T;
|
|
1722
|
+
}
|
|
1723
|
+
|
|
1724
|
+
// This is an internal helper struct used by `pin_project!`.
|
|
1725
|
+
#[doc(hidden)]
|
|
1726
|
+
pub struct AlwaysUnpin<T: ?Sized>(PhantomData<T>);
|
|
1727
|
+
impl<T: ?Sized> Unpin for AlwaysUnpin<T> {}
|
|
1728
|
+
|
|
1729
|
+
// This is an internal helper used to ensure a value is dropped.
|
|
1730
|
+
#[doc(hidden)]
|
|
1731
|
+
pub struct UnsafeDropInPlaceGuard<T: ?Sized>(*mut T);
|
|
1732
|
+
impl<T: ?Sized> UnsafeDropInPlaceGuard<T> {
|
|
1733
|
+
#[doc(hidden)]
|
|
1734
|
+
pub unsafe fn new(ptr: *mut T) -> Self {
|
|
1735
|
+
Self(ptr)
|
|
1736
|
+
}
|
|
1737
|
+
}
|
|
1738
|
+
impl<T: ?Sized> Drop for UnsafeDropInPlaceGuard<T> {
|
|
1739
|
+
fn drop(&mut self) {
|
|
1740
|
+
// SAFETY: the caller of `UnsafeDropInPlaceGuard::new` must guarantee
|
|
1741
|
+
// that `ptr` is valid for drop when this guard is destructed.
|
|
1742
|
+
unsafe {
|
|
1743
|
+
ptr::drop_in_place(self.0);
|
|
1744
|
+
}
|
|
1745
|
+
}
|
|
1746
|
+
}
|
|
1747
|
+
|
|
1748
|
+
// This is an internal helper used to ensure a value is overwritten without
|
|
1749
|
+
// its destructor being called.
|
|
1750
|
+
#[doc(hidden)]
|
|
1751
|
+
pub struct UnsafeOverwriteGuard<T> {
|
|
1752
|
+
target: *mut T,
|
|
1753
|
+
value: ManuallyDrop<T>,
|
|
1754
|
+
}
|
|
1755
|
+
impl<T> UnsafeOverwriteGuard<T> {
|
|
1756
|
+
#[doc(hidden)]
|
|
1757
|
+
pub unsafe fn new(target: *mut T, value: T) -> Self {
|
|
1758
|
+
Self { target, value: ManuallyDrop::new(value) }
|
|
1759
|
+
}
|
|
1760
|
+
}
|
|
1761
|
+
impl<T> Drop for UnsafeOverwriteGuard<T> {
|
|
1762
|
+
fn drop(&mut self) {
|
|
1763
|
+
// SAFETY: the caller of `UnsafeOverwriteGuard::new` must guarantee
|
|
1764
|
+
// that `target` is valid for writes when this guard is destructed.
|
|
1765
|
+
unsafe {
|
|
1766
|
+
ptr::write(self.target, ptr::read(&*self.value));
|
|
1767
|
+
}
|
|
1768
|
+
}
|
|
1769
|
+
}
|
|
1770
|
+
}
|