[INFO] cloning repository https://github.com/snaphat/smartplug_slack_notifier [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/snaphat/smartplug_slack_notifier" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsnaphat%2Fsmartplug_slack_notifier", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsnaphat%2Fsmartplug_slack_notifier'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] eec3ba939b992b90a5605187ec370a8a745bea4a [INFO] checking snaphat/smartplug_slack_notifier against try#8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 for pr-82565 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsnaphat%2Fsmartplug_slack_notifier" "/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/snaphat/smartplug_slack_notifier 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/snaphat/smartplug_slack_notifier [INFO] finished tweaking git repo https://github.com/snaphat/smartplug_slack_notifier [INFO] tweaked toml for git repo https://github.com/snaphat/smartplug_slack_notifier written to /workspace/builds/worker-13/source/Cargo.toml [INFO] crate git repo https://github.com/snaphat/smartplug_slack_notifier 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] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [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] 39b21c82c5d6d2339ad818909dec792e2fe111a5e004dc8141cc5ec40c58b31c [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" "39b21c82c5d6d2339ad818909dec792e2fe111a5e004dc8141cc5ec40c58b31c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "39b21c82c5d6d2339ad818909dec792e2fe111a5e004dc8141cc5ec40c58b31c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "39b21c82c5d6d2339ad818909dec792e2fe111a5e004dc8141cc5ec40c58b31c", kill_on_drop: false }` [INFO] [stdout] 39b21c82c5d6d2339ad818909dec792e2fe111a5e004dc8141cc5ec40c58b31c [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] 06b79ec135d40b63016fa83d04f26e177a2da3acdc313f7222d6da1d3fe0eca6 [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" "06b79ec135d40b63016fa83d04f26e177a2da3acdc313f7222d6da1d3fe0eca6", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.24 [INFO] [stderr] Compiling libc v0.2.81 [INFO] [stderr] Compiling syn v1.0.54 [INFO] [stderr] Compiling log v0.4.11 [INFO] [stderr] Compiling memchr v2.3.4 [INFO] [stderr] Compiling cc v1.0.66 [INFO] [stderr] Checking slab v0.4.2 [INFO] [stderr] Checking itoa v0.4.6 [INFO] [stderr] Compiling serde_derive v1.0.118 [INFO] [stderr] Checking once_cell v1.5.2 [INFO] [stderr] Compiling serde v1.0.118 [INFO] [stderr] Compiling openssl v0.10.31 [INFO] [stderr] Checking matches v0.1.8 [INFO] [stderr] Checking futures-io v0.3.8 [INFO] [stderr] Checking hashbrown v0.9.1 [INFO] [stderr] Compiling crc32fast v1.2.1 [INFO] [stderr] Compiling httparse v1.3.4 [INFO] [stderr] Checking percent-encoding v2.1.0 [INFO] [stderr] Compiling encoding_rs v0.8.26 [INFO] [stderr] Checking tower-service v0.3.0 [INFO] [stderr] Compiling serde_json v1.0.60 [INFO] [stderr] Checking mime v0.3.16 [INFO] [stderr] Checking whoami v1.0.0 [INFO] [stderr] Checking windows-service v0.3.1 [INFO] [stderr] Compiling indexmap v1.6.1 [INFO] [stderr] Checking tracing-core v0.1.17 [INFO] [stderr] Checking futures-channel v0.3.8 [INFO] [stderr] Checking unicode-bidi v0.3.4 [INFO] [stderr] Checking tinyvec v1.1.0 [INFO] [stderr] Checking futures-task v0.3.8 [INFO] [stderr] Checking form_urlencoded v1.0.0 [INFO] [stderr] Checking http v0.2.2 [INFO] [stderr] Compiling mime_guess v2.0.3 [INFO] [stderr] Checking want v0.3.0 [INFO] [stderr] Checking tracing v0.1.22 [INFO] [stderr] Compiling quote v1.0.7 [INFO] [stderr] Compiling openssl-sys v0.9.59 [INFO] [stderr] Checking iovec v0.1.4 [INFO] [stderr] Checking net2 v0.2.37 [INFO] [stderr] Checking num_cpus v1.13.0 [INFO] [stderr] Checking socket2 v0.3.17 [INFO] [stderr] Checking flate2 v1.0.19 [INFO] [stderr] Checking unicode-normalization v0.1.16 [INFO] [stderr] Checking mio v0.6.23 [INFO] [stderr] Checking async-compression v0.3.6 [INFO] [stderr] Compiling native-tls v0.2.6 [INFO] [stderr] Checking tokio v0.2.24 [INFO] [stderr] Checking idna v0.2.0 [INFO] [stderr] Checking http-body v0.3.1 [INFO] [stderr] Checking url v2.2.0 [INFO] [stderr] Checking tokio-util v0.3.1 [INFO] [stderr] Checking tokio-tls v0.3.1 [INFO] [stderr] Compiling pin-project-internal v0.4.27 [INFO] [stderr] Compiling pin-project-internal v1.0.2 [INFO] [stderr] Compiling async-trait v0.1.42 [INFO] [stderr] Checking pin-project v1.0.2 [INFO] [stderr] Checking futures-util v0.3.8 [INFO] [stderr] Checking pin-project v0.4.27 [INFO] [stderr] Checking tracing-futures v0.2.4 [INFO] [stderr] Checking h2 v0.2.7 [INFO] [stderr] Checking serde_urlencoded v0.7.0 [INFO] [stderr] Checking hyper v0.13.9 [INFO] [stderr] Checking hs100api v0.1.1 [INFO] [stderr] Checking hyper-tls v0.4.3 [INFO] [stderr] Checking reqwest v0.10.10 [INFO] [stderr] Checking slack_api v0.23.1 [INFO] [stderr] Checking smartplug_slack_notifier v0.1.2 (/opt/rustwide/workdir) [INFO] [stdout] error[E0432]: unresolved imports `windows_service::define_windows_service`, `windows_service::service`, `windows_service::service_control_handler`, `windows_service::service_control_handler`, `windows_service::service_dispatcher`, `windows_service::service_manager`, `windows_service::Result` [INFO] [stdout] --> src/service.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | define_windows_service, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ no `define_windows_service` in the root [INFO] [stdout] 5 | service::{ [INFO] [stdout] | ^^^^^^^ could not find `service` in `windows_service` [INFO] [stdout] ... [INFO] [stdout] 9 | service_control_handler::{self, ServiceControlHandlerResult}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ ^^^^ no `service_control_handler` in the root [INFO] [stdout] | | [INFO] [stdout] | could not find `service_control_handler` in `windows_service` [INFO] [stdout] 10 | service_dispatcher, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ no `service_dispatcher` in the root [INFO] [stdout] 11 | service_manager::{ServiceManager, ServiceManagerAccess}, [INFO] [stdout] | ^^^^^^^^^^^^^^^ could not find `service_manager` in `windows_service` [INFO] [stdout] 12 | Result, [INFO] [stdout] | ^^^^^^ no `Result` in the root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the macro `define_windows_service` [INFO] [stdout] --> src/service.rs:75:1 [INFO] [stdout] | [INFO] [stdout] 75 | define_windows_service!(ffi_service_main, my_service_main); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved imports `windows_service::define_windows_service`, `windows_service::service`, `windows_service::service_control_handler`, `windows_service::service_control_handler`, `windows_service::service_dispatcher`, `windows_service::service_manager`, `windows_service::Result` [INFO] [stdout] --> src/service.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | define_windows_service, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ no `define_windows_service` in the root [INFO] [stdout] 5 | service::{ [INFO] [stdout] | ^^^^^^^ could not find `service` in `windows_service` [INFO] [stdout] ... [INFO] [stdout] 9 | service_control_handler::{self, ServiceControlHandlerResult}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ ^^^^ no `service_control_handler` in the root [INFO] [stdout] | | [INFO] [stdout] | could not find `service_control_handler` in `windows_service` [INFO] [stdout] 10 | service_dispatcher, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ no `service_dispatcher` in the root [INFO] [stdout] 11 | service_manager::{ServiceManager, ServiceManagerAccess}, [INFO] [stdout] | ^^^^^^^^^^^^^^^ could not find `service_manager` in `windows_service` [INFO] [stdout] 12 | Result, [INFO] [stdout] | ^^^^^^ no `Result` in the root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the macro `define_windows_service` [INFO] [stdout] --> src/service.rs:75:1 [INFO] [stdout] | [INFO] [stdout] 75 | define_windows_service!(ffi_service_main, my_service_main); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `mpsc` [INFO] [stdout] --> src/service.rs:89:38 [INFO] [stdout] | [INFO] [stdout] 89 | let (shutdown_tx, shutdown_rx) = mpsc::channel(); [INFO] [stdout] | ^^^^ use of undeclared crate or module `mpsc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `mpsc` [INFO] [stdout] --> src/service.rs:137:25 [INFO] [stdout] | [INFO] [stdout] 137 | Ok(_) | Err(mpsc::RecvTimeoutError::Disconnected) => break, [INFO] [stdout] | ^^^^ use of undeclared crate or module `mpsc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `mpsc` [INFO] [stdout] --> src/service.rs:140:17 [INFO] [stdout] | [INFO] [stdout] 140 | Err(mpsc::RecvTimeoutError::Timeout) => (), [INFO] [stdout] | ^^^^ use of undeclared crate or module `mpsc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Result` in crate `windows_service` [INFO] [stdout] --> src/service.rs:20:51 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn unregister(name: &str) -> windows_service::Result<()> { [INFO] [stdout] | ^^^^^^ not found in `windows_service` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use core::fmt::Result; [INFO] [stdout] | [INFO] [stdout] 3 | use core::result::Result; [INFO] [stdout] | [INFO] [stdout] 3 | use crate::service::thread::Result; [INFO] [stdout] | [INFO] [stdout] 3 | use serde::export::Result; [INFO] [stdout] | [INFO] [stdout] and 6 other candidates [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Duration` [INFO] [stdout] --> src/service.rs:31:23 [INFO] [stdout] | [INFO] [stdout] 31 | thread::sleep(Duration::from_secs(1)); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use core::time::Duration; [INFO] [stdout] | [INFO] [stdout] 3 | use crate::notifier::Duration; [INFO] [stdout] | [INFO] [stdout] 3 | use std::time::Duration; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Result` in crate `windows_service` [INFO] [stdout] --> src/service.rs:38:49 [INFO] [stdout] | [INFO] [stdout] 38 | pub fn register(name: &str) -> windows_service::Result<()> { [INFO] [stdout] | ^^^^^^ not found in `windows_service` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use core::fmt::Result; [INFO] [stdout] | [INFO] [stdout] 3 | use core::result::Result; [INFO] [stdout] | [INFO] [stdout] 3 | use crate::service::thread::Result; [INFO] [stdout] | [INFO] [stdout] 3 | use serde::export::Result; [INFO] [stdout] | [INFO] [stdout] and 6 other candidates [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `OsString` [INFO] [stdout] --> src/service.rs:47:15 [INFO] [stdout] | [INFO] [stdout] 47 | name: OsString::from(name), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: a struct with a similar name exists [INFO] [stdout] | [INFO] [stdout] 47 | name: String::from(name), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use crate::service::thread::imp::os::OsString; [INFO] [stdout] | [INFO] [stdout] 3 | use std::ffi::OsString; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `OsString` [INFO] [stdout] --> src/service.rs:48:23 [INFO] [stdout] | [INFO] [stdout] 48 | display_name: OsString::from(name), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: a struct with a similar name exists [INFO] [stdout] | [INFO] [stdout] 48 | display_name: String::from(name), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use crate::service::thread::imp::os::OsString; [INFO] [stdout] | [INFO] [stdout] 3 | use std::ffi::OsString; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `OsString` [INFO] [stdout] --> src/service.rs:53:32 [INFO] [stdout] | [INFO] [stdout] 53 | launch_arguments: vec![OsString::from("--run")], [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: a struct with a similar name exists [INFO] [stdout] | [INFO] [stdout] 53 | launch_arguments: vec![String::from("--run")], [INFO] [stdout] | ^^^^^^ [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use crate::service::thread::imp::os::OsString; [INFO] [stdout] | [INFO] [stdout] 3 | use std::ffi::OsString; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `ffi_service_main` in this scope [INFO] [stdout] --> src/service.rs:68:45 [INFO] [stdout] | [INFO] [stdout] 68 | service_dispatcher::start(SERVICE_NAME, ffi_service_main) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: a function with a similar name exists: `my_service_main` [INFO] [stdout] ... [INFO] [stdout] 80 | pub fn my_service_main(_arguments: Vec) { [INFO] [stdout] | ------------------------------------------------- similarly named function `my_service_main` defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `OsString` in this scope [INFO] [stdout] --> src/service.rs:80:40 [INFO] [stdout] | [INFO] [stdout] 80 | pub fn my_service_main(_arguments: Vec) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: a struct with a similar name exists [INFO] [stdout] | [INFO] [stdout] 80 | pub fn my_service_main(_arguments: Vec) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use crate::service::thread::imp::os::OsString; [INFO] [stdout] | [INFO] [stdout] 3 | use std::ffi::OsString; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Duration` [INFO] [stdout] --> src/service.rs:122:20 [INFO] [stdout] | [INFO] [stdout] 122 | wait_hint: Duration::from_secs(30), [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use core::time::Duration; [INFO] [stdout] | [INFO] [stdout] 3 | use crate::notifier::Duration; [INFO] [stdout] | [INFO] [stdout] 3 | use std::time::Duration; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Duration` [INFO] [stdout] --> src/service.rs:135:40 [INFO] [stdout] | [INFO] [stdout] 135 | match shutdown_rx.recv_timeout(Duration::from_secs(2)) { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use core::time::Duration; [INFO] [stdout] | [INFO] [stdout] 3 | use crate::notifier::Duration; [INFO] [stdout] | [INFO] [stdout] 3 | use std::time::Duration; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Duration` [INFO] [stdout] --> src/service.rs:155:20 [INFO] [stdout] | [INFO] [stdout] 155 | wait_hint: Duration::from_secs(30), [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use core::time::Duration; [INFO] [stdout] | [INFO] [stdout] 3 | use crate::notifier::Duration; [INFO] [stdout] | [INFO] [stdout] 3 | use std::time::Duration; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `whoami` [INFO] [stdout] --> src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use whoami; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `mpsc` [INFO] [stdout] --> src/service.rs:89:38 [INFO] [stdout] | [INFO] [stdout] 89 | let (shutdown_tx, shutdown_rx) = mpsc::channel(); [INFO] [stdout] | ^^^^ use of undeclared crate or module `mpsc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `mpsc` [INFO] [stdout] --> src/service.rs:137:25 [INFO] [stdout] | [INFO] [stdout] 137 | Ok(_) | Err(mpsc::RecvTimeoutError::Disconnected) => break, [INFO] [stdout] | ^^^^ use of undeclared crate or module `mpsc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `mpsc` [INFO] [stdout] --> src/service.rs:140:17 [INFO] [stdout] | [INFO] [stdout] 140 | Err(mpsc::RecvTimeoutError::Timeout) => (), [INFO] [stdout] | ^^^^ use of undeclared crate or module `mpsc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Result` in crate `windows_service` [INFO] [stdout] --> src/service.rs:20:51 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn unregister(name: &str) -> windows_service::Result<()> { [INFO] [stdout] | ^^^^^^ not found in `windows_service` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use core::fmt::Result; [INFO] [stdout] | [INFO] [stdout] 3 | use core::result::Result; [INFO] [stdout] | [INFO] [stdout] 3 | use crate::service::thread::Result; [INFO] [stdout] | [INFO] [stdout] 3 | use serde::export::Result; [INFO] [stdout] | [INFO] [stdout] and 6 other candidates [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Duration` [INFO] [stdout] --> src/service.rs:31:23 [INFO] [stdout] | [INFO] [stdout] 31 | thread::sleep(Duration::from_secs(1)); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use core::time::Duration; [INFO] [stdout] | [INFO] [stdout] 3 | use crate::notifier::Duration; [INFO] [stdout] | [INFO] [stdout] 3 | use std::time::Duration; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Result` in crate `windows_service` [INFO] [stdout] --> src/service.rs:38:49 [INFO] [stdout] | [INFO] [stdout] 38 | pub fn register(name: &str) -> windows_service::Result<()> { [INFO] [stdout] | ^^^^^^ not found in `windows_service` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use core::fmt::Result; [INFO] [stdout] | [INFO] [stdout] 3 | use core::result::Result; [INFO] [stdout] | [INFO] [stdout] 3 | use crate::service::thread::Result; [INFO] [stdout] | [INFO] [stdout] 3 | use serde::export::Result; [INFO] [stdout] | [INFO] [stdout] and 6 other candidates [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `OsString` [INFO] [stdout] --> src/service.rs:47:15 [INFO] [stdout] | [INFO] [stdout] 47 | name: OsString::from(name), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: a struct with a similar name exists [INFO] [stdout] | [INFO] [stdout] 47 | name: String::from(name), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use crate::service::thread::imp::os::OsString; [INFO] [stdout] | [INFO] [stdout] 3 | use std::ffi::OsString; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `OsString` [INFO] [stdout] --> src/service.rs:48:23 [INFO] [stdout] | [INFO] [stdout] 48 | display_name: OsString::from(name), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: a struct with a similar name exists [INFO] [stdout] | [INFO] [stdout] 48 | display_name: String::from(name), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use crate::service::thread::imp::os::OsString; [INFO] [stdout] | [INFO] [stdout] 3 | use std::ffi::OsString; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `OsString` [INFO] [stdout] --> src/service.rs:53:32 [INFO] [stdout] | [INFO] [stdout] 53 | launch_arguments: vec![OsString::from("--run")], [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: a struct with a similar name exists [INFO] [stdout] | [INFO] [stdout] 53 | launch_arguments: vec![String::from("--run")], [INFO] [stdout] | ^^^^^^ [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use crate::service::thread::imp::os::OsString; [INFO] [stdout] | [INFO] [stdout] 3 | use std::ffi::OsString; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `ffi_service_main` in this scope [INFO] [stdout] --> src/service.rs:68:45 [INFO] [stdout] | [INFO] [stdout] 68 | service_dispatcher::start(SERVICE_NAME, ffi_service_main) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: a function with a similar name exists: `my_service_main` [INFO] [stdout] ... [INFO] [stdout] 80 | pub fn my_service_main(_arguments: Vec) { [INFO] [stdout] | ------------------------------------------------- similarly named function `my_service_main` defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `OsString` in this scope [INFO] [stdout] --> src/service.rs:80:40 [INFO] [stdout] | [INFO] [stdout] 80 | pub fn my_service_main(_arguments: Vec) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: a struct with a similar name exists [INFO] [stdout] | [INFO] [stdout] 80 | pub fn my_service_main(_arguments: Vec) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use crate::service::thread::imp::os::OsString; [INFO] [stdout] | [INFO] [stdout] 3 | use std::ffi::OsString; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Duration` [INFO] [stdout] --> src/service.rs:122:20 [INFO] [stdout] | [INFO] [stdout] 122 | wait_hint: Duration::from_secs(30), [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use core::time::Duration; [INFO] [stdout] | [INFO] [stdout] 3 | use crate::notifier::Duration; [INFO] [stdout] | [INFO] [stdout] 3 | use std::time::Duration; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Duration` [INFO] [stdout] --> src/service.rs:135:40 [INFO] [stdout] | [INFO] [stdout] 135 | match shutdown_rx.recv_timeout(Duration::from_secs(2)) { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use core::time::Duration; [INFO] [stdout] | [INFO] [stdout] 3 | use crate::notifier::Duration; [INFO] [stdout] | [INFO] [stdout] 3 | use std::time::Duration; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Duration` [INFO] [stdout] --> src/service.rs:155:20 [INFO] [stdout] | [INFO] [stdout] 155 | wait_hint: Duration::from_secs(30), [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use core::time::Duration; [INFO] [stdout] | [INFO] [stdout] 3 | use crate::notifier::Duration; [INFO] [stdout] | [INFO] [stdout] 3 | use std::time::Duration; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `whoami` [INFO] [stdout] --> src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use whoami; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 16 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0425, E0432, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stderr] error: could not compile `smartplug_slack_notifier` [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] [stdout] error: aborting due to 16 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0425, E0432, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "06b79ec135d40b63016fa83d04f26e177a2da3acdc313f7222d6da1d3fe0eca6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "06b79ec135d40b63016fa83d04f26e177a2da3acdc313f7222d6da1d3fe0eca6", kill_on_drop: false }` [INFO] [stdout] 06b79ec135d40b63016fa83d04f26e177a2da3acdc313f7222d6da1d3fe0eca6