[INFO] cloning repository https://github.com/villcore/rproxifier [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/villcore/rproxifier" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvillcore%2Frproxifier", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvillcore%2Frproxifier'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 6f218ab9b533da84749bf5d91d596822d9d9b944 [INFO] testing villcore/rproxifier against beta-2022-04-10 for beta-1.61-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvillcore%2Frproxifier" "/workspace/builds/worker-76/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-76/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/villcore/rproxifier on toolchain beta-2022-04-10 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/villcore/rproxifier [INFO] finished tweaking git repo https://github.com/villcore/rproxifier [INFO] tweaked toml for git repo https://github.com/villcore/rproxifier written to /workspace/builds/worker-76/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "fetch" "--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-76/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-76/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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 33cc5f7c8ff583c469f674b9b02c9ee6c645f1705463d32d17842073e53f8f74 [INFO] running `Command { std: "docker" "start" "-a" "33cc5f7c8ff583c469f674b9b02c9ee6c645f1705463d32d17842073e53f8f74", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "33cc5f7c8ff583c469f674b9b02c9ee6c645f1705463d32d17842073e53f8f74", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "33cc5f7c8ff583c469f674b9b02c9ee6c645f1705463d32d17842073e53f8f74", kill_on_drop: false }` [INFO] [stdout] 33cc5f7c8ff583c469f674b9b02c9ee6c645f1705463d32d17842073e53f8f74 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-76/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-76/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 9324a842454be38916d1b5dc4c7f452041ec8c9f5a387494766497362c7ecf6c [INFO] running `Command { std: "docker" "start" "-a" "9324a842454be38916d1b5dc4c7f452041ec8c9f5a387494766497362c7ecf6c", kill_on_drop: false }` [INFO] [stderr] Compiling rproxifier v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0706]: functions in traits cannot be declared `async` [INFO] [stdout] --> src/dns/client.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 27 | async fn send_query( [INFO] [stdout] | ^---- [INFO] [stdout] | | [INFO] [stdout] | _____`async` because of this [INFO] [stdout] | | [INFO] [stdout] 28 | | &self, [INFO] [stdout] 29 | | qname: &str, [INFO] [stdout] 30 | | qtype: QueryType, [INFO] [stdout] 31 | | server: (&str, u16), [INFO] [stdout] 32 | | recursive: bool, [INFO] [stdout] 33 | | ) -> Result; [INFO] [stdout] | |___________________________^ [INFO] [stdout] | [INFO] [stdout] = note: `async` trait functions are not currently supported [INFO] [stdout] = note: consider using the `async-trait` crate: https://crates.io/crates/async-trait [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0706]: functions in traits cannot be declared `async` [INFO] [stdout] --> src/dns/client.rs:228:5 [INFO] [stdout] | [INFO] [stdout] 228 | async fn send_query( [INFO] [stdout] | ^---- [INFO] [stdout] | | [INFO] [stdout] | _____`async` because of this [INFO] [stdout] | | [INFO] [stdout] 229 | | &self, [INFO] [stdout] 230 | | qname: &str, [INFO] [stdout] 231 | | qtype: QueryType, [INFO] [stdout] ... | [INFO] [stdout] 241 | | Err(Error::new(ErrorKind::UnexpectedEof, "truncated message")) [INFO] [stdout] 242 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: `async` trait functions are not currently supported [INFO] [stdout] = note: consider using the `async-trait` crate: https://crates.io/crates/async-trait [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0706]: functions in traits cannot be declared `async` [INFO] [stdout] --> src/dns/resolve.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 30 | async fn resolve(&self, qname: &str, qtype: QueryType, recursive: bool) -> Result; [INFO] [stdout] | -----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | `async` because of this [INFO] [stdout] | [INFO] [stdout] = note: `async` trait functions are not currently supported [INFO] [stdout] = note: consider using the `async-trait` crate: https://crates.io/crates/async-trait [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0706]: functions in traits cannot be declared `async` [INFO] [stdout] --> src/dns/resolve.rs:62:5 [INFO] [stdout] | [INFO] [stdout] 62 | async fn resolve(&self, qname: &str, qtype: QueryType, recursive: bool) -> Result { [INFO] [stdout] | ^---- [INFO] [stdout] | | [INFO] [stdout] | _____`async` because of this [INFO] [stdout] | | [INFO] [stdout] 63 | | if let QueryType::UNKNOWN(_) = qtype { [INFO] [stdout] 64 | | let mut packet = DnsPacket::new(); [INFO] [stdout] 65 | | packet.header.rescode = ResultCode::NOTIMP; [INFO] [stdout] ... | [INFO] [stdout] 94 | | result [INFO] [stdout] 95 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: `async` trait functions are not currently supported [INFO] [stdout] = note: consider using the `async-trait` crate: https://crates.io/crates/async-trait [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0706]: functions in traits cannot be declared `async` [INFO] [stdout] --> src/dns/resolve.rs:216:5 [INFO] [stdout] | [INFO] [stdout] 216 | async fn resolve(&self, qname: &str, qtype: QueryType, recursive: bool) -> Result { [INFO] [stdout] | ^---- [INFO] [stdout] | | [INFO] [stdout] | _____`async` because of this [INFO] [stdout] | | [INFO] [stdout] 217 | | if let QueryType::UNKNOWN(_) = qtype { [INFO] [stdout] 218 | | let mut packet = DnsPacket::new(); [INFO] [stdout] 219 | | packet.header.rescode = ResultCode::NOTIMP; [INFO] [stdout] ... | [INFO] [stdout] 239 | | self.perform(qname, qtype).await [INFO] [stdout] 240 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: `async` trait functions are not currently supported [INFO] [stdout] = note: consider using the `async-trait` crate: https://crates.io/crates/async-trait [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0706]: functions in traits cannot be declared `async` [INFO] [stdout] --> src/dns/resolve.rs:262:5 [INFO] [stdout] | [INFO] [stdout] 262 | async fn resolve(&self, qname: &str, qtype: QueryType, recursive: bool) -> Result { [INFO] [stdout] | ^---- [INFO] [stdout] | | [INFO] [stdout] | _____`async` because of this [INFO] [stdout] | | [INFO] [stdout] 263 | | tracing::info!("Resolve host [{}] ", qname); [INFO] [stdout] 264 | | [INFO] [stdout] 265 | | // TODO: local host file [INFO] [stdout] ... | [INFO] [stdout] 317 | | } [INFO] [stdout] 318 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: `async` trait functions are not currently supported [INFO] [stdout] = note: consider using the `async-trait` crate: https://crates.io/crates/async-trait [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0706]: functions in traits cannot be declared `async` [INFO] [stdout] --> src/dns/resolve.rs:386:5 [INFO] [stdout] | [INFO] [stdout] 386 | async fn resolve(&self, qname: &str, qtype: QueryType, recursive: bool) -> Result { [INFO] [stdout] | ^---- [INFO] [stdout] | | [INFO] [stdout] | _____`async` because of this [INFO] [stdout] | | [INFO] [stdout] 387 | | log::info!(">>>> {:?}", self.domain_map); [INFO] [stdout] 388 | | match self.domain_map.get(qname) { [INFO] [stdout] 389 | | Some(ip_addr) => { [INFO] [stdout] ... | [INFO] [stdout] 404 | | } [INFO] [stdout] 405 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: `async` trait functions are not currently supported [INFO] [stdout] = note: consider using the `async-trait` crate: https://crates.io/crates/async-trait [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0706]: functions in traits cannot be declared `async` [INFO] [stdout] --> src/dns/resolve.rs:598:5 [INFO] [stdout] | [INFO] [stdout] 598 | async fn resolve(&self, qname: &str, qtype: QueryType, recursive: bool) -> Result { [INFO] [stdout] | ^---- [INFO] [stdout] | | [INFO] [stdout] | _____`async` because of this [INFO] [stdout] | | [INFO] [stdout] 599 | | match self.get_or_create_fake_ip(qname).await { [INFO] [stdout] 600 | | Some((a, b, c, d)) => { [INFO] [stdout] 601 | | let dns_answer = DnsRecord::A { [INFO] [stdout] ... | [INFO] [stdout] 615 | | } [INFO] [stdout] 616 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: `async` trait functions are not currently supported [INFO] [stdout] = note: consider using the `async-trait` crate: https://crates.io/crates/async-trait [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `smoltcp` [INFO] [stdout] --> src/main.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use smoltcp::wire::{IpAddress, IpProtocol, Ipv4Cidr, Ipv4Packet, TcpPacket, UdpPacket, IpVersion, Ipv4Address}; [INFO] [stdout] | ^^^^^^^ use of undeclared crate or module `smoltcp` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `async_std_resolver` [INFO] [stdout] --> src/main.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use async_std_resolver::{resolver, config, AsyncStdResolver}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ use of undeclared crate or module `async_std_resolver` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `log` [INFO] [stdout] --> src/main.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use log::{info, error, Level}; [INFO] [stdout] | ^^^ use of undeclared crate or module `log` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `tokio` [INFO] [stdout] --> src/main.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | use tokio::net::{TcpStream, TcpListener}; [INFO] [stdout] | ^^^^^ use of undeclared crate or module `tokio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `smoltcp` [INFO] [stdout] --> src/main.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | use smoltcp::Error; [INFO] [stdout] | ^^^^^^^ use of undeclared crate or module `smoltcp` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `tokio` [INFO] [stdout] --> src/main.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | use tokio::io::{AsyncReadExt, AsyncWriteExt, AsyncRead, AsyncWrite}; [INFO] [stdout] | ^^^^^ use of undeclared crate or module `tokio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `async_std_resolver` [INFO] [stdout] --> src/main.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 29 | use async_std_resolver::config::{NameServerConfigGroup, NameServerConfig, Protocol, ResolverConfig, ResolverOpts}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ use of undeclared crate or module `async_std_resolver` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `tokio` [INFO] [stdout] --> src/main.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 30 | use tokio::sync::mpsc::{Sender, Receiver}; [INFO] [stdout] | ^^^^^ use of undeclared crate or module `tokio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `bytes` [INFO] [stdout] --> src/main.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | use bytes::BytesMut; [INFO] [stdout] | ^^^^^ use of undeclared crate or module `bytes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `eframe` [INFO] [stdout] --> src/main.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 32 | use eframe::egui::{Context, CentralPanel, TopBottomPanel, Layout, Align, RichText, Color32}; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `eframe` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `eframe` [INFO] [stdout] --> src/main.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 33 | use eframe::epi::Frame; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `eframe` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `eframe` [INFO] [stdout] --> src/main.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 34 | use eframe::epi::egui::Ui; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `eframe` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `tokio` [INFO] [stdout] --> src/main.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 35 | use tokio::runtime::Runtime; [INFO] [stdout] | ^^^^^ use of undeclared crate or module `tokio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `eframe` [INFO] [stdout] --> src/main.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 31 | use eframe::egui; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `eframe` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `dashmap` [INFO] [stdout] --> src/main.rs:39:5 [INFO] [stdout] | [INFO] [stdout] 39 | use dashmap::mapref::one::{Ref, RefMut}; [INFO] [stdout] | ^^^^^^^ use of undeclared crate or module `dashmap` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `dashmap` [INFO] [stdout] --> src/main.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 37 | use dashmap::DashMap; [INFO] [stdout] | ^^^^^^^ use of undeclared crate or module `dashmap` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `regex` [INFO] [stdout] --> src/main.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | use regex::Regex; [INFO] [stdout] | ^^^^^ use of undeclared crate or module `regex` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `async_std` [INFO] [stdout] --> src/dns/authority.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use async_std::sync::{RwLock, RwLockReadGuard, RwLockWriteGuard}; [INFO] [stdout] | ^^^^^^^^^ use of undeclared crate or module `async_std` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `voluntary_servitude` [INFO] [stdout] --> src/main.rs:41:5 [INFO] [stdout] | [INFO] [stdout] 41 | use voluntary_servitude::vs; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ use of undeclared crate or module `voluntary_servitude` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `chrono` [INFO] [stdout] --> src/dns/cache.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use chrono::{DateTime, Duration, Local}; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `chrono` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `async_std` [INFO] [stdout] --> src/dns/server.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use async_std::net::UdpSocket; [INFO] [stdout] | ^^^^^^^^^ use of undeclared crate or module `async_std` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `async_std` [INFO] [stdout] --> src/dns/server.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use async_std::task::spawn; [INFO] [stdout] | ^^^^^^^^^ use of undeclared crate or module `async_std` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `rand` [INFO] [stdout] --> src/dns/protocol.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use rand::random; [INFO] [stdout] | ^^^^ use of undeclared crate or module `rand` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `tracing` [INFO] [stdout] --> src/sys/sys.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use tracing::info; [INFO] [stdout] | ^^^^^^^ use of undeclared crate or module `tracing` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `anyhow` [INFO] [stdout] --> src/sys/sys.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use anyhow::anyhow; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `anyhow` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `eframe` [INFO] [stdout] --> src/gui/toggle.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use eframe::egui::Color32; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `eframe` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `async_std` [INFO] [stdout] --> src/dns/client.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use async_std::channel::{bounded, Receiver, Sender}; [INFO] [stdout] | ^^^^^^^^^ use of undeclared crate or module `async_std` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `eframe` [INFO] [stdout] --> src/gui/toggle.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use eframe::egui; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `eframe` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `async_std` [INFO] [stdout] --> src/dns/client.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use async_std::io::timeout; [INFO] [stdout] | ^^^^^^^^^ use of undeclared crate or module `async_std` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `async_std` [INFO] [stdout] --> src/dns/client.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use async_std::net::UdpSocket; [INFO] [stdout] | ^^^^^^^^^ use of undeclared crate or module `async_std` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `async_std` [INFO] [stdout] --> src/dns/client.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use async_std::prelude::FutureExt; [INFO] [stdout] | ^^^^^^^^^ use of undeclared crate or module `async_std` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `async_std` [INFO] [stdout] --> src/dns/client.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use async_std::future; [INFO] [stdout] | ^^^^^^^^^ use of undeclared crate or module `async_std` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `async_std` [INFO] [stdout] --> src/dns/client.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use async_std::task; [INFO] [stdout] | ^^^^^^^^^ use of undeclared crate or module `async_std` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `async_trait` [INFO] [stdout] --> src/dns/client.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | use async_trait::async_trait; [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared crate or module `async_trait` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `tracing` [INFO] [stdout] --> src/dns/client.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | use tracing::{error, trace, trace_span}; [INFO] [stdout] | ^^^^^^^ use of undeclared crate or module `tracing` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `tracing_futures` [INFO] [stdout] --> src/dns/client.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | use tracing_futures::Instrument; [INFO] [stdout] | ^^^^^^^^^^^^^^^ use of undeclared crate or module `tracing_futures` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `async_trait` [INFO] [stdout] --> src/dns/resolve.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use async_trait::async_trait; [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared crate or module `async_trait` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `async_std_resolver` [INFO] [stdout] --> src/dns/resolve.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use async_std_resolver::lookup_ip::LookupIp; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ use of undeclared crate or module `async_std_resolver` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `trust_dns_proto` [INFO] [stdout] --> src/dns/resolve.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | use trust_dns_proto::rr::{RData, Record}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ use of undeclared crate or module `trust_dns_proto` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `async_std_resolver` [INFO] [stdout] --> src/dns/resolve.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use async_std_resolver::{AsyncStdResolver, ResolveError}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ use of undeclared crate or module `async_std_resolver` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `dashmap` [INFO] [stdout] --> src/dns/resolve.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | use dashmap::mapref::one::Ref; [INFO] [stdout] | ^^^^^^^ use of undeclared crate or module `dashmap` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `tokio` [INFO] [stdout] --> src/dns/resolve.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | use tokio::sync::RwLock; [INFO] [stdout] | ^^^^^ use of undeclared crate or module `tokio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `dashmap` [INFO] [stdout] --> src/dns/resolve.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | use dashmap::DashMap; [INFO] [stdout] | ^^^^^^^ use of undeclared crate or module `dashmap` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `anyhow` [INFO] [stdout] --> src/main.rs:1254:28 [INFO] [stdout] | [INFO] [stdout] 1254 | return Err(anyhow::anyhow!(format!("already contain config {} ", config.name))) [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `anyhow` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `tokio` [INFO] [stdout] --> src/main.rs:1043:32 [INFO] [stdout] | [INFO] [stdout] 1043 | let connected_socket = tokio::select! { [INFO] [stdout] | ^^^^^ use of undeclared crate or module `tokio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `anyhow` [INFO] [stdout] --> src/main.rs:832:28 [INFO] [stdout] | [INFO] [stdout] 832 | return Err(anyhow::anyhow!(format!("tun read ip_v4 packet error, {}", errors))); [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `anyhow` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `anyhow` [INFO] [stdout] --> src/main.rs:826:24 [INFO] [stdout] | [INFO] [stdout] 826 | return Err(anyhow::anyhow!(format!("tun not supported ipv6 packet"))); [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `anyhow` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `anyhow` [INFO] [stdout] --> src/main.rs:821:28 [INFO] [stdout] | [INFO] [stdout] 821 | return Err(anyhow::anyhow!(format!("check ip packet version error, {}", error))); [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `anyhow` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `anyhow` [INFO] [stdout] --> src/main.rs:812:28 [INFO] [stdout] | [INFO] [stdout] 812 | return Err(anyhow::anyhow!(format!("tun socket read error, {}", error))); [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `anyhow` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `anyhow` [INFO] [stdout] --> src/main.rs:790:40 [INFO] [stdout] | [INFO] [stdout] 790 | ... None => return Err(anyhow::anyhow!(format!("get session port with tuple {}:{} -> {}:{} error", src_addr, src_port, dst_addr, dst_po... [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `anyhow` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `anyhow` [INFO] [stdout] --> src/main.rs:786:32 [INFO] [stdout] | [INFO] [stdout] 786 | return Err(anyhow::anyhow!(format!("get invalid nat session with port, {}", dst_port))); [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `anyhow` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `anyhow` [INFO] [stdout] --> src/main.rs:771:28 [INFO] [stdout] | [INFO] [stdout] 771 | return Err(anyhow::anyhow!(format!(", {}", errors))); [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `anyhow` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `anyhow` [INFO] [stdout] --> src/main.rs:757:38 [INFO] [stdout] | [INFO] [stdout] 757 | Err(error) => return Err(anyhow::anyhow!(format!("create checked tcp packet error, {}", error))) [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `anyhow` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `anyhow` [INFO] [stdout] --> src/main.rs:740:28 [INFO] [stdout] | [INFO] [stdout] 740 | return Err(anyhow::anyhow!(format!("unsupported ipv4 protocol {} ", other))); [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `anyhow` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `anyhow` [INFO] [stdout] --> src/main.rs:736:28 [INFO] [stdout] | [INFO] [stdout] 736 | return Err(anyhow::anyhow!("tun not supported udp")); [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `anyhow` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `anyhow` [INFO] [stdout] --> src/main.rs:725:39 [INFO] [stdout] | [INFO] [stdout] 725 | Err(errors) => return Err(anyhow::anyhow!("tun not supported udp")) [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `anyhow` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `log` [INFO] [stdout] --> src/main.rs:528:17 [INFO] [stdout] | [INFO] [stdout] 528 | log::info!("network sync component stared") [INFO] [stdout] | ^^^ use of undeclared crate or module `log` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `log` [INFO] [stdout] --> src/main.rs:495:9 [INFO] [stdout] | [INFO] [stdout] 495 | log::info!("run relay server") [INFO] [stdout] | ^^^ use of undeclared crate or module `log` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `tokio` [INFO] [stdout] --> src/main.rs:1361:13 [INFO] [stdout] | [INFO] [stdout] 1361 | tokio::select! { [INFO] [stdout] | ^^^^^ use of undeclared crate or module `tokio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `log` [INFO] [stdout] --> src/main.rs:1155:25 [INFO] [stdout] | [INFO] [stdout] 1155 | log::error!("create regex {} error, {}", host, errors); [INFO] [stdout] | ^^^ use of undeclared crate or module `log` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `log` [INFO] [stdout] --> src/main.rs:1126:9 [INFO] [stdout] | [INFO] [stdout] 1126 | log::info!("start dns server at {}", self.dns_listen); [INFO] [stdout] | ^^^ use of undeclared crate or module `log` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `log` [INFO] [stdout] --> src/main.rs:1101:21 [INFO] [stdout] | [INFO] [stdout] 1101 | log::error!("resolve host {} error", host); [INFO] [stdout] | ^^^ use of undeclared crate or module `log` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `log` [INFO] [stdout] --> src/main.rs:1075:17 [INFO] [stdout] | [INFO] [stdout] 1075 | log::info!("get host from fake_ip {} success, host {}", dst_addr.to_string(), host); [INFO] [stdout] | ^^^ use of undeclared crate or module `log` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `log` [INFO] [stdout] --> src/main.rs:1070:17 [INFO] [stdout] | [INFO] [stdout] 1070 | log::error!("get host from fake_ip {} error", dst_addr.to_string()); [INFO] [stdout] | ^^^ use of undeclared crate or module `log` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `log` [INFO] [stdout] --> src/main.rs:1033:29 [INFO] [stdout] | [INFO] [stdout] 1033 | ... log::info!("reject connection to {}:{}",origin_host_port.0, origin_host_port.1) [INFO] [stdout] | ^^^ use of undeclared crate or module `log` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `log` [INFO] [stdout] --> src/main.rs:1000:45 [INFO] [stdout] | [INFO] [stdout] 1000 | ... log::info!("connect to {}:{}", direct_address_port.0, direct_address_port.1); [INFO] [stdout] | ^^^ use of undeclared crate or module `log` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `log` [INFO] [stdout] --> src/main.rs:982:49 [INFO] [stdout] | [INFO] [stdout] 982 | ... log::info!("try connect to timeout"); [INFO] [stdout] | ^^^ use of undeclared crate or module `log` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `log` [INFO] [stdout] --> src/main.rs:978:41 [INFO] [stdout] | [INFO] [stdout] 978 | ... log::info!("connect to {}:{}", direct_address_port.0, direct_address_port.1); [INFO] [stdout] | ^^^ use of undeclared crate or module `log` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `log` [INFO] [stdout] --> src/main.rs:943:37 [INFO] [stdout] | [INFO] [stdout] 943 | ... log::error!("session {} => connect real addr {}:{} error, {}", session_port, &host, port, errors); [INFO] [stdout] | ^^^ use of undeclared crate or module `log` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `log` [INFO] [stdout] --> src/main.rs:939:37 [INFO] [stdout] | [INFO] [stdout] 939 | ... log::info!("session {} => connect real_addr {}:{}", session_port, &host, port); [INFO] [stdout] | ^^^ use of undeclared crate or module `log` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `log` [INFO] [stdout] --> src/main.rs:931:37 [INFO] [stdout] | [INFO] [stdout] 931 | ... log::error!("get host from fake_ip {} error", dst_addr.to_string()); [INFO] [stdout] | ^^^ use of undeclared crate or module `log` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `log` [INFO] [stdout] --> src/main.rs:914:29 [INFO] [stdout] | [INFO] [stdout] 914 | ... log::error!("get host from fake_ip {} error", dst_addr.to_string()); [INFO] [stdout] | ^^^ use of undeclared crate or module `log` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `log` [INFO] [stdout] --> src/main.rs:905:17 [INFO] [stdout] | [INFO] [stdout] 905 | log::info!("real address is {}:{} -> {}:{}", src_addr, src_port, dst_addr, dst_port); [INFO] [stdout] | ^^^ use of undeclared crate or module `log` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `log` [INFO] [stdout] --> src/main.rs:902:17 [INFO] [stdout] | [INFO] [stdout] 902 | log::warn!("invalid session port {}", session_port); [INFO] [stdout] | ^^^ use of undeclared crate or module `log` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `log` [INFO] [stdout] --> src/main.rs:894:17 [INFO] [stdout] | [INFO] [stdout] 894 | log::error!("get nat session manager error, {}", errors); [INFO] [stdout] | ^^^ use of undeclared crate or module `log` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `log` [INFO] [stdout] --> src/main.rs:890:9 [INFO] [stdout] | [INFO] [stdout] 890 | log::info!("tun tcp relay server accept relay src socket {} ", socket_addr.to_string()); [INFO] [stdout] | ^^^ use of undeclared crate or module `log` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `log` [INFO] [stdout] --> src/main.rs:883:9 [INFO] [stdout] | [INFO] [stdout] 883 | log::info!("tun tcp relay server listen on {}:{}", listen_addr.0, listen_addr.1); [INFO] [stdout] | ^^^ use of undeclared crate or module `log` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `log` [INFO] [stdout] --> src/main.rs:878:17 [INFO] [stdout] | [INFO] [stdout] 878 | log::error!("bind tun tcp server error {}", err.to_string()); [INFO] [stdout] | ^^^ use of undeclared crate or module `log` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `log` [INFO] [stdout] --> src/main.rs:865:17 [INFO] [stdout] | [INFO] [stdout] 865 | log::info!("recycle invalid session port complete at time {}", NatSessionManager::get_now_time()); [INFO] [stdout] | ^^^ use of undeclared crate or module `log` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `log` [INFO] [stdout] --> src/main.rs:862:17 [INFO] [stdout] | [INFO] [stdout] 862 | log::info!("start recycle invalid session port at time {}", NatSessionManager::get_now_time()); [INFO] [stdout] | ^^^ use of undeclared crate or module `log` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `log` [INFO] [stdout] --> src/main.rs:710:21 [INFO] [stdout] | [INFO] [stdout] 710 | log::error!("transfer tcp packet error, {}", errors); [INFO] [stdout] | ^^^ use of undeclared crate or module `log` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `log` [INFO] [stdout] --> src/main.rs:590:13 [INFO] [stdout] | [INFO] [stdout] 590 | log::info!("start tcp relay sever complete"); [INFO] [stdout] | ^^^ use of undeclared crate or module `log` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `log` [INFO] [stdout] --> src/main.rs:588:13 [INFO] [stdout] | [INFO] [stdout] 588 | log::info!("start tcp relay sever"); [INFO] [stdout] | ^^^ use of undeclared crate or module `log` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `log` [INFO] [stdout] --> src/main.rs:577:13 [INFO] [stdout] | [INFO] [stdout] 577 | log::info!("start run dns sever complete"); [INFO] [stdout] | ^^^ use of undeclared crate or module `log` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `log` [INFO] [stdout] --> src/main.rs:575:13 [INFO] [stdout] | [INFO] [stdout] 575 | log::info!("start run dns sever"); [INFO] [stdout] | ^^^ use of undeclared crate or module `log` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `log` [INFO] [stdout] --> src/main.rs:561:17 [INFO] [stdout] | [INFO] [stdout] 561 | log::error!("create runtime error, {}", errors); [INFO] [stdout] | ^^^ use of undeclared crate or module `log` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `log` [INFO] [stdout] --> src/main.rs:555:9 [INFO] [stdout] | [INFO] [stdout] 555 | log::info!("run async component"); [INFO] [stdout] | ^^^ use of undeclared crate or module `log` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `log` [INFO] [stdout] --> src/main.rs:541:9 [INFO] [stdout] | [INFO] [stdout] 541 | log::info!("run sync component"); [INFO] [stdout] | ^^^ use of undeclared crate or module `log` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `log` [INFO] [stdout] --> src/main.rs:531:17 [INFO] [stdout] | [INFO] [stdout] 531 | log::info!("network sync component start fail"); [INFO] [stdout] | ^^^ use of undeclared crate or module `log` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `log` [INFO] [stdout] --> src/main.rs:513:9 [INFO] [stdout] | [INFO] [stdout] 513 | log::info!("run dns server, listen at {}", self.dns_listen); [INFO] [stdout] | ^^^ use of undeclared crate or module `log` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `log` [INFO] [stdout] --> src/main.rs:499:9 [INFO] [stdout] | [INFO] [stdout] 499 | log::info!("setup run dns server, listen at {}", self.dns_listen); [INFO] [stdout] | ^^^ use of undeclared crate or module `log` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `log` [INFO] [stdout] --> src/main.rs:321:29 [INFO] [stdout] | [INFO] [stdout] 321 | ... log::info!("Add Server"); [INFO] [stdout] | ^^^ use of undeclared crate or module `log` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `log` [INFO] [stdout] --> src/main.rs:195:13 [INFO] [stdout] | [INFO] [stdout] 195 | log::info!("recycle port {}, total recycle port count {}", port, self.recycle_port_list.len()); [INFO] [stdout] | ^^^ use of undeclared crate or module `log` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `log` [INFO] [stdout] --> src/main.rs:174:17 [INFO] [stdout] | [INFO] [stdout] 174 | log::info!("get available recycle port {}", port); [INFO] [stdout] | ^^^ use of undeclared crate or module `log` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `log` [INFO] [stdout] --> src/main.rs:170:17 [INFO] [stdout] | [INFO] [stdout] 170 | log::info!("get new calculate next port {}", port); [INFO] [stdout] | ^^^ use of undeclared crate or module `log` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `log` [INFO] [stdout] --> src/main.rs:166:9 [INFO] [stdout] | [INFO] [stdout] 166 | log::info!("current recycle port queue count {}", self.recycle_port_list.len()); [INFO] [stdout] | ^^^ use of undeclared crate or module `log` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `log` [INFO] [stdout] --> src/sys/sys.rs:130:5 [INFO] [stdout] | [INFO] [stdout] 130 | log::info!(">>> - {} {:?}", cmd, args); [INFO] [stdout] | ^^^ use of undeclared crate or module `log` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `log` [INFO] [stdout] --> src/dns/server.rs:181:13 [INFO] [stdout] | [INFO] [stdout] 181 | log::info!("Receive dns query, src address {} ", src.to_string()); [INFO] [stdout] | ^^^ use of undeclared crate or module `log` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `tracing` [INFO] [stdout] --> src/dns/resolve.rs:589:17 [INFO] [stdout] | [INFO] [stdout] 589 | tracing::error!("!!! Resolve host [{}] error, msg: {} ", qname, e.to_string()); [INFO] [stdout] | ^^^^^^^ use of undeclared crate or module `tracing` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `log` [INFO] [stdout] --> src/dns/resolve.rs:387:9 [INFO] [stdout] | [INFO] [stdout] 387 | log::info!(">>>> {:?}", self.domain_map); [INFO] [stdout] | ^^^ use of undeclared crate or module `log` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `tracing` [INFO] [stdout] --> src/dns/resolve.rs:263:9 [INFO] [stdout] | [INFO] [stdout] 263 | tracing::info!("Resolve host [{}] ", qname); [INFO] [stdout] | ^^^^^^^ use of undeclared crate or module `tracing` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `tracing` [INFO] [stdout] --> src/dns/resolve.rs:314:17 [INFO] [stdout] | [INFO] [stdout] 314 | tracing::error!("!!! Resolve host [{}] error, msg: {} ", qname, e.to_string()); [INFO] [stdout] | ^^^^^^^ use of undeclared crate or module `tracing` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the macro `info` [INFO] [stdout] --> src/sys/sys.rs:115:5 [INFO] [stdout] | [INFO] [stdout] 115 | info!("Primary netowrk service is {}", &network); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the macro `info` [INFO] [stdout] --> src/sys/sys.rs:93:5 [INFO] [stdout] | [INFO] [stdout] 93 | info!("Primary device is {}", device); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the macro `info` [INFO] [stdout] --> src/sys/sys.rs:62:13 [INFO] [stdout] | [INFO] [stdout] 62 | info!("Restore original DNS: {:?}", original_dns); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the attribute macro `async_trait` [INFO] [stdout] --> src/dns/resolve.rs:596:3 [INFO] [stdout] | [INFO] [stdout] 596 | #[async_trait] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the attribute macro `async_trait` [INFO] [stdout] --> src/dns/resolve.rs:384:3 [INFO] [stdout] | [INFO] [stdout] 384 | #[async_trait] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the attribute macro `async_trait` [INFO] [stdout] --> src/dns/resolve.rs:259:3 [INFO] [stdout] | [INFO] [stdout] 259 | #[async_trait] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the attribute macro `async_trait` [INFO] [stdout] --> src/dns/resolve.rs:214:3 [INFO] [stdout] | [INFO] [stdout] 214 | #[async_trait] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the attribute macro `async_trait` [INFO] [stdout] --> src/dns/resolve.rs:60:3 [INFO] [stdout] | [INFO] [stdout] 60 | #[async_trait] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the attribute macro `async_trait` [INFO] [stdout] --> src/dns/resolve.rs:28:3 [INFO] [stdout] | [INFO] [stdout] 28 | #[async_trait] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the attribute macro `async_trait` [INFO] [stdout] --> src/dns/client.rs:218:3 [INFO] [stdout] | [INFO] [stdout] 218 | #[async_trait] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the macro `error` [INFO] [stdout] --> src/dns/client.rs:121:21 [INFO] [stdout] | [INFO] [stdout] 121 | error!("invalid udp packet"); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the macro `trace` [INFO] [stdout] --> src/dns/client.rs:110:17 [INFO] [stdout] | [INFO] [stdout] 110 | trace!(size = size, src = ?src, "recv dns packet from udp"); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the macro `trace_span` [INFO] [stdout] --> src/dns/client.rs:88:25 [INFO] [stdout] | [INFO] [stdout] 88 | .instrument(trace_span!("background dns runner")), [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the macro `error` [INFO] [stdout] --> src/dns/client.rs:83:29 [INFO] [stdout] | [INFO] [stdout] 83 | ... error!(error=?e, "dns error"); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the attribute macro `async_trait` [INFO] [stdout] --> src/dns/client.rs:22:3 [INFO] [stdout] | [INFO] [stdout] 22 | #[async_trait] [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 type `RData` [INFO] [stdout] --> src/dns/resolve.rs:272:29 [INFO] [stdout] | [INFO] [stdout] 272 | ... RData::A(ip) => { [INFO] [stdout] | ^^^^^ use of undeclared type `RData` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `RData` [INFO] [stdout] --> src/dns/resolve.rs:280:29 [INFO] [stdout] | [INFO] [stdout] 280 | ... RData::AAAA(ip) => { [INFO] [stdout] | ^^^^^ use of undeclared type `RData` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `RData` [INFO] [stdout] --> src/dns/resolve.rs:547:29 [INFO] [stdout] | [INFO] [stdout] 547 | ... RData::A(ip) => { [INFO] [stdout] | ^^^^^ use of undeclared type `RData` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `RData` [INFO] [stdout] --> src/dns/resolve.rs:555:29 [INFO] [stdout] | [INFO] [stdout] 555 | ... RData::AAAA(ip) => { [INFO] [stdout] | ^^^^^ use of undeclared type `RData` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Color32` [INFO] [stdout] --> src/gui/toggle.rs:19:30 [INFO] [stdout] | [INFO] [stdout] 19 | let selected_color = Color32::from_rgb(0x20, 0xaf, 0x24); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Color32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `eframe` [INFO] [stdout] --> src/main.rs:71:19 [INFO] [stdout] | [INFO] [stdout] 71 | let options = eframe::NativeOptions { [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `eframe` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `eframe` [INFO] [stdout] --> src/main.rs:76:5 [INFO] [stdout] | [INFO] [stdout] 76 | eframe::run_native(Box::new(app), options); [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `eframe` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `log4rs` [INFO] [stdout] --> src/main.rs:80:5 [INFO] [stdout] | [INFO] [stdout] 80 | log4rs::init_file("config/logrs.yaml", Default::default()).unwrap(); [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `log4rs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `RichText` [INFO] [stdout] --> src/main.rs:249:81 [INFO] [stdout] | [INFO] [stdout] 249 | if ui.selectable_label(menu_item.to_string() == self.selected_menu, RichText::new(menu_title).strong()).clicked() { [INFO] [stdout] | ^^^^^^^^ use of undeclared type `RichText` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `eframe` [INFO] [stdout] --> src/main.rs:257:6 [INFO] [stdout] | [INFO] [stdout] 257 | impl eframe::epi::App for App { [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `eframe` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `RichText` [INFO] [stdout] --> src/main.rs:285:38 [INFO] [stdout] | [INFO] [stdout] 285 | ... ui.label(RichText::new("network started").color(Color32::from_rgb(0x20, 0xaf, 0x24)).strong()); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `RichText` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Color32` [INFO] [stdout] --> src/main.rs:285:77 [INFO] [stdout] | [INFO] [stdout] 285 | ... ui.label(RichText::new("network started").color(Color32::from_rgb(0x20, 0xaf, 0x24)).strong()); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Color32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `RichText` [INFO] [stdout] --> src/main.rs:287:38 [INFO] [stdout] | [INFO] [stdout] 287 | ... ui.label(RichText::new("network not started").color(Color32::RED).strong()); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `RichText` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Color32` [INFO] [stdout] --> src/main.rs:287:81 [INFO] [stdout] | [INFO] [stdout] 287 | ... ui.label(RichText::new("network not started").color(Color32::RED).strong()); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Color32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `eframe` [INFO] [stdout] --> src/main.rs:428:6 [INFO] [stdout] | [INFO] [stdout] 428 | impl eframe::epi::App for OverviewModule { [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `eframe` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `NameServerConfigGroup` [INFO] [stdout] --> src/main.rs:596:44 [INFO] [stdout] | [INFO] [stdout] 596 | let mut name_server_config_group = NameServerConfigGroup::with_capacity(num_concurrent_reqs); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ use of undeclared type `NameServerConfigGroup` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Protocol` [INFO] [stdout] --> src/main.rs:600:27 [INFO] [stdout] | [INFO] [stdout] 600 | protocol: Protocol::Udp, [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Protocol` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Protocol` [INFO] [stdout] --> src/main.rs:610:27 [INFO] [stdout] | [INFO] [stdout] 610 | protocol: Protocol::Udp, [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Protocol` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Protocol` [INFO] [stdout] --> src/main.rs:620:27 [INFO] [stdout] | [INFO] [stdout] 620 | protocol: Protocol::Tcp, [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Protocol` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `anyhow` [INFO] [stdout] --> src/main.rs:718:69 [INFO] [stdout] | [INFO] [stdout] 718 | relay_addr: Ipv4Addr, relay_port: u16) -> anyhow::Result<()> [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `anyhow` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `IpProtocol` [INFO] [stdout] --> src/main.rs:729:13 [INFO] [stdout] | [INFO] [stdout] 729 | IpProtocol::Tcp => { [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `IpProtocol` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `IpProtocol` [INFO] [stdout] --> src/main.rs:735:13 [INFO] [stdout] | [INFO] [stdout] 735 | IpProtocol::Udp => { [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `IpProtocol` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `anyhow` [INFO] [stdout] --> src/main.rs:749:71 [INFO] [stdout] | [INFO] [stdout] 749 | ... mut ipv4_packet: Ipv4Packet<&mut [u8]>) -> anyhow::Result<()> [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `anyhow` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TcpPacket` [INFO] [stdout] --> src/main.rs:755:36 [INFO] [stdout] | [INFO] [stdout] 755 | let mut tcp_packet = match TcpPacket::new_checked(ipv4_packet.payload_mut()) { [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `TcpPacket` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `anyhow` [INFO] [stdout] --> src/main.rs:808:85 [INFO] [stdout] | [INFO] [stdout] 808 | fn read_ipv4_packet<'a, T>(&self, mut tun_socket: T, byte_mut: &'a mut [u8]) -> anyhow::Result> where T: Rea... [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `anyhow` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `IpVersion` [INFO] [stdout] --> src/main.rs:816:32 [INFO] [stdout] | [INFO] [stdout] 816 | let ip_version = match IpVersion::of_packet(byte_mut) { [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `IpVersion` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `IpVersion` [INFO] [stdout] --> src/main.rs:825:26 [INFO] [stdout] | [INFO] [stdout] 825 | if ip_version == IpVersion::Ipv6 { [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `IpVersion` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Ipv4Packet` [INFO] [stdout] --> src/main.rs:829:15 [INFO] [stdout] | [INFO] [stdout] 829 | match Ipv4Packet::new_checked(byte_mut) { [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `Ipv4Packet` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `tokio` [INFO] [stdout] --> src/main.rs:859:9 [INFO] [stdout] | [INFO] [stdout] 859 | tokio::spawn(async move { [INFO] [stdout] | ^^^^^ use of undeclared crate or module `tokio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `tokio` [INFO] [stdout] --> src/main.rs:861:17 [INFO] [stdout] | [INFO] [stdout] 861 | tokio::time::sleep(Duration::from_secs(60)).await; [INFO] [stdout] | ^^^^^ use of undeclared crate or module `tokio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `tokio` [INFO] [stdout] --> src/main.rs:909:17 [INFO] [stdout] | [INFO] [stdout] 909 | tokio::spawn(async move { [INFO] [stdout] | ^^^^^ use of undeclared crate or module `tokio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `tokio_socks` [INFO] [stdout] --> src/main.rs:962:52 [INFO] [stdout] | [INFO] [stdout] 962 | ... let mut proxy_socket = tokio_socks::tcp::Socks5Stream::connect((proxy_direct_ip.as_str(), proxy_port), target_addr).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared crate or module `tokio_socks` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `tokio_socks` [INFO] [stdout] --> src/main.rs:1026:56 [INFO] [stdout] | [INFO] [stdout] 1026 | ... let mut proxy_socket = tokio_socks::tcp::Socks5Stream::connect((proxy_direct_ip.as_str(), proxy_port), target_addr).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared crate or module `tokio_socks` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `tokio` [INFO] [stdout] --> src/main.rs:1041:42 [INFO] [stdout] | [INFO] [stdout] 1041 | pub async fn connect_with_timeout(addr: A, timeout_sec: Duration) -> anyhow::Result { [INFO] [stdout] | ^^^^^ use of undeclared crate or module `tokio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `anyhow` [INFO] [stdout] --> src/main.rs:1041:104 [INFO] [stdout] | [INFO] [stdout] 1041 | pub async fn connect_with_timeout(addr: A, timeout_sec: Duration) -> anyhow::Result { [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `anyhow` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `tokio` [INFO] [stdout] --> src/main.rs:1122:9 [INFO] [stdout] | [INFO] [stdout] 1122 | tokio::spawn(self.start_config_dns_server(config_dns_resolver)); [INFO] [stdout] | ^^^^^ use of undeclared crate or module `tokio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `voluntary_servitude` [INFO] [stdout] --> src/main.rs:1137:32 [INFO] [stdout] | [INFO] [stdout] 1137 | host_regex_route_strategy: voluntary_servitude::VS<(String, regex::Regex, HostRouteStrategy)>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ use of undeclared crate or module `voluntary_servitude` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `regex` [INFO] [stdout] --> src/main.rs:1137:65 [INFO] [stdout] | [INFO] [stdout] 1137 | host_regex_route_strategy: voluntary_servitude::VS<(String, regex::Regex, HostRouteStrategy)>, [INFO] [stdout] | ^^^^^ use of undeclared crate or module `regex` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `regex` [INFO] [stdout] --> src/main.rs:1150:44 [INFO] [stdout] | [INFO] [stdout] 1150 | let regex_route_list: Vec<(String, regex::Regex, HostRouteStrategy)> = host_regex_route_strategy.into_iter() [INFO] [stdout] | ^^^^^ use of undeclared crate or module `regex` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `regex` [INFO] [stdout] --> src/main.rs:1152:23 [INFO] [stdout] | [INFO] [stdout] 1152 | match regex::Regex::new(&host) { [INFO] [stdout] | ^^^^^ use of undeclared crate or module `regex` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `voluntary_servitude` [INFO] [stdout] --> src/main.rs:1164:40 [INFO] [stdout] | [INFO] [stdout] 1164 | host_regex_route_strategy: voluntary_servitude::VS::from_iter(regex_route_list), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ use of undeclared crate or module `voluntary_servitude` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `regex` [INFO] [stdout] --> src/main.rs:1170:28 [INFO] [stdout] | [INFO] [stdout] 1170 | if let Ok(regex) = regex::Regex::new(&host) { [INFO] [stdout] | ^^^^^ use of undeclared crate or module `regex` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `voluntary_servitude` [INFO] [stdout] --> src/main.rs:1238:31 [INFO] [stdout] | [INFO] [stdout] 1238 | pub proxy_server_configs: voluntary_servitude::VS<(ProxyServerConfig)>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ use of undeclared crate or module `voluntary_servitude` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `anyhow` [INFO] [stdout] --> src/main.rs:1251:60 [INFO] [stdout] | [INFO] [stdout] 1251 | pub fn add_config(&self, config: ProxyServerConfig) -> anyhow::Result<()> { [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `anyhow` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `voluntary_servitude` [INFO] [stdout] --> src/main.rs:1263:27 [INFO] [stdout] | [INFO] [stdout] 1263 | let new_configs = voluntary_servitude::VS::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ use of undeclared crate or module `voluntary_servitude` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `voluntary_servitude` [INFO] [stdout] --> src/main.rs:1276:27 [INFO] [stdout] | [INFO] [stdout] 1276 | let new_configs = voluntary_servitude::VS::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ use of undeclared crate or module `voluntary_servitude` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `RwLock` in this scope [INFO] [stdout] --> src/dns/authority.rs:158:12 [INFO] [stdout] | [INFO] [stdout] 158 | zones: RwLock, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use crate::RwLock; [INFO] [stdout] | [INFO] [stdout] 3 | use std::sync::RwLock; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `RwLock` [INFO] [stdout] --> src/dns/authority.rs:164:20 [INFO] [stdout] | [INFO] [stdout] 164 | zones: RwLock::new(Zones::new()), [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use crate::RwLock; [INFO] [stdout] | [INFO] [stdout] 3 | use std::sync::RwLock; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `RwLockReadGuard` in this scope [INFO] [stdout] --> src/dns/authority.rs:234:33 [INFO] [stdout] | [INFO] [stdout] 234 | pub async fn read(&self) -> RwLockReadGuard<'_, Zones> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 3 | use std::sync::RwLockReadGuard; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `RwLockWriteGuard` in this scope [INFO] [stdout] --> src/dns/authority.rs:238:34 [INFO] [stdout] | [INFO] [stdout] 238 | pub async fn write(&self) -> RwLockWriteGuard<'_, Zones> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 3 | use std::sync::RwLockWriteGuard; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Sender` in this scope [INFO] [stdout] --> src/dns/client.rs:53:13 [INFO] [stdout] | [INFO] [stdout] 53 | sender: Sender, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: a trait with a similar name exists [INFO] [stdout] | [INFO] [stdout] 53 | sender: Send, [INFO] [stdout] | ~~~~ [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 3 | use std::sync::mpsc::Sender; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Receiver` in this scope [INFO] [stdout] --> src/dns/client.rs:54:15 [INFO] [stdout] | [INFO] [stdout] 54 | receiver: Receiver, [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::ops::Receiver; [INFO] [stdout] | [INFO] [stdout] 3 | use std::ops::Receiver; [INFO] [stdout] | [INFO] [stdout] 3 | use std::sync::mpsc::Receiver; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Sender` in this scope [INFO] [stdout] --> src/dns/client.rs:60:11 [INFO] [stdout] | [INFO] [stdout] 60 | resp: Sender, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: a trait with a similar name exists [INFO] [stdout] | [INFO] [stdout] 60 | resp: Send, [INFO] [stdout] | ~~~~ [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 3 | use std::sync::mpsc::Sender; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `bounded` in this scope [INFO] [stdout] --> src/dns/client.rs:65:34 [INFO] [stdout] | [INFO] [stdout] 65 | let (sender, receiver) = bounded(1); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `UdpSocket` [INFO] [stdout] --> src/dns/client.rs:96:31 [INFO] [stdout] | [INFO] [stdout] 96 | let socket = Arc::new(UdpSocket::bind(addr).await?); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 3 | use std::net::UdpSocket; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Sender` in this scope [INFO] [stdout] --> src/dns/client.rs:97:50 [INFO] [stdout] | [INFO] [stdout] 97 | let req_resp_map: Arc>>> = [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: a trait with a similar name exists [INFO] [stdout] | [INFO] [stdout] 97 | let req_resp_map: Arc>>> = [INFO] [stdout] | ~~~~ [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 3 | use std::sync::mpsc::Sender; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `timeout` in this scope [INFO] [stdout] --> src/dns/client.rs:134:28 [INFO] [stdout] | [INFO] [stdout] 134 | let size = timeout( [INFO] [stdout] | ^^^^^^^ help: you might have meant to use the available field: `self.timeout` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `bounded` in this scope [INFO] [stdout] --> src/dns/client.rs:187:34 [INFO] [stdout] | [INFO] [stdout] 187 | let (sender, receiver) = bounded(1); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `UdpSocket` [INFO] [stdout] --> src/dns/server.rs:168:31 [INFO] [stdout] | [INFO] [stdout] 168 | let socket = Arc::new(UdpSocket::bind(&self.context.listen).await.unwrap()); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 3 | use std::net::UdpSocket; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `spawn` in this scope [INFO] [stdout] --> src/dns/server.rs:185:13 [INFO] [stdout] | [INFO] [stdout] 185 | spawn(async move { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use crate::spawn; [INFO] [stdout] | [INFO] [stdout] 3 | use std::thread::spawn; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Ui` in this scope [INFO] [stdout] --> src/main.rs:238:50 [INFO] [stdout] | [INFO] [stdout] 238 | fn main_function_menu_ui(&mut self, ui: &mut Ui) { [INFO] [stdout] | ^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Context` in this scope [INFO] [stdout] --> src/main.rs:258:32 [INFO] [stdout] | [INFO] [stdout] 258 | fn update(&mut self, ctx: &Context, frame: &Frame) { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 | use core::task::Context; [INFO] [stdout] | [INFO] [stdout] 1 | use std::task::Context; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Frame` in this scope [INFO] [stdout] --> src/main.rs:258:49 [INFO] [stdout] | [INFO] [stdout] 258 | fn update(&mut self, ctx: &Context, frame: &Frame) { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Layout` [INFO] [stdout] --> src/main.rs:273:36 [INFO] [stdout] | [INFO] [stdout] 273 | ui.with_layout(Layout::right_to_left(), |ui| { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 | use core::alloc::Layout; [INFO] [stdout] | [INFO] [stdout] 1 | use std::alloc::Layout; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Layout` [INFO] [stdout] --> src/main.rs:314:36 [INFO] [stdout] | [INFO] [stdout] 314 | ui.with_layout(Layout::right_to_left(), |ui| { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 | use core::alloc::Layout; [INFO] [stdout] | [INFO] [stdout] 1 | use std::alloc::Layout; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Context` in this scope [INFO] [stdout] --> src/main.rs:430:32 [INFO] [stdout] | [INFO] [stdout] 430 | fn update(&mut self, ctx: &Context, frame: &Frame) { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 | use core::task::Context; [INFO] [stdout] | [INFO] [stdout] 1 | use std::task::Context; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Frame` in this scope [INFO] [stdout] --> src/main.rs:430:49 [INFO] [stdout] | [INFO] [stdout] 430 | fn update(&mut self, ctx: &Context, frame: &Frame) { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DNSSetup` in this scope [INFO] [stdout] --> src/main.rs:470:20 [INFO] [stdout] | [INFO] [stdout] 470 | pub dns_setup: DNSSetup, [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use crate::sys::sys::DNSSetup; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `tokio` [INFO] [stdout] --> src/main.rs:556:46 [INFO] [stdout] | [INFO] [stdout] 556 | let run_time = match tokio::runtime::Builder::new_current_thread().enable_all().build() { [INFO] [stdout] | ^^^^^^^ not found in `tokio::runtime` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use std::thread::Builder; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `ResolverConfig` in this scope [INFO] [stdout] --> src/main.rs:594:42 [INFO] [stdout] | [INFO] [stdout] 594 | fn default_resolver_config(&self) -> ResolverConfig { [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `NameServerConfig` in this scope [INFO] [stdout] --> src/main.rs:598:13 [INFO] [stdout] | [INFO] [stdout] 598 | NameServerConfig { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: a struct with a similar name exists: `ProxyServerConfig` [INFO] [stdout] ... [INFO] [stdout] 1296 | pub struct ProxyServerConfig{ [INFO] [stdout] | ---------------------------- similarly named struct `ProxyServerConfig` defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `NameServerConfig` in this scope [INFO] [stdout] --> src/main.rs:608:13 [INFO] [stdout] | [INFO] [stdout] 608 | NameServerConfig { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: a struct with a similar name exists: `ProxyServerConfig` [INFO] [stdout] ... [INFO] [stdout] 1296 | pub struct ProxyServerConfig{ [INFO] [stdout] | ---------------------------- similarly named struct `ProxyServerConfig` defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `NameServerConfig` in this scope [INFO] [stdout] --> src/main.rs:618:13 [INFO] [stdout] | [INFO] [stdout] 618 | NameServerConfig { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: a struct with a similar name exists: `ProxyServerConfig` [INFO] [stdout] ... [INFO] [stdout] 1296 | pub struct ProxyServerConfig{ [INFO] [stdout] | ---------------------------- similarly named struct `ProxyServerConfig` defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `ResolverOpts` in this scope [INFO] [stdout] --> src/main.rs:629:40 [INFO] [stdout] | [INFO] [stdout] 629 | fn default_resolver_opts(&self) -> ResolverOpts { [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `tun_socket` in this scope [INFO] [stdout] --> src/main.rs:703:37 [INFO] [stdout] | [INFO] [stdout] 703 | self.run_ip_packet_transfer(tun_socket, relay_addr, relay_port); [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Ipv4Packet` in this scope [INFO] [stdout] --> src/main.rs:749:45 [INFO] [stdout] | [INFO] [stdout] 749 | ... mut ipv4_packet: Ipv4Packet<&mut [u8]>) -> anyhow::Result<()> [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Ipv4Packet` in this scope [INFO] [stdout] --> src/main.rs:808:100 [INFO] [stdout] | [INFO] [stdout] 808 | fn read_ipv4_packet<'a, T>(&self, mut tun_socket: T, byte_mut: &'a mut [u8]) -> anyhow::Result> where T: Rea... [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TcpListener` [INFO] [stdout] --> src/main.rs:873:34 [INFO] [stdout] | [INFO] [stdout] 873 | let tcp_listener = match TcpListener::bind(listen_addr).await { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use std::net::TcpListener; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `TcpStream` in this scope [INFO] [stdout] --> src/main.rs:889:51 [INFO] [stdout] | [INFO] [stdout] 889 | async fn accept_socket(&self, mut tcp_socket: TcpStream, socket_addr: SocketAddr) { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use std::net::TcpStream; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TcpStream` [INFO] [stdout] --> src/main.rs:937:56 [INFO] [stdout] | [INFO] [stdout] 937 | ... let mut dst_socket = match TcpStream::connect((host.as_str(), port)).await { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use std::net::TcpStream; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TcpStream` [INFO] [stdout] --> src/main.rs:1001:51 [INFO] [stdout] | [INFO] [stdout] 1001 | ... match TcpStream::connect(direct_address_port).await { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use std::net::TcpStream; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `TcpStream` in this scope [INFO] [stdout] --> src/main.rs:1041:119 [INFO] [stdout] | [INFO] [stdout] 1041 | pub async fn connect_with_timeout(addr: A, timeout_sec: Duration) -> anyhow::Result { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use std::net::TcpStream; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0405]: cannot find trait `AsyncRead` in this scope [INFO] [stdout] --> src/main.rs:1344:38 [INFO] [stdout] | [INFO] [stdout] 1344 | pub struct StreamPipe where S: AsyncRead + AsyncWrite, D: AsyncRead + AsyncWrite{ [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0405]: cannot find trait `AsyncWrite` in this scope [INFO] [stdout] --> src/main.rs:1344:50 [INFO] [stdout] | [INFO] [stdout] 1344 | pub struct StreamPipe where S: AsyncRead + AsyncWrite, D: AsyncRead + AsyncWrite{ [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0405]: cannot find trait `AsyncRead` in this scope [INFO] [stdout] --> src/main.rs:1344:65 [INFO] [stdout] | [INFO] [stdout] 1344 | pub struct StreamPipe where S: AsyncRead + AsyncWrite, D: AsyncRead + AsyncWrite{ [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0405]: cannot find trait `AsyncWrite` in this scope [INFO] [stdout] --> src/main.rs:1344:77 [INFO] [stdout] | [INFO] [stdout] 1344 | pub struct StreamPipe where S: AsyncRead + AsyncWrite, D: AsyncRead + AsyncWrite{ [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0405]: cannot find trait `AsyncRead` in this scope [INFO] [stdout] --> src/main.rs:1350:39 [INFO] [stdout] | [INFO] [stdout] 1350 | impl StreamPipe where S: AsyncRead + AsyncWrite + Unpin, D: AsyncRead + AsyncWrite + Unpin { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0405]: cannot find trait `AsyncWrite` in this scope [INFO] [stdout] --> src/main.rs:1350:51 [INFO] [stdout] | [INFO] [stdout] 1350 | impl StreamPipe where S: AsyncRead + AsyncWrite + Unpin, D: AsyncRead + AsyncWrite + Unpin { [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0405]: cannot find trait `AsyncRead` in this scope [INFO] [stdout] --> src/main.rs:1350:74 [INFO] [stdout] | [INFO] [stdout] 1350 | impl StreamPipe where S: AsyncRead + AsyncWrite + Unpin, D: AsyncRead + AsyncWrite + Unpin { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0405]: cannot find trait `AsyncWrite` in this scope [INFO] [stdout] --> src/main.rs:1350:86 [INFO] [stdout] | [INFO] [stdout] 1350 | impl StreamPipe where S: AsyncRead + AsyncWrite + Unpin, D: AsyncRead + AsyncWrite + Unpin { [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::thread::sleep` [INFO] [stdout] --> src/main.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::thread::sleep; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Command` [INFO] [stdout] --> src/main.rs:5:20 [INFO] [stdout] | [INFO] [stdout] 5 | use std::process::{Command, exit}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `IpAddr`, `ToSocketAddrs` [INFO] [stdout] --> src/main.rs:6:16 [INFO] [stdout] | [INFO] [stdout] 6 | use std::net::{IpAddr, Ipv4Addr, SocketAddr, SocketAddrV4, ToSocketAddrs}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DirectDnsResolver`, `DnsResolver`, `ForwardingDnsResolver`, `UserConfigDnsResolver` [INFO] [stdout] --> src/main.rs:8:27 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::dns::resolve::{ForwardingDnsResolver, DirectDnsResolver, UserConfigDnsResolver, DnsResolver, ConfigDnsResolver, FakeIpManager,... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `MutexGuard`, `PoisonError`, `RwLock` [INFO] [stdout] --> src/main.rs:22:22 [INFO] [stdout] | [INFO] [stdout] 22 | use std::sync::{Arc, RwLock, Mutex, PoisonError, MutexGuard}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DnsPacket`, `DnsRecord`, `QueryType`, `TransientTtl` [INFO] [stdout] --> src/main.rs:26:28 [INFO] [stdout] | [INFO] [stdout] 26 | use crate::dns::protocol::{QueryType, DnsPacket, DnsRecord, TransientTtl}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^ ^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::any::Any` [INFO] [stdout] --> src/main.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 27 | use std::any::Any; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::future::Future` [INFO] [stdout] --> src/main.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 28 | use std::future::Future; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `RecvTimeoutError`, `channel` [INFO] [stdout] --> src/main.rs:36:23 [INFO] [stdout] | [INFO] [stdout] 36 | use std::sync::mpsc::{channel, RecvTimeoutError}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::hash_map::RandomState` [INFO] [stdout] --> src/main.rs:38:5 [INFO] [stdout] | [INFO] [stdout] 38 | use std::collections::hash_map::RandomState; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::iter::FromIterator` [INFO] [stdout] --> src/main.rs:42:5 [INFO] [stdout] | [INFO] [stdout] 42 | use std::iter::FromIterator; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::num::ParseIntError` [INFO] [stdout] --> src/main.rs:43:5 [INFO] [stdout] | [INFO] [stdout] 43 | use std::num::ParseIntError; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SocketAddr` [INFO] [stdout] --> src/dns/resolve.rs:19:34 [INFO] [stdout] | [INFO] [stdout] 19 | use std::net::{Ipv4Addr, IpAddr, SocketAddr}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::borrow::BorrowMut` [INFO] [stdout] --> src/dns/resolve.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | use std::borrow::BorrowMut; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::hash_map::RandomState` [INFO] [stdout] --> src/dns/resolve.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | use std::collections::hash_map::RandomState; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io` [INFO] [stdout] --> src/sys/sys.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::io; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/main.rs:1082:96 [INFO] [stdout] | [INFO] [stdout] 1082 | async fn resolve_host_ip(resolver: Arc, host: &str, port: u16) -> Option<((String, u16))> { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 1082 - async fn resolve_host_ip(resolver: Arc, host: &str, port: u16) -> Option<((String, u16))> { [INFO] [stdout] 1082 + async fn resolve_host_ip(resolver: Arc, host: &str, port: u16) -> Option<(String, u16)> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/main.rs:1175:60 [INFO] [stdout] | [INFO] [stdout] 1175 | pub fn get_route_strategy(&self, host: &str) -> Option<(HostRouteStrategy)> { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 1175 - pub fn get_route_strategy(&self, host: &str) -> Option<(HostRouteStrategy)> { [INFO] [stdout] 1175 + pub fn get_route_strategy(&self, host: &str) -> Option { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/main.rs:1238:55 [INFO] [stdout] | [INFO] [stdout] 1238 | pub proxy_server_configs: voluntary_servitude::VS<(ProxyServerConfig)>, [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 1238 - pub proxy_server_configs: voluntary_servitude::VS<(ProxyServerConfig)>, [INFO] [stdout] 1238 + pub proxy_server_configs: voluntary_servitude::VS, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 215 previous errors; 19 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0405, E0412, E0422, E0425, E0432, E0433, E0706. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0405`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rproxifier` due to 216 previous errors; 19 warnings emitted [INFO] running `Command { std: "docker" "inspect" "9324a842454be38916d1b5dc4c7f452041ec8c9f5a387494766497362c7ecf6c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9324a842454be38916d1b5dc4c7f452041ec8c9f5a387494766497362c7ecf6c", kill_on_drop: false }` [INFO] [stdout] 9324a842454be38916d1b5dc4c7f452041ec8c9f5a387494766497362c7ecf6c