[INFO] fetching crate nrf24-rs 0.2.0... [INFO] testing nrf24-rs-0.2.0 against master#cdb45c87e2cd43495379f7e867e3cc15dcee9f93 for pr-145838-1 [INFO] extracting crate nrf24-rs 0.2.0 into /workspace/builds/worker-2-tc1/source [INFO] started tweaking crates.io crate nrf24-rs 0.2.0 [INFO] finished tweaking crates.io crate nrf24-rs 0.2.0 [INFO] tweaked toml for crates.io crate nrf24-rs 0.2.0 written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate nrf24-rs 0.2.0 on toolchain cdb45c87e2cd43495379f7e867e3cc15dcee9f93 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate nrf24-rs 0.2.0 already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a5acaf3b71a3c9f06838c5d337dc5c176cb722d68fb93ce816d1f18bf86226d3 [INFO] running `Command { std: "docker" "start" "-a" "a5acaf3b71a3c9f06838c5d337dc5c176cb722d68fb93ce816d1f18bf86226d3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a5acaf3b71a3c9f06838c5d337dc5c176cb722d68fb93ce816d1f18bf86226d3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a5acaf3b71a3c9f06838c5d337dc5c176cb722d68fb93ce816d1f18bf86226d3", kill_on_drop: false }` [INFO] [stdout] a5acaf3b71a3c9f06838c5d337dc5c176cb722d68fb93ce816d1f18bf86226d3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/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" "RUSTDOCFLAGS=--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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 58b03eae980696ef569195bf53c33dce03dfcdd312e69ced8ec9846587189bf1 [INFO] running `Command { std: "docker" "start" "-a" "58b03eae980696ef569195bf53c33dce03dfcdd312e69ced8ec9846587189bf1", kill_on_drop: false }` [INFO] [stderr] Compiling embedded-hal v1.0.0 [INFO] [stderr] Compiling nrf24-rs v0.2.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.28s [INFO] running `Command { std: "docker" "inspect" "58b03eae980696ef569195bf53c33dce03dfcdd312e69ced8ec9846587189bf1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "58b03eae980696ef569195bf53c33dce03dfcdd312e69ced8ec9846587189bf1", kill_on_drop: false }` [INFO] [stdout] 58b03eae980696ef569195bf53c33dce03dfcdd312e69ced8ec9846587189bf1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/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" "RUSTDOCFLAGS=--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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c9941515891d7692de5560479bc00a760c06d2311a50fbc100795506a641540f [INFO] running `Command { std: "docker" "start" "-a" "c9941515891d7692de5560479bc00a760c06d2311a50fbc100795506a641540f", kill_on_drop: false }` [INFO] [stderr] Compiling nrf24-rs v0.2.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.23s [INFO] running `Command { std: "docker" "inspect" "c9941515891d7692de5560479bc00a760c06d2311a50fbc100795506a641540f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c9941515891d7692de5560479bc00a760c06d2311a50fbc100795506a641540f", kill_on_drop: false }` [INFO] [stdout] c9941515891d7692de5560479bc00a760c06d2311a50fbc100795506a641540f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/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" "RUSTDOCFLAGS=--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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] b1dee73a4b50454e177e2a0a64db2e1a9feaf4732e0e7eabb692086ea02e7f0f [INFO] running `Command { std: "docker" "start" "-a" "b1dee73a4b50454e177e2a0a64db2e1a9feaf4732e0e7eabb692086ea02e7f0f", kill_on_drop: false }` [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.01s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/nrf24_rs-c782ce1ff1688be2) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Doc-tests nrf24_rs [INFO] [stdout] [INFO] [stdout] running 33 tests [INFO] [stdout] test src/config.rs - config::NrfConfig (line 38) ... FAILED [INFO] [stdout] test src/config.rs - config::NrfConfig (line 28) ... FAILED [INFO] [stdout] test src/nrf24.rs - nrf24::Nrf24l01::mask_interrupts (line 764) ... FAILED [INFO] [stdout] test src/nrf24.rs - nrf24::Nrf24l01::data_available (line 285) ... FAILED [INFO] [stdout] test src/nrf24.rs - nrf24::Nrf24l01::is_connected (line 166) ... FAILED [INFO] [stdout] test src/nrf24.rs - nrf24::Nrf24l01::data_available_on_pipe (line 306) ... FAILED [INFO] [stdout] test src/lib.rs - (line 24) ... FAILED [INFO] [stdout] test src/nrf24.rs - nrf24::Nrf24l01 (line 22) ... FAILED [INFO] [stdout] test src/nrf24.rs - nrf24::Nrf24l01::channel (line 521) ... FAILED [INFO] [stdout] test src/nrf24.rs - nrf24::Nrf24l01::new (line 75) ... FAILED [INFO] [stdout] test src/nrf24.rs - nrf24::Nrf24l01::open_reading_pipe (line 179) ... FAILED [INFO] [stdout] test src/nrf24.rs - nrf24::Nrf24l01::flush_tx (line 578) ... FAILED [INFO] [stdout] test src/nrf24.rs - nrf24::Nrf24l01::mask_interrupts (line 759) ... FAILED [INFO] [stdout] test src/lib.rs - (line 78) ... FAILED [INFO] [stdout] test src/nrf24.rs - nrf24::Nrf24l01::enable_crc (line 598) ... FAILED [INFO] [stdout] test src/nrf24.rs - nrf24::Nrf24l01::crc_encoding_scheme (line 612) ... FAILED [INFO] [stdout] test src/nrf24.rs - nrf24::Nrf24l01::flush_rx (line 588) ... FAILED [INFO] [stdout] test src/nrf24.rs - nrf24::Nrf24l01::set_address_width (line 538) ... FAILED [INFO] [stdout] test src/nrf24.rs - nrf24::Nrf24l01::set_retries (line 470) ... FAILED [INFO] [stdout] test src/nrf24.rs - nrf24::Nrf24l01::power_down (line 717) ... FAILED [INFO] [stdout] test src/nrf24.rs - nrf24::Nrf24l01::read (line 333) ... FAILED [INFO] [stdout] test src/nrf24.rs - nrf24::Nrf24l01::stop_listening (line 263) ... FAILED [INFO] [stdout] test src/nrf24.rs - nrf24::Nrf24l01::write (line 391) ... FAILED [INFO] [stdout] test src/nrf24.rs - nrf24::Nrf24l01::power_up (line 692) ... FAILED [INFO] [stdout] test src/status.rs - status::Interrupts (line 68) ... FAILED [INFO] [stdout] test src/nrf24.rs - nrf24::Nrf24l01::data_rate (line 552) ... FAILED [INFO] [stdout] test src/nrf24.rs - nrf24::Nrf24l01::payload_size (line 676) ... FAILED [INFO] [stdout] test src/nrf24.rs - nrf24::Nrf24l01::start_listening (line 237) ... FAILED [INFO] [stdout] test src/nrf24.rs - nrf24::Nrf24l01::retries (line 489) ... FAILED [INFO] [stdout] test src/nrf24.rs - nrf24::Nrf24l01::open_writing_pipe (line 214) ... FAILED [INFO] [stdout] test src/nrf24.rs - nrf24::Nrf24l01::power_amp_level (line 565) ... FAILED [INFO] [stdout] test src/nrf24.rs - nrf24::Nrf24l01::set_payload_size (line 633) ... FAILED [INFO] [stdout] test src/nrf24.rs - nrf24::Nrf24l01::set_channel (line 510) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/config.rs - config::NrfConfig (line 38) stdout ---- [INFO] [stdout] error: expected item, found keyword `let` [INFO] [stdout] --> src/config.rs:42:1 [INFO] [stdout] | [INFO] [stdout] 4 | let config = NrfConfig::default() [INFO] [stdout] | ^^^ [INFO] [stdout] | | [INFO] [stdout] | `let` cannot be used for global variables [INFO] [stdout] | help: consider using `static` or `const` instead of `let` [INFO] [stdout] | [INFO] [stdout] = note: for a full list of items that can appear in modules, see [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/config.rs - config::NrfConfig (line 28) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `nrf24` [INFO] [stdout] --> src/config.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 4 | use nrf24::config::NrfConfig; [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `nrf24` [INFO] [stdout] | [INFO] [stdout] help: to make use of source file src/nrf24.rs, use `mod nrf24` in this file to declare the module [INFO] [stdout] | [INFO] [stdout] 2 + mod nrf24; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `nrf24` [INFO] [stdout] --> src/config.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 3 | use nrf24::Nrf24l01; [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `nrf24` [INFO] [stdout] | [INFO] [stdout] help: to make use of source file src/nrf24.rs, use `mod nrf24` in this file to declare the module [INFO] [stdout] | [INFO] [stdout] 2 + mod nrf24; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `spi` in this scope [INFO] [stdout] --> src/config.rs:34:30 [INFO] [stdout] | [INFO] [stdout] 8 | let mut chip = Nrf24l01::new(spi, ce, delay, config)?; [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `ce` in this scope [INFO] [stdout] --> src/config.rs:34:35 [INFO] [stdout] | [INFO] [stdout] 8 | let mut chip = Nrf24l01::new(spi, ce, delay, config)?; [INFO] [stdout] | ^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `delay` in this scope [INFO] [stdout] --> src/config.rs:34:39 [INFO] [stdout] | [INFO] [stdout] 8 | let mut chip = Nrf24l01::new(spi, ce, delay, config)?; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0432, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/nrf24.rs - nrf24::Nrf24l01::mask_interrupts (line 764) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Interrupts` [INFO] [stdout] --> src/nrf24.rs:765:18 [INFO] [stdout] | [INFO] [stdout] 3 | let interrupts = Interrupts::all(); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `Interrupts` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use nrf24_rs::status::Interrupts; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `chip` in this scope [INFO] [stdout] --> src/nrf24.rs:766:1 [INFO] [stdout] | [INFO] [stdout] 4 | chip.mask_interrupt(interrupts); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/nrf24.rs - nrf24::Nrf24l01::data_available (line 285) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `chip` in this scope [INFO] [stdout] --> src/nrf24.rs:287:1 [INFO] [stdout] | [INFO] [stdout] 4 | chip.open_reading_pipe(DataPipe::DP0, b"Node1")?; [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `DataPipe` [INFO] [stdout] --> src/nrf24.rs:287:24 [INFO] [stdout] | [INFO] [stdout] 4 | chip.open_reading_pipe(DataPipe::DP0, b"Node1")?; [INFO] [stdout] | ^^^^^^^^ use of undeclared type `DataPipe` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use nrf24_rs::config::DataPipe; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `chip` in this scope [INFO] [stdout] --> src/nrf24.rs:288:1 [INFO] [stdout] | [INFO] [stdout] 5 | chip.start_listening()?; [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `chip` in this scope [INFO] [stdout] --> src/nrf24.rs:290:7 [INFO] [stdout] | [INFO] [stdout] 7 | while chip.data_available()? { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `delay` in this scope [INFO] [stdout] --> src/nrf24.rs:292:5 [INFO] [stdout] | [INFO] [stdout] 9 | delay.delay_ms(50); // small delay between calls of data_available [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/nrf24.rs - nrf24::Nrf24l01::is_connected (line 166) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `chip` in this scope [INFO] [stdout] --> src/nrf24.rs:167:5 [INFO] [stdout] | [INFO] [stdout] 3 | if !chip.is_connected()? { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/nrf24.rs - nrf24::Nrf24l01::data_available_on_pipe (line 306) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `chip` in this scope [INFO] [stdout] --> src/nrf24.rs:308:1 [INFO] [stdout] | [INFO] [stdout] 4 | chip.open_reading_pipe(DataPipe::DP0, b"Node1")?; [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `DataPipe` [INFO] [stdout] --> src/nrf24.rs:308:24 [INFO] [stdout] | [INFO] [stdout] 4 | chip.open_reading_pipe(DataPipe::DP0, b"Node1")?; [INFO] [stdout] | ^^^^^^^^ use of undeclared type `DataPipe` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use nrf24_rs::config::DataPipe; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `chip` in this scope [INFO] [stdout] --> src/nrf24.rs:309:1 [INFO] [stdout] | [INFO] [stdout] 5 | chip.start_listening()?; [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `chip` in this scope [INFO] [stdout] --> src/nrf24.rs:311:24 [INFO] [stdout] | [INFO] [stdout] 7 | while let Some(pipe) = chip.data_available_on_pipe()? { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `DataPipe` [INFO] [stdout] --> src/nrf24.rs:312:16 [INFO] [stdout] | [INFO] [stdout] 8 | if pipe == DataPipe::DP1 { [INFO] [stdout] | ^^^^^^^^ use of undeclared type `DataPipe` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use nrf24_rs::config::DataPipe; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `delay` in this scope [INFO] [stdout] --> src/nrf24.rs:314:9 [INFO] [stdout] | [INFO] [stdout] 10 | delay.delay_ms(50); // small delay between calls of data_available [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 24) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `embedded_hal_bus` [INFO] [stdout] --> src/lib.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 7 | use embedded_hal_bus::spi::ExclusiveDevice; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `embedded_hal_bus` [INFO] [stdout] | [INFO] [stdout] help: there is a crate or module with a similar name [INFO] [stdout] | [INFO] [stdout] 7 - use embedded_hal_bus::spi::ExclusiveDevice; [INFO] [stdout] 7 + use embedded_hal::spi::ExclusiveDevice; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `ce` in this scope [INFO] [stdout] --> src/lib.rs:54:40 [INFO] [stdout] | [INFO] [stdout] 32 | let mut radio = Nrf24l01::new(spi, ce, &mut delay, config).unwrap(); [INFO] [stdout] | ^^ help: a local variable with a similar name exists: `cs` [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `get_peripherals` in this scope [INFO] [stdout] --> src/lib.rs:32:13 [INFO] [stdout] | [INFO] [stdout] 10 | let p = get_peripherals(); // peripherals [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `setup_spi` in this scope [INFO] [stdout] --> src/lib.rs:34:15 [INFO] [stdout] | [INFO] [stdout] 12 | let spi = setup_spi(); // configure your SPI to use SPI_MODE [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `setup_delay` in this scope [INFO] [stdout] --> src/lib.rs:38:17 [INFO] [stdout] | [INFO] [stdout] 16 | let delay = setup_delay(); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `setup_cs_pin` in this scope [INFO] [stdout] --> src/lib.rs:39:14 [INFO] [stdout] | [INFO] [stdout] 17 | let cs = setup_cs_pin(); // chip select pin [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `PayloadSize: From` is not satisfied [INFO] [stdout] --> src/lib.rs:49:23 [INFO] [stdout] | [INFO] [stdout] 27 | .payload_size(message.len()); [INFO] [stdout] | ------------ ^^^^^^^^^^^^^ the trait `From` is not implemented for `PayloadSize` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = help: the trait `From` is not implemented for `PayloadSize` [INFO] [stdout] but trait `From` is implemented for it [INFO] [stdout] = help: for that trait implementation, expected `u8`, found `usize` [INFO] [stdout] = note: required for `usize` to implement `Into` [INFO] [stdout] note: required by a bound in `NrfConfig::payload_size` [INFO] [stdout] --> /opt/rustwide/workdir/src/config.rs:71:28 [INFO] [stdout] | [INFO] [stdout] 71 | pub fn payload_size>(mut self, payload_size: T) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ required by this bound in `NrfConfig::payload_size` [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `setup_delay` in this scope [INFO] [stdout] --> src/lib.rs:52:21 [INFO] [stdout] | [INFO] [stdout] 30 | let mut delay = setup_delay(); // create new delay [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 8 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/nrf24.rs - nrf24::Nrf24l01 (line 22) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `nrf24` [INFO] [stdout] --> src/nrf24.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 4 | use nrf24::config::NrfConfig; [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `nrf24` [INFO] [stdout] | [INFO] [stdout] help: to make use of source file src/nrf24.rs, use `mod nrf24` in this file to declare the module [INFO] [stdout] | [INFO] [stdout] 2 + mod nrf24; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `nrf24` [INFO] [stdout] --> src/nrf24.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 3 | use nrf24::Nrf24l01; [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `nrf24` [INFO] [stdout] | [INFO] [stdout] help: to make use of source file src/nrf24.rs, use `mod nrf24` in this file to declare the module [INFO] [stdout] | [INFO] [stdout] 2 + mod nrf24; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `spi` in this scope [INFO] [stdout] --> src/nrf24.rs:27:27 [INFO] [stdout] | [INFO] [stdout] 7 | let nrf24 = Nrf24l01::new(spi, ce, &mut delay, NrfConfig::default()).unwrap(); [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `ce` in this scope [INFO] [stdout] --> src/nrf24.rs:27:32 [INFO] [stdout] | [INFO] [stdout] 7 | let nrf24 = Nrf24l01::new(spi, ce, &mut delay, NrfConfig::default()).unwrap(); [INFO] [stdout] | ^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `delay` in this scope [INFO] [stdout] --> src/nrf24.rs:27:41 [INFO] [stdout] | [INFO] [stdout] 7 | let nrf24 = Nrf24l01::new(spi, ce, &mut delay, NrfConfig::default()).unwrap(); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0432, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/nrf24.rs - nrf24::Nrf24l01::channel (line 521) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Nrf24l01` [INFO] [stdout] --> src/nrf24.rs:523:16 [INFO] [stdout] | [INFO] [stdout] 4 | let mut chip = Nrf24l01::new(spi_struct, ce_pin, delay, NrfConfig::default())?; [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Nrf24l01` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use nrf24_rs::Nrf24l01; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `spi_struct` in this scope [INFO] [stdout] --> src/nrf24.rs:523:30 [INFO] [stdout] | [INFO] [stdout] 4 | let mut chip = Nrf24l01::new(spi_struct, ce_pin, delay, NrfConfig::default())?; [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `ce_pin` in this scope [INFO] [stdout] --> src/nrf24.rs:523:42 [INFO] [stdout] | [INFO] [stdout] 4 | let mut chip = Nrf24l01::new(spi_struct, ce_pin, delay, NrfConfig::default())?; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `delay` in this scope [INFO] [stdout] --> src/nrf24.rs:523:50 [INFO] [stdout] | [INFO] [stdout] 4 | let mut chip = Nrf24l01::new(spi_struct, ce_pin, delay, NrfConfig::default())?; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `NrfConfig` [INFO] [stdout] --> src/nrf24.rs:523:57 [INFO] [stdout] | [INFO] [stdout] 4 | let mut chip = Nrf24l01::new(spi_struct, ce_pin, delay, NrfConfig::default())?; [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `NrfConfig` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use nrf24_rs::config::NrfConfig; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/nrf24.rs - nrf24::Nrf24l01::new (line 75) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `nrf24` [INFO] [stdout] --> src/nrf24.rs:77:5 [INFO] [stdout] | [INFO] [stdout] 4 | use nrf24::config::{NrfConfig, PALevel, DataRate}; [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `nrf24` [INFO] [stdout] | [INFO] [stdout] help: to make use of source file src/nrf24.rs, use `mod nrf24` in this file to declare the module [INFO] [stdout] | [INFO] [stdout] 2 + mod nrf24; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `nrf24` [INFO] [stdout] --> src/nrf24.rs:76:5 [INFO] [stdout] | [INFO] [stdout] 3 | use nrf24::{Nrf24l01, SPI_MODE}; [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `nrf24` [INFO] [stdout] | [INFO] [stdout] help: to make use of source file src/nrf24.rs, use `mod nrf24` in this file to declare the module [INFO] [stdout] | [INFO] [stdout] 2 + mod nrf24; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `setup_spi` in this scope [INFO] [stdout] --> src/nrf24.rs:80:11 [INFO] [stdout] | [INFO] [stdout] 7 | let spi = setup_spi(SPI_MODE); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `setup_pin` in this scope [INFO] [stdout] --> src/nrf24.rs:81:10 [INFO] [stdout] | [INFO] [stdout] 8 | let ce = setup_pin(); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `setup_delay` in this scope [INFO] [stdout] --> src/nrf24.rs:82:17 [INFO] [stdout] | [INFO] [stdout] 9 | let mut delay = setup_delay(); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0432, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/nrf24.rs - nrf24::Nrf24l01::open_reading_pipe (line 179) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `chip` in this scope [INFO] [stdout] --> src/nrf24.rs:180:1 [INFO] [stdout] | [INFO] [stdout] 3 | chip.open_reading_pipe(DataPipe::DP0, b"Node1")?; [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `DataPipe` [INFO] [stdout] --> src/nrf24.rs:180:24 [INFO] [stdout] | [INFO] [stdout] 3 | chip.open_reading_pipe(DataPipe::DP0, b"Node1")?; [INFO] [stdout] | ^^^^^^^^ use of undeclared type `DataPipe` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use nrf24_rs::config::DataPipe; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/nrf24.rs - nrf24::Nrf24l01::flush_tx (line 578) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `chip` in this scope [INFO] [stdout] --> src/nrf24.rs:579:1 [INFO] [stdout] | [INFO] [stdout] 3 | chip.flush_tx()?; [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/nrf24.rs - nrf24::Nrf24l01::mask_interrupts (line 759) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Interrupts` [INFO] [stdout] --> src/nrf24.rs:760:18 [INFO] [stdout] | [INFO] [stdout] 3 | let interrupts = Interrupts::new().max_retries().rx_data_ready(); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `Interrupts` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use nrf24_rs::status::Interrupts; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `chip` in this scope [INFO] [stdout] --> src/nrf24.rs:761:1 [INFO] [stdout] | [INFO] [stdout] 4 | chip.mask_interrupts(interrupts)?; [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 78) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `embedded_hal_bus` [INFO] [stdout] --> src/lib.rs:83:5 [INFO] [stdout] | [INFO] [stdout] 7 | use embedded_hal_bus::spi::ExclusiveDevice; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `embedded_hal_bus` [INFO] [stdout] | [INFO] [stdout] help: there is a crate or module with a similar name [INFO] [stdout] | [INFO] [stdout] 7 - use embedded_hal_bus::spi::ExclusiveDevice; [INFO] [stdout] 7 + use embedded_hal::spi::ExclusiveDevice; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `setup_delay` in this scope [INFO] [stdout] --> src/lib.rs:106:21 [INFO] [stdout] | [INFO] [stdout] 30 | let mut delay = setup_delay; // create new delay [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `ce` in this scope [INFO] [stdout] --> src/lib.rs:108:40 [INFO] [stdout] | [INFO] [stdout] 32 | let mut radio = Nrf24l01::new(spi, ce, &mut delay, config).unwrap(); [INFO] [stdout] | ^^ help: a local variable with a similar name exists: `cs` [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `get_peripherals` in this scope [INFO] [stdout] --> src/lib.rs:86:13 [INFO] [stdout] | [INFO] [stdout] 10 | let p = get_peripherals(); // peripherals [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `setup_spi` in this scope [INFO] [stdout] --> src/lib.rs:88:15 [INFO] [stdout] | [INFO] [stdout] 12 | let spi = setup_spi(); // configure your SPI to use SPI_MODE [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `setup_delay` in this scope [INFO] [stdout] --> src/lib.rs:92:17 [INFO] [stdout] | [INFO] [stdout] 16 | let delay = setup_delay(); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `setup_cs_pin` in this scope [INFO] [stdout] --> src/lib.rs:93:14 [INFO] [stdout] | [INFO] [stdout] 17 | let cs = setup_cs_pin(); // chip select pin [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `PayloadSize: From` is not satisfied [INFO] [stdout] --> src/lib.rs:103:23 [INFO] [stdout] | [INFO] [stdout] 27 | .payload_size(b"Hello world!".len()); [INFO] [stdout] | ------------ ^^^^^^^^^^^^^^^^^^^^^ the trait `From` is not implemented for `PayloadSize` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = help: the trait `From` is not implemented for `PayloadSize` [INFO] [stdout] but trait `From` is implemented for it [INFO] [stdout] = help: for that trait implementation, expected `u8`, found `usize` [INFO] [stdout] = note: required for `usize` to implement `Into` [INFO] [stdout] note: required by a bound in `NrfConfig::payload_size` [INFO] [stdout] --> /opt/rustwide/workdir/src/config.rs:71:28 [INFO] [stdout] | [INFO] [stdout] 71 | pub fn payload_size>(mut self, payload_size: T) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ required by this bound in `NrfConfig::payload_size` [INFO] [stdout] [INFO] [stdout] error[E0277]: can't compare `[{integer}; 12]` with `&[u8; 12]` [INFO] [stdout] --> src/lib.rs:132:5 [INFO] [stdout] | [INFO] [stdout] 56 | assert_eq!(buffer, b"Hello world!"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no implementation for `[{integer}; 12] == &[u8; 12]` [INFO] [stdout] | [INFO] [stdout] = help: the trait `PartialEq<&[u8; 12]>` is not implemented for `[{integer}; 12]` [INFO] [stdout] = note: this error originates in the macro `assert_eq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] error: aborting due to 9 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/nrf24.rs - nrf24::Nrf24l01::enable_crc (line 598) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `chip` in this scope [INFO] [stdout] --> src/nrf24.rs:599:1 [INFO] [stdout] | [INFO] [stdout] 3 | chip.enable_crc(EncodingScheme::R2Bytes)?; [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `EncodingScheme` [INFO] [stdout] --> src/nrf24.rs:599:17 [INFO] [stdout] | [INFO] [stdout] 3 | chip.enable_crc(EncodingScheme::R2Bytes)?; [INFO] [stdout] | ^^^^^^^^^^^^^^ use of undeclared type `EncodingScheme` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use nrf24_rs::config::EncodingScheme; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/nrf24.rs - nrf24::Nrf24l01::crc_encoding_scheme (line 612) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `chip` in this scope [INFO] [stdout] --> src/nrf24.rs:613:7 [INFO] [stdout] | [INFO] [stdout] 3 | match chip.crc_encoding_scheme()? { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `EncodingScheme` [INFO] [stdout] --> src/nrf24.rs:614:5 [INFO] [stdout] | [INFO] [stdout] 4 | EncodingScheme::NoRedundancyCheck => println("No crc check"), [INFO] [stdout] | ^^^^^^^^^^^^^^ use of undeclared type `EncodingScheme` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use nrf24_rs::config::EncodingScheme; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `EncodingScheme` [INFO] [stdout] --> src/nrf24.rs:615:5 [INFO] [stdout] | [INFO] [stdout] 5 | EncodingScheme::R1Byte => println("8 bit check"), [INFO] [stdout] | ^^^^^^^^^^^^^^ use of undeclared type `EncodingScheme` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use nrf24_rs::config::EncodingScheme; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `EncodingScheme` [INFO] [stdout] --> src/nrf24.rs:616:5 [INFO] [stdout] | [INFO] [stdout] 6 | EncodingScheme::R2Bytes => println("16 bit check"), [INFO] [stdout] | ^^^^^^^^^^^^^^ use of undeclared type `EncodingScheme` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use nrf24_rs::config::EncodingScheme; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0423]: expected function, found macro `println` [INFO] [stdout] --> src/nrf24.rs:614:42 [INFO] [stdout] | [INFO] [stdout] 4 | EncodingScheme::NoRedundancyCheck => println("No crc check"), [INFO] [stdout] | ^^^^^^^ not a function [INFO] [stdout] | [INFO] [stdout] help: use `!` to invoke the macro [INFO] [stdout] | [INFO] [stdout] 4 | EncodingScheme::NoRedundancyCheck => println!("No crc check"), [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] error[E0423]: expected function, found macro `println` [INFO] [stdout] --> src/nrf24.rs:615:31 [INFO] [stdout] | [INFO] [stdout] 5 | EncodingScheme::R1Byte => println("8 bit check"), [INFO] [stdout] | ^^^^^^^ not a function [INFO] [stdout] | [INFO] [stdout] help: use `!` to invoke the macro [INFO] [stdout] | [INFO] [stdout] 5 | EncodingScheme::R1Byte => println!("8 bit check"), [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] error[E0423]: expected function, found macro `println` [INFO] [stdout] --> src/nrf24.rs:616:32 [INFO] [stdout] | [INFO] [stdout] 6 | EncodingScheme::R2Bytes => println("16 bit check"), [INFO] [stdout] | ^^^^^^^ not a function [INFO] [stdout] | [INFO] [stdout] help: use `!` to invoke the macro [INFO] [stdout] | [INFO] [stdout] 6 | EncodingScheme::R2Bytes => println!("16 bit check"), [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] error: aborting due to 7 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0423, E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0423`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/nrf24.rs - nrf24::Nrf24l01::flush_rx (line 588) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `nrf24l01` in this scope [INFO] [stdout] --> src/nrf24.rs:589:1 [INFO] [stdout] | [INFO] [stdout] 3 | nrf24l01.flush_rx()?; [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/nrf24.rs - nrf24::Nrf24l01::set_address_width (line 538) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `nrf24l01` in this scope [INFO] [stdout] --> src/nrf24.rs:539:1 [INFO] [stdout] | [INFO] [stdout] 3 | nrf24l01.set_address_width(5)?; [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/nrf24.rs - nrf24::Nrf24l01::set_retries (line 470) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `nrf24l01` in this scope [INFO] [stdout] --> src/nrf24.rs:473:1 [INFO] [stdout] | [INFO] [stdout] 5 | nrf24l01.set_retries((5, 15))?; [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/nrf24.rs - nrf24::Nrf24l01::power_down (line 717) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `chip` in this scope [INFO] [stdout] --> src/nrf24.rs:719:1 [INFO] [stdout] | [INFO] [stdout] 4 | chip.power_down(&mut delay)?; [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `delay` in this scope [INFO] [stdout] --> src/nrf24.rs:719:22 [INFO] [stdout] | [INFO] [stdout] 4 | chip.power_down(&mut delay)?; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `chip` in this scope [INFO] [stdout] --> src/nrf24.rs:722:1 [INFO] [stdout] | [INFO] [stdout] 7 | chip.power_up(&mut delay)?; [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `delay` in this scope [INFO] [stdout] --> src/nrf24.rs:722:20 [INFO] [stdout] | [INFO] [stdout] 7 | chip.power_up(&mut delay)?; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/nrf24.rs - nrf24::Nrf24l01::read (line 333) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `NrfConfig` [INFO] [stdout] --> src/nrf24.rs:336:14 [INFO] [stdout] | [INFO] [stdout] 5 | let config = NrfConfig::default().payload_size(PayloadSize::Static(4)); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `NrfConfig` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use nrf24_rs::config::NrfConfig; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PayloadSize` [INFO] [stdout] --> src/nrf24.rs:336:48 [INFO] [stdout] | [INFO] [stdout] 5 | let config = NrfConfig::default().payload_size(PayloadSize::Static(4)); [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `PayloadSize` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use nrf24_rs::config::PayloadSize; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Nrf24l01` [INFO] [stdout] --> src/nrf24.rs:337:12 [INFO] [stdout] | [INFO] [stdout] 6 | let chip = Nrf24l01::new(spi, ce, &mut delay, config).unwrap(); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Nrf24l01` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use nrf24_rs::Nrf24l01; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `spi` in this scope [INFO] [stdout] --> src/nrf24.rs:337:26 [INFO] [stdout] | [INFO] [stdout] 6 | let chip = Nrf24l01::new(spi, ce, &mut delay, config).unwrap(); [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `ce` in this scope [INFO] [stdout] --> src/nrf24.rs:337:31 [INFO] [stdout] | [INFO] [stdout] 6 | let chip = Nrf24l01::new(spi, ce, &mut delay, config).unwrap(); [INFO] [stdout] | ^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `delay` in this scope [INFO] [stdout] --> src/nrf24.rs:337:40 [INFO] [stdout] | [INFO] [stdout] 6 | let chip = Nrf24l01::new(spi, ce, &mut delay, config).unwrap(); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `DataPipe` [INFO] [stdout] --> src/nrf24.rs:339:24 [INFO] [stdout] | [INFO] [stdout] 8 | chip.open_reading_pipe(DataPipe::DP0, b"Node1"); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `DataPipe` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use nrf24_rs::config::DataPipe; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `delay` in this scope [INFO] [stdout] --> src/nrf24.rs:359:5 [INFO] [stdout] | [INFO] [stdout] 28 | delay.delay_us(50); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 8 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/nrf24.rs - nrf24::Nrf24l01::stop_listening (line 263) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `chip` in this scope [INFO] [stdout] --> src/nrf24.rs:265:1 [INFO] [stdout] | [INFO] [stdout] 4 | chip.open_reading_pipe(DataPipe::DP0, b"Node1")?; [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `DataPipe` [INFO] [stdout] --> src/nrf24.rs:265:24 [INFO] [stdout] | [INFO] [stdout] 4 | chip.open_reading_pipe(DataPipe::DP0, b"Node1")?; [INFO] [stdout] | ^^^^^^^^ use of undeclared type `DataPipe` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use nrf24_rs::config::DataPipe; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `chip` in this scope [INFO] [stdout] --> src/nrf24.rs:266:1 [INFO] [stdout] | [INFO] [stdout] 5 | chip.start_listening()?; [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `chip` in this scope [INFO] [stdout] --> src/nrf24.rs:269:1 [INFO] [stdout] | [INFO] [stdout] 8 | chip.stop_listening()?; [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/nrf24.rs - nrf24::Nrf24l01::write (line 391) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `NrfConfig` [INFO] [stdout] --> src/nrf24.rs:394:14 [INFO] [stdout] | [INFO] [stdout] 5 | let config = NrfConfig::default().payload_size(PayloadSize::Static(4)); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `NrfConfig` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use nrf24_rs::config::NrfConfig; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PayloadSize` [INFO] [stdout] --> src/nrf24.rs:394:48 [INFO] [stdout] | [INFO] [stdout] 5 | let config = NrfConfig::default().payload_size(PayloadSize::Static(4)); [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `PayloadSize` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use nrf24_rs::config::PayloadSize; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Nrf24l01` [INFO] [stdout] --> src/nrf24.rs:395:12 [INFO] [stdout] | [INFO] [stdout] 6 | let chip = Nrf24l01::new(spi, ce, &mut delay, config).unwrap(); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Nrf24l01` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use nrf24_rs::Nrf24l01; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `spi` in this scope [INFO] [stdout] --> src/nrf24.rs:395:26 [INFO] [stdout] | [INFO] [stdout] 6 | let chip = Nrf24l01::new(spi, ce, &mut delay, config).unwrap(); [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `ce` in this scope [INFO] [stdout] --> src/nrf24.rs:395:31 [INFO] [stdout] | [INFO] [stdout] 6 | let chip = Nrf24l01::new(spi, ce, &mut delay, config).unwrap(); [INFO] [stdout] | ^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `delay` in this scope [INFO] [stdout] --> src/nrf24.rs:395:40 [INFO] [stdout] | [INFO] [stdout] 6 | let chip = Nrf24l01::new(spi, ce, &mut delay, config).unwrap(); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `delay` in this scope [INFO] [stdout] --> src/nrf24.rs:407:27 [INFO] [stdout] | [INFO] [stdout] 18 | match chip.write(&mut delay, &buffer) { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `delay` in this scope [INFO] [stdout] --> src/nrf24.rs:414:5 [INFO] [stdout] | [INFO] [stdout] 25 | delay.delay_us(50); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `get_reading` in this scope [INFO] [stdout] --> src/nrf24.rs:403:13 [INFO] [stdout] | [INFO] [stdout] 14 | let f = get_reading(); // data from some sensor [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 9 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/nrf24.rs - nrf24::Nrf24l01::power_up (line 692) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `chip` in this scope [INFO] [stdout] --> src/nrf24.rs:694:1 [INFO] [stdout] | [INFO] [stdout] 4 | chip.power_down(&mut delay)?; [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `delay` in this scope [INFO] [stdout] --> src/nrf24.rs:694:22 [INFO] [stdout] | [INFO] [stdout] 4 | chip.power_down(&mut delay)?; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `chip` in this scope [INFO] [stdout] --> src/nrf24.rs:697:1 [INFO] [stdout] | [INFO] [stdout] 7 | chip.power_up(&mut delay)?; [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `delay` in this scope [INFO] [stdout] --> src/nrf24.rs:697:20 [INFO] [stdout] | [INFO] [stdout] 7 | chip.power_up(&mut delay)?; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/status.rs - status::Interrupts (line 68) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Interrupts` [INFO] [stdout] --> src/status.rs:70:18 [INFO] [stdout] | [INFO] [stdout] 4 | let interrupts = Interrupts::new().rx_data_ready().max_retries(); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `Interrupts` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use nrf24_rs::status::Interrupts; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `InterruptKind` [INFO] [stdout] --> src/status.rs:73:24 [INFO] [stdout] | [INFO] [stdout] 7 | if interrupts.contains(InterruptKind::RxDataReady) { [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `InterruptKind` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use nrf24_rs::status::InterruptKind; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/nrf24.rs - nrf24::Nrf24l01::data_rate (line 552) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Nrf24l01` [INFO] [stdout] --> src/nrf24.rs:554:16 [INFO] [stdout] | [INFO] [stdout] 4 | let mut chip = Nrf24l01::new(spi_struct, ce_pin, delay, NrfConfig::default())?; [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Nrf24l01` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use nrf24_rs::Nrf24l01; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `spi_struct` in this scope [INFO] [stdout] --> src/nrf24.rs:554:30 [INFO] [stdout] | [INFO] [stdout] 4 | let mut chip = Nrf24l01::new(spi_struct, ce_pin, delay, NrfConfig::default())?; [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `ce_pin` in this scope [INFO] [stdout] --> src/nrf24.rs:554:42 [INFO] [stdout] | [INFO] [stdout] 4 | let mut chip = Nrf24l01::new(spi_struct, ce_pin, delay, NrfConfig::default())?; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `delay` in this scope [INFO] [stdout] --> src/nrf24.rs:554:50 [INFO] [stdout] | [INFO] [stdout] 4 | let mut chip = Nrf24l01::new(spi_struct, ce_pin, delay, NrfConfig::default())?; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `NrfConfig` [INFO] [stdout] --> src/nrf24.rs:554:57 [INFO] [stdout] | [INFO] [stdout] 4 | let mut chip = Nrf24l01::new(spi_struct, ce_pin, delay, NrfConfig::default())?; [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `NrfConfig` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use nrf24_rs::config::NrfConfig; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `DataRate` [INFO] [stdout] --> src/nrf24.rs:556:31 [INFO] [stdout] | [INFO] [stdout] 6 | assert_eq!(chip.data_rate()?, DataRate::R2Mbps); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `DataRate` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use nrf24_rs::config::DataRate; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/nrf24.rs - nrf24::Nrf24l01::payload_size (line 676) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Nrf24l01` [INFO] [stdout] --> src/nrf24.rs:678:16 [INFO] [stdout] | [INFO] [stdout] 4 | let mut chip = Nrf24l01::new(spi_struct, ce_pin, delay, NrfConfig::default())?; [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Nrf24l01` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use nrf24_rs::Nrf24l01; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `spi_struct` in this scope [INFO] [stdout] --> src/nrf24.rs:678:30 [INFO] [stdout] | [INFO] [stdout] 4 | let mut chip = Nrf24l01::new(spi_struct, ce_pin, delay, NrfConfig::default())?; [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `ce_pin` in this scope [INFO] [stdout] --> src/nrf24.rs:678:42 [INFO] [stdout] | [INFO] [stdout] 4 | let mut chip = Nrf24l01::new(spi_struct, ce_pin, delay, NrfConfig::default())?; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `delay` in this scope [INFO] [stdout] --> src/nrf24.rs:678:50 [INFO] [stdout] | [INFO] [stdout] 4 | let mut chip = Nrf24l01::new(spi_struct, ce_pin, delay, NrfConfig::default())?; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `NrfConfig` [INFO] [stdout] --> src/nrf24.rs:678:57 [INFO] [stdout] | [INFO] [stdout] 4 | let mut chip = Nrf24l01::new(spi_struct, ce_pin, delay, NrfConfig::default())?; [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `NrfConfig` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use nrf24_rs::config::NrfConfig; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PayloadSize` [INFO] [stdout] --> src/nrf24.rs:680:34 [INFO] [stdout] | [INFO] [stdout] 6 | assert_eq!(chip.payload_size()?, PayloadSize::Static(MAX_PAYLOAD_SIZE)); [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `PayloadSize` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use nrf24_rs::config::PayloadSize; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `MAX_PAYLOAD_SIZE` in this scope [INFO] [stdout] --> src/nrf24.rs:680:54 [INFO] [stdout] | [INFO] [stdout] 6 | assert_eq!(chip.payload_size()?, PayloadSize::Static(MAX_PAYLOAD_SIZE)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 2 + use nrf24_rs::MAX_PAYLOAD_SIZE; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 7 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/nrf24.rs - nrf24::Nrf24l01::start_listening (line 237) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `chip` in this scope [INFO] [stdout] --> src/nrf24.rs:239:1 [INFO] [stdout] | [INFO] [stdout] 4 | chip.open_reading_pipe(DataPipe::DP0, b"Node1")?; [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `DataPipe` [INFO] [stdout] --> src/nrf24.rs:239:24 [INFO] [stdout] | [INFO] [stdout] 4 | chip.open_reading_pipe(DataPipe::DP0, b"Node1")?; [INFO] [stdout] | ^^^^^^^^ use of undeclared type `DataPipe` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use nrf24_rs::config::DataPipe; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `chip` in this scope [INFO] [stdout] --> src/nrf24.rs:241:1 [INFO] [stdout] | [INFO] [stdout] 6 | chip.start_listening() [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/nrf24.rs - nrf24::Nrf24l01::retries (line 489) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Nrf24l01` [INFO] [stdout] --> src/nrf24.rs:491:16 [INFO] [stdout] | [INFO] [stdout] 4 | let mut chip = Nrf24l01::new(spi_struct, ce_pin, delay, NrfConfig::default())?; [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Nrf24l01` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use nrf24_rs::Nrf24l01; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `spi_struct` in this scope [INFO] [stdout] --> src/nrf24.rs:491:30 [INFO] [stdout] | [INFO] [stdout] 4 | let mut chip = Nrf24l01::new(spi_struct, ce_pin, delay, NrfConfig::default())?; [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `ce_pin` in this scope [INFO] [stdout] --> src/nrf24.rs:491:42 [INFO] [stdout] | [INFO] [stdout] 4 | let mut chip = Nrf24l01::new(spi_struct, ce_pin, delay, NrfConfig::default())?; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `delay` in this scope [INFO] [stdout] --> src/nrf24.rs:491:50 [INFO] [stdout] | [INFO] [stdout] 4 | let mut chip = Nrf24l01::new(spi_struct, ce_pin, delay, NrfConfig::default())?; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `NrfConfig` [INFO] [stdout] --> src/nrf24.rs:491:57 [INFO] [stdout] | [INFO] [stdout] 4 | let mut chip = Nrf24l01::new(spi_struct, ce_pin, delay, NrfConfig::default())?; [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `NrfConfig` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use nrf24_rs::config::NrfConfig; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/nrf24.rs - nrf24::Nrf24l01::open_writing_pipe (line 214) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `chip` in this scope [INFO] [stdout] --> src/nrf24.rs:216:1 [INFO] [stdout] | [INFO] [stdout] 4 | chip.open_writing_pipe(b"Node1")?; [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/nrf24.rs - nrf24::Nrf24l01::power_amp_level (line 565) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Nrf24l01` [INFO] [stdout] --> src/nrf24.rs:567:16 [INFO] [stdout] | [INFO] [stdout] 4 | let mut chip = Nrf24l01::new(spi_struct, ce_pin, delay, NrfConfig::default())?; [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Nrf24l01` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use nrf24_rs::Nrf24l01; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `spi_struct` in this scope [INFO] [stdout] --> src/nrf24.rs:567:30 [INFO] [stdout] | [INFO] [stdout] 4 | let mut chip = Nrf24l01::new(spi_struct, ce_pin, delay, NrfConfig::default())?; [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `ce_pin` in this scope [INFO] [stdout] --> src/nrf24.rs:567:42 [INFO] [stdout] | [INFO] [stdout] 4 | let mut chip = Nrf24l01::new(spi_struct, ce_pin, delay, NrfConfig::default())?; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `delay` in this scope [INFO] [stdout] --> src/nrf24.rs:567:50 [INFO] [stdout] | [INFO] [stdout] 4 | let mut chip = Nrf24l01::new(spi_struct, ce_pin, delay, NrfConfig::default())?; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `NrfConfig` [INFO] [stdout] --> src/nrf24.rs:567:57 [INFO] [stdout] | [INFO] [stdout] 4 | let mut chip = Nrf24l01::new(spi_struct, ce_pin, delay, NrfConfig::default())?; [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `NrfConfig` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use nrf24_rs::config::NrfConfig; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PALevel` [INFO] [stdout] --> src/nrf24.rs:569:37 [INFO] [stdout] | [INFO] [stdout] 6 | assert_eq!(chip.power_amp_level()?, PALevel::Min); [INFO] [stdout] | ^^^^^^^ use of undeclared type `PALevel` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use nrf24_rs::config::PALevel; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/nrf24.rs - nrf24::Nrf24l01::set_payload_size (line 633) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `chip` in this scope [INFO] [stdout] --> src/nrf24.rs:635:1 [INFO] [stdout] | [INFO] [stdout] 4 | chip.set_payload_size(PayloadSize::Dynamic)?; [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PayloadSize` [INFO] [stdout] --> src/nrf24.rs:635:23 [INFO] [stdout] | [INFO] [stdout] 4 | chip.set_payload_size(PayloadSize::Dynamic)?; [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `PayloadSize` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use nrf24_rs::config::PayloadSize; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `chip` in this scope [INFO] [stdout] --> src/nrf24.rs:636:1 [INFO] [stdout] | [INFO] [stdout] 5 | chip.set_payload_size(0)?; [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `chip` in this scope [INFO] [stdout] --> src/nrf24.rs:638:1 [INFO] [stdout] | [INFO] [stdout] 7 | chip.set_payload_size(12)?; // Messages will be 12 bytes [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `chip` in this scope [INFO] [stdout] --> src/nrf24.rs:639:1 [INFO] [stdout] | [INFO] [stdout] 8 | chip.set_payload_size(PayloadSize::Static(12))?; // Same as previous [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PayloadSize` [INFO] [stdout] --> src/nrf24.rs:639:23 [INFO] [stdout] | [INFO] [stdout] 8 | chip.set_payload_size(PayloadSize::Static(12))?; // Same as previous [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `PayloadSize` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use nrf24_rs::config::PayloadSize; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `chip` in this scope [INFO] [stdout] --> src/nrf24.rs:640:1 [INFO] [stdout] | [INFO] [stdout] 9 | chip.set_payload_size(49)?; [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 7 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/nrf24.rs - nrf24::Nrf24l01::set_channel (line 510) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `nrf24l01` in this scope [INFO] [stdout] --> src/nrf24.rs:511:1 [INFO] [stdout] | [INFO] [stdout] 3 | nrf24l01.set_channel(74)?; [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/config.rs - config::NrfConfig (line 28) [INFO] [stdout] src/config.rs - config::NrfConfig (line 38) [INFO] [stdout] src/lib.rs - (line 24) [INFO] [stdout] src/lib.rs - (line 78) [INFO] [stdout] src/nrf24.rs - nrf24::Nrf24l01 (line 22) [INFO] [stdout] src/nrf24.rs - nrf24::Nrf24l01::channel (line 521) [INFO] [stdout] src/nrf24.rs - nrf24::Nrf24l01::crc_encoding_scheme (line 612) [INFO] [stdout] src/nrf24.rs - nrf24::Nrf24l01::data_available (line 285) [INFO] [stdout] src/nrf24.rs - nrf24::Nrf24l01::data_available_on_pipe (line 306) [INFO] [stdout] src/nrf24.rs - nrf24::Nrf24l01::data_rate (line 552) [INFO] [stdout] src/nrf24.rs - nrf24::Nrf24l01::enable_crc (line 598) [INFO] [stdout] src/nrf24.rs - nrf24::Nrf24l01::flush_rx (line 588) [INFO] [stdout] src/nrf24.rs - nrf24::Nrf24l01::flush_tx (line 578) [INFO] [stdout] src/nrf24.rs - nrf24::Nrf24l01::is_connected (line 166) [INFO] [stdout] src/nrf24.rs - nrf24::Nrf24l01::mask_interrupts (line 759) [INFO] [stdout] src/nrf24.rs - nrf24::Nrf24l01::mask_interrupts (line 764) [INFO] [stdout] src/nrf24.rs - nrf24::Nrf24l01::new (line 75) [INFO] [stdout] src/nrf24.rs - nrf24::Nrf24l01::open_reading_pipe (line 179) [INFO] [stdout] src/nrf24.rs - nrf24::Nrf24l01::open_writing_pipe (line 214) [INFO] [stdout] src/nrf24.rs - nrf24::Nrf24l01::payload_size (line 676) [INFO] [stdout] src/nrf24.rs - nrf24::Nrf24l01::power_amp_level (line 565) [INFO] [stdout] src/nrf24.rs - nrf24::Nrf24l01::power_down (line 717) [INFO] [stdout] src/nrf24.rs - nrf24::Nrf24l01::power_up (line 692) [INFO] [stdout] src/nrf24.rs - nrf24::Nrf24l01::read (line 333) [INFO] [stdout] src/nrf24.rs - nrf24::Nrf24l01::retries (line 489) [INFO] [stdout] src/nrf24.rs - nrf24::Nrf24l01::set_address_width (line 538) [INFO] [stdout] src/nrf24.rs - nrf24::Nrf24l01::set_channel (line 510) [INFO] [stdout] src/nrf24.rs - nrf24::Nrf24l01::set_payload_size (line 633) [INFO] [stdout] src/nrf24.rs - nrf24::Nrf24l01::set_retries (line 470) [INFO] [stdout] src/nrf24.rs - nrf24::Nrf24l01::start_listening (line 237) [INFO] [stdout] src/nrf24.rs - nrf24::Nrf24l01::stop_listening (line 263) [INFO] [stdout] src/nrf24.rs - nrf24::Nrf24l01::write (line 391) [INFO] [stdout] src/status.rs - status::Interrupts (line 68) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 33 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.31s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "b1dee73a4b50454e177e2a0a64db2e1a9feaf4732e0e7eabb692086ea02e7f0f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b1dee73a4b50454e177e2a0a64db2e1a9feaf4732e0e7eabb692086ea02e7f0f", kill_on_drop: false }` [INFO] [stdout] b1dee73a4b50454e177e2a0a64db2e1a9feaf4732e0e7eabb692086ea02e7f0f