event-listener 5.3.1

Notify async tasks or threads
Documentation
Build #1233653 2024-05-29T02:50:36.363180+00:00
# rustc version
rustc 1.80.0-nightly (da159eb33 2024-05-28)# docs.rs version
docsrs 0.6.0 (2d4f32bd 2024-05-19)# build log
[INFO] running `Command { std: "docker" "create" "-v" "/home/cratesfyi/workspace/builds/event-listener-5.3.1/target:/opt/rustwide/target:rw,Z" "-v" "/home/cratesfyi/workspace/builds/event-listener-5.3.1/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:beeedbb442662e57d416641ecc3200b38e573c25b057896194468d05594dd835" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "rustdoc" "--lib" "-Zrustdoc-map" "--config" "build.rustdocflags=[\"--cfg\", \"docsrs\", \"-Z\", \"unstable-options\", \"--emit=invocation-specific\", \"--resource-suffix\", \"-20240528-1.80.0-nightly-da159eb33\", \"--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}/i686-unknown-linux-gnu\"" "-Zrustdoc-scrape-examples" "-j6" "--target" "i686-unknown-linux-gnu", kill_on_drop: false }`
[INFO] [stdout] eb11f5f6e3e42676e3c08bb6d1de90e48c7e0d0c40d99845fc11e6262b5099b3
[INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
[INFO] running `Command { std: "docker" "start" "-a" "eb11f5f6e3e42676e3c08bb6d1de90e48c7e0d0c40d99845fc11e6262b5099b3", kill_on_drop: false }`
[INFO] [stderr] warning: Rustdoc did not scrape the following examples because they require dev-dependencies: mutex
[INFO] [stderr]     If you want Rustdoc to scrape these examples, then add `doc-scrape-examples = true`
[INFO] [stderr]     to the [[example]] target configuration of at least one example.
[INFO] [stderr] warning: target filter specified, but no targets matched; this is a no-op
[INFO] [stderr]  Documenting event-listener v5.3.1 (/opt/rustwide/workdir)
[INFO] [stderr] warning: unexpected `cfg` condition name: `loom`
[INFO] [stderr]    --> src/lib.rs:114:11
[INFO] [stderr]     |
[INFO] [stderr] 114 | #[cfg(not(loom))]
[INFO] [stderr]     |           ^^^^ help: found config with similar value: `feature = "loom"`
[INFO] [stderr]     |
[INFO] [stderr]     = help: expected names are: `clippy`, `debug_assertions`, `doc`, `docsrs`, `doctest`, `feature`, `miri`, `overflow_checks`, `panic`, `proc_macro`, `relocation_model`, `rustfmt`, `sanitize`, `sanitizer_cfi_generalize_pointers`, `sanitizer_cfi_normalize_integers`, `target_abi`, `target_arch`, `target_endian`, `target_env`, `target_family`, `target_feature`, `target_has_atomic`, `target_has_atomic_equal_alignment`, `target_has_atomic_load_store`, `target_os`, `target_pointer_width`, `target_thread_local`, `target_vendor`, `test`, `ub_checks`, `unix`, and `windows`
[INFO] [stderr]     = help: consider using a Cargo feature instead
[INFO] [stderr]     = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint:
[INFO] [stderr]              [lints.rust]
[INFO] [stderr]              unexpected_cfgs = { level = "warn", check-cfg = ['cfg(loom)'] }
[INFO] [stderr]     = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(loom)");` to the top of the `build.rs`
[INFO] [stderr]     = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
[INFO] [stderr]     = note: requested on the command line with `-W unexpected-cfgs`
[INFO] [stderr] 
[INFO] [stderr] warning: unexpected `cfg` condition name: `loom`
[INFO] [stderr]     --> src/lib.rs:1349:11
[INFO] [stderr]      |
[INFO] [stderr] 1349 | #[cfg(not(loom))]
[INFO] [stderr]      |           ^^^^ help: found config with similar value: `feature = "loom"`
[INFO] [stderr]      |
[INFO] [stderr]      = help: consider using a Cargo feature instead
[INFO] [stderr]      = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint:
[INFO] [stderr]               [lints.rust]
[INFO] [stderr]               unexpected_cfgs = { level = "warn", check-cfg = ['cfg(loom)'] }
[INFO] [stderr]      = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(loom)");` to the top of the `build.rs`
[INFO] [stderr]      = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
[INFO] [stderr] 
[INFO] [stderr] warning: unexpected `cfg` condition name: `loom`
[INFO] [stderr]     --> src/lib.rs:1426:7
[INFO] [stderr]      |
[INFO] [stderr] 1426 | #[cfg(loom)]
[INFO] [stderr]      |       ^^^^ help: found config with similar value: `feature = "loom"`
[INFO] [stderr]      |
[INFO] [stderr]      = help: consider using a Cargo feature instead
[INFO] [stderr]      = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint:
[INFO] [stderr]               [lints.rust]
[INFO] [stderr]               unexpected_cfgs = { level = "warn", check-cfg = ['cfg(loom)'] }
[INFO] [stderr]      = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(loom)");` to the top of the `build.rs`
[INFO] [stderr]      = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
[INFO] [stderr] 
[INFO] [stderr] warning: unexpected `cfg` condition name: `loom`
[INFO] [stderr]    --> src/notify.rs:578:80
[INFO] [stderr]     |
[INFO] [stderr] 578 |     #[cfg(all(any(target_arch = "x86", target_arch = "x86_64"), not(miri), not(loom)))]
[INFO] [stderr]     |                                                                                ^^^^ help: found config with similar value: `feature = "loom"`
[INFO] [stderr]     |
[INFO] [stderr]     = help: consider using a Cargo feature instead
[INFO] [stderr]     = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint:
[INFO] [stderr]              [lints.rust]
[INFO] [stderr]              unexpected_cfgs = { level = "warn", check-cfg = ['cfg(loom)'] }
[INFO] [stderr]     = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(loom)");` to the top of the `build.rs`
[INFO] [stderr]     = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
[INFO] [stderr] 
[INFO] [stderr] warning: unexpected `cfg` condition name: `loom`
[INFO] [stderr]    --> src/lib.rs:226:36
[INFO] [stderr]     |
[INFO] [stderr] 226 |     #[cfg(all(feature = "std", not(loom)))]
[INFO] [stderr]     |                                    ^^^^ help: found config with similar value: `feature = "loom"`
[INFO] [stderr]     |
[INFO] [stderr]     = help: consider using a Cargo feature instead
[INFO] [stderr]     = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint:
[INFO] [stderr]              [lints.rust]
[INFO] [stderr]              unexpected_cfgs = { level = "warn", check-cfg = ['cfg(loom)'] }
[INFO] [stderr]     = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(loom)");` to the top of the `build.rs`
[INFO] [stderr]     = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
[INFO] [stderr] 
[INFO] [stderr] warning: unexpected `cfg` condition name: `loom`
[INFO] [stderr]    --> src/lib.rs:233:32
[INFO] [stderr]     |
[INFO] [stderr] 233 |     #[cfg(all(feature = "std", loom))]
[INFO] [stderr]     |                                ^^^^ help: found config with similar value: `feature = "loom"`
[INFO] [stderr]     |
[INFO] [stderr]     = help: consider using a Cargo feature instead
[INFO] [stderr]     = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint:
[INFO] [stderr]              [lints.rust]
[INFO] [stderr]              unexpected_cfgs = { level = "warn", check-cfg = ['cfg(loom)'] }
[INFO] [stderr]     = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(loom)");` to the top of the `build.rs`
[INFO] [stderr]     = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
[INFO] [stderr] 
[INFO] [stderr] warning: unexpected `cfg` condition name: `loom`
[INFO] [stderr]    --> src/lib.rs:547:15
[INFO] [stderr]     |
[INFO] [stderr] 547 |     #[cfg(not(loom))]
[INFO] [stderr]     |               ^^^^ help: found config with similar value: `feature = "loom"`
[INFO] [stderr]     |
[INFO] [stderr]     = help: consider using a Cargo feature instead
[INFO] [stderr]     = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint:
[INFO] [stderr]              [lints.rust]
[INFO] [stderr]              unexpected_cfgs = { level = "warn", check-cfg = ['cfg(loom)'] }
[INFO] [stderr]     = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(loom)");` to the top of the `build.rs`
[INFO] [stderr]     = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
[INFO] [stderr] 
[INFO] [stderr] warning: unexpected `cfg` condition name: `loom`
[INFO] [stderr]    --> src/lib.rs:555:11
[INFO] [stderr]     |
[INFO] [stderr] 555 |     #[cfg(loom)]
[INFO] [stderr]     |           ^^^^ help: found config with similar value: `feature = "loom"`
[INFO] [stderr]     |
[INFO] [stderr]     = help: consider using a Cargo feature instead
[INFO] [stderr]     = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint:
[INFO] [stderr]              [lints.rust]
[INFO] [stderr]              unexpected_cfgs = { level = "warn", check-cfg = ['cfg(loom)'] }
[INFO] [stderr]     = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(loom)");` to the top of the `build.rs`
[INFO] [stderr]     = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
[INFO] [stderr] 
[INFO] [stderr] warning: unexpected `cfg` condition name: `loom`
[INFO] [stderr]     --> src/lib.rs:1132:23
[INFO] [stderr]      |
[INFO] [stderr] 1132 |                 #[cfg(loom)]
[INFO] [stderr]      |                       ^^^^ help: found config with similar value: `feature = "loom"`
[INFO] [stderr]      |
[INFO] [stderr]      = help: consider using a Cargo feature instead
[INFO] [stderr]      = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint:
[INFO] [stderr]               [lints.rust]
[INFO] [stderr]               unexpected_cfgs = { level = "warn", check-cfg = ['cfg(loom)'] }
[INFO] [stderr]      = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(loom)");` to the top of the `build.rs`
[INFO] [stderr]      = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
[INFO] [stderr] 
[INFO] [stderr] warning: unexpected `cfg` condition name: `loom`
[INFO] [stderr]     --> src/lib.rs:1137:27
[INFO] [stderr]      |
[INFO] [stderr] 1137 |                 #[cfg(not(loom))]
[INFO] [stderr]      |                           ^^^^ help: found config with similar value: `feature = "loom"`
[INFO] [stderr]      |
[INFO] [stderr]      = help: consider using a Cargo feature instead
[INFO] [stderr]      = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint:
[INFO] [stderr]               [lints.rust]
[INFO] [stderr]               unexpected_cfgs = { level = "warn", check-cfg = ['cfg(loom)'] }
[INFO] [stderr]      = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(loom)");` to the top of the `build.rs`
[INFO] [stderr]      = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
[INFO] [stderr] 
[INFO] [stderr] warning: unexpected `cfg` condition name: `loom`
[INFO] [stderr]     --> src/lib.rs:1362:36
[INFO] [stderr]      |
[INFO] [stderr] 1362 |     #[cfg(all(feature = "std", not(loom)))]
[INFO] [stderr]      |                                    ^^^^ help: found config with similar value: `feature = "loom"`
[INFO] [stderr]      |
[INFO] [stderr]      = help: consider using a Cargo feature instead
[INFO] [stderr]      = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint:
[INFO] [stderr]               [lints.rust]
[INFO] [stderr]               unexpected_cfgs = { level = "warn", check-cfg = ['cfg(loom)'] }
[INFO] [stderr]      = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(loom)");` to the top of the `build.rs`
[INFO] [stderr]      = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
[INFO] [stderr] 
[INFO] [stderr] warning: unexpected `cfg` condition name: `loom`
[INFO] [stderr]     --> src/lib.rs:1364:65
[INFO] [stderr]      |
[INFO] [stderr] 1364 |     #[cfg(all(feature = "std", not(target_family = "wasm"), not(loom)))]
[INFO] [stderr]      |                                                                 ^^^^ help: found config with similar value: `feature = "loom"`
[INFO] [stderr]      |
[INFO] [stderr]      = help: consider using a Cargo feature instead
[INFO] [stderr]      = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint:
[INFO] [stderr]               [lints.rust]
[INFO] [stderr]               unexpected_cfgs = { level = "warn", check-cfg = ['cfg(loom)'] }
[INFO] [stderr]      = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(loom)");` to the top of the `build.rs`
[INFO] [stderr]      = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
[INFO] [stderr] 
[INFO] [stderr] warning: unresolved link to `Event::notify`
[INFO] [stderr]   --> src/notify.rs:36:32
[INFO] [stderr]    |
[INFO] [stderr] 36 | /// This type is used by the [`Event::notify()`] function to determine how many listeners to wake up, whether
[INFO] [stderr]    |                                ^^^^^^^^^^^^^^^ no item named `Event` in scope
[INFO] [stderr]    |
[INFO] [stderr]    = note: `#[warn(rustdoc::broken_intra_doc_links)]` on by default
[INFO] [stderr] 
[INFO] [stderr] warning: unresolved link to `Event`
[INFO] [stderr]    --> src/notify.rs:362:28
[INFO] [stderr]     |
[INFO] [stderr] 362 |     /// By default, most [`Event`]s will use the unit type, `()`. However, this can be used to pass data along to
[INFO] [stderr]     |                            ^^^^^ no item named `Event` in scope
[INFO] [stderr]     |
[INFO] [stderr]     = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
[INFO] [stderr] 
[INFO] [stderr] warning: unresolved link to `EventListener`
[INFO] [stderr]    --> src/notify.rs:392:17
[INFO] [stderr]     |
[INFO] [stderr] 392 |     /// is an [`EventListener`] that has been woken up, but hasn't been polled to completion or waited on yet.
[INFO] [stderr]     |                 ^^^^^^^^^^^^^ no item named `EventListener` in scope
[INFO] [stderr]     |
[INFO] [stderr]     = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
[INFO] [stderr] 
[INFO] [stderr] warning: unresolved link to `Event`
[INFO] [stderr]    --> src/notify.rs:397:25
[INFO] [stderr]     |
[INFO] [stderr] 397 |     /// powered by an [`Event`], you usually only want one consumer to be notified at a time. If you notified
[INFO] [stderr]     |                         ^^^^^ no item named `Event` in scope
[INFO] [stderr]     |
[INFO] [stderr]     = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
[INFO] [stderr] 
[INFO] [stderr] warning: unresolved link to `Event`
[INFO] [stderr]    --> src/notify.rs:437:33
[INFO] [stderr]     |
[INFO] [stderr] 437 |     /// - You are running the [`Event`] on a single thread, where no synchronization needs to occur.
[INFO] [stderr]     |                                 ^^^^^ no item named `Event` in scope
[INFO] [stderr]     |
[INFO] [stderr]     = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
[INFO] [stderr] 
[INFO] [stderr] warning: unresolved link to `Event`
[INFO] [stderr]    --> src/notify.rs:473:94
[INFO] [stderr]     |
[INFO] [stderr] 473 |     /// In many cases, it is desired to send additional information to the listener of the [`Event`]. For instance,
[INFO] [stderr]     |                                                                                              ^^^^^ no item named `Event` in scope
[INFO] [stderr]     |
[INFO] [stderr]     = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
[INFO] [stderr] 
[INFO] [stderr] warning: unresolved link to `IntoNotification::with_tag`
[INFO] [stderr]    --> src/notify.rs:478:23
[INFO] [stderr]     |
[INFO] [stderr] 478 |     /// enough, use [`IntoNotification::with_tag()`] instead.
[INFO] [stderr]     |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `IntoNotification` has no function named `with_tag`
[INFO] [stderr] 
[INFO] [stderr] warning: unresolved link to `Event`
[INFO] [stderr]    --> src/notify.rs:510:94
[INFO] [stderr]     |
[INFO] [stderr] 510 |     /// In many cases, it is desired to send additional information to the listener of the [`Event`]. For instance,
[INFO] [stderr]     |                                                                                              ^^^^^ no item named `Event` in scope
[INFO] [stderr]     |
[INFO] [stderr]     = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
[INFO] [stderr] 
[INFO] [stderr] warning: unresolved link to `EventListener::new`
[INFO] [stderr]    --> src/lib.rs:264:35
[INFO] [stderr]     |
[INFO] [stderr] 264 |     /// is an alias for calling [`EventListener::new()`], pinning it to the heap, and then
[INFO] [stderr]     |                                   ^^^^^^^^^^^^^^^^^^^^ the struct `EventListener` has no function named `new`
[INFO] [stderr] 
[INFO] [stderr] warning: unresolved link to `EventListener::new`
[INFO] [stderr]    --> src/lib.rs:290:61
[INFO] [stderr]     |
[INFO] [stderr] 290 |     /// heap allocation. In this case, consider using the [`EventListener::new`] constructor
[INFO] [stderr]     |                                                             ^^^^^^^^^^^^^^^^^^ the struct `EventListener` has no field or associated item named `new`
[INFO] [stderr] 
[INFO] [stderr] warning: `event-listener` (lib doc) generated 22 warnings
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.35s
[INFO] [stderr]    Generated /opt/rustwide/target/i686-unknown-linux-gnu/doc/event_listener/index.html
[INFO] running `Command { std: "docker" "inspect" "eb11f5f6e3e42676e3c08bb6d1de90e48c7e0d0c40d99845fc11e6262b5099b3", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "eb11f5f6e3e42676e3c08bb6d1de90e48c7e0d0c40d99845fc11e6262b5099b3", kill_on_drop: false }`
[INFO] [stdout] eb11f5f6e3e42676e3c08bb6d1de90e48c7e0d0c40d99845fc11e6262b5099b3