[INFO] cloning repository https://github.com/inspiration-fan/pingora-waf [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/inspiration-fan/pingora-waf" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Finspiration-fan%2Fpingora-waf", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Finspiration-fan%2Fpingora-waf'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 3a3339a5763cf0f84c72d5f5b5e9ebdd42a7e57f [INFO] checking inspiration-fan/pingora-waf against try#e5b0618d996a6a3941e423fd3e170737b8dbdc92 for pr-151822 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Finspiration-fan%2Fpingora-waf" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/inspiration-fan/pingora-waf [INFO] finished tweaking git repo https://github.com/inspiration-fan/pingora-waf [INFO] tweaked toml for git repo https://github.com/inspiration-fan/pingora-waf written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/inspiration-fan/pingora-waf on toolchain e5b0618d996a6a3941e423fd3e170737b8dbdc92 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+e5b0618d996a6a3941e423fd3e170737b8dbdc92" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/inspiration-fan/pingora-waf 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" "+e5b0618d996a6a3941e423fd3e170737b8dbdc92" "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-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:29356a839a4d14451438f794ce8414e707d72405f44418718d724d22562fe786" "/opt/rustwide/cargo-home/bin/cargo" "+e5b0618d996a6a3941e423fd3e170737b8dbdc92" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 06dfe7f5834ec7e40f73292157497c64a2b1e19cee654129a49f6af9c87e70c2 [INFO] running `Command { std: "docker" "start" "-a" "06dfe7f5834ec7e40f73292157497c64a2b1e19cee654129a49f6af9c87e70c2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "06dfe7f5834ec7e40f73292157497c64a2b1e19cee654129a49f6af9c87e70c2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "06dfe7f5834ec7e40f73292157497c64a2b1e19cee654129a49f6af9c87e70c2", kill_on_drop: false }` [INFO] [stdout] 06dfe7f5834ec7e40f73292157497c64a2b1e19cee654129a49f6af9c87e70c2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:29356a839a4d14451438f794ce8414e707d72405f44418718d724d22562fe786" "/opt/rustwide/cargo-home/bin/cargo" "+e5b0618d996a6a3941e423fd3e170737b8dbdc92" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f9d1b21da07c0145e65a65606d83284700b2b7f906ccc4ad326fa1fb9615a9d9 [INFO] running `Command { std: "docker" "start" "-a" "f9d1b21da07c0145e65a65606d83284700b2b7f906ccc4ad326fa1fb9615a9d9", kill_on_drop: false }` [INFO] [stderr] Compiling syn v2.0.112 [INFO] [stderr] Compiling libc v0.2.178 [INFO] [stderr] Compiling zerocopy v0.8.31 [INFO] [stderr] Checking lock_api v0.4.14 [INFO] [stderr] Compiling indexmap v1.9.3 [INFO] [stderr] Compiling either v1.15.0 [INFO] [stderr] Checking indexmap v2.12.1 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Checking regex-automata v0.4.13 [INFO] [stderr] Checking bitflags v2.10.0 [INFO] [stderr] Checking http v0.2.12 [INFO] [stderr] Compiling proc-macro-error-attr2 v2.0.0 [INFO] [stderr] Compiling openssl v0.10.75 [INFO] [stderr] Compiling zstd-safe v7.2.4 [INFO] [stderr] Checking linked-hash-map v0.5.6 [INFO] [stderr] Compiling object v0.37.3 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling memoffset v0.6.5 [INFO] [stderr] Compiling rust_decimal v1.39.0 [INFO] [stderr] Compiling tokio-openssl v0.6.5 [INFO] [stderr] Checking gimli v0.32.3 [INFO] [stderr] Checking miniz_oxide v0.8.9 [INFO] [stderr] Compiling axum-core v0.3.4 [INFO] [stderr] Compiling ahash v0.8.12 [INFO] [stderr] Checking rustc-demangle v0.1.26 [INFO] [stderr] Checking os_str_bytes v6.6.1 [INFO] [stderr] Checking pingora-error v0.6.0 [INFO] [stderr] Compiling zmij v1.0.14 [INFO] [stderr] Compiling prometheus v0.13.4 [INFO] [stderr] Checking brotli-decompressor v2.5.1 [INFO] [stderr] Checking lru v0.14.0 [INFO] [stderr] Checking pingora-http v0.6.0 [INFO] [stderr] Compiling itertools v0.12.1 [INFO] [stderr] Checking clap_lex v0.2.4 [INFO] [stderr] Checking yaml-rust v0.4.5 [INFO] [stderr] Compiling axum v0.6.20 [INFO] [stderr] Checking textwrap v0.16.2 [INFO] [stderr] Checking sfv v0.10.4 [INFO] [stderr] Checking http-body v0.4.6 [INFO] [stderr] Checking rmp v0.8.15 [INFO] [stderr] Checking ordered-float v4.6.0 [INFO] [stderr] Checking blake2 v0.10.6 [INFO] [stderr] Checking tracing-log v0.2.0 [INFO] [stderr] Checking serde_json v1.0.149 [INFO] [stderr] Checking form_urlencoded v1.2.2 [INFO] [stderr] Checking time-core v0.1.7 [INFO] [stderr] Checking clap_builder v4.5.53 [INFO] [stderr] Checking lru-cache v0.1.2 [INFO] [stderr] Checking time v0.3.45 [INFO] [stderr] Checking jiff v0.2.17 [INFO] [stderr] Checking resolv-conf v0.7.6 [INFO] [stderr] Checking arc-swap v1.8.0 [INFO] [stderr] Compiling jobserver v0.1.34 [INFO] [stderr] Checking brotli v3.5.0 [INFO] [stderr] Compiling cc v1.2.51 [INFO] [stderr] Checking errno v0.3.14 [INFO] [stderr] Checking mio v1.1.1 [INFO] [stderr] Checking socket2 v0.6.1 [INFO] [stderr] Checking getrandom v0.2.16 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking ppv-lite86 v0.2.21 [INFO] [stderr] Checking signal-hook-registry v1.4.8 [INFO] [stderr] Checking parking_lot_core v0.9.12 [INFO] [stderr] Checking getrandom v0.3.4 [INFO] [stderr] Checking socket2 v0.5.10 [INFO] [stderr] Checking rand_core v0.9.3 [INFO] [stderr] Checking parking_lot v0.12.5 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking rand_chacha v0.9.0 [INFO] [stderr] Checking hostname v0.4.2 [INFO] [stderr] Checking nix v0.24.3 [INFO] [stderr] Checking daemonize v0.5.0 [INFO] [stderr] Checking dashmap v6.1.0 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking regex v1.12.2 [INFO] [stderr] Checking matchers v0.2.0 [INFO] [stderr] Checking rand v0.9.2 [INFO] [stderr] Compiling openssl-src v300.5.4+3.5.4 [INFO] [stderr] Compiling cmake v0.1.57 [INFO] [stderr] Checking addr2line v0.25.1 [INFO] [stderr] Compiling openssl-sys v0.9.111 [INFO] [stderr] Compiling zstd-sys v2.0.16+zstd.1.5.7 [INFO] [stderr] Compiling libz-ng-sys v1.1.23 [INFO] [stderr] Checking pingora-lru v0.6.0 [INFO] [stderr] Checking env_filter v0.1.4 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling darling_core v0.20.11 [INFO] [stderr] Compiling proc-macro-error2 v2.0.1 [INFO] [stderr] Checking backtrace v0.3.76 [INFO] [stderr] Checking env_logger v0.11.8 [INFO] [stderr] Compiling tokio-macros v2.6.0 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling tracing-attributes v0.1.31 [INFO] [stderr] Compiling async-trait v0.1.89 [INFO] [stderr] Compiling zerovec-derive v0.11.2 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.1 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Checking tokio v1.48.0 [INFO] [stderr] Compiling async-stream-impl v0.3.6 [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Checking async-stream v0.3.6 [INFO] [stderr] Compiling trackable_derive v1.0.0 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling thiserror-impl v2.0.17 [INFO] [stderr] Compiling pin-project-internal v1.1.10 [INFO] [stderr] Compiling getset v0.1.6 [INFO] [stderr] Checking trackable v1.3.0 [INFO] [stderr] Compiling clap_derive v3.2.25 [INFO] [stderr] Checking thiserror v1.0.69 [INFO] [stderr] Compiling strum_macros v0.26.4 [INFO] [stderr] Checking tracing v0.1.44 [INFO] [stderr] Checking zerofrom v0.1.6 [INFO] [stderr] Checking yoke v0.8.1 [INFO] [stderr] Checking opentelemetry v0.23.0 [INFO] [stderr] Checking thrift_codec v0.3.2 [INFO] [stderr] Checking zerovec v0.11.5 [INFO] [stderr] Checking zerotrie v0.2.3 [INFO] [stderr] Checking pin-project v1.1.10 [INFO] [stderr] Checking tinystr v0.8.2 [INFO] [stderr] Checking potential_utf v0.1.4 [INFO] [stderr] Checking icu_locale_core v2.1.1 [INFO] [stderr] Compiling derivative v2.2.0 [INFO] [stderr] Checking icu_collections v2.1.1 [INFO] [stderr] Compiling prost-derive v0.12.6 [INFO] [stderr] Compiling enum-as-inner v0.6.1 [INFO] [stderr] Compiling clap_derive v4.5.49 [INFO] [stderr] Checking thiserror v2.0.17 [INFO] [stderr] Checking zstd v0.13.3 [INFO] [stderr] Compiling darling_macro v0.20.11 [INFO] [stderr] Checking pingora-header-serde v0.6.0 [INFO] [stderr] Checking clap v3.2.25 [INFO] [stderr] Compiling darling v0.20.11 [INFO] [stderr] Compiling derive_builder_core v0.20.2 [INFO] [stderr] Checking icu_provider v2.1.1 [INFO] [stderr] Checking strum v0.26.3 [INFO] [stderr] Checking futures-executor v0.3.31 [INFO] [stderr] Checking futures v0.3.31 [INFO] [stderr] Checking icu_properties v2.1.2 [INFO] [stderr] Checking icu_normalizer v2.1.1 [INFO] [stderr] Checking serde v1.0.228 [INFO] [stderr] Checking prost v0.12.6 [INFO] [stderr] Checking chrono v0.4.42 [INFO] [stderr] Checking serde_yaml v0.8.26 [INFO] [stderr] Checking rmp-serde v1.3.1 [INFO] [stderr] Checking tracing-serde v0.2.0 [INFO] [stderr] Checking serde_yaml v0.9.34+deprecated [INFO] [stderr] Checking tracing-subscriber v0.3.22 [INFO] [stderr] Compiling neli-proc-macros v0.2.2 [INFO] [stderr] Compiling derive_builder_macro v0.20.2 [INFO] [stderr] Checking clap v4.5.53 [INFO] [stderr] Checking derive_builder v0.20.2 [INFO] [stderr] Checking idna_adapter v1.2.1 [INFO] [stderr] Checking neli v0.7.3 [INFO] [stderr] Checking idna v1.1.0 [INFO] [stderr] Checking url v2.5.7 [INFO] [stderr] Checking tokio-util v0.7.17 [INFO] [stderr] Checking tokio-stream v0.1.17 [INFO] [stderr] Checking pingora-timeout v0.6.0 [INFO] [stderr] Checking tokio-io-timeout v1.2.1 [INFO] [stderr] Checking cf-rustracing v1.2.1 [INFO] [stderr] Checking pingora-runtime v0.6.0 [INFO] [stderr] Checking hyper v1.8.1 [INFO] [stderr] Checking pingora-pool v0.6.0 [INFO] [stderr] Checking tracing-appender v0.2.4 [INFO] [stderr] Checking tokio-test v0.4.4 [INFO] [stderr] Checking opentelemetry_sdk v0.23.0 [INFO] [stderr] Checking hyper-util v0.1.19 [INFO] [stderr] Checking h2 v0.3.27 [INFO] [stderr] Checking h2 v0.4.12 [INFO] [stderr] Checking tower v0.4.13 [INFO] [stderr] Checking hickory-proto v0.24.4 [INFO] [stderr] Checking tracing-opentelemetry v0.24.0 [INFO] [stderr] Checking local-ip-address v0.6.8 [INFO] [stderr] Checking cf-rustracing-jaeger v1.2.2 [INFO] [stderr] Checking flate2 v1.1.5 [INFO] [stderr] Checking hyper v0.14.32 [INFO] [stderr] Checking hickory-resolver v0.24.4 [INFO] [stderr] Checking hyper-timeout v0.4.1 [INFO] [stderr] Checking tonic v0.11.0 [INFO] [stderr] Checking opentelemetry-proto v0.6.0 [INFO] [stderr] Checking opentelemetry-otlp v0.16.0 [INFO] [stderr] Checking pingora-openssl v0.6.0 [INFO] [stderr] Checking pingora-core v0.6.0 [INFO] [stderr] Checking pingora-cache v0.6.0 [INFO] [stderr] Checking pingora-proxy v0.6.0 [INFO] [stderr] Checking pingora v0.6.0 [INFO] [stderr] Checking pingora-waf v0.1.0 (/opt/rustwide/workdir/pingora-waf) [INFO] [stdout] warning: unused import: `crate::metrics` [INFO] [stdout] --> pingora-waf/src/policy/protection/engine.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::metrics; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::metrics` [INFO] [stdout] --> pingora-waf/src/policy/protection/engine.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::metrics; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::metrics` [INFO] [stdout] --> pingora-waf/src/waf/engine.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::metrics; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::metrics` [INFO] [stdout] --> pingora-waf/src/waf/engine.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::metrics; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `metrics_addr` is never used [INFO] [stdout] --> pingora-waf/src/config.rs:44:12 [INFO] [stdout] | [INFO] [stdout] 43 | impl AppConfig { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] 44 | pub fn metrics_addr(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `RESP_TOTAL` is never used [INFO] [stdout] --> pingora-waf/src/metrics/counters.rs:36:12 [INFO] [stdout] | [INFO] [stdout] 36 | pub static RESP_TOTAL: Lazy = Lazy::new(|| { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `DECISIONS_TOTAL` is never used [INFO] [stdout] --> pingora-waf/src/metrics/counters.rs:45:12 [INFO] [stdout] | [INFO] [stdout] 45 | pub static DECISIONS_TOTAL: Lazy = Lazy::new(|| { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `inc_decision` is never used [INFO] [stdout] --> pingora-waf/src/metrics/counters.rs:76:8 [INFO] [stdout] | [INFO] [stdout] 76 | pub fn inc_decision(source: &str, kind: &str, rule_id: &str) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `log_dir` is never read [INFO] [stdout] --> pingora-waf/src/obs.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct ObsSink { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] 20 | log_dir: PathBuf, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ObsSink` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `log_dir` is never used [INFO] [stdout] --> pingora-waf/src/obs.rs:128:12 [INFO] [stdout] | [INFO] [stdout] 105 | impl ObsSink { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 128 | pub fn log_dir(&self) -> &Path { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `ruleset` is never read [INFO] [stdout] --> pingora-waf/src/policy/types.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct WafConfig { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 19 | pub enabled: bool, [INFO] [stdout] 20 | pub ruleset: Option, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `WafConfig` 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: field `version` is never read [INFO] [stdout] --> pingora-waf/src/policy/domain_map.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct DomainMapFile { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] 6 | pub version: u32, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DomainMapFile` 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: field `version` is never read [INFO] [stdout] --> pingora-waf/src/policy/compiled.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct CompiledPolicy { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] 8 | pub version: u32, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CompiledPolicy` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `reason` is never read [INFO] [stdout] --> pingora-waf/src/policy/protection/compiled.rs:31:13 [INFO] [stdout] | [INFO] [stdout] 31 | Allow { reason: Option }, [INFO] [stdout] | ----- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `CompiledAction` 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: method `prune_older_than` is never used [INFO] [stdout] --> pingora-waf/src/policy/cc.rs:103:12 [INFO] [stdout] | [INFO] [stdout] 35 | impl CcLimiter { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 103 | pub fn prune_older_than(&self, older_than: Duration) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `policy_mgr` is never read [INFO] [stdout] --> pingora-waf/src/server/proxy.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 28 | pub struct WafProxy { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 32 | pub policy_mgr: PolicyManager, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `WafProxy` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `upstream_hot_reload_loop` is never used [INFO] [stdout] --> pingora-waf/src/upstream/reload.rs:10:14 [INFO] [stdout] | [INFO] [stdout] 10 | pub async fn upstream_hot_reload_loop(mgr: UpstreamManager, path: PathBuf, interval: Duration) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `fnv1a64` is never used [INFO] [stdout] --> pingora-waf/src/upstream/reload.rs:42:4 [INFO] [stdout] | [INFO] [stdout] 42 | fn fnv1a64(data: &[u8]) -> u64 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `pick_endpoint` is never used [INFO] [stdout] --> pingora-waf/src/upstream/router.rs:141:18 [INFO] [stdout] | [INFO] [stdout] 58 | impl UpstreamRouter { [INFO] [stdout] | ------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 141 | pub async fn pick_endpoint(&self, host: Option<&str>) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `version` is never read [INFO] [stdout] --> pingora-waf/src/upstream/types.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct UpstreamConfigFile { [INFO] [stdout] | ------------------ field in this struct [INFO] [stdout] 6 | pub version: u32, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `UpstreamConfigFile` 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: variant `Log` is never constructed [INFO] [stdout] --> pingora-waf/src/waf/decision.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum Decision { [INFO] [stdout] | -------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 7 | Log { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Decision` 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: associated function `block` is never used [INFO] [stdout] --> pingora-waf/src/waf/decision.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 25 | impl Decision { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 26 | pub fn block(rule_id: impl Into, reason: impl Into) -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `allow`, `log`, `block_with_status`, and `challenge` are never used [INFO] [stdout] --> pingora-waf/src/waf/decision.rs:49:12 [INFO] [stdout] | [INFO] [stdout] 48 | impl Decision { [INFO] [stdout] | ------------- associated functions in this implementation [INFO] [stdout] 49 | pub fn allow() -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 53 | pub fn log(rule_id: impl Into, reason: impl Into) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 62 | pub fn block_with_status(status: u16, rule_id: impl Into, reason: impl Into) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 70 | pub fn challenge(rule_id: impl Into, reason: impl Into) -> Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TokenBucket` is never constructed [INFO] [stdout] --> pingora-waf/src/waf/ratelimit/token_bucket.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct TokenBucket { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `allow`, and `refill` are never used [INFO] [stdout] --> pingora-waf/src/waf/ratelimit/token_bucket.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl TokenBucket { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] 12 | pub fn new(cap: u64, refill_per_sec: f64) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 21 | pub fn allow(&mut self, cost: u64) -> bool { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 31 | fn refill(&mut self) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `version` is never read [INFO] [stdout] --> pingora-waf/src/waf/rules/compiler.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 20 | pub struct CompiledRuleset { [INFO] [stdout] | --------------- field in this struct [INFO] [stdout] 21 | pub version: Option, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CompiledRuleset` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `re` is never read [INFO] [stdout] --> pingora-waf/src/waf/rules/matcher.rs:34:9 [INFO] [stdout] | [INFO] [stdout] 32 | pub struct HeaderRegexMatcher { [INFO] [stdout] | ------------------ field in this struct [INFO] [stdout] 33 | pub _name: String, [INFO] [stdout] 34 | pub re: Regex, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `HeaderRegexMatcher` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `metrics_addr` is never used [INFO] [stdout] --> pingora-waf/src/config.rs:44:12 [INFO] [stdout] | [INFO] [stdout] 43 | impl AppConfig { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] 44 | pub fn metrics_addr(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `RESP_TOTAL` is never used [INFO] [stdout] --> pingora-waf/src/metrics/counters.rs:36:12 [INFO] [stdout] | [INFO] [stdout] 36 | pub static RESP_TOTAL: Lazy = Lazy::new(|| { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `DECISIONS_TOTAL` is never used [INFO] [stdout] --> pingora-waf/src/metrics/counters.rs:45:12 [INFO] [stdout] | [INFO] [stdout] 45 | pub static DECISIONS_TOTAL: Lazy = Lazy::new(|| { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `inc_decision` is never used [INFO] [stdout] --> pingora-waf/src/metrics/counters.rs:76:8 [INFO] [stdout] | [INFO] [stdout] 76 | pub fn inc_decision(source: &str, kind: &str, rule_id: &str) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `log_dir` is never read [INFO] [stdout] --> pingora-waf/src/obs.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct ObsSink { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] 20 | log_dir: PathBuf, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ObsSink` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `log_dir` is never used [INFO] [stdout] --> pingora-waf/src/obs.rs:128:12 [INFO] [stdout] | [INFO] [stdout] 105 | impl ObsSink { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 128 | pub fn log_dir(&self) -> &Path { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `ruleset` is never read [INFO] [stdout] --> pingora-waf/src/policy/types.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct WafConfig { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 19 | pub enabled: bool, [INFO] [stdout] 20 | pub ruleset: Option, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `WafConfig` 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: field `version` is never read [INFO] [stdout] --> pingora-waf/src/policy/domain_map.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct DomainMapFile { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] 6 | pub version: u32, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DomainMapFile` 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: field `version` is never read [INFO] [stdout] --> pingora-waf/src/policy/compiled.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct CompiledPolicy { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] 8 | pub version: u32, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CompiledPolicy` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `reason` is never read [INFO] [stdout] --> pingora-waf/src/policy/protection/compiled.rs:31:13 [INFO] [stdout] | [INFO] [stdout] 31 | Allow { reason: Option }, [INFO] [stdout] | ----- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `CompiledAction` 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: method `prune_older_than` is never used [INFO] [stdout] --> pingora-waf/src/policy/cc.rs:103:12 [INFO] [stdout] | [INFO] [stdout] 35 | impl CcLimiter { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 103 | pub fn prune_older_than(&self, older_than: Duration) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `policy_mgr` is never read [INFO] [stdout] --> pingora-waf/src/server/proxy.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 28 | pub struct WafProxy { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 32 | pub policy_mgr: PolicyManager, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `WafProxy` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `upstream_hot_reload_loop` is never used [INFO] [stdout] --> pingora-waf/src/upstream/reload.rs:10:14 [INFO] [stdout] | [INFO] [stdout] 10 | pub async fn upstream_hot_reload_loop(mgr: UpstreamManager, path: PathBuf, interval: Duration) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `fnv1a64` is never used [INFO] [stdout] --> pingora-waf/src/upstream/reload.rs:42:4 [INFO] [stdout] | [INFO] [stdout] 42 | fn fnv1a64(data: &[u8]) -> u64 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `pick_endpoint` is never used [INFO] [stdout] --> pingora-waf/src/upstream/router.rs:141:18 [INFO] [stdout] | [INFO] [stdout] 58 | impl UpstreamRouter { [INFO] [stdout] | ------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 141 | pub async fn pick_endpoint(&self, host: Option<&str>) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `version` is never read [INFO] [stdout] --> pingora-waf/src/upstream/types.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct UpstreamConfigFile { [INFO] [stdout] | ------------------ field in this struct [INFO] [stdout] 6 | pub version: u32, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `UpstreamConfigFile` 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: variant `Log` is never constructed [INFO] [stdout] --> pingora-waf/src/waf/decision.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum Decision { [INFO] [stdout] | -------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 7 | Log { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Decision` 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: associated function `block` is never used [INFO] [stdout] --> pingora-waf/src/waf/decision.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 25 | impl Decision { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 26 | pub fn block(rule_id: impl Into, reason: impl Into) -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `allow`, `log`, `block_with_status`, and `challenge` are never used [INFO] [stdout] --> pingora-waf/src/waf/decision.rs:49:12 [INFO] [stdout] | [INFO] [stdout] 48 | impl Decision { [INFO] [stdout] | ------------- associated functions in this implementation [INFO] [stdout] 49 | pub fn allow() -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 53 | pub fn log(rule_id: impl Into, reason: impl Into) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 62 | pub fn block_with_status(status: u16, rule_id: impl Into, reason: impl Into) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 70 | pub fn challenge(rule_id: impl Into, reason: impl Into) -> Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TokenBucket` is never constructed [INFO] [stdout] --> pingora-waf/src/waf/ratelimit/token_bucket.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct TokenBucket { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `allow`, and `refill` are never used [INFO] [stdout] --> pingora-waf/src/waf/ratelimit/token_bucket.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl TokenBucket { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] 12 | pub fn new(cap: u64, refill_per_sec: f64) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 21 | pub fn allow(&mut self, cost: u64) -> bool { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 31 | fn refill(&mut self) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `version` is never read [INFO] [stdout] --> pingora-waf/src/waf/rules/compiler.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 20 | pub struct CompiledRuleset { [INFO] [stdout] | --------------- field in this struct [INFO] [stdout] 21 | pub version: Option, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CompiledRuleset` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `re` is never read [INFO] [stdout] --> pingora-waf/src/waf/rules/matcher.rs:34:9 [INFO] [stdout] | [INFO] [stdout] 32 | pub struct HeaderRegexMatcher { [INFO] [stdout] | ------------------ field in this struct [INFO] [stdout] 33 | pub _name: String, [INFO] [stdout] 34 | pub re: Regex, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `HeaderRegexMatcher` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2m 43s [INFO] running `Command { std: "docker" "inspect" "f9d1b21da07c0145e65a65606d83284700b2b7f906ccc4ad326fa1fb9615a9d9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f9d1b21da07c0145e65a65606d83284700b2b7f906ccc4ad326fa1fb9615a9d9", kill_on_drop: false }` [INFO] [stdout] f9d1b21da07c0145e65a65606d83284700b2b7f906ccc4ad326fa1fb9615a9d9