[INFO] cloning repository https://github.com/Nexus-Agni/just-server-vpn-proxy [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Nexus-Agni/just-server-vpn-proxy" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FNexus-Agni%2Fjust-server-vpn-proxy", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FNexus-Agni%2Fjust-server-vpn-proxy'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] d475f3179e13abe9e60d2a5f6128d91bc82f4fbd [INFO] building Nexus-Agni/just-server-vpn-proxy against master#ad85bc524b1ad696e42061ad8338d382dffbdbe5 for pr-146237-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FNexus-Agni%2Fjust-server-vpn-proxy" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/Nexus-Agni/just-server-vpn-proxy [INFO] finished tweaking git repo https://github.com/Nexus-Agni/just-server-vpn-proxy [INFO] tweaked toml for git repo https://github.com/Nexus-Agni/just-server-vpn-proxy written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/Nexus-Agni/just-server-vpn-proxy on toolchain ad85bc524b1ad696e42061ad8338d382dffbdbe5 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/Nexus-Agni/just-server-vpn-proxy 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" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded pqcrypto-internals v0.2.10 [INFO] [stderr] Downloaded reqwest_cookie_store v0.6.0 [INFO] [stderr] Downloaded pqcrypto-traits v0.3.5 [INFO] [stderr] Downloaded async-compression v0.4.27 [INFO] [stderr] Downloaded pqcrypto-kyber v0.7.9 [INFO] [stderr] Downloaded pqcrypto-dilithium v0.5.0 [INFO] [stderr] Downloaded pqcrypto-sphincsplus v0.7.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c1ea473a035cfe031f1eab8be97d688210a90749470731ea207263bd9004ffaa [INFO] running `Command { std: "docker" "start" "-a" "c1ea473a035cfe031f1eab8be97d688210a90749470731ea207263bd9004ffaa", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c1ea473a035cfe031f1eab8be97d688210a90749470731ea207263bd9004ffaa", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c1ea473a035cfe031f1eab8be97d688210a90749470731ea207263bd9004ffaa", kill_on_drop: false }` [INFO] [stdout] c1ea473a035cfe031f1eab8be97d688210a90749470731ea207263bd9004ffaa [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] dbb8c1dc02d49fa4dfbbc9449407e514f9dd1812a3877106fbfe8aed54902468 [INFO] running `Command { std: "docker" "start" "-a" "dbb8c1dc02d49fa4dfbbc9449407e514f9dd1812a3877106fbfe8aed54902468", kill_on_drop: false }` [INFO] [stderr] Compiling cc v1.2.29 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling dunce v1.0.5 [INFO] [stderr] Compiling tokio v1.46.1 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling time v0.3.41 [INFO] [stderr] Compiling crc32fast v1.4.2 [INFO] [stderr] Compiling serde_json v1.0.140 [INFO] [stderr] Compiling icu_normalizer v2.0.0 [INFO] [stderr] Compiling idna v0.3.0 [INFO] [stderr] Compiling rand v0.9.1 [INFO] [stderr] Compiling sha1 v0.10.6 [INFO] [stderr] Compiling pqcrypto-traits v0.3.5 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling sha3 v0.10.8 [INFO] [stderr] Compiling flate2 v1.1.2 [INFO] [stderr] Compiling actix-router v0.5.3 [INFO] [stderr] Compiling idna_adapter v1.2.1 [INFO] [stderr] Compiling idna v1.0.3 [INFO] [stderr] Compiling url v2.5.4 [INFO] [stderr] Compiling publicsuffix v2.3.0 [INFO] [stderr] Compiling actix-web-codegen v4.3.0 [INFO] [stderr] Compiling openssl-sys v0.9.109 [INFO] [stderr] Compiling ring v0.17.14 [INFO] [stderr] Compiling pqcrypto-internals v0.2.10 [INFO] [stderr] Compiling zstd-sys v2.0.15+zstd.1.5.7 [INFO] [stderr] Compiling pqcrypto-sphincsplus v0.7.1 [INFO] [stderr] Compiling pqcrypto-kyber v0.7.9 [INFO] [stderr] Compiling pqcrypto-dilithium v0.5.0 [INFO] [stderr] Compiling cookie v0.17.0 [INFO] [stderr] Compiling cookie v0.16.2 [INFO] [stderr] Compiling openssl v0.10.73 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Compiling cookie_store v0.20.0 [INFO] [stderr] Compiling rustls v0.21.12 [INFO] [stderr] Compiling rustls-webpki v0.101.7 [INFO] [stderr] Compiling sct v0.7.1 [INFO] [stderr] Compiling zstd-safe v7.2.4 [INFO] [stderr] Compiling zstd v0.13.3 [INFO] [stderr] Compiling tokio-util v0.7.15 [INFO] [stderr] Compiling actix-rt v2.10.0 [INFO] [stderr] Compiling async-compression v0.4.27 [INFO] [stderr] Compiling h2 v0.3.27 [INFO] [stderr] Compiling actix-codec v0.5.2 [INFO] [stderr] Compiling actix-server v2.6.0 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling tokio-rustls v0.24.1 [INFO] [stderr] Compiling hyper v0.14.32 [INFO] [stderr] Compiling actix-http v3.11.0 [INFO] [stderr] Compiling actix-web v4.11.0 [INFO] [stderr] Compiling hyper-rustls v0.24.2 [INFO] [stderr] Compiling hyper-tls v0.5.0 [INFO] [stderr] Compiling reqwest v0.11.27 [INFO] [stderr] Compiling reqwest_cookie_store v0.6.0 [INFO] [stderr] Compiling actix-cors v0.6.5 [INFO] [stderr] Compiling vpn-server v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `actix_cors::Cors` [INFO] [stdout] --> src/main.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use actix_cors::Cors; [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 imports: `App` and `HttpServer` [INFO] [stdout] --> src/main.rs:2:22 [INFO] [stdout] | [INFO] [stdout] 2 | use actix_web::{web, App, HttpRequest, HttpResponse, HttpServer, Result}; [INFO] [stdout] | ^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `is_google_search` [INFO] [stdout] --> src/main.rs:554:9 [INFO] [stdout] | [INFO] [stdout] 554 | let is_google_search = query.url.contains("google.") && query.url.contains("/search"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_is_google_search` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::hash::Hasher` [INFO] [stdout] --> src/main.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::hash::Hasher; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `session_storage` [INFO] [stdout] --> src/main.rs:1163:28 [INFO] [stdout] | [INFO] [stdout] 1163 | fn update_advanced_session(session_storage: &SessionStorage, session_id: &str, session: &Arc>, url: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_session_storage` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `session_id` [INFO] [stdout] --> src/main.rs:1163:62 [INFO] [stdout] | [INFO] [stdout] 1163 | fn update_advanced_session(session_storage: &SessionStorage, session_id: &str, session: &Arc>, url: &str) { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_session_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/main.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 18 | struct BrowserFingerprint { [INFO] [stdout] | ------------------ fields in this struct [INFO] [stdout] 19 | user_agent: String, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 20 | sec_ch_ua: String, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 21 | sec_ch_ua_mobile: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 22 | sec_ch_ua_platform: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 23 | viewport_width: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 24 | viewport_height: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 25 | screen_width: u32, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 26 | screen_height: u32, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 27 | timezone_offset: i32, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 28 | language: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 29 | platform: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 30 | webgl_vendor: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 31 | webgl_renderer: String, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 32 | created_at: u64, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BrowserFingerprint` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BrowserSession` is never constructed [INFO] [stdout] --> src/main.rs:83:8 [INFO] [stdout] | [INFO] [stdout] 83 | struct BrowserSession { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `update_activity`, and `get_session_duration` are never used [INFO] [stdout] --> src/main.rs:94:8 [INFO] [stdout] | [INFO] [stdout] 93 | impl BrowserSession { [INFO] [stdout] | ------------------- associated items in this implementation [INFO] [stdout] 94 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 109 | fn update_activity(&mut self, url: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 117 | fn get_session_duration(&self) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_or_create_session` is never used [INFO] [stdout] --> src/main.rs:135:4 [INFO] [stdout] | [INFO] [stdout] 135 | fn get_or_create_session(session_storage: &SessionStorage, session_id: &str) -> Arc> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `update_session` is never used [INFO] [stdout] --> src/main.rs:139:4 [INFO] [stdout] | [INFO] [stdout] 139 | fn update_session(session_storage: &SessionStorage, session_id: &str, session: Arc>, url: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_realistic_user_agent` is never used [INFO] [stdout] --> src/main.rs:143:4 [INFO] [stdout] | [INFO] [stdout] 143 | fn get_realistic_user_agent(_url: &str) -> &'static str { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_google_specific_headers` is never used [INFO] [stdout] --> src/main.rs:148:4 [INFO] [stdout] | [INFO] [stdout] 148 | fn generate_google_specific_headers(session: &BrowserSession, url: &str, referer: Option<&str>) -> Vec<(String, String)> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_google_client_data` is never used [INFO] [stdout] --> src/main.rs:197:4 [INFO] [stdout] | [INFO] [stdout] 197 | fn generate_google_client_data(fp: &BrowserFingerprint) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_realistic_headers` is never used [INFO] [stdout] --> src/main.rs:222:4 [INFO] [stdout] | [INFO] [stdout] 222 | fn get_realistic_headers(url: &str, method: &str) -> Vec<(&'static str, String)> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_hop_by_hop_header` is never used [INFO] [stdout] --> src/main.rs:240:4 [INFO] [stdout] | [INFO] [stdout] 240 | fn is_hop_by_hop_header(name: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_already_set_header` is never used [INFO] [stdout] --> src/main.rs:248:4 [INFO] [stdout] | [INFO] [stdout] 248 | fn is_already_set_header(name: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Session` is never constructed [INFO] [stdout] --> src/main.rs:264:8 [INFO] [stdout] | [INFO] [stdout] 264 | struct Session { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `update_visit` are never used [INFO] [stdout] --> src/main.rs:272:8 [INFO] [stdout] | [INFO] [stdout] 271 | impl Session { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] 272 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 293 | fn update_visit(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `prefetch_google_homepage` is never used [INFO] [stdout] --> src/main.rs:299:10 [INFO] [stdout] | [INFO] [stdout] 299 | async fn prefetch_google_homepage(client: &Client) -> Result<(), reqwest::Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `simulate_google_browsing_behavior` is never used [INFO] [stdout] --> src/main.rs:318:10 [INFO] [stdout] | [INFO] [stdout] 318 | async fn simulate_google_browsing_behavior(session: &BrowserSession, target_url: &str) -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `simulate_browsing_behavior` is never used [INFO] [stdout] --> src/main.rs:410:10 [INFO] [stdout] | [INFO] [stdout] 410 | async fn simulate_browsing_behavior(client: &Client, target_url: &str) -> Result<(), reqwest::Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_public_ip` is never used [INFO] [stdout] --> src/main.rs:460:10 [INFO] [stdout] | [INFO] [stdout] 460 | async fn get_public_ip() -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ProxyRequest` is never constructed [INFO] [stdout] --> src/main.rs:494:8 [INFO] [stdout] | [INFO] [stdout] 494 | struct ProxyRequest { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ProxyResponse` is never constructed [INFO] [stdout] --> src/main.rs:499:8 [INFO] [stdout] | [INFO] [stdout] 499 | struct ProxyResponse { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PqcProxyRequest` is never constructed [INFO] [stdout] --> src/main.rs:508:8 [INFO] [stdout] | [INFO] [stdout] 508 | struct PqcProxyRequest { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_session_id` is never used [INFO] [stdout] --> src/main.rs:532:4 [INFO] [stdout] | [INFO] [stdout] 532 | fn generate_session_id() -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `proxy_handler` is never used [INFO] [stdout] --> src/main.rs:755:10 [INFO] [stdout] | [INFO] [stdout] 755 | async fn proxy_handler(req: web::Json) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `pqc_proxy_handler` is never used [INFO] [stdout] --> src/main.rs:841:10 [INFO] [stdout] | [INFO] [stdout] 841 | async fn pqc_proxy_handler(req: web::Json) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `fingerprint`, `screen_resolution`, `timezone`, and `connection_downlink` are never read [INFO] [stdout] --> src/main.rs:1027:5 [INFO] [stdout] | [INFO] [stdout] 1024 | struct AdvancedSession { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 1027 | fingerprint: BrowserFingerprint, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1037 | screen_resolution: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 1038 | timezone: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 1039 | connection_downlink: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AdvancedSession` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/pqc.rs:50:12 [INFO] [stdout] | [INFO] [stdout] 30 | impl PqcCrypto { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 50 | pub fn from_keys(key_pair: PqcKeyPair) -> Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 68 | pub fn kyber_decapsulate(&self, ciphertext: &str) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 91 | pub fn dilithium_verify(&self, signed_message_b64: &str, public_key: &str) -> Result, Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 104 | pub fn sphincs_sign(&self, message: &[u8]) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 114 | pub fn sphincs_verify(&self, signed_message_b64: &str, public_key: &str) -> Result, Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 129 | pub fn symmetric_encrypt(&self, data: &[u8], shared_secret: &str) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 141 | pub fn symmetric_decrypt(&self, encrypted_data: &str, shared_secret: &str) -> Result, Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 154 | pub fn hash_data(&self, data: &[u8]) -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 187 | pub fn verify_secure_session(&self, session_data: &PqcSharedData, peer_dilithium_pk: &str) -> Result src/main.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use actix_cors::Cors; [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 imports: `App` and `HttpServer` [INFO] [stdout] --> src/main.rs:2:22 [INFO] [stdout] | [INFO] [stdout] 2 | use actix_web::{web, App, HttpRequest, HttpResponse, HttpServer, Result}; [INFO] [stdout] | ^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `is_google_search` [INFO] [stdout] --> src/main.rs:554:9 [INFO] [stdout] | [INFO] [stdout] 554 | let is_google_search = query.url.contains("google.") && query.url.contains("/search"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_is_google_search` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::hash::Hasher` [INFO] [stdout] --> src/main.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::hash::Hasher; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `session_storage` [INFO] [stdout] --> src/main.rs:1163:28 [INFO] [stdout] | [INFO] [stdout] 1163 | fn update_advanced_session(session_storage: &SessionStorage, session_id: &str, session: &Arc>, url: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_session_storage` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `session_id` [INFO] [stdout] --> src/main.rs:1163:62 [INFO] [stdout] | [INFO] [stdout] 1163 | fn update_advanced_session(session_storage: &SessionStorage, session_id: &str, session: &Arc>, url: &str) { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_session_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/main.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 18 | struct BrowserFingerprint { [INFO] [stdout] | ------------------ fields in this struct [INFO] [stdout] 19 | user_agent: String, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 20 | sec_ch_ua: String, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 21 | sec_ch_ua_mobile: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 22 | sec_ch_ua_platform: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 23 | viewport_width: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 24 | viewport_height: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 25 | screen_width: u32, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 26 | screen_height: u32, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 27 | timezone_offset: i32, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 28 | language: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 29 | platform: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 30 | webgl_vendor: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 31 | webgl_renderer: String, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 32 | created_at: u64, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BrowserFingerprint` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BrowserSession` is never constructed [INFO] [stdout] --> src/main.rs:83:8 [INFO] [stdout] | [INFO] [stdout] 83 | struct BrowserSession { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `update_activity`, and `get_session_duration` are never used [INFO] [stdout] --> src/main.rs:94:8 [INFO] [stdout] | [INFO] [stdout] 93 | impl BrowserSession { [INFO] [stdout] | ------------------- associated items in this implementation [INFO] [stdout] 94 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 109 | fn update_activity(&mut self, url: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 117 | fn get_session_duration(&self) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_or_create_session` is never used [INFO] [stdout] --> src/main.rs:135:4 [INFO] [stdout] | [INFO] [stdout] 135 | fn get_or_create_session(session_storage: &SessionStorage, session_id: &str) -> Arc> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `update_session` is never used [INFO] [stdout] --> src/main.rs:139:4 [INFO] [stdout] | [INFO] [stdout] 139 | fn update_session(session_storage: &SessionStorage, session_id: &str, session: Arc>, url: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_realistic_user_agent` is never used [INFO] [stdout] --> src/main.rs:143:4 [INFO] [stdout] | [INFO] [stdout] 143 | fn get_realistic_user_agent(_url: &str) -> &'static str { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_google_specific_headers` is never used [INFO] [stdout] --> src/main.rs:148:4 [INFO] [stdout] | [INFO] [stdout] 148 | fn generate_google_specific_headers(session: &BrowserSession, url: &str, referer: Option<&str>) -> Vec<(String, String)> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_google_client_data` is never used [INFO] [stdout] --> src/main.rs:197:4 [INFO] [stdout] | [INFO] [stdout] 197 | fn generate_google_client_data(fp: &BrowserFingerprint) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_realistic_headers` is never used [INFO] [stdout] --> src/main.rs:222:4 [INFO] [stdout] | [INFO] [stdout] 222 | fn get_realistic_headers(url: &str, method: &str) -> Vec<(&'static str, String)> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_hop_by_hop_header` is never used [INFO] [stdout] --> src/main.rs:240:4 [INFO] [stdout] | [INFO] [stdout] 240 | fn is_hop_by_hop_header(name: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_already_set_header` is never used [INFO] [stdout] --> src/main.rs:248:4 [INFO] [stdout] | [INFO] [stdout] 248 | fn is_already_set_header(name: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Session` is never constructed [INFO] [stdout] --> src/main.rs:264:8 [INFO] [stdout] | [INFO] [stdout] 264 | struct Session { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `update_visit` are never used [INFO] [stdout] --> src/main.rs:272:8 [INFO] [stdout] | [INFO] [stdout] 271 | impl Session { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] 272 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 293 | fn update_visit(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `prefetch_google_homepage` is never used [INFO] [stdout] --> src/main.rs:299:10 [INFO] [stdout] | [INFO] [stdout] 299 | async fn prefetch_google_homepage(client: &Client) -> Result<(), reqwest::Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `simulate_google_browsing_behavior` is never used [INFO] [stdout] --> src/main.rs:318:10 [INFO] [stdout] | [INFO] [stdout] 318 | async fn simulate_google_browsing_behavior(session: &BrowserSession, target_url: &str) -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `simulate_browsing_behavior` is never used [INFO] [stdout] --> src/main.rs:410:10 [INFO] [stdout] | [INFO] [stdout] 410 | async fn simulate_browsing_behavior(client: &Client, target_url: &str) -> Result<(), reqwest::Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_public_ip` is never used [INFO] [stdout] --> src/main.rs:460:10 [INFO] [stdout] | [INFO] [stdout] 460 | async fn get_public_ip() -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ProxyRequest` is never constructed [INFO] [stdout] --> src/main.rs:494:8 [INFO] [stdout] | [INFO] [stdout] 494 | struct ProxyRequest { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ProxyResponse` is never constructed [INFO] [stdout] --> src/main.rs:499:8 [INFO] [stdout] | [INFO] [stdout] 499 | struct ProxyResponse { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PqcProxyRequest` is never constructed [INFO] [stdout] --> src/main.rs:508:8 [INFO] [stdout] | [INFO] [stdout] 508 | struct PqcProxyRequest { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_session_id` is never used [INFO] [stdout] --> src/main.rs:532:4 [INFO] [stdout] | [INFO] [stdout] 532 | fn generate_session_id() -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `proxy_handler` is never used [INFO] [stdout] --> src/main.rs:755:10 [INFO] [stdout] | [INFO] [stdout] 755 | async fn proxy_handler(req: web::Json) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `pqc_proxy_handler` is never used [INFO] [stdout] --> src/main.rs:841:10 [INFO] [stdout] | [INFO] [stdout] 841 | async fn pqc_proxy_handler(req: web::Json) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `fingerprint`, `screen_resolution`, `timezone`, and `connection_downlink` are never read [INFO] [stdout] --> src/main.rs:1027:5 [INFO] [stdout] | [INFO] [stdout] 1024 | struct AdvancedSession { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 1027 | fingerprint: BrowserFingerprint, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1037 | screen_resolution: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 1038 | timezone: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 1039 | connection_downlink: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AdvancedSession` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/pqc.rs:50:12 [INFO] [stdout] | [INFO] [stdout] 30 | impl PqcCrypto { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 50 | pub fn from_keys(key_pair: PqcKeyPair) -> Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 68 | pub fn kyber_decapsulate(&self, ciphertext: &str) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 91 | pub fn dilithium_verify(&self, signed_message_b64: &str, public_key: &str) -> Result, Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 104 | pub fn sphincs_sign(&self, message: &[u8]) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 114 | pub fn sphincs_verify(&self, signed_message_b64: &str, public_key: &str) -> Result, Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 129 | pub fn symmetric_encrypt(&self, data: &[u8], shared_secret: &str) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 141 | pub fn symmetric_decrypt(&self, encrypted_data: &str, shared_secret: &str) -> Result, Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 154 | pub fn hash_data(&self, data: &[u8]) -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 187 | pub fn verify_secure_session(&self, session_data: &PqcSharedData, peer_dilithium_pk: &str) -> Result