hid 0.4.1

Safe hidapi wrapper
Documentation

Build #3608857 2026-06-17 19:40:08

# rustc version rustc 1.98.0-nightly (9e2abe0c6 2026-06-16)

# docs.rs version docsrs 0.0.0 (886bc7a22b1adc4b387ce1343447fe3af98d9ce5 2026-06-14 )

# build log [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "DOCS_RS=1" "-w" "/opt/rustwide/workdir" "--user" "1001:1001" "0d5b5be9a6876282a7e22627c65e1b2f75184bda0c33c49a360341e4dcc975ec" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "rustdoc" "--lib" "-Zrustdoc-map" "--config" "build.rustdocflags=[\"--cfg\", \"docsrs\", \"-Z\", \"unstable-options\", \"--emit=invocation-specific\", \"--resource-suffix\", \"-20260616-1.98.0-nightly-9e2abe0c6\", \"--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-unknown-linux-gnu\"" "-Zrustdoc-scrape-examples" "-j6" "--target" "x86_64-unknown-linux-gnu", kill_on_drop: false }` [INFO] [stderr] warning: Cargo.toml: `package.edition` is unspecified, defaulting to `2015` while the latest is `2024` [INFO] [stderr] warning: `hid` (manifest) generated 1 warning [INFO] [stderr] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stderr] --> src/error.rs:36:29 [INFO] [stderr] | [INFO] [stderr] 36 | f.write_str(error::Error::description(self)) [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(deprecated)]` on by default [INFO] [stderr] [INFO] [stderr] warning: use of deprecated constant `std::sync::atomic::ATOMIC_BOOL_INIT`: the `new` function is now preferred [INFO] [stderr] --> src/manager.rs:1:37 [INFO] [stderr] | [INFO] [stderr] 1 | use std::sync::atomic::{AtomicBool, ATOMIC_BOOL_INIT, Ordering}; [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated constant `std::sync::atomic::ATOMIC_BOOL_INIT`: the `new` function is now preferred [INFO] [stderr] --> src/manager.rs:7:34 [INFO] [stderr] | [INFO] [stderr] 7 | static INITIALIZED: AtomicBool = ATOMIC_BOOL_INIT; [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] help: replace the use of the deprecated constant [INFO] [stderr] | [INFO] [stderr] 7 - static INITIALIZED: AtomicBool = ATOMIC_BOOL_INIT; [INFO] [stderr] 7 + static INITIALIZED: AtomicBool = AtomicBool::new(false); [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/manager.rs:46:14 [INFO] [stderr] | [INFO] [stderr] 46 | pub fn find(&self, vendor: Option<u16>, product: Option<u16>) -> Devices { [INFO] [stderr] | ^^^^^ the lifetime is elided here ^^^^^^^ the same lifetime is hidden here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stderr] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 46 | pub fn find(&self, vendor: Option<u16>, product: Option<u16>) -> Devices<'_> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/manager.rs:53:17 [INFO] [stderr] | [INFO] [stderr] 53 | pub fn devices(&self) -> Devices { [INFO] [stderr] | ^^^^^ ^^^^^^^ the same lifetime is hidden here [INFO] [stderr] | | [INFO] [stderr] | the lifetime is elided here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 53 | pub fn devices(&self) -> Devices<'_> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/handle.rs:46:14 [INFO] [stderr] | [INFO] [stderr] 46 | pub fn data(&mut self) -> Data { [INFO] [stderr] | ^^^^^^^^^ ^^^^ the same lifetime is hidden here [INFO] [stderr] | | [INFO] [stderr] | the lifetime is elided here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 46 | pub fn data(&mut self) -> Data<'_> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/handle.rs:53:17 [INFO] [stderr] | [INFO] [stderr] 53 | pub fn feature(&mut self) -> Feature { [INFO] [stderr] | ^^^^^^^^^ ^^^^^^^ the same lifetime is hidden here [INFO] [stderr] | | [INFO] [stderr] | the lifetime is elided here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 53 | pub fn feature(&mut self) -> Feature<'_> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/handle.rs:67:28 [INFO] [stderr] | [INFO] [stderr] 67 | pub unsafe fn new(handle: &mut Handle) -> Data { [INFO] [stderr] | ^^^^^^^^^^^ ^^^^ the same lifetime is hidden here [INFO] [stderr] | | [INFO] [stderr] | the lifetime is elided here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 67 | pub unsafe fn new(handle: &mut Handle) -> Data<'_> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/handle.rs:156:28 [INFO] [stderr] | [INFO] [stderr] 156 | pub unsafe fn new(handle: &mut Handle) -> Feature { [INFO] [stderr] | ^^^^^^^^^^^ ^^^^^^^ the same lifetime is hidden here [INFO] [stderr] | | [INFO] [stderr] | the lifetime is elided here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 156 | pub unsafe fn new(handle: &mut Handle) -> Feature<'_> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: `hid` (lib) generated 9 warnings (run `cargo fix --lib -p hid` to apply 7 suggestions) [INFO] [stderr] Scraping hid v0.4.1 (/opt/rustwide/workdir) [INFO] [stderr] Documenting hid v0.4.1 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1.34s [INFO] [stderr] Generated /opt/rustwide/target/x86_64-unknown-linux-gnu/doc/hid/index.html [INFO] running `Command { std: "docker" "inspect" "0d5b5be9a6876282a7e22627c65e1b2f75184bda0c33c49a360341e4dcc975ec", kill_on_drop: false }`