[INFO] cloning repository https://github.com/code0100fun/rs-vr [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/code0100fun/rs-vr" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcode0100fun%2Frs-vr", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcode0100fun%2Frs-vr'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 192196a66aa4fd2470bb48d510976937f8889c5b [INFO] checking code0100fun/rs-vr against try#8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 for pr-82565 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcode0100fun%2Frs-vr" "/workspace/builds/worker-13/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-13/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/code0100fun/rs-vr on toolchain 8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/code0100fun/rs-vr [INFO] finished tweaking git repo https://github.com/code0100fun/rs-vr [INFO] tweaked toml for git repo https://github.com/code0100fun/rs-vr written to /workspace/builds/worker-13/source/Cargo.toml [INFO] crate git repo https://github.com/code0100fun/rs-vr already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded nix v0.13.1 [INFO] [stderr] Downloaded winbluetooth v0.1.0 [INFO] [stderr] Downloaded io_bluetooth v0.1.0 [INFO] [stderr] Downloaded libbluetooth v0.1.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 46fa9a2359e0cf4ec2978ff31fc15ae37d77f2ded80a7d5cc4ab4fb911a352e1 [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" "46fa9a2359e0cf4ec2978ff31fc15ae37d77f2ded80a7d5cc4ab4fb911a352e1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "46fa9a2359e0cf4ec2978ff31fc15ae37d77f2ded80a7d5cc4ab4fb911a352e1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "46fa9a2359e0cf4ec2978ff31fc15ae37d77f2ded80a7d5cc4ab4fb911a352e1", kill_on_drop: false }` [INFO] [stdout] 46fa9a2359e0cf4ec2978ff31fc15ae37d77f2ded80a7d5cc4ab4fb911a352e1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 71044c215995749c288d95a9575cf320163d6d5d25202f06a6f0c7477b8a9dc0 [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" "71044c215995749c288d95a9575cf320163d6d5d25202f06a6f0c7477b8a9dc0", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Checking hid-rs v0.1.0 (/opt/rustwide/workdir/lib/hid_rs) [INFO] [stderr] Checking bitflags v1.2.1 [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> lib/hid_rs/src/usb/device/info/iter.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use winapi::um::setupapi::{ [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking nix v0.13.1 [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> lib/hid_rs/src/usb/device/info/sys.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use winapi::um::setupapi::{ [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> lib/hid_rs/src/usb/device/info/sys.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use winapi::um::handleapi::{ [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> lib/hid_rs/src/usb/device/info/sys.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | use winapi::shared::hidsdi::{ [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> lib/hid_rs/src/usb/device/info/sys.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | use winapi::shared::guiddef::{GUID}; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> lib/hid_rs/src/usb/device/info/sys.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | use winapi::shared::minwindef::{TRUE}; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> lib/hid_rs/src/usb/hid.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use winapi::{ [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> lib/hid_rs/src/usb/device.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use winapi::shared::minwindef::{TRUE}; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> lib/hid_rs/src/usb/device.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use winapi::um::handleapi::{ [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> lib/hid_rs/src/usb/device.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use winapi::um::winnt::{ [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> lib/hid_rs/src/usb/device.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use winapi::um::fileapi::{ [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> lib/hid_rs/src/usb/device.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | use winapi::um::winbase::{ [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `OVERLAPPED` [INFO] [stdout] --> lib/hid_rs/src/usb/hid.rs:31:26 [INFO] [stdout] | [INFO] [stdout] 31 | let mut overlapped = OVERLAPPED::default(); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `OVERLAPPED` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HDEVINFO` in this scope [INFO] [stdout] --> lib/hid_rs/src/usb/device/info/iter.rs:15:33 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct HIDDeviceInfoIter { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] 14 | pub index: u32, [INFO] [stdout] 15 | pub device_info_set: Option, [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HDEVINFO` in this scope [INFO] [stdout] --> lib/hid_rs/src/usb/device/info/iter.rs:45:49 [INFO] [stdout] | [INFO] [stdout] 44 | impl HIDDeviceInfoIter { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] 45 | fn device_info_set(&mut self) -> io::Result { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HDEVINFO` in this scope [INFO] [stdout] --> lib/hid_rs/src/usb/device/info/iter.rs:62:46 [INFO] [stdout] | [INFO] [stdout] 62 | fn get_next_hid_device_info(device_info_set: HDEVINFO, index: u32) -> (bool, u32, Option>) { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `GUID` in this scope [INFO] [stdout] --> lib/hid_rs/src/usb/device/info/sys.rs:38:30 [INFO] [stdout] | [INFO] [stdout] 38 | const GUID_DEVINTERFACE_USB: GUID = GUID { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `GUID` in this scope [INFO] [stdout] --> lib/hid_rs/src/usb/device/info/sys.rs:38:37 [INFO] [stdout] | [INFO] [stdout] 38 | const GUID_DEVINTERFACE_USB: GUID = GUID { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HDEVINFO` in this scope [INFO] [stdout] --> lib/hid_rs/src/usb/device/info/sys.rs:45:41 [INFO] [stdout] | [INFO] [stdout] 45 | pub fn get_device_info(device_info_set: HDEVINFO, device_index: u32) -> (bool, Option>) { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `INVALID_HANDLE_VALUE` in this scope [INFO] [stdout] --> lib/hid_rs/src/usb/device/info/sys.rs:73:33 [INFO] [stdout] | [INFO] [stdout] 73 | Ok(handle) if handle == INVALID_HANDLE_VALUE => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HIDD_ATTRIBUTES` in this scope [INFO] [stdout] --> lib/hid_rs/src/usb/device/info/sys.rs:84:22 [INFO] [stdout] | [INFO] [stdout] 84 | let hid_attribs: HIDD_ATTRIBUTES = HIDD_ATTRIBUTES { [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `HIDD_ATTRIBUTES` in this scope [INFO] [stdout] --> lib/hid_rs/src/usb/device/info/sys.rs:84:40 [INFO] [stdout] | [INFO] [stdout] 84 | let hid_attribs: HIDD_ATTRIBUTES = HIDD_ATTRIBUTES { [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HIDD_ATTRIBUTES` in this scope [INFO] [stdout] --> lib/hid_rs/src/usb/device/info/sys.rs:88:35 [INFO] [stdout] | [INFO] [stdout] 45 | pub fn get_device_info(device_info_set: HDEVINFO, device_index: u32) -> (bool, Option>) { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 88 | Size: std::mem::size_of::() as u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HIDD_ATTRIBUTES` in this scope [INFO] [stdout] --> lib/hid_rs/src/usb/device/info/sys.rs:90:26 [INFO] [stdout] | [INFO] [stdout] 90 | let mut hid_attribs: HIDD_ATTRIBUTES = unsafe { std::mem::zeroed() }; [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HIDD_ATTRIBUTES` in this scope [INFO] [stdout] --> lib/hid_rs/src/usb/device/info/sys.rs:91:44 [INFO] [stdout] | [INFO] [stdout] 45 | pub fn get_device_info(device_info_set: HDEVINFO, device_index: u32) -> (bool, Option>) { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 91 | hid_attribs.Size = std::mem::size_of::() as u32; [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `HidD_GetAttributes` in this scope [INFO] [stdout] --> lib/hid_rs/src/usb/device/info/sys.rs:93:9 [INFO] [stdout] | [INFO] [stdout] 93 | HidD_GetAttributes(write_handle, &mut hid_attribs); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HDEVINFO` in this scope [INFO] [stdout] --> lib/hid_rs/src/usb/device/info/sys.rs:110:44 [INFO] [stdout] | [INFO] [stdout] 110 | pub fn get_device_info_set() -> io::Result { [INFO] [stdout] | - ^^^^^^^^ not found in this scope [INFO] [stdout] | | [INFO] [stdout] | help: you might be missing a type parameter: `` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetupDiGetClassDevsA` in this scope [INFO] [stdout] --> lib/hid_rs/src/usb/device/info/sys.rs:112:9 [INFO] [stdout] | [INFO] [stdout] 112 | SetupDiGetClassDevsA(&GUID_DEVINTERFACE_USB, ptr::null(), ptr::null_mut(), DIGCF_PRESENT | DIGCF_DEVICEINTERFACE) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `DIGCF_PRESENT` in this scope [INFO] [stdout] --> lib/hid_rs/src/usb/device/info/sys.rs:112:84 [INFO] [stdout] | [INFO] [stdout] 112 | SetupDiGetClassDevsA(&GUID_DEVINTERFACE_USB, ptr::null(), ptr::null_mut(), DIGCF_PRESENT | DIGCF_DEVICEINTERFACE) [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `DIGCF_DEVICEINTERFACE` in this scope [INFO] [stdout] --> lib/hid_rs/src/usb/device/info/sys.rs:112:100 [INFO] [stdout] | [INFO] [stdout] 112 | SetupDiGetClassDevsA(&GUID_DEVINTERFACE_USB, ptr::null(), ptr::null_mut(), DIGCF_PRESENT | DIGCF_DEVICEINTERFACE) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `INVALID_HANDLE_VALUE` in this scope [INFO] [stdout] --> lib/hid_rs/src/usb/device/info/sys.rs:114:19 [INFO] [stdout] | [INFO] [stdout] 114 | d if d == INVALID_HANDLE_VALUE => Err(io::Error::last_os_error()), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HDEVINFO` in this scope [INFO] [stdout] --> lib/hid_rs/src/usb/device/info/sys.rs:119:38 [INFO] [stdout] | [INFO] [stdout] 119 | fn has_more_devices(device_info_set: HDEVINFO, device_index: u32, device_interface_data: &mut SP_DEVICE_INTERFACE_DATA) -> bool { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `SP_DEVICE_INTERFACE_DATA` in this scope [INFO] [stdout] --> lib/hid_rs/src/usb/device/info/sys.rs:119:95 [INFO] [stdout] | [INFO] [stdout] 119 | fn has_more_devices(device_info_set: HDEVINFO, device_index: u32, device_interface_data: &mut SP_DEVICE_INTERFACE_DATA) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `TRUE` in this scope [INFO] [stdout] --> lib/hid_rs/src/usb/device/info/sys.rs:120:5 [INFO] [stdout] | [INFO] [stdout] 120 | TRUE == unsafe { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetupDiEnumDeviceInterfaces` in this scope [INFO] [stdout] --> lib/hid_rs/src/usb/device/info/sys.rs:121:9 [INFO] [stdout] | [INFO] [stdout] 121 | SetupDiEnumDeviceInterfaces( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HDEVINFO` in this scope [INFO] [stdout] --> lib/hid_rs/src/usb/device/info/sys.rs:135:44 [INFO] [stdout] | [INFO] [stdout] 135 | fn get_device_detail_size(device_info_set: HDEVINFO, device_interface_data: &mut SP_DEVICE_INTERFACE_DATA) -> io::Result { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `SP_DEVICE_INTERFACE_DATA` in this scope [INFO] [stdout] --> lib/hid_rs/src/usb/device/info/sys.rs:135:82 [INFO] [stdout] | [INFO] [stdout] 135 | fn get_device_detail_size(device_info_set: HDEVINFO, device_interface_data: &mut SP_DEVICE_INTERFACE_DATA) -> io::Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetupDiGetDeviceInterfaceDetailA` in this scope [INFO] [stdout] --> lib/hid_rs/src/usb/device/info/sys.rs:138:9 [INFO] [stdout] | [INFO] [stdout] 138 | SetupDiGetDeviceInterfaceDetailA( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HDEVINFO` in this scope [INFO] [stdout] --> lib/hid_rs/src/usb/device/info/sys.rs:156:22 [INFO] [stdout] | [INFO] [stdout] 156 | device_info_set: HDEVINFO, [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `SP_DEVICE_INTERFACE_DATA` in this scope [INFO] [stdout] --> lib/hid_rs/src/usb/device/info/sys.rs:157:33 [INFO] [stdout] | [INFO] [stdout] 157 | device_interface_data: &mut SP_DEVICE_INTERFACE_DATA, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `SP_DEVICE_INTERFACE_DETAIL_DATA_A` in this scope [INFO] [stdout] --> lib/hid_rs/src/usb/device/info/sys.rs:158:40 [INFO] [stdout] | [INFO] [stdout] 158 | device_interface_detail_data: &mut SP_DEVICE_INTERFACE_DETAIL_DATA_A, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `TRUE` in this scope [INFO] [stdout] --> lib/hid_rs/src/usb/device/info/sys.rs:161:18 [INFO] [stdout] | [INFO] [stdout] 161 | let result = TRUE == unsafe { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetupDiGetDeviceInterfaceDetailA` in this scope [INFO] [stdout] --> lib/hid_rs/src/usb/device/info/sys.rs:162:9 [INFO] [stdout] | [INFO] [stdout] 162 | SetupDiGetDeviceInterfaceDetailA( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HDEVINFO` in this scope [INFO] [stdout] --> lib/hid_rs/src/usb/device/info/sys.rs:181:49 [INFO] [stdout] | [INFO] [stdout] 181 | fn device_has_hid_driver_bound(device_info_set: HDEVINFO, info_index: u32) -> bool { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `TRUE` in this scope [INFO] [stdout] --> lib/hid_rs/src/usb/device/info/sys.rs:185:25 [INFO] [stdout] | [INFO] [stdout] 185 | let has_next_info = TRUE == unsafe { SetupDiEnumDeviceInfo(device_info_set, info_index, &mut dev_info_data) }; [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetupDiEnumDeviceInfo` in this scope [INFO] [stdout] --> lib/hid_rs/src/usb/device/info/sys.rs:185:42 [INFO] [stdout] | [INFO] [stdout] 185 | let has_next_info = TRUE == unsafe { SetupDiEnumDeviceInfo(device_info_set, info_index, &mut dev_info_data) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `TRUE` in this scope [INFO] [stdout] --> lib/hid_rs/src/usb/device/info/sys.rs:192:18 [INFO] [stdout] | [INFO] [stdout] 192 | let result = TRUE == unsafe { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetupDiGetDeviceRegistryPropertyA` in this scope [INFO] [stdout] --> lib/hid_rs/src/usb/device/info/sys.rs:193:9 [INFO] [stdout] | [INFO] [stdout] 193 | SetupDiGetDeviceRegistryPropertyA( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SPDRP_CLASS` in this scope [INFO] [stdout] --> lib/hid_rs/src/usb/device/info/sys.rs:196:13 [INFO] [stdout] | [INFO] [stdout] 196 | SPDRP_CLASS, [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `TRUE` in this scope [INFO] [stdout] --> lib/hid_rs/src/usb/device/info/sys.rs:215:18 [INFO] [stdout] | [INFO] [stdout] 215 | let result = TRUE == unsafe { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetupDiGetDeviceRegistryPropertyA` in this scope [INFO] [stdout] --> lib/hid_rs/src/usb/device/info/sys.rs:216:9 [INFO] [stdout] | [INFO] [stdout] 216 | SetupDiGetDeviceRegistryPropertyA( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SPDRP_DRIVER` in this scope [INFO] [stdout] --> lib/hid_rs/src/usb/device/info/sys.rs:219:13 [INFO] [stdout] | [INFO] [stdout] 219 | SPDRP_DRIVER, [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `SP_DEVICE_INTERFACE_DETAIL_DATA_A` in this scope [INFO] [stdout] --> lib/hid_rs/src/usb/device/info/sys.rs:241:14 [INFO] [stdout] | [INFO] [stdout] 241 | _native: SP_DEVICE_INTERFACE_DETAIL_DATA_A, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `SP_DEVICE_INTERFACE_DETAIL_DATA_A` in this scope [INFO] [stdout] --> lib/hid_rs/src/usb/device/info/sys.rs:258:40 [INFO] [stdout] | [INFO] [stdout] 258 | let device_interface_detail_data = SP_DEVICE_INTERFACE_DETAIL_DATA_A { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `SP_DEVICE_INTERFACE_DETAIL_DATA_A` in this scope [INFO] [stdout] --> lib/hid_rs/src/usb/device/info/sys.rs:259:37 [INFO] [stdout] | [INFO] [stdout] 257 | fn create_device_interface_detail_data() -> DeviceInterfaceDetailData { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] 258 | let device_interface_detail_data = SP_DEVICE_INTERFACE_DETAIL_DATA_A { [INFO] [stdout] 259 | cbSize: std::mem::size_of::() as u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `SP_DEVICE_INTERFACE_DATA` in this scope [INFO] [stdout] --> lib/hid_rs/src/usb/device/info/sys.rs:270:38 [INFO] [stdout] | [INFO] [stdout] 270 | fn create_device_interface_data() -> SP_DEVICE_INTERFACE_DATA { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `SP_DEVICE_INTERFACE_DATA` in this scope [INFO] [stdout] --> lib/hid_rs/src/usb/device/info/sys.rs:271:36 [INFO] [stdout] | [INFO] [stdout] 271 | let mut device_interface_data: SP_DEVICE_INTERFACE_DATA = unsafe { std::mem::zeroed() }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `SP_DEVICE_INTERFACE_DATA` in this scope [INFO] [stdout] --> lib/hid_rs/src/usb/device/info/sys.rs:272:56 [INFO] [stdout] | [INFO] [stdout] 270 | fn create_device_interface_data() -> SP_DEVICE_INTERFACE_DATA { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] 271 | let mut device_interface_data: SP_DEVICE_INTERFACE_DATA = unsafe { std::mem::zeroed() }; [INFO] [stdout] 272 | device_interface_data.cbSize = std::mem::size_of::() as u32; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `SP_DEVINFO_DATA` in this scope [INFO] [stdout] --> lib/hid_rs/src/usb/device/info/sys.rs:276:29 [INFO] [stdout] | [INFO] [stdout] 276 | fn create_devinfo_data() -> SP_DEVINFO_DATA { [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `SP_DEVINFO_DATA` in this scope [INFO] [stdout] --> lib/hid_rs/src/usb/device/info/sys.rs:277:27 [INFO] [stdout] | [INFO] [stdout] 277 | let mut devinfo_data: SP_DEVINFO_DATA = unsafe { std::mem::zeroed() }; [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `SP_DEVINFO_DATA` in this scope [INFO] [stdout] --> lib/hid_rs/src/usb/device/info/sys.rs:278:47 [INFO] [stdout] | [INFO] [stdout] 276 | fn create_devinfo_data() -> SP_DEVINFO_DATA { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] 277 | let mut devinfo_data: SP_DEVINFO_DATA = unsafe { std::mem::zeroed() }; [INFO] [stdout] 278 | devinfo_data.cbSize = std::mem::size_of::() as u32; [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HANDLE` in this scope [INFO] [stdout] --> lib/hid_rs/src/usb/device.rs:27:17 [INFO] [stdout] | [INFO] [stdout] 27 | pub handle: HANDLE, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPCSTR` in this scope [INFO] [stdout] --> lib/hid_rs/src/usb/device.rs:30:33 [INFO] [stdout] | [INFO] [stdout] 30 | pub fn open_device(device_path: LPCSTR, enumerate: bool) -> io::Result { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HANDLE` in this scope [INFO] [stdout] --> lib/hid_rs/src/usb/device.rs:30:72 [INFO] [stdout] | [INFO] [stdout] 30 | pub fn open_device(device_path: LPCSTR, enumerate: bool) -> io::Result { [INFO] [stdout] | - ^^^^^^ not found in this scope [INFO] [stdout] | | [INFO] [stdout] | help: you might be missing a type parameter: `` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `GENERIC_WRITE` in this scope [INFO] [stdout] --> lib/hid_rs/src/usb/device.rs:31:52 [INFO] [stdout] | [INFO] [stdout] 31 | let desired_access = if enumerate { 0 } else { GENERIC_WRITE | GENERIC_READ }; [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `GENERIC_READ` in this scope [INFO] [stdout] --> lib/hid_rs/src/usb/device.rs:31:68 [INFO] [stdout] | [INFO] [stdout] 31 | let desired_access = if enumerate { 0 } else { GENERIC_WRITE | GENERIC_READ }; [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `FILE_SHARE_READ` in this scope [INFO] [stdout] --> lib/hid_rs/src/usb/device.rs:33:22 [INFO] [stdout] | [INFO] [stdout] 33 | let share_mode = FILE_SHARE_READ | FILE_SHARE_WRITE; [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `FILE_SHARE_WRITE` in this scope [INFO] [stdout] --> lib/hid_rs/src/usb/device.rs:33:40 [INFO] [stdout] | [INFO] [stdout] 33 | let share_mode = FILE_SHARE_READ | FILE_SHARE_WRITE; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CreateFileA` in this scope [INFO] [stdout] --> lib/hid_rs/src/usb/device.rs:36:9 [INFO] [stdout] | [INFO] [stdout] 36 | CreateFileA( [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `OPEN_EXISTING` in this scope [INFO] [stdout] --> lib/hid_rs/src/usb/device.rs:41:13 [INFO] [stdout] | [INFO] [stdout] 41 | OPEN_EXISTING, [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `FILE_FLAG_OVERLAPPED` in this scope [INFO] [stdout] --> lib/hid_rs/src/usb/device.rs:42:13 [INFO] [stdout] | [INFO] [stdout] 42 | FILE_FLAG_OVERLAPPED, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `INVALID_HANDLE_VALUE` in this scope [INFO] [stdout] --> lib/hid_rs/src/usb/device.rs:46:18 [INFO] [stdout] | [INFO] [stdout] 46 | if handle == INVALID_HANDLE_VALUE { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HANDLE` in this scope [INFO] [stdout] --> lib/hid_rs/src/usb/device.rs:53:25 [INFO] [stdout] | [INFO] [stdout] 53 | fn close_device(handle: HANDLE) -> io::Result<()> { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `TRUE` in this scope [INFO] [stdout] --> lib/hid_rs/src/usb/device.rs:54:18 [INFO] [stdout] | [INFO] [stdout] 54 | let result = TRUE == unsafe { CloseHandle(handle) }; [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CloseHandle` in this scope [INFO] [stdout] --> lib/hid_rs/src/usb/device.rs:54:35 [INFO] [stdout] | [INFO] [stdout] 54 | let result = TRUE == unsafe { CloseHandle(handle) }; [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HANDLE` in this scope [INFO] [stdout] --> lib/hid_rs/src/usb/hid.rs:30:39 [INFO] [stdout] | [INFO] [stdout] 30 | pub fn hid_get_feature_report(handle: HANDLE, data: &mut [u8]) -> io::Result<(u32)> { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> lib/hid_rs/src/usb/hid.rs:32:29 [INFO] [stdout] | [INFO] [stdout] 32 | let mut bytes_returned: DWORD = 0; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `TRUE` in this scope [INFO] [stdout] --> lib/hid_rs/src/usb/hid.rs:34:8 [INFO] [stdout] | [INFO] [stdout] 34 | if TRUE == unsafe { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `DeviceIoControl` in this scope [INFO] [stdout] --> lib/hid_rs/src/usb/hid.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 35 | DeviceIoControl( [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `IOCTL_HID_GET_FEATURE` in this scope [INFO] [stdout] --> lib/hid_rs/src/usb/hid.rs:37:13 [INFO] [stdout] | [INFO] [stdout] 37 | IOCTL_HID_GET_FEATURE, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPVOID` in this scope [INFO] [stdout] --> lib/hid_rs/src/usb/hid.rs:38:34 [INFO] [stdout] | [INFO] [stdout] 38 | data.as_mut_ptr() as LPVOID, data.len() as u32, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPVOID` in this scope [INFO] [stdout] --> lib/hid_rs/src/usb/hid.rs:39:34 [INFO] [stdout] | [INFO] [stdout] 39 | data.as_mut_ptr() as LPVOID, data.len() as u32, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `TRUE` in this scope [INFO] [stdout] --> lib/hid_rs/src/usb/hid.rs:44:12 [INFO] [stdout] | [INFO] [stdout] 44 | if TRUE == unsafe { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetOverlappedResult` in this scope [INFO] [stdout] --> lib/hid_rs/src/usb/hid.rs:46:13 [INFO] [stdout] | [INFO] [stdout] 46 | GetOverlappedResult( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `TRUE` in this scope [INFO] [stdout] --> lib/hid_rs/src/usb/hid.rs:50:17 [INFO] [stdout] | [INFO] [stdout] 50 | TRUE // wait [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> lib/hid_rs/src/usb/hid.rs:30:78 [INFO] [stdout] | [INFO] [stdout] 30 | pub fn hid_get_feature_report(handle: HANDLE, data: &mut [u8]) -> io::Result<(u32)> { [INFO] [stdout] | ^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> lib/hid_rs/src/usb.rs:18:26 [INFO] [stdout] | [INFO] [stdout] 18 | device_info_set: None, [INFO] [stdout] | ^^^^ cannot infer type for type parameter `T` declared on the enum `Option` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 86 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0282, E0412, E0422, E0425, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0282`. [INFO] [stdout] [INFO] [stderr] error: could not compile `hid-rs` [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "71044c215995749c288d95a9575cf320163d6d5d25202f06a6f0c7477b8a9dc0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "71044c215995749c288d95a9575cf320163d6d5d25202f06a6f0c7477b8a9dc0", kill_on_drop: false }` [INFO] [stdout] 71044c215995749c288d95a9575cf320163d6d5d25202f06a6f0c7477b8a9dc0