parity-send-wrapper 0.1.0

This Rust library implements a wrapper type called SendWrapper which allows you to move around non-Send types between threads, as long as you access the contained value only from within the original thread. You also have to make sure that the wrapper is dropped from within the original thread. If any of these constraints is violated, a panic occurs. Forked from https://github.com/thk1/send_wrapper because it was unmaintained
Documentation
Build #1510533 2024-11-09T00:38:39.452353+00:00
# rustc version
rustc 1.84.0-nightly (b91a3a056 2024-11-07)# docs.rs version
docsrs 0.6.0 (36c721fb 2024-11-06)# build log
[INFO] running `Command { std: "docker" "create" "-v" "/home/cratesfyi/workspace/builds/parity-send-wrapper-0.1.0/target:/opt/rustwide/target:rw,Z" "-v" "/home/cratesfyi/workspace/builds/parity-send-wrapper-0.1.0/source:/opt/rustwide/workdir:ro,Z" "-v" "/home/cratesfyi/workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/home/cratesfyi/workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "DOCS_RS=1" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "6442450944" "--cpus" "6" "--user" "1001:1001" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4a844ea9eb2546a2d2c7022eacef16ef2e8229c7fbb2c7d4d55a9ceca922f72d" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "rustdoc" "--lib" "-Zrustdoc-map" "--config" "build.rustdocflags=[\"--cfg\", \"docsrs\", \"-Z\", \"unstable-options\", \"--emit=invocation-specific\", \"--resource-suffix\", \"-20241107-1.84.0-nightly-b91a3a056\", \"--static-root-path\", \"/-/rustdoc.static/\", \"--cap-lints\", \"warn\", \"--extern-html-root-takes-precedence\"]" "--offline" "-Zunstable-options" "--config=doc.extern-map.registries.crates-io=\"https://docs.rs/{pkg_name}/{version}/x86_64-pc-windows-msvc\"" "-Zrustdoc-scrape-examples" "-j6" "--target" "x86_64-pc-windows-msvc", kill_on_drop: false }`
[INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
[INFO] [stdout] 700e3f01303239b73c915f6797994d31087f9aa9d677d5cd10b764c79cb6d1f4
[INFO] running `Command { std: "docker" "start" "-a" "700e3f01303239b73c915f6797994d31087f9aa9d677d5cd10b764c79cb6d1f4", kill_on_drop: false }`
[INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2021
[INFO] [stderr] warning: target filter specified, but no targets matched; this is a no-op
[INFO] [stderr]  Documenting parity-send-wrapper v0.1.0 (/opt/rustwide/workdir)
[INFO] [stderr] warning: unclosed HTML tag `T`
[INFO] [stderr]   --> src/lib.rs:99:26
[INFO] [stderr]    |
[INFO] [stderr] 99 |     /// Create a SendWrapper<T> wrapper around a value of type T.
[INFO] [stderr]    |                             ^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `#[warn(rustdoc::invalid_html_tags)]` on by default
[INFO] [stderr] help: try marking as source code
[INFO] [stderr]    |
[INFO] [stderr] 99 |     /// Create a `SendWrapper<T>` wrapper around a value of type T.
[INFO] [stderr]    |                  +              +
[INFO] [stderr] 
[INFO] [stderr] warning: unclosed HTML tag `T`
[INFO] [stderr]    --> src/lib.rs:116:81
[INFO] [stderr]     |
[INFO] [stderr] 116 |     /// Panics if it is called from a different thread than the one the SendWrapper<T> instance has
[INFO] [stderr]     |                                                                                    ^^^
[INFO] [stderr]     |
[INFO] [stderr] help: try marking as source code
[INFO] [stderr]     |
[INFO] [stderr] 116 |     /// Panics if it is called from a different thread than the one the `SendWrapper<T>` instance has
[INFO] [stderr]     |                                                                         +              +
[INFO] [stderr] 
[INFO] [stderr] warning: unclosed HTML tag `T`
[INFO] [stderr]    --> src/lib.rs:138:91
[INFO] [stderr]     |
[INFO] [stderr] 138 |     /// Derefencing panics if it is done from a different thread than the one the SendWrapper<T> instance has been
[INFO] [stderr]     |                                                                                              ^^^
[INFO] [stderr]     |
[INFO] [stderr] help: try marking as source code
[INFO] [stderr]     |
[INFO] [stderr] 138 |     /// Derefencing panics if it is done from a different thread than the one the `SendWrapper<T>` instance has been
[INFO] [stderr]     |                                                                                   +              +
[INFO] [stderr] 
[INFO] [stderr] warning: unclosed HTML tag `T`
[INFO] [stderr]    --> src/lib.rs:156:91
[INFO] [stderr]     |
[INFO] [stderr] 156 |     /// Derefencing panics if it is done from a different thread than the one the SendWrapper<T> instance has been
[INFO] [stderr]     |                                                                                              ^^^
[INFO] [stderr]     |
[INFO] [stderr] help: try marking as source code
[INFO] [stderr]     |
[INFO] [stderr] 156 |     /// Derefencing panics if it is done from a different thread than the one the `SendWrapper<T>` instance has been
[INFO] [stderr]     |                                                                                   +              +
[INFO] [stderr] 
[INFO] [stderr] warning: unclosed HTML tag `T`
[INFO] [stderr]    --> src/lib.rs:174:88
[INFO] [stderr]     |
[INFO] [stderr] 174 |     /// Dropping panics if it is done from a different thread than the one the SendWrapper<T> instance has been
[INFO] [stderr]     |                                                                                           ^^^
[INFO] [stderr]     |
[INFO] [stderr] help: try marking as source code
[INFO] [stderr]     |
[INFO] [stderr] 174 |     /// Dropping panics if it is done from a different thread than the one the `SendWrapper<T>` instance has been
[INFO] [stderr]     |                                                                                +              +
[INFO] [stderr] 
[INFO] [stderr] warning: `parity-send-wrapper` (lib doc) generated 5 warnings
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.27s
[INFO] [stderr]    Generated /opt/rustwide/target/x86_64-pc-windows-msvc/doc/parity_send_wrapper/index.html
[INFO] running `Command { std: "docker" "inspect" "700e3f01303239b73c915f6797994d31087f9aa9d677d5cd10b764c79cb6d1f4", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "700e3f01303239b73c915f6797994d31087f9aa9d677d5cd10b764c79cb6d1f4", kill_on_drop: false }`
[INFO] [stdout] 700e3f01303239b73c915f6797994d31087f9aa9d677d5cd10b764c79cb6d1f4