[INFO] cloning repository https://github.com/ceketrumdev/Zdefender [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ceketrumdev/Zdefender" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fceketrumdev%2FZdefender", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fceketrumdev%2FZdefender'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 981ed1f1dbe9491abfd83ee6b4bdc4e90def2819 [INFO] checking ceketrumdev/Zdefender against try#1383df06117fd218068d1f39fd5326256dd4a348 for pr-145181 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fceketrumdev%2FZdefender" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] removed /workspace/builds/worker-4-tc2/source/.cargo/config.toml [INFO] started tweaking git repo https://github.com/ceketrumdev/Zdefender [INFO] finished tweaking git repo https://github.com/ceketrumdev/Zdefender [INFO] tweaked toml for git repo https://github.com/ceketrumdev/Zdefender written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/ceketrumdev/Zdefender on toolchain 1383df06117fd218068d1f39fd5326256dd4a348 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1383df06117fd218068d1f39fd5326256dd4a348" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/ceketrumdev/Zdefender 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" "+1383df06117fd218068d1f39fd5326256dd4a348" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:ae6f63d130afcfff7f91f5ba9fdb2a74d52830289c6a2ea2d23a94dcfb480a0d" "/opt/rustwide/cargo-home/bin/cargo" "+1383df06117fd218068d1f39fd5326256dd4a348" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 4783e94de29579c744a708159e7f6c031e73a2c5651499b1593130f98e6a0152 [INFO] running `Command { std: "docker" "start" "-a" "4783e94de29579c744a708159e7f6c031e73a2c5651499b1593130f98e6a0152", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "4783e94de29579c744a708159e7f6c031e73a2c5651499b1593130f98e6a0152", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4783e94de29579c744a708159e7f6c031e73a2c5651499b1593130f98e6a0152", kill_on_drop: false }` [INFO] [stdout] 4783e94de29579c744a708159e7f6c031e73a2c5651499b1593130f98e6a0152 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:ae6f63d130afcfff7f91f5ba9fdb2a74d52830289c6a2ea2d23a94dcfb480a0d" "/opt/rustwide/cargo-home/bin/cargo" "+1383df06117fd218068d1f39fd5326256dd4a348" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1f7261a19eeafd82621423b7a96a6ba051ed2db0839f326fb1269805a11bbfb0 [INFO] running `Command { std: "docker" "start" "-a" "1f7261a19eeafd82621423b7a96a6ba051ed2db0839f326fb1269805a11bbfb0", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.95 [INFO] [stderr] Compiling unicode-ident v1.0.18 [INFO] [stderr] Compiling libc v0.2.172 [INFO] [stderr] Compiling autocfg v1.4.0 [INFO] [stderr] Checking memchr v2.7.4 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Checking pin-project-lite v0.2.16 [INFO] [stderr] Checking itoa v1.0.15 [INFO] [stderr] Checking futures-core v0.3.31 [INFO] [stderr] Checking bytes v1.10.1 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Checking futures-sink v0.3.31 [INFO] [stderr] Checking smallvec v1.15.0 [INFO] [stderr] Checking scopeguard v1.2.0 [INFO] [stderr] Checking log v0.4.27 [INFO] [stderr] Checking once_cell v1.21.3 [INFO] [stderr] Compiling regex-syntax v0.8.5 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Checking fnv v1.0.7 [INFO] [stderr] Checking pin-utils v0.1.0 [INFO] [stderr] Checking futures-io v0.3.31 [INFO] [stderr] Checking futures-task v0.3.31 [INFO] [stderr] Checking tracing-core v0.1.33 [INFO] [stderr] Checking no-std-net v0.6.0 [INFO] [stderr] Checking equivalent v1.0.2 [INFO] [stderr] Checking futures-channel v0.3.31 [INFO] [stderr] Compiling zerocopy v0.8.24 [INFO] [stderr] Checking hashbrown v0.15.3 [INFO] [stderr] Checking pnet_base v0.35.0 [INFO] [stderr] Compiling getrandom v0.3.2 [INFO] [stderr] Compiling httparse v1.10.1 [INFO] [stderr] Checking utf8parse v0.2.2 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Checking anstyle-parse v0.2.6 [INFO] [stderr] Checking anstyle v1.0.10 [INFO] [stderr] Checking is_terminal_polyfill v1.70.1 [INFO] [stderr] Checking http v1.3.1 [INFO] [stderr] Compiling rustversion v1.0.20 [INFO] [stderr] Checking atomic-waker v1.1.2 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Checking tracing v0.1.41 [INFO] [stderr] Checking anstyle-query v1.1.2 [INFO] [stderr] Checking colorchoice v1.0.3 [INFO] [stderr] Checking tower-service v0.3.3 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Checking indexmap v2.9.0 [INFO] [stderr] Checking try-lock v0.2.5 [INFO] [stderr] Checking anstream v0.6.18 [INFO] [stderr] Checking want v0.3.1 [INFO] [stderr] Compiling syn v2.0.100 [INFO] [stderr] Compiling libloading v0.8.6 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Checking pnet_macros_support v0.35.0 [INFO] [stderr] Checking mio v1.0.3 [INFO] [stderr] Checking socket2 v0.5.9 [INFO] [stderr] Checking signal-hook-registry v1.4.5 [INFO] [stderr] Checking pnet_sys v0.35.0 [INFO] [stderr] Compiling serde_json v1.0.140 [INFO] [stderr] Checking parking_lot v0.12.3 [INFO] [stderr] Checking httpdate v1.0.3 [INFO] [stderr] Checking sync_wrapper v1.0.2 [INFO] [stderr] Checking percent-encoding v2.3.1 [INFO] [stderr] Checking http-body v1.0.1 [INFO] [stderr] Checking ryu v1.0.20 [INFO] [stderr] Checking regex-automata v0.4.9 [INFO] [stderr] Checking tower-layer v0.3.3 [INFO] [stderr] Compiling crossbeam-utils v0.8.21 [INFO] [stderr] Compiling pkg-config v0.3.32 [INFO] [stderr] Checking http-body-util v0.1.3 [INFO] [stderr] Checking rand_core v0.9.3 [INFO] [stderr] Checking form_urlencoded v1.2.1 [INFO] [stderr] Compiling anyhow v1.0.98 [INFO] [stderr] Compiling heck v0.5.0 [INFO] [stderr] Checking clap_lex v0.7.4 [INFO] [stderr] Checking mime v0.3.17 [INFO] [stderr] Checking strsim v0.11.1 [INFO] [stderr] Compiling pnet v0.35.0 [INFO] [stderr] Checking errno v0.2.8 [INFO] [stderr] Checking clap_builder v4.5.37 [INFO] [stderr] Checking jiff v0.2.10 [INFO] [stderr] Checking iana-time-zone v0.1.63 [INFO] [stderr] Checking bitflags v1.3.2 [INFO] [stderr] Checking hashbrown v0.14.5 [INFO] [stderr] Checking arrayvec v0.7.6 [INFO] [stderr] Checking matchit v0.7.3 [INFO] [stderr] Checking num_cpus v1.16.0 [INFO] [stderr] Checking num-format v0.4.4 [INFO] [stderr] Checking dashmap v6.1.0 [INFO] [stderr] Checking chrono v0.4.40 [INFO] [stderr] Checking ppv-lite86 v0.2.21 [INFO] [stderr] Checking rand_chacha v0.9.0 [INFO] [stderr] Checking regex v1.11.1 [INFO] [stderr] Checking rand v0.9.1 [INFO] [stderr] Checking env_filter v0.1.3 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling async-trait v0.1.88 [INFO] [stderr] Compiling clap_derive v4.5.32 [INFO] [stderr] Checking tokio v1.44.2 [INFO] [stderr] Checking env_logger v0.11.8 [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Compiling pnet_macros v0.35.0 [INFO] [stderr] Compiling pcap v2.2.0 [INFO] [stderr] Checking clap v4.5.37 [INFO] [stderr] Checking pnet_packet v0.35.0 [INFO] [stderr] Checking axum-core v0.4.5 [INFO] [stderr] Checking futures-executor v0.3.31 [INFO] [stderr] Checking futures v0.3.31 [INFO] [stderr] Checking ipnetwork v0.20.0 [INFO] [stderr] Checking serde_path_to_error v0.1.17 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking pnet_datalink v0.35.0 [INFO] [stderr] Checking tokio-util v0.7.14 [INFO] [stderr] Checking tower v0.5.2 [INFO] [stderr] Checking h2 v0.4.9 [INFO] [stderr] Checking pnet_transport v0.35.0 [INFO] [stderr] Checking hyper v1.6.0 [INFO] [stderr] Checking hyper-util v0.1.13 [INFO] [stderr] Checking axum v0.7.9 [INFO] [stderr] Checking zdefender v0.1.3 (/opt/rustwide/workdir) [INFO] [stdout] warning: unexpected `cfg` condition value: `binary` [INFO] [stdout] --> src/lib.rs:28:7 [INFO] [stdout] | [INFO] [stdout] 28 | #[cfg(feature = "binary")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `default`, `systemd`, and `systemd-journal-logger` [INFO] [stdout] = help: consider adding `binary` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `binary` [INFO] [stdout] --> src/lib.rs:28:7 [INFO] [stdout] | [INFO] [stdout] 28 | #[cfg(feature = "binary")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `default`, `systemd`, and `systemd-journal-logger` [INFO] [stdout] = help: consider adding `binary` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `warn` [INFO] [stdout] --> src/defender/fortress.rs:8:31 [INFO] [stdout] | [INFO] [stdout] 8 | use log::{debug, error, info, warn}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `warn` [INFO] [stdout] --> src/defender/fortress.rs:8:31 [INFO] [stdout] | [INFO] [stdout] 8 | use log::{debug, error, info, warn}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ReportType` [INFO] [stdout] --> src/defender/mod.rs:11:60 [INFO] [stdout] | [INFO] [stdout] 11 | use crate::models::{Action, Report, EstablishedConnection, ReportType}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `error` and `warn` [INFO] [stdout] --> src/defender/mod.rs:14:24 [INFO] [stdout] | [INFO] [stdout] 14 | use log::{debug, info, warn, error}; [INFO] [stdout] | ^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Duration` and `SystemTime` [INFO] [stdout] --> src/defender/mod.rs:17:17 [INFO] [stdout] | [INFO] [stdout] 17 | use std::time::{Duration, SystemTime}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `connection_manager::*` [INFO] [stdout] --> src/defender/mod.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | pub use connection_manager::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `fortress::*` [INFO] [stdout] --> src/defender/mod.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 23 | pub use fortress::*; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ReportType` [INFO] [stdout] --> src/defender/mod.rs:11:60 [INFO] [stdout] | [INFO] [stdout] 11 | use crate::models::{Action, Report, EstablishedConnection, ReportType}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ddos_protection::*` [INFO] [stdout] --> src/defender/mod.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 24 | pub use ddos_protection::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `notifications::*` [INFO] [stdout] --> src/defender/mod.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | pub use notifications::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `error` and `warn` [INFO] [stdout] --> src/defender/mod.rs:14:24 [INFO] [stdout] | [INFO] [stdout] 14 | use log::{debug, info, warn, error}; [INFO] [stdout] | ^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `debug` and `warn` [INFO] [stdout] --> src/protection/detection.rs:9:11 [INFO] [stdout] | [INFO] [stdout] 9 | use log::{debug, info, warn}; [INFO] [stdout] | ^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BlockedIp` [INFO] [stdout] --> src/protection/blocked_ips.rs:7:33 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::models::{ReportType, BlockedIp}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Duration` and `SystemTime` [INFO] [stdout] --> src/defender/mod.rs:17:17 [INFO] [stdout] | [INFO] [stdout] 17 | use std::time::{Duration, SystemTime}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SystemTime` [INFO] [stdout] --> src/protection/packet_analyzer.rs:11:27 [INFO] [stdout] | [INFO] [stdout] 11 | use std::time::{Duration, SystemTime}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `connection_manager::*` [INFO] [stdout] --> src/defender/mod.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | pub use connection_manager::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Action`, `PacketInfo`, and `PacketType` [INFO] [stdout] --> src/protection/mod.rs:15:21 [INFO] [stdout] | [INFO] [stdout] 15 | use crate::models::{PacketInfo, Report, ReportType, Action, IpStats, BlockedIp, PacketType}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `debug` [INFO] [stdout] --> src/protection/mod.rs:16:11 [INFO] [stdout] | [INFO] [stdout] 16 | use log::{debug, info, warn, error}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `dashmap::DashMap` [INFO] [stdout] --> src/protection/mod.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | use dashmap::DashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `fortress::*` [INFO] [stdout] --> src/defender/mod.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 23 | pub use fortress::*; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `detection::*` [INFO] [stdout] --> src/protection/mod.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | pub use detection::*; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `blocked_ips::*` [INFO] [stdout] --> src/protection/mod.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | pub use blocked_ips::*; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `packet_analyzer::*` [INFO] [stdout] --> src/protection/mod.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 27 | pub use packet_analyzer::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ddos_protection::*` [INFO] [stdout] --> src/defender/mod.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 24 | pub use ddos_protection::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `fortress::*` [INFO] [stdout] --> src/protection/mod.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | pub use fortress::*; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `notifications::*` [INFO] [stdout] --> src/defender/mod.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | pub use notifications::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `debug` and `warn` [INFO] [stdout] --> src/protection/detection.rs:9:11 [INFO] [stdout] | [INFO] [stdout] 9 | use log::{debug, info, warn}; [INFO] [stdout] | ^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BlockedIp` [INFO] [stdout] --> src/protection/blocked_ips.rs:7:33 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::models::{ReportType, BlockedIp}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SystemTime` [INFO] [stdout] --> src/protection/packet_analyzer.rs:11:27 [INFO] [stdout] | [INFO] [stdout] 11 | use std::time::{Duration, SystemTime}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `async_trait::async_trait` [INFO] [stdout] --> src/services/stats.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use async_trait::async_trait; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Action`, `PacketInfo`, and `PacketType` [INFO] [stdout] --> src/protection/mod.rs:15:21 [INFO] [stdout] | [INFO] [stdout] 15 | use crate::models::{PacketInfo, Report, ReportType, Action, IpStats, BlockedIp, PacketType}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `debug` [INFO] [stdout] --> src/protection/mod.rs:16:11 [INFO] [stdout] | [INFO] [stdout] 16 | use log::{debug, info, warn, error}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `dashmap::DashMap` [INFO] [stdout] --> src/protection/mod.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | use dashmap::DashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `detection::*` [INFO] [stdout] --> src/protection/mod.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | pub use detection::*; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `blocked_ips::*` [INFO] [stdout] --> src/protection/mod.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | pub use blocked_ips::*; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `packet_analyzer::*` [INFO] [stdout] --> src/protection/mod.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 27 | pub use packet_analyzer::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `fortress::*` [INFO] [stdout] --> src/protection/mod.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | pub use fortress::*; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `async_trait::async_trait` [INFO] [stdout] --> src/services/stats.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use async_trait::async_trait; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `logger`, `report_tx`, and `attack_traffic_ratio` are never read [INFO] [stdout] --> src/benchmark.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 20 | pub struct ZDefenderBenchmark { [INFO] [stdout] | ------------------ fields in this struct [INFO] [stdout] 21 | config: Arc>, [INFO] [stdout] 22 | logger: Arc, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | report_tx: mpsc::Sender, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | attack_traffic_ratio: f64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `logger`, `report_tx`, and `attack_traffic_ratio` are never read [INFO] [stdout] --> src/benchmark.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 20 | pub struct ZDefenderBenchmark { [INFO] [stdout] | ------------------ fields in this struct [INFO] [stdout] 21 | config: Arc>, [INFO] [stdout] 22 | logger: Arc, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | report_tx: mpsc::Sender, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | attack_traffic_ratio: f64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `warn` [INFO] [stdout] --> src/defender/fortress.rs:8:31 [INFO] [stdout] | [INFO] [stdout] 8 | use log::{debug, error, info, warn}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ReportType` [INFO] [stdout] --> src/defender/mod.rs:11:60 [INFO] [stdout] | [INFO] [stdout] 11 | use crate::models::{Action, Report, EstablishedConnection, ReportType}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `error` and `warn` [INFO] [stdout] --> src/defender/mod.rs:14:24 [INFO] [stdout] | [INFO] [stdout] 14 | use log::{debug, info, warn, error}; [INFO] [stdout] | ^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Duration` and `SystemTime` [INFO] [stdout] --> src/defender/mod.rs:17:17 [INFO] [stdout] | [INFO] [stdout] 17 | use std::time::{Duration, SystemTime}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `connection_manager::*` [INFO] [stdout] --> src/defender/mod.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | pub use connection_manager::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `fortress::*` [INFO] [stdout] --> src/defender/mod.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 23 | pub use fortress::*; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ddos_protection::*` [INFO] [stdout] --> src/defender/mod.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 24 | pub use ddos_protection::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `notifications::*` [INFO] [stdout] --> src/defender/mod.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | pub use notifications::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `debug` and `warn` [INFO] [stdout] --> src/protection/detection.rs:9:11 [INFO] [stdout] | [INFO] [stdout] 9 | use log::{debug, info, warn}; [INFO] [stdout] | ^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BlockedIp` [INFO] [stdout] --> src/protection/blocked_ips.rs:7:33 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::models::{ReportType, BlockedIp}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SystemTime` [INFO] [stdout] --> src/protection/packet_analyzer.rs:11:27 [INFO] [stdout] | [INFO] [stdout] 11 | use std::time::{Duration, SystemTime}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Action`, `PacketInfo`, and `PacketType` [INFO] [stdout] --> src/protection/mod.rs:15:21 [INFO] [stdout] | [INFO] [stdout] 15 | use crate::models::{PacketInfo, Report, ReportType, Action, IpStats, BlockedIp, PacketType}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `debug` [INFO] [stdout] --> src/protection/mod.rs:16:11 [INFO] [stdout] | [INFO] [stdout] 16 | use log::{debug, info, warn, error}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `dashmap::DashMap` [INFO] [stdout] --> src/protection/mod.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | use dashmap::DashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `detection::*` [INFO] [stdout] --> src/protection/mod.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | pub use detection::*; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `blocked_ips::*` [INFO] [stdout] --> src/protection/mod.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | pub use blocked_ips::*; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `packet_analyzer::*` [INFO] [stdout] --> src/protection/mod.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 27 | pub use packet_analyzer::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `fortress::*` [INFO] [stdout] --> src/protection/mod.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | pub use fortress::*; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `warn` [INFO] [stdout] --> src/defender/fortress.rs:8:31 [INFO] [stdout] | [INFO] [stdout] 8 | use log::{debug, error, info, warn}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ReportType` [INFO] [stdout] --> src/defender/mod.rs:11:60 [INFO] [stdout] | [INFO] [stdout] 11 | use crate::models::{Action, Report, EstablishedConnection, ReportType}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `error` and `warn` [INFO] [stdout] --> src/defender/mod.rs:14:24 [INFO] [stdout] | [INFO] [stdout] 14 | use log::{debug, info, warn, error}; [INFO] [stdout] | ^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Duration` and `SystemTime` [INFO] [stdout] --> src/defender/mod.rs:17:17 [INFO] [stdout] | [INFO] [stdout] 17 | use std::time::{Duration, SystemTime}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `connection_manager::*` [INFO] [stdout] --> src/defender/mod.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | pub use connection_manager::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `fortress::*` [INFO] [stdout] --> src/defender/mod.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 23 | pub use fortress::*; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ddos_protection::*` [INFO] [stdout] --> src/defender/mod.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 24 | pub use ddos_protection::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `notifications::*` [INFO] [stdout] --> src/defender/mod.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | pub use notifications::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `debug` and `warn` [INFO] [stdout] --> src/protection/detection.rs:9:11 [INFO] [stdout] | [INFO] [stdout] 9 | use log::{debug, info, warn}; [INFO] [stdout] | ^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BlockedIp` [INFO] [stdout] --> src/protection/blocked_ips.rs:7:33 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::models::{ReportType, BlockedIp}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SystemTime` [INFO] [stdout] --> src/protection/packet_analyzer.rs:11:27 [INFO] [stdout] | [INFO] [stdout] 11 | use std::time::{Duration, SystemTime}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Action`, `PacketInfo`, and `PacketType` [INFO] [stdout] --> src/protection/mod.rs:15:21 [INFO] [stdout] | [INFO] [stdout] 15 | use crate::models::{PacketInfo, Report, ReportType, Action, IpStats, BlockedIp, PacketType}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `debug` [INFO] [stdout] --> src/protection/mod.rs:16:11 [INFO] [stdout] | [INFO] [stdout] 16 | use log::{debug, info, warn, error}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `dashmap::DashMap` [INFO] [stdout] --> src/protection/mod.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | use dashmap::DashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `detection::*` [INFO] [stdout] --> src/protection/mod.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | pub use detection::*; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `blocked_ips::*` [INFO] [stdout] --> src/protection/mod.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | pub use blocked_ips::*; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `packet_analyzer::*` [INFO] [stdout] --> src/protection/mod.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 27 | pub use packet_analyzer::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `fortress::*` [INFO] [stdout] --> src/protection/mod.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | pub use fortress::*; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/main.rs:544:9 [INFO] [stdout] | [INFO] [stdout] 544 | _ => { [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/main.rs:544:9 [INFO] [stdout] | [INFO] [stdout] 128 | Command::Start { daemon } => { [INFO] [stdout] | ------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 183 | Command::Stop => { [INFO] [stdout] | ------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 187 | Command::Status => { [INFO] [stdout] | --------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 191 | Command::Fortress { enable, disable } => { [INFO] [stdout] | ------------------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 544 | _ => { [INFO] [stdout] | ^ ...and 14 other patterns collectively make this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `handle_report` are never used [INFO] [stdout] --> src/defender/mod.rs:47:18 [INFO] [stdout] | [INFO] [stdout] 45 | impl Defender { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] 46 | /// Crée une nouvelle instance du défenseur [INFO] [stdout] 47 | pub async fn new(config: Arc>, logger: Arc) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 66 | pub async fn handle_report(&mut self, report: Report) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `register_connection`, `cleanup_old_connections`, `is_whitelisted`, `get_established_connections`, `block_ip`, and `unblock_ip` are never used [INFO] [stdout] --> src/defender/connection_manager.rs:15:18 [INFO] [stdout] | [INFO] [stdout] 13 | impl Defender { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] 14 | /// Enregistre une nouvelle connexion ou met à jour une connexion existante [INFO] [stdout] 15 | pub async fn register_connection(&self, ip: IpAddr, request_type: Option) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 63 | pub async fn cleanup_old_connections(&self, max_inactivity: Duration) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 96 | pub async fn is_whitelisted(&self, ip: IpAddr) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 102 | pub async fn get_established_connections(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 111 | pub(crate) async fn block_ip(&self, ip: IpAddr, duration_secs: u64) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 158 | pub(crate) async fn unblock_ip(&self, ip: IpAddr) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `enable_fortress_mode`, `update_fortress_whitelist`, `configure_fortress_firewall`, `disable_fortress_mode`, and `is_fortress_mode_enabled` are never used [INFO] [stdout] --> src/defender/fortress.rs:14:18 [INFO] [stdout] | [INFO] [stdout] 12 | impl Defender { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] 13 | /// Active le mode forteresse (protection maximale) [INFO] [stdout] 14 | pub async fn enable_fortress_mode(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 56 | async fn update_fortress_whitelist(&self, connection_time_threshold: u64) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 82 | async fn configure_fortress_firewall(&self) -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 129 | pub async fn disable_fortress_mode(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 194 | pub fn is_fortress_mode_enabled(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `handle_ddos_attack`, `apply_protection_measures`, `disable_ddos_protection`, `configure_ddos_thresholds`, `set_ddos_detection`, and `set_auto_fortress` are never used [INFO] [stdout] --> src/defender/ddos_protection.rs:13:18 [INFO] [stdout] | [INFO] [stdout] 11 | impl Defender { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] 12 | /// Gère une attaque DDoS détectée [INFO] [stdout] 13 | pub async fn handle_ddos_attack(&mut self, num_ips: u32, packets_per_sec: u64, intensity: f64) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 55 | async fn apply_protection_measures(&mut self, intensity: f64, duration_secs: u64) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 97 | pub async fn disable_ddos_protection(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 126 | pub async fn configure_ddos_thresholds(&mut self, ratio: f64, min_ips: u32, packets_per_second: u64) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 143 | pub async fn set_ddos_detection(&mut self, enabled: bool) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 157 | pub async fn set_auto_fortress(&mut self, enabled: bool) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `notify_admins` is never used [INFO] [stdout] --> src/defender/notifications.rs:12:18 [INFO] [stdout] | [INFO] [stdout] 10 | impl Defender { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] 11 | /// Envoie une notification aux administrateurs [INFO] [stdout] 12 | pub async fn notify_admins(&self, notification: &Report) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `traffic_stats` is never read [INFO] [stdout] --> src/protection/mod.rs:45:16 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct ProtectionManager { [INFO] [stdout] | ----------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 45 | pub(crate) traffic_stats: RwLock>, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_stats` is never used [INFO] [stdout] --> src/protection/mod.rs:161:12 [INFO] [stdout] | [INFO] [stdout] 68 | impl ProtectionManager { [INFO] [stdout] | ---------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 161 | pub fn get_stats(&self) -> (usize, usize, usize) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `set_thresholds` is never used [INFO] [stdout] --> src/protection/detection.rs:186:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl ProtectionManager { [INFO] [stdout] | ---------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 186 | pub fn set_thresholds(&mut self, packets_per_second: f64, syn_percentage: f64) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `is_blocked`, `is_blocked_sync`, `synchronous_cleanup_expired_blocks`, and `get_block_duration` are never used [INFO] [stdout] --> src/protection/blocked_ips.rs:14:18 [INFO] [stdout] | [INFO] [stdout] 12 | impl ProtectionManager { [INFO] [stdout] | ---------------------- methods in this implementation [INFO] [stdout] 13 | /// Vérifie si une IP est actuellement bloquée [INFO] [stdout] 14 | pub async fn is_blocked(&self, ip: IpAddr) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 20 | pub fn is_blocked_sync(&self, ip: IpAddr) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 114 | pub fn synchronous_cleanup_expired_blocks(&mut self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 125 | pub async fn get_block_duration(&self) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `analyze_packet`, `update_traffic_stats`, `perform_intelligent_analysis`, and `handle_action` are never used [INFO] [stdout] --> src/protection/packet_analyzer.rs:15:18 [INFO] [stdout] | [INFO] [stdout] 13 | impl ProtectionManager { [INFO] [stdout] | ---------------------- methods in this implementation [INFO] [stdout] 14 | /// Analyse un paquet avec tous les modules de protection [INFO] [stdout] 15 | pub async fn analyze_packet(&mut self, packet: &PacketInfo) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 63 | pub async fn update_traffic_stats(&self, packet: &PacketInfo) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 76 | async fn perform_intelligent_analysis(&self, packet: &PacketInfo) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 102 | pub fn handle_action(&mut self, action: Action, packet: &PacketInfo) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `detect_attacks` is never used [INFO] [stdout] --> src/protection/packet_analyzer.rs:133:4 [INFO] [stdout] | [INFO] [stdout] 133 | fn detect_attacks( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `enable_fortress_mode`, `disable_fortress_mode`, `is_fortress_mode_active`, `enable_ddos_protection`, and `disable_ddos_protection` are never used [INFO] [stdout] --> src/protection/fortress.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl ProtectionManager { [INFO] [stdout] | ---------------------- methods in this implementation [INFO] [stdout] 11 | /// Active le mode forteresse [INFO] [stdout] 12 | pub fn enable_fortress_mode(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 28 | pub fn disable_fortress_mode(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 49 | pub fn is_fortress_mode_active(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 54 | pub async fn enable_ddos_protection(&mut self, intensity: f64) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 100 | pub async fn disable_ddos_protection(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `std::time::Instant::now` that must be used [INFO] [stdout] --> src/main.rs:720:5 [INFO] [stdout] | [INFO] [stdout] 720 | Instant::now(); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 720 | let _ = Instant::now(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/main.rs:544:9 [INFO] [stdout] | [INFO] [stdout] 544 | _ => { [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/main.rs:544:9 [INFO] [stdout] | [INFO] [stdout] 128 | Command::Start { daemon } => { [INFO] [stdout] | ------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 183 | Command::Stop => { [INFO] [stdout] | ------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 187 | Command::Status => { [INFO] [stdout] | --------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 191 | Command::Fortress { enable, disable } => { [INFO] [stdout] | ------------------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 544 | _ => { [INFO] [stdout] | ^ ...and 14 other patterns collectively make this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `handle_report` are never used [INFO] [stdout] --> src/defender/mod.rs:47:18 [INFO] [stdout] | [INFO] [stdout] 45 | impl Defender { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] 46 | /// Crée une nouvelle instance du défenseur [INFO] [stdout] 47 | pub async fn new(config: Arc>, logger: Arc) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 66 | pub async fn handle_report(&mut self, report: Report) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `register_connection`, `cleanup_old_connections`, `is_whitelisted`, `get_established_connections`, `block_ip`, and `unblock_ip` are never used [INFO] [stdout] --> src/defender/connection_manager.rs:15:18 [INFO] [stdout] | [INFO] [stdout] 13 | impl Defender { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] 14 | /// Enregistre une nouvelle connexion ou met à jour une connexion existante [INFO] [stdout] 15 | pub async fn register_connection(&self, ip: IpAddr, request_type: Option) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 63 | pub async fn cleanup_old_connections(&self, max_inactivity: Duration) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 96 | pub async fn is_whitelisted(&self, ip: IpAddr) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 102 | pub async fn get_established_connections(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 111 | pub(crate) async fn block_ip(&self, ip: IpAddr, duration_secs: u64) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 158 | pub(crate) async fn unblock_ip(&self, ip: IpAddr) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `enable_fortress_mode`, `update_fortress_whitelist`, `configure_fortress_firewall`, `disable_fortress_mode`, and `is_fortress_mode_enabled` are never used [INFO] [stdout] --> src/defender/fortress.rs:14:18 [INFO] [stdout] | [INFO] [stdout] 12 | impl Defender { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] 13 | /// Active le mode forteresse (protection maximale) [INFO] [stdout] 14 | pub async fn enable_fortress_mode(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 56 | async fn update_fortress_whitelist(&self, connection_time_threshold: u64) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 82 | async fn configure_fortress_firewall(&self) -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 129 | pub async fn disable_fortress_mode(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 194 | pub fn is_fortress_mode_enabled(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `handle_ddos_attack`, `apply_protection_measures`, `disable_ddos_protection`, `configure_ddos_thresholds`, `set_ddos_detection`, and `set_auto_fortress` are never used [INFO] [stdout] --> src/defender/ddos_protection.rs:13:18 [INFO] [stdout] | [INFO] [stdout] 11 | impl Defender { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] 12 | /// Gère une attaque DDoS détectée [INFO] [stdout] 13 | pub async fn handle_ddos_attack(&mut self, num_ips: u32, packets_per_sec: u64, intensity: f64) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 55 | async fn apply_protection_measures(&mut self, intensity: f64, duration_secs: u64) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 97 | pub async fn disable_ddos_protection(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 126 | pub async fn configure_ddos_thresholds(&mut self, ratio: f64, min_ips: u32, packets_per_second: u64) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 143 | pub async fn set_ddos_detection(&mut self, enabled: bool) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 157 | pub async fn set_auto_fortress(&mut self, enabled: bool) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `notify_admins` is never used [INFO] [stdout] --> src/defender/notifications.rs:12:18 [INFO] [stdout] | [INFO] [stdout] 10 | impl Defender { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] 11 | /// Envoie une notification aux administrateurs [INFO] [stdout] 12 | pub async fn notify_admins(&self, notification: &Report) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `traffic_stats` is never read [INFO] [stdout] --> src/protection/mod.rs:45:16 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct ProtectionManager { [INFO] [stdout] | ----------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 45 | pub(crate) traffic_stats: RwLock>, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_stats` is never used [INFO] [stdout] --> src/protection/mod.rs:161:12 [INFO] [stdout] | [INFO] [stdout] 68 | impl ProtectionManager { [INFO] [stdout] | ---------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 161 | pub fn get_stats(&self) -> (usize, usize, usize) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `set_thresholds` is never used [INFO] [stdout] --> src/protection/detection.rs:186:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl ProtectionManager { [INFO] [stdout] | ---------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 186 | pub fn set_thresholds(&mut self, packets_per_second: f64, syn_percentage: f64) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `is_blocked`, `is_blocked_sync`, `synchronous_cleanup_expired_blocks`, and `get_block_duration` are never used [INFO] [stdout] --> src/protection/blocked_ips.rs:14:18 [INFO] [stdout] | [INFO] [stdout] 12 | impl ProtectionManager { [INFO] [stdout] | ---------------------- methods in this implementation [INFO] [stdout] 13 | /// Vérifie si une IP est actuellement bloquée [INFO] [stdout] 14 | pub async fn is_blocked(&self, ip: IpAddr) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 20 | pub fn is_blocked_sync(&self, ip: IpAddr) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 114 | pub fn synchronous_cleanup_expired_blocks(&mut self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 125 | pub async fn get_block_duration(&self) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `analyze_packet`, `update_traffic_stats`, `perform_intelligent_analysis`, and `handle_action` are never used [INFO] [stdout] --> src/protection/packet_analyzer.rs:15:18 [INFO] [stdout] | [INFO] [stdout] 13 | impl ProtectionManager { [INFO] [stdout] | ---------------------- methods in this implementation [INFO] [stdout] 14 | /// Analyse un paquet avec tous les modules de protection [INFO] [stdout] 15 | pub async fn analyze_packet(&mut self, packet: &PacketInfo) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 63 | pub async fn update_traffic_stats(&self, packet: &PacketInfo) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 76 | async fn perform_intelligent_analysis(&self, packet: &PacketInfo) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 102 | pub fn handle_action(&mut self, action: Action, packet: &PacketInfo) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `detect_attacks` is never used [INFO] [stdout] --> src/protection/packet_analyzer.rs:133:4 [INFO] [stdout] | [INFO] [stdout] 133 | fn detect_attacks( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `enable_fortress_mode`, `disable_fortress_mode`, `is_fortress_mode_active`, `enable_ddos_protection`, and `disable_ddos_protection` are never used [INFO] [stdout] --> src/protection/fortress.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl ProtectionManager { [INFO] [stdout] | ---------------------- methods in this implementation [INFO] [stdout] 11 | /// Active le mode forteresse [INFO] [stdout] 12 | pub fn enable_fortress_mode(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 28 | pub fn disable_fortress_mode(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 49 | pub fn is_fortress_mode_active(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 54 | pub async fn enable_ddos_protection(&mut self, intensity: f64) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 100 | pub async fn disable_ddos_protection(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `std::time::Instant::now` that must be used [INFO] [stdout] --> src/main.rs:720:5 [INFO] [stdout] | [INFO] [stdout] 720 | Instant::now(); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 720 | let _ = Instant::now(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 33.35s [INFO] running `Command { std: "docker" "inspect" "1f7261a19eeafd82621423b7a96a6ba051ed2db0839f326fb1269805a11bbfb0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1f7261a19eeafd82621423b7a96a6ba051ed2db0839f326fb1269805a11bbfb0", kill_on_drop: false }` [INFO] [stdout] 1f7261a19eeafd82621423b7a96a6ba051ed2db0839f326fb1269805a11bbfb0