rust_gpiozero 0.2.1

A library inspired by gpiozero written in Rust.
Documentation

Build #3314060 2026-05-18 10:14:05

# rustc version rustc 1.97.0-nightly (507271bc1 2026-05-17)

# docs.rs version docsrs 0.0.0 (e50152ed411bb913753b1dfd203f22cb8711f097 2026-05-17 )

# 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" "f1813458a41945e065b6b83fb2c6752f848e14ff9b4f49e1dc4f4e2dd381b819" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "rustdoc" "--lib" "-Zrustdoc-map" "--config" "build.rustdocflags=[\"--cfg\", \"docsrs\", \"-Z\", \"unstable-options\", \"--emit=invocation-specific\", \"--resource-suffix\", \"-20260517-1.97.0-nightly-507271bc1\", \"--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: field `inactive_state` is never read [INFO] [stderr] --> src/devices.rs:34:5 [INFO] [stderr] | [INFO] [stderr] 31 | pub struct GpioDevice { [INFO] [stderr] | ---------- field in this struct [INFO] [stderr] ... [INFO] [stderr] 34 | inactive_state: bool, [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `GpioDevice` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: field `bounce_time` is never read [INFO] [stderr] --> src/input_devices.rs:101:5 [INFO] [stderr] | [INFO] [stderr] 97 | pub struct DigitalInputDevice { [INFO] [stderr] | ------------------ field in this struct [INFO] [stderr] ... [INFO] [stderr] 101 | bounce_time: Option<f32>, [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `DigitalInputDevice` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: `rust_gpiozero` (lib) generated 2 warnings [INFO] [stderr] Scraping rust_gpiozero v0.2.1 (/opt/rustwide/workdir) [INFO] [stderr] Documenting rust_gpiozero v0.2.1 (/opt/rustwide/workdir) [INFO] [stderr] warning: unresolved link to `0,100` [INFO] [stderr] --> src/output_devices.rs:357:72 [INFO] [stderr] | [INFO] [stderr] 357 | /// The pulse width of the signal will be 100μs with a value range of [0,100] (where 0 is a constant low and 100 is a constant high... [INFO] [stderr] | ^^^^^ no item named `0,100` in scope [INFO] [stderr] | [INFO] [stderr] = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]` [INFO] [stderr] = note: `#[warn(rustdoc::broken_intra_doc_links)]` on by default [INFO] [stderr] [INFO] [stderr] warning: this URL is not a hyperlink [INFO] [stderr] --> src/input_devices.rs:113:17 [INFO] [stderr] | [INFO] [stderr] 113 | /// Source: https://pinout.xyz/pinout/pin5_gpio3 [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: bare URLs are not automatically turned into clickable links [INFO] [stderr] = note: `#[warn(rustdoc::bare_urls)]` on by default [INFO] [stderr] help: use an automatic link instead [INFO] [stderr] | [INFO] [stderr] 113 | /// Source: <https://pinout.xyz/pinout/pin5_gpio3> [INFO] [stderr] | + + [INFO] [stderr] [INFO] [stderr] warning: `rust_gpiozero` (lib doc) generated 2 warnings (run `cargo fix --lib -p rust_gpiozero` to apply 1 suggestion) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1.01s [INFO] [stderr] Generated /opt/rustwide/target/x86_64-unknown-linux-gnu/doc/rust_gpiozero/index.html [INFO] running `Command { std: "docker" "inspect" "f1813458a41945e065b6b83fb2c6752f848e14ff9b4f49e1dc4f4e2dd381b819", kill_on_drop: false }`