[INFO] cloning repository https://github.com/quahd/tcp-server-service [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/quahd/tcp-server-service" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fquahd%2Ftcp-server-service", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fquahd%2Ftcp-server-service'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] d38b6a79485955f6166473700a970578f7408ba1 [INFO] checking quahd/tcp-server-service against try#0611f7de057c584b8771102fde7aed6c70c71d3b for pr-146440 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fquahd%2Ftcp-server-service" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/quahd/tcp-server-service [INFO] finished tweaking git repo https://github.com/quahd/tcp-server-service [INFO] tweaked toml for git repo https://github.com/quahd/tcp-server-service written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/quahd/tcp-server-service on toolchain 0611f7de057c584b8771102fde7aed6c70c71d3b [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+0611f7de057c584b8771102fde7aed6c70c71d3b" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/quahd/tcp-server-service 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" "+0611f7de057c584b8771102fde7aed6c70c71d3b" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded windows-service v0.8.0 [INFO] [stderr] Downloaded winsafe v0.0.26 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+0611f7de057c584b8771102fde7aed6c70c71d3b" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 6e39b2ac6898bed4cc5bf920943bbb971a53b145ec3acd47795433aa99ddf956 [INFO] running `Command { std: "docker" "start" "-a" "6e39b2ac6898bed4cc5bf920943bbb971a53b145ec3acd47795433aa99ddf956", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "6e39b2ac6898bed4cc5bf920943bbb971a53b145ec3acd47795433aa99ddf956", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6e39b2ac6898bed4cc5bf920943bbb971a53b145ec3acd47795433aa99ddf956", kill_on_drop: false }` [INFO] [stdout] 6e39b2ac6898bed4cc5bf920943bbb971a53b145ec3acd47795433aa99ddf956 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+0611f7de057c584b8771102fde7aed6c70c71d3b" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e95a4fc871f863bed56b3117416138d5b1731070780025460881609d0a842d51 [INFO] running `Command { std: "docker" "start" "-a" "e95a4fc871f863bed56b3117416138d5b1731070780025460881609d0a842d51", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.101 [INFO] [stderr] Compiling unicode-ident v1.0.19 [INFO] [stderr] Checking windows-link v0.1.3 [INFO] [stderr] Checking windows-service v0.8.0 [INFO] [stderr] Checking winsafe v0.0.26 [INFO] [stderr] Checking windows-strings v0.3.1 [INFO] [stderr] Checking windows-result v0.3.4 [INFO] [stderr] Compiling quote v1.0.41 [INFO] [stderr] Compiling syn v2.0.106 [INFO] [stderr] Compiling windows-interface v0.59.3 [INFO] [stderr] Compiling windows-implement v0.59.0 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Checking windows-core v0.60.1 [INFO] [stderr] Checking thiserror v1.0.69 [INFO] [stderr] Checking windows-future v0.1.1 [INFO] [stderr] Checking windows-numerics v0.1.1 [INFO] [stderr] Checking windows-collections v0.1.1 [INFO] [stderr] Checking windows v0.60.0 [INFO] [stderr] Checking echoservice v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0432]: unresolved import `windows_service::service_dispatcher` [INFO] [stdout] --> src/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use windows_service::service_dispatcher; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no `service_dispatcher` in the root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `windows_service::service_control_handler` [INFO] [stdout] --> src/main.rs:5:22 [INFO] [stdout] | [INFO] [stdout] 5 | use windows_service::service_control_handler::{self, ServiceControlHandlerResult}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ could not find `service_control_handler` in `windows_service` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find `Win32` in `windows` [INFO] [stdout] --> src/main.rs:14:14 [INFO] [stdout] | [INFO] [stdout] 14 | use windows::Win32::{Networking::WinSock::*}; [INFO] [stdout] | ^^^^^ could not find `Win32` in `windows` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `windows_service::service` [INFO] [stdout] --> src/main.rs:7:22 [INFO] [stdout] | [INFO] [stdout] 7 | use windows_service::service::{ [INFO] [stdout] | ^^^^^^^ could not find `service` in `windows_service` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find `Win32` in `windows` [INFO] [stdout] --> src/server.rs:2:14 [INFO] [stdout] | [INFO] [stdout] 2 | use windows::Win32::{Networking::WinSock::*}; [INFO] [stdout] | ^^^^^ could not find `Win32` in `windows` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `windows_service::Error` [INFO] [stdout] --> src/define.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 27 | use windows_service::Error as WinServiceError; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no `Error` in the root [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items instead [INFO] [stdout] | [INFO] [stdout] 27 - use windows_service::Error as WinServiceError; [INFO] [stdout] 27 + use std::error::Error as WinServiceError; [INFO] [stdout] | [INFO] [stdout] 27 - use windows_service::Error as WinServiceError; [INFO] [stdout] 27 + use std::fmt::Error as WinServiceError; [INFO] [stdout] | [INFO] [stdout] 27 - use windows_service::Error as WinServiceError; [INFO] [stdout] 27 + use std::fs::TryLockError::Error as WinServiceError; [INFO] [stdout] | [INFO] [stdout] 27 - use windows_service::Error as WinServiceError; [INFO] [stdout] 27 + use std::io::Error as WinServiceError; [INFO] [stdout] | [INFO] [stdout] = and 2 other candidates [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `define_windows_service` in this scope [INFO] [stdout] --> src/main.rs:20:1 [INFO] [stdout] | [INFO] [stdout] 20 | define_windows_service!(ffi_service_main, my_service_main); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `windows_service::service_dispatcher` [INFO] [stdout] --> src/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use windows_service::service_dispatcher; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no `service_dispatcher` in the root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `windows_service::service_control_handler` [INFO] [stdout] --> src/main.rs:5:22 [INFO] [stdout] | [INFO] [stdout] 5 | use windows_service::service_control_handler::{self, ServiceControlHandlerResult}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ could not find `service_control_handler` in `windows_service` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find `Win32` in `windows` [INFO] [stdout] --> src/main.rs:14:14 [INFO] [stdout] | [INFO] [stdout] 14 | use windows::Win32::{Networking::WinSock::*}; [INFO] [stdout] | ^^^^^ could not find `Win32` in `windows` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `windows_service::service` [INFO] [stdout] --> src/main.rs:7:22 [INFO] [stdout] | [INFO] [stdout] 7 | use windows_service::service::{ [INFO] [stdout] | ^^^^^^^ could not find `service` in `windows_service` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find `Win32` in `windows` [INFO] [stdout] --> src/server.rs:2:14 [INFO] [stdout] | [INFO] [stdout] 2 | use windows::Win32::{Networking::WinSock::*}; [INFO] [stdout] | ^^^^^ could not find `Win32` in `windows` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `windows_service::Error` [INFO] [stdout] --> src/define.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 27 | use windows_service::Error as WinServiceError; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no `Error` in the root [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items instead [INFO] [stdout] | [INFO] [stdout] 27 - use windows_service::Error as WinServiceError; [INFO] [stdout] 27 + use std::error::Error as WinServiceError; [INFO] [stdout] | [INFO] [stdout] 27 - use windows_service::Error as WinServiceError; [INFO] [stdout] 27 + use std::fmt::Error as WinServiceError; [INFO] [stdout] | [INFO] [stdout] 27 - use windows_service::Error as WinServiceError; [INFO] [stdout] 27 + use std::fs::TryLockError::Error as WinServiceError; [INFO] [stdout] | [INFO] [stdout] 27 - use windows_service::Error as WinServiceError; [INFO] [stdout] 27 + use std::io::Error as WinServiceError; [INFO] [stdout] | [INFO] [stdout] = and 2 other candidates [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `define_windows_service` in this scope [INFO] [stdout] --> src/main.rs:20:1 [INFO] [stdout] | [INFO] [stdout] 20 | define_windows_service!(ffi_service_main, my_service_main); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `SOCKET` in this scope [INFO] [stdout] --> src/server.rs:8:33 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn init_socket() -> Result< SOCKET, ErrorMess> { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 8 | pub fn init_socket() -> Result< SOCKET, ErrorMess> { [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `SOCKADDR_IN` in this scope [INFO] [stdout] --> src/server.rs:26:32 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn create_server_addr() -> SOCKADDR_IN { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `SOCKADDR_IN` in this scope [INFO] [stdout] --> src/server.rs:29:22 [INFO] [stdout] | [INFO] [stdout] 29 | let server_addr: SOCKADDR_IN = SOCKADDR_IN { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `SOCKADDR_IN` in this scope [INFO] [stdout] --> src/server.rs:29:36 [INFO] [stdout] | [INFO] [stdout] 29 | let server_addr: SOCKADDR_IN = SOCKADDR_IN { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `AF_INET` in this scope [INFO] [stdout] --> src/server.rs:30:21 [INFO] [stdout] | [INFO] [stdout] 30 | sin_family: AF_INET, [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `IN_ADDR` in this scope [INFO] [stdout] --> src/server.rs:34:20 [INFO] [stdout] | [INFO] [stdout] 34 | sin_addr: IN_ADDR { S_un: IN_ADDR_0 {S_addr: ip_u32} }, [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `IN_ADDR_0` in this scope [INFO] [stdout] --> src/server.rs:34:36 [INFO] [stdout] | [INFO] [stdout] 34 | sin_addr: IN_ADDR { S_un: IN_ADDR_0 {S_addr: ip_u32} }, [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `SOCKET` in this scope [INFO] [stdout] --> src/server.rs:39:26 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn bind_socket(sock: SOCKET, server_addr: SOCKADDR_IN) -> Result <(), ErrorMess>{ [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `SOCKADDR_IN` in this scope [INFO] [stdout] --> src/server.rs:39:47 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn bind_socket(sock: SOCKET, server_addr: SOCKADDR_IN) -> Result <(), ErrorMess>{ [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `SOCKADDR_IN` in this scope [INFO] [stdout] --> src/server.rs:44:40 [INFO] [stdout] | [INFO] [stdout] 44 | &server_addr as *const SOCKADDR_IN as *const SOCKADDR, [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `SOCKADDR` in this scope [INFO] [stdout] --> src/server.rs:44:62 [INFO] [stdout] | [INFO] [stdout] 44 | &server_addr as *const SOCKADDR_IN as *const SOCKADDR, [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `SOCKADDR_IN` in this scope [INFO] [stdout] --> src/server.rs:45:37 [INFO] [stdout] | [INFO] [stdout] 45 | std::mem::size_of::() as i32, [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 39 | pub fn bind_socket(sock: SOCKET, server_addr: SOCKADDR_IN) -> Result <(), ErrorMess>{ [INFO] [stdout] | +++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SOCKET_ERROR` in this scope [INFO] [stdout] --> src/server.rs:48:20 [INFO] [stdout] | [INFO] [stdout] 48 | if i_result == SOCKET_ERROR { [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `SOCKET` in this scope [INFO] [stdout] --> src/server.rs:56:32 [INFO] [stdout] | [INFO] [stdout] 56 | pub fn setup_tcp_listen (sock: SOCKET) -> Result<(), ErrorMess> { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SOMAXCONN` in this scope [INFO] [stdout] --> src/server.rs:57:43 [INFO] [stdout] | [INFO] [stdout] 57 | let i_result = unsafe { listen (sock, SOMAXCONN as i32) }; [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SOCKET_ERROR` in this scope [INFO] [stdout] --> src/server.rs:58:20 [INFO] [stdout] | [INFO] [stdout] 58 | if i_result == SOCKET_ERROR { [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `SOCKET` in this scope [INFO] [stdout] --> src/server.rs:65:29 [INFO] [stdout] | [INFO] [stdout] 65 | pub fn accept_client (sock: SOCKET) -> Result { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `SOCKET` in this scope [INFO] [stdout] --> src/server.rs:65:47 [INFO] [stdout] | [INFO] [stdout] 65 | pub fn accept_client (sock: SOCKET) -> Result { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 65 | pub fn accept_client (sock: SOCKET) -> Result { [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `SOCKET` in this scope [INFO] [stdout] --> src/server.rs:94:28 [INFO] [stdout] | [INFO] [stdout] 94 | pub fn receive_mess (sock: SOCKET) -> Result <(), ErrorMess>{ [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `SOCKET` in this scope [INFO] [stdout] --> src/server.rs:148:38 [INFO] [stdout] | [INFO] [stdout] 148 | pub fn send_again(input: &str, sock: SOCKET) -> Result<(), ErrorMess> { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SOCKET_ERROR` in this scope [INFO] [stdout] --> src/server.rs:162:24 [INFO] [stdout] | [INFO] [stdout] 162 | if i_result == SOCKET_ERROR { [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `SOCKET` in this scope [INFO] [stdout] --> src/server.rs:173:30 [INFO] [stdout] | [INFO] [stdout] 173 | pub fn _finish_socket (sock: SOCKET) -> Result<(), ErrorMess> { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SD_SEND` in this scope [INFO] [stdout] --> src/server.rs:174:43 [INFO] [stdout] | [INFO] [stdout] 174 | let i_result = unsafe {shutdown(sock, SD_SEND)}; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SOCKET_ERROR` in this scope [INFO] [stdout] --> src/server.rs:175:20 [INFO] [stdout] | [INFO] [stdout] 175 | if i_result == SOCKET_ERROR { [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SOCKET_ERROR` in this scope [INFO] [stdout] --> src/server.rs:180:24 [INFO] [stdout] | [INFO] [stdout] 180 | if close_result == SOCKET_ERROR { [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `SOCKET` in this scope [INFO] [stdout] --> src/main.rs:67:18 [INFO] [stdout] | [INFO] [stdout] 67 | let sock:Arc = Arc::new(server::init_socket()?); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 28 | fn run_service(_arguments: Vec) ->Result<(), ErrorMess> { //windows_service::Result<()> [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `SOCKADDR_IN` in this scope [INFO] [stdout] --> src/main.rs:68:22 [INFO] [stdout] | [INFO] [stdout] 68 | let server_addr: SOCKADDR_IN = server::create_server_addr(); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `Error` in crate `windows_service` [INFO] [stdout] --> src/main.rs:142:42 [INFO] [stdout] | [INFO] [stdout] 142 | fn main() -> Result<(), windows_service::Error> { [INFO] [stdout] | ^^^^^ not found in `windows_service` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 + use std::error::Error; [INFO] [stdout] | [INFO] [stdout] 3 + use std::fmt::Error; [INFO] [stdout] | [INFO] [stdout] 3 + use std::io::Error; [INFO] [stdout] | [INFO] [stdout] 3 + use core::error::Error; [INFO] [stdout] | [INFO] [stdout] = and 1 other candidate [INFO] [stdout] help: if you import `Error`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 142 - fn main() -> Result<(), windows_service::Error> { [INFO] [stdout] 142 + fn main() -> Result<(), Error> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `ffi_service_main` in this scope [INFO] [stdout] --> src/main.rs:143:60 [INFO] [stdout] | [INFO] [stdout] 22 | fn my_service_main(arguments: Vec) { [INFO] [stdout] | -------------------------------------------- similarly named function `my_service_main` defined here [INFO] [stdout] ... [INFO] [stdout] 143 | if let Err(e) = service_dispatcher::start("myservice", ffi_service_main) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: a function with a similar name exists [INFO] [stdout] | [INFO] [stdout] 143 - if let Err(e) = service_dispatcher::start("myservice", ffi_service_main) { [INFO] [stdout] 143 + if let Err(e) = service_dispatcher::start("myservice", my_service_main) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `#[macro_use]` import [INFO] [stdout] --> src/main.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `channel` [INFO] [stdout] --> src/main.rs:11:29 [INFO] [stdout] | [INFO] [stdout] 11 | use std::sync::mpsc::{self, channel}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `otherErr` should have an upper camel case name [INFO] [stdout] --> src/define.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | otherErr, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `OtherErr` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find type `WSADATA` in this scope [INFO] [stdout] --> src/server.rs:9:24 [INFO] [stdout] | [INFO] [stdout] 9 | let mut wsa_data = WSADATA::default(); [INFO] [stdout] | ^^^^^^^ use of undeclared type `WSADATA` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `SOCKET` in this scope [INFO] [stdout] --> src/server.rs:8:33 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn init_socket() -> Result< SOCKET, ErrorMess> { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 8 | pub fn init_socket() -> Result< SOCKET, ErrorMess> { [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `SOCKADDR_IN` in this scope [INFO] [stdout] --> src/server.rs:26:32 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn create_server_addr() -> SOCKADDR_IN { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `SOCKADDR_IN` in this scope [INFO] [stdout] --> src/server.rs:29:22 [INFO] [stdout] | [INFO] [stdout] 29 | let server_addr: SOCKADDR_IN = SOCKADDR_IN { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `SOCKADDR_IN` in this scope [INFO] [stdout] --> src/server.rs:29:36 [INFO] [stdout] | [INFO] [stdout] 29 | let server_addr: SOCKADDR_IN = SOCKADDR_IN { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `AF_INET` in this scope [INFO] [stdout] --> src/server.rs:30:21 [INFO] [stdout] | [INFO] [stdout] 30 | sin_family: AF_INET, [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `IN_ADDR` in this scope [INFO] [stdout] --> src/server.rs:34:20 [INFO] [stdout] | [INFO] [stdout] 34 | sin_addr: IN_ADDR { S_un: IN_ADDR_0 {S_addr: ip_u32} }, [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `IN_ADDR_0` in this scope [INFO] [stdout] --> src/server.rs:34:36 [INFO] [stdout] | [INFO] [stdout] 34 | sin_addr: IN_ADDR { S_un: IN_ADDR_0 {S_addr: ip_u32} }, [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `SOCKET` in this scope [INFO] [stdout] --> src/server.rs:39:26 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn bind_socket(sock: SOCKET, server_addr: SOCKADDR_IN) -> Result <(), ErrorMess>{ [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `SOCKADDR_IN` in this scope [INFO] [stdout] --> src/server.rs:39:47 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn bind_socket(sock: SOCKET, server_addr: SOCKADDR_IN) -> Result <(), ErrorMess>{ [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `SOCKADDR_IN` in this scope [INFO] [stdout] --> src/server.rs:44:40 [INFO] [stdout] | [INFO] [stdout] 44 | &server_addr as *const SOCKADDR_IN as *const SOCKADDR, [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `SOCKADDR` in this scope [INFO] [stdout] --> src/server.rs:44:62 [INFO] [stdout] | [INFO] [stdout] 44 | &server_addr as *const SOCKADDR_IN as *const SOCKADDR, [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `SOCKADDR_IN` in this scope [INFO] [stdout] --> src/server.rs:45:37 [INFO] [stdout] | [INFO] [stdout] 45 | std::mem::size_of::() as i32, [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 39 | pub fn bind_socket(sock: SOCKET, server_addr: SOCKADDR_IN) -> Result <(), ErrorMess>{ [INFO] [stdout] | +++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SOCKET_ERROR` in this scope [INFO] [stdout] --> src/server.rs:48:20 [INFO] [stdout] | [INFO] [stdout] 48 | if i_result == SOCKET_ERROR { [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `SOCKET` in this scope [INFO] [stdout] --> src/server.rs:56:32 [INFO] [stdout] | [INFO] [stdout] 56 | pub fn setup_tcp_listen (sock: SOCKET) -> Result<(), ErrorMess> { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SOMAXCONN` in this scope [INFO] [stdout] --> src/server.rs:57:43 [INFO] [stdout] | [INFO] [stdout] 57 | let i_result = unsafe { listen (sock, SOMAXCONN as i32) }; [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SOCKET_ERROR` in this scope [INFO] [stdout] --> src/server.rs:58:20 [INFO] [stdout] | [INFO] [stdout] 58 | if i_result == SOCKET_ERROR { [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `SOCKET` in this scope [INFO] [stdout] --> src/server.rs:65:29 [INFO] [stdout] | [INFO] [stdout] 65 | pub fn accept_client (sock: SOCKET) -> Result { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `SOCKET` in this scope [INFO] [stdout] --> src/server.rs:65:47 [INFO] [stdout] | [INFO] [stdout] 65 | pub fn accept_client (sock: SOCKET) -> Result { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 65 | pub fn accept_client (sock: SOCKET) -> Result { [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `SOCKET` in this scope [INFO] [stdout] --> src/server.rs:94:28 [INFO] [stdout] | [INFO] [stdout] 94 | pub fn receive_mess (sock: SOCKET) -> Result <(), ErrorMess>{ [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `SOCKET` in this scope [INFO] [stdout] --> src/server.rs:148:38 [INFO] [stdout] | [INFO] [stdout] 148 | pub fn send_again(input: &str, sock: SOCKET) -> Result<(), ErrorMess> { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SOCKET_ERROR` in this scope [INFO] [stdout] --> src/server.rs:162:24 [INFO] [stdout] | [INFO] [stdout] 162 | if i_result == SOCKET_ERROR { [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `WSAStartup` in this scope [INFO] [stdout] --> src/server.rs:10:29 [INFO] [stdout] | [INFO] [stdout] 10 | let i_result = unsafe { WSAStartup(0x0202, &mut wsa_data) }; [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `SOCKET` in this scope [INFO] [stdout] --> src/server.rs:173:30 [INFO] [stdout] | [INFO] [stdout] 173 | pub fn _finish_socket (sock: SOCKET) -> Result<(), ErrorMess> { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `WSACleanup` in this scope [INFO] [stdout] --> src/server.rs:12:17 [INFO] [stdout] | [INFO] [stdout] 12 | unsafe {WSACleanup()}; [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `WSAGetLastError` in this scope [INFO] [stdout] --> src/server.rs:13:28 [INFO] [stdout] | [INFO] [stdout] 13 | let code = unsafe {WSAGetLastError().0}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SD_SEND` in this scope [INFO] [stdout] --> src/server.rs:174:43 [INFO] [stdout] | [INFO] [stdout] 174 | let i_result = unsafe {shutdown(sock, SD_SEND)}; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SOCKET_ERROR` in this scope [INFO] [stdout] --> src/server.rs:175:20 [INFO] [stdout] | [INFO] [stdout] 175 | if i_result == SOCKET_ERROR { [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `WINSOCK_SOCKET_TYPE` in this scope [INFO] [stdout] --> src/server.rs:16:41 [INFO] [stdout] | [INFO] [stdout] 16 | let sock = match unsafe { socket(2, WINSOCK_SOCKET_TYPE(1), 6) } { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SOCKET_ERROR` in this scope [INFO] [stdout] --> src/server.rs:180:24 [INFO] [stdout] | [INFO] [stdout] 180 | if close_result == SOCKET_ERROR { [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `SOCKET` in this scope [INFO] [stdout] --> src/main.rs:67:18 [INFO] [stdout] | [INFO] [stdout] 67 | let sock:Arc = Arc::new(server::init_socket()?); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 28 | fn run_service(_arguments: Vec) ->Result<(), ErrorMess> { //windows_service::Result<()> [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `socket` in this scope [INFO] [stdout] --> src/server.rs:16:31 [INFO] [stdout] | [INFO] [stdout] 16 | let sock = match unsafe { socket(2, WINSOCK_SOCKET_TYPE(1), 6) } { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `SOCKADDR_IN` in this scope [INFO] [stdout] --> src/main.rs:68:22 [INFO] [stdout] | [INFO] [stdout] 68 | let server_addr: SOCKADDR_IN = server::create_server_addr(); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `Error` in crate `windows_service` [INFO] [stdout] --> src/main.rs:142:42 [INFO] [stdout] | [INFO] [stdout] 142 | fn main() -> Result<(), windows_service::Error> { [INFO] [stdout] | ^^^^^ not found in `windows_service` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 + use std::error::Error; [INFO] [stdout] | [INFO] [stdout] 3 + use std::fmt::Error; [INFO] [stdout] | [INFO] [stdout] 3 + use std::io::Error; [INFO] [stdout] | [INFO] [stdout] 3 + use core::error::Error; [INFO] [stdout] | [INFO] [stdout] = and 1 other candidate [INFO] [stdout] help: if you import `Error`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 142 - fn main() -> Result<(), windows_service::Error> { [INFO] [stdout] 142 + fn main() -> Result<(), Error> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `ffi_service_main` in this scope [INFO] [stdout] --> src/main.rs:143:60 [INFO] [stdout] | [INFO] [stdout] 22 | fn my_service_main(arguments: Vec) { [INFO] [stdout] | -------------------------------------------- similarly named function `my_service_main` defined here [INFO] [stdout] ... [INFO] [stdout] 143 | if let Err(e) = service_dispatcher::start("myservice", ffi_service_main) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: a function with a similar name exists [INFO] [stdout] | [INFO] [stdout] 143 - if let Err(e) = service_dispatcher::start("myservice", ffi_service_main) { [INFO] [stdout] 143 + if let Err(e) = service_dispatcher::start("myservice", my_service_main) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `WSAGetLastError` in this scope [INFO] [stdout] --> src/server.rs:19:33 [INFO] [stdout] | [INFO] [stdout] 19 | let code = unsafe { WSAGetLastError().0 }; [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `#[macro_use]` import [INFO] [stdout] --> src/main.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `channel` [INFO] [stdout] --> src/main.rs:11:29 [INFO] [stdout] | [INFO] [stdout] 11 | use std::sync::mpsc::{self, channel}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `otherErr` should have an upper camel case name [INFO] [stdout] --> src/define.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | otherErr, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `OtherErr` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `htons` in this scope [INFO] [stdout] --> src/server.rs:31:27 [INFO] [stdout] | [INFO] [stdout] 31 | sin_port: unsafe {htons(9999)}, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `bind` in this scope [INFO] [stdout] --> src/server.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 43 | bind(sock, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `closesocket` in this scope [INFO] [stdout] --> src/server.rs:49:17 [INFO] [stdout] | [INFO] [stdout] 49 | unsafe {closesocket(sock)}; [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `WSACleanup` in this scope [INFO] [stdout] --> src/server.rs:50:18 [INFO] [stdout] | [INFO] [stdout] 50 | unsafe { WSACleanup() }; [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `WSAGetLastError` in this scope [INFO] [stdout] --> src/server.rs:51:35 [INFO] [stdout] | [INFO] [stdout] 51 | let code: i32 = unsafe { WSAGetLastError().0 }; [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `listen` in this scope [INFO] [stdout] --> src/server.rs:57:29 [INFO] [stdout] | [INFO] [stdout] 57 | let i_result = unsafe { listen (sock, SOMAXCONN as i32) }; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `closesocket` in this scope [INFO] [stdout] --> src/server.rs:59:19 [INFO] [stdout] | [INFO] [stdout] 59 | unsafe {closesocket(sock)}; unsafe { WSACleanup() }; [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `WSACleanup` in this scope [INFO] [stdout] --> src/server.rs:59:48 [INFO] [stdout] | [INFO] [stdout] 59 | unsafe {closesocket(sock)}; unsafe { WSACleanup() }; [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `WSAGetLastError` in this scope [INFO] [stdout] --> src/server.rs:60:35 [INFO] [stdout] | [INFO] [stdout] 60 | let code: i32 = unsafe { WSAGetLastError().0 }; [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `accept` in this scope [INFO] [stdout] --> src/server.rs:66:39 [INFO] [stdout] | [INFO] [stdout] 66 | let socket_client = match unsafe {accept(sock, None, None)} [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `WSAGetLastError` in this scope [INFO] [stdout] --> src/server.rs:71:32 [INFO] [stdout] | [INFO] [stdout] 71 | let code = unsafe {WSAGetLastError().0}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SEND_RECV_FLAGS` in this scope [INFO] [stdout] --> src/server.rs:101:41 [INFO] [stdout] | [INFO] [stdout] 101 | ... SEND_RECV_FLAGS(0))}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `recv` in this scope [INFO] [stdout] --> src/server.rs:99:33 [INFO] [stdout] | [INFO] [stdout] 99 | let i_result = unsafe { recv(sock, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `WSAGetLastError` in this scope [INFO] [stdout] --> src/server.rs:137:32 [INFO] [stdout] | [INFO] [stdout] 137 | let code = unsafe {WSAGetLastError().0}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `WSACleanup` in this scope [INFO] [stdout] --> src/server.rs:141:22 [INFO] [stdout] | [INFO] [stdout] 141 | unsafe { WSACleanup() }; [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `closesocket` in this scope [INFO] [stdout] --> src/server.rs:142:22 [INFO] [stdout] | [INFO] [stdout] 142 | unsafe { closesocket(sock)}; [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SEND_RECV_FLAGS` in this scope [INFO] [stdout] --> src/server.rs:161:49 [INFO] [stdout] | [INFO] [stdout] 161 | ... SEND_RECV_FLAGS(0))}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find type `WSADATA` in this scope [INFO] [stdout] --> src/server.rs:9:24 [INFO] [stdout] | [INFO] [stdout] 9 | let mut wsa_data = WSADATA::default(); [INFO] [stdout] | ^^^^^^^ use of undeclared type `WSADATA` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `send` in this scope [INFO] [stdout] --> src/server.rs:159:32 [INFO] [stdout] | [INFO] [stdout] 159 | let i_result = unsafe {send(sock, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `WSAGetLastError` in this scope [INFO] [stdout] --> src/server.rs:164:32 [INFO] [stdout] | [INFO] [stdout] 164 | let code = unsafe {WSAGetLastError().0}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `closesocket` in this scope [INFO] [stdout] --> src/server.rs:165:22 [INFO] [stdout] | [INFO] [stdout] 165 | unsafe { closesocket(sock) }; [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `WSACleanup` in this scope [INFO] [stdout] --> src/server.rs:166:22 [INFO] [stdout] | [INFO] [stdout] 166 | unsafe { WSACleanup() }; [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `shutdown` in this scope [INFO] [stdout] --> src/server.rs:174:28 [INFO] [stdout] | [INFO] [stdout] 174 | let i_result = unsafe {shutdown(sock, SD_SEND)}; [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `WSAGetLastError` in this scope [INFO] [stdout] --> src/server.rs:176:27 [INFO] [stdout] | [INFO] [stdout] 176 | let code = unsafe {WSAGetLastError().0 }; [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `closesocket` in this scope [INFO] [stdout] --> src/server.rs:179:32 [INFO] [stdout] | [INFO] [stdout] 179 | let close_result = unsafe {closesocket(sock)}; [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `WSAGetLastError` in this scope [INFO] [stdout] --> src/server.rs:181:28 [INFO] [stdout] | [INFO] [stdout] 181 | let code = unsafe {WSAGetLastError().0}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `WSACleanup` in this scope [INFO] [stdout] --> src/server.rs:186:34 [INFO] [stdout] | [INFO] [stdout] 186 | let cleanup_result = unsafe {WSACleanup()}; [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `WSAGetLastError` in this scope [INFO] [stdout] --> src/server.rs:188:28 [INFO] [stdout] | [INFO] [stdout] 188 | let code = unsafe {WSAGetLastError().0}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `WSAStartup` in this scope [INFO] [stdout] --> src/server.rs:10:29 [INFO] [stdout] | [INFO] [stdout] 10 | let i_result = unsafe { WSAStartup(0x0202, &mut wsa_data) }; [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `WSACleanup` in this scope [INFO] [stdout] --> src/server.rs:12:17 [INFO] [stdout] | [INFO] [stdout] 12 | unsafe {WSACleanup()}; [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `WSAGetLastError` in this scope [INFO] [stdout] --> src/server.rs:13:28 [INFO] [stdout] | [INFO] [stdout] 13 | let code = unsafe {WSAGetLastError().0}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `WINSOCK_SOCKET_TYPE` in this scope [INFO] [stdout] --> src/server.rs:16:41 [INFO] [stdout] | [INFO] [stdout] 16 | let sock = match unsafe { socket(2, WINSOCK_SOCKET_TYPE(1), 6) } { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `socket` in this scope [INFO] [stdout] --> src/server.rs:16:31 [INFO] [stdout] | [INFO] [stdout] 16 | let sock = match unsafe { socket(2, WINSOCK_SOCKET_TYPE(1), 6) } { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `WSAGetLastError` in this scope [INFO] [stdout] --> src/server.rs:19:33 [INFO] [stdout] | [INFO] [stdout] 19 | let code = unsafe { WSAGetLastError().0 }; [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `htons` in this scope [INFO] [stdout] --> src/server.rs:31:27 [INFO] [stdout] | [INFO] [stdout] 31 | sin_port: unsafe {htons(9999)}, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `bind` in this scope [INFO] [stdout] --> src/server.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 43 | bind(sock, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `closesocket` in this scope [INFO] [stdout] --> src/server.rs:49:17 [INFO] [stdout] | [INFO] [stdout] 49 | unsafe {closesocket(sock)}; [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `WSACleanup` in this scope [INFO] [stdout] --> src/server.rs:50:18 [INFO] [stdout] | [INFO] [stdout] 50 | unsafe { WSACleanup() }; [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `WSAGetLastError` in this scope [INFO] [stdout] --> src/server.rs:51:35 [INFO] [stdout] | [INFO] [stdout] 51 | let code: i32 = unsafe { WSAGetLastError().0 }; [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `listen` in this scope [INFO] [stdout] --> src/server.rs:57:29 [INFO] [stdout] | [INFO] [stdout] 57 | let i_result = unsafe { listen (sock, SOMAXCONN as i32) }; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `closesocket` in this scope [INFO] [stdout] --> src/server.rs:59:19 [INFO] [stdout] | [INFO] [stdout] 59 | unsafe {closesocket(sock)}; unsafe { WSACleanup() }; [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `WSACleanup` in this scope [INFO] [stdout] --> src/server.rs:59:48 [INFO] [stdout] | [INFO] [stdout] 59 | unsafe {closesocket(sock)}; unsafe { WSACleanup() }; [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `WSAGetLastError` in this scope [INFO] [stdout] --> src/server.rs:60:35 [INFO] [stdout] | [INFO] [stdout] 60 | let code: i32 = unsafe { WSAGetLastError().0 }; [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `accept` in this scope [INFO] [stdout] --> src/server.rs:66:39 [INFO] [stdout] | [INFO] [stdout] 66 | let socket_client = match unsafe {accept(sock, None, None)} [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `WSAGetLastError` in this scope [INFO] [stdout] --> src/server.rs:71:32 [INFO] [stdout] | [INFO] [stdout] 71 | let code = unsafe {WSAGetLastError().0}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SEND_RECV_FLAGS` in this scope [INFO] [stdout] --> src/server.rs:101:41 [INFO] [stdout] | [INFO] [stdout] 101 | ... SEND_RECV_FLAGS(0))}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `recv` in this scope [INFO] [stdout] --> src/server.rs:99:33 [INFO] [stdout] | [INFO] [stdout] 99 | let i_result = unsafe { recv(sock, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `WSAGetLastError` in this scope [INFO] [stdout] --> src/server.rs:137:32 [INFO] [stdout] | [INFO] [stdout] 137 | let code = unsafe {WSAGetLastError().0}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `WSACleanup` in this scope [INFO] [stdout] --> src/server.rs:141:22 [INFO] [stdout] | [INFO] [stdout] 141 | unsafe { WSACleanup() }; [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `closesocket` in this scope [INFO] [stdout] --> src/server.rs:142:22 [INFO] [stdout] | [INFO] [stdout] 142 | unsafe { closesocket(sock)}; [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SEND_RECV_FLAGS` in this scope [INFO] [stdout] --> src/server.rs:161:49 [INFO] [stdout] | [INFO] [stdout] 161 | ... SEND_RECV_FLAGS(0))}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `send` in this scope [INFO] [stdout] --> src/server.rs:159:32 [INFO] [stdout] | [INFO] [stdout] 159 | let i_result = unsafe {send(sock, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `WSAGetLastError` in this scope [INFO] [stdout] --> src/server.rs:164:32 [INFO] [stdout] | [INFO] [stdout] 164 | let code = unsafe {WSAGetLastError().0}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0422, E0425, E0432, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0422`. [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `closesocket` in this scope [INFO] [stdout] --> src/server.rs:165:22 [INFO] [stdout] | [INFO] [stdout] 165 | unsafe { closesocket(sock) }; [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `WSACleanup` in this scope [INFO] [stdout] --> src/server.rs:166:22 [INFO] [stdout] | [INFO] [stdout] 166 | unsafe { WSACleanup() }; [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `shutdown` in this scope [INFO] [stdout] --> src/server.rs:174:28 [INFO] [stdout] | [INFO] [stdout] 174 | let i_result = unsafe {shutdown(sock, SD_SEND)}; [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `WSAGetLastError` in this scope [INFO] [stdout] --> src/server.rs:176:27 [INFO] [stdout] | [INFO] [stdout] 176 | let code = unsafe {WSAGetLastError().0 }; [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `closesocket` in this scope [INFO] [stdout] --> src/server.rs:179:32 [INFO] [stdout] | [INFO] [stdout] 179 | let close_result = unsafe {closesocket(sock)}; [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `WSAGetLastError` in this scope [INFO] [stdout] --> src/server.rs:181:28 [INFO] [stdout] | [INFO] [stdout] 181 | let code = unsafe {WSAGetLastError().0}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `WSACleanup` in this scope [INFO] [stdout] --> src/server.rs:186:34 [INFO] [stdout] | [INFO] [stdout] 186 | let cleanup_result = unsafe {WSACleanup()}; [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `WSAGetLastError` in this scope [INFO] [stdout] --> src/server.rs:188:28 [INFO] [stdout] | [INFO] [stdout] 188 | let code = unsafe {WSAGetLastError().0}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `echoservice` (bin "echoservice" test) due to 70 previous errors; 3 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] Some errors have detailed explanations: E0422, E0425, E0432, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0422`. [INFO] [stdout] [INFO] [stderr] error: could not compile `echoservice` (bin "echoservice") due to 70 previous errors; 3 warnings emitted [INFO] running `Command { std: "docker" "inspect" "e95a4fc871f863bed56b3117416138d5b1731070780025460881609d0a842d51", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e95a4fc871f863bed56b3117416138d5b1731070780025460881609d0a842d51", kill_on_drop: false }` [INFO] [stdout] e95a4fc871f863bed56b3117416138d5b1731070780025460881609d0a842d51