[INFO] cloning repository https://github.com/galaxy-sec/OrionSentinel [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/galaxy-sec/OrionSentinel" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgalaxy-sec%2FOrionSentinel", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgalaxy-sec%2FOrionSentinel'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 29fedf936fd40a2853b5d8cf02b391c2d5604fa6 [INFO] building galaxy-sec/OrionSentinel against master#c7f6aa2869acdbf014d094c6e427e554e160b6db for pr-146237-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgalaxy-sec%2FOrionSentinel" "/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/galaxy-sec/OrionSentinel [INFO] finished tweaking git repo https://github.com/galaxy-sec/OrionSentinel [INFO] tweaked toml for git repo https://github.com/galaxy-sec/OrionSentinel written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/galaxy-sec/OrionSentinel on toolchain c7f6aa2869acdbf014d094c6e427e554e160b6db [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/galaxy-sec/OrionSentinel 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" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded derive-getters v0.5.0 [INFO] [stderr] Downloaded err-derive v0.3.1 [INFO] [stderr] Downloaded async-trait v0.1.87 [INFO] [stderr] Downloaded synstructure v0.12.6 [INFO] [stderr] Downloaded fragile v2.0.0 [INFO] [stderr] Downloaded sqlparser v0.45.0 [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" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 9ff49923409d29d4d41500a09019093b1e22b89a3252012d876dd94ec01e0b4d [INFO] running `Command { std: "docker" "start" "-a" "9ff49923409d29d4d41500a09019093b1e22b89a3252012d876dd94ec01e0b4d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9ff49923409d29d4d41500a09019093b1e22b89a3252012d876dd94ec01e0b4d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9ff49923409d29d4d41500a09019093b1e22b89a3252012d876dd94ec01e0b4d", kill_on_drop: false }` [INFO] [stdout] 9ff49923409d29d4d41500a09019093b1e22b89a3252012d876dd94ec01e0b4d [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" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] fd17d58b61cc1cd790e0b1f34efd8cbbb8637b59698233a41293c4536de007fb [INFO] running `Command { std: "docker" "start" "-a" "fd17d58b61cc1cd790e0b1f34efd8cbbb8637b59698233a41293c4536de007fb", kill_on_drop: false }` [INFO] [stderr] Compiling syn v2.0.100 [INFO] [stderr] Compiling libc v0.2.174 [INFO] [stderr] Compiling zerocopy v0.8.26 [INFO] [stderr] Compiling autocfg v1.5.0 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling tinyvec v1.9.0 [INFO] [stderr] Compiling smallvec v1.15.1 [INFO] [stderr] Compiling rustversion v1.0.20 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling unicode-properties v0.1.3 [INFO] [stderr] Compiling unicode-bidi v0.3.18 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling predicates-core v1.0.9 [INFO] [stderr] Compiling fallible-iterator v0.2.0 [INFO] [stderr] Compiling sha2 v0.10.9 [INFO] [stderr] Compiling md-5 v0.10.6 [INFO] [stderr] Compiling siphasher v1.0.1 [INFO] [stderr] Compiling byteorder v1.5.0 [INFO] [stderr] Compiling mockall_derive v0.13.1 [INFO] [stderr] Compiling indexmap v2.8.0 [INFO] [stderr] Compiling lock_api v0.4.13 [INFO] [stderr] Compiling toml_datetime v0.6.8 [INFO] [stderr] Compiling serde_spanned v0.6.8 [INFO] [stderr] Compiling phf_shared v0.11.3 [INFO] [stderr] Compiling winnow v0.7.4 [INFO] [stderr] Compiling log v0.4.26 [INFO] [stderr] Compiling termtree v0.5.1 [INFO] [stderr] Compiling predicates v3.1.3 [INFO] [stderr] Compiling downcast v0.11.0 [INFO] [stderr] Compiling phf v0.11.3 [INFO] [stderr] Compiling fragile v2.0.0 [INFO] [stderr] Compiling whoami v1.6.0 [INFO] [stderr] Compiling predicates-tree v1.0.12 [INFO] [stderr] Compiling err-derive v0.3.1 [INFO] [stderr] Compiling serde_json v1.0.140 [INFO] [stderr] Compiling sqlparser v0.45.0 [INFO] [stderr] Compiling unicode-normalization v0.1.24 [INFO] [stderr] Compiling getrandom v0.3.3 [INFO] [stderr] Compiling parking_lot_core v0.9.11 [INFO] [stderr] Compiling signal-hook-registry v1.4.5 [INFO] [stderr] Compiling socket2 v0.6.0 [INFO] [stderr] Compiling mio v1.0.4 [INFO] [stderr] Compiling socket2 v0.5.10 [INFO] [stderr] Compiling rand_core v0.9.3 [INFO] [stderr] Compiling parking_lot v0.12.4 [INFO] [stderr] Compiling stringprep v0.1.5 [INFO] [stderr] Compiling toml_edit v0.22.24 [INFO] [stderr] Compiling ppv-lite86 v0.2.21 [INFO] [stderr] Compiling rand_chacha v0.9.0 [INFO] [stderr] Compiling rand v0.9.2 [INFO] [stderr] Compiling synstructure v0.12.6 [INFO] [stderr] Compiling darling_core v0.20.10 [INFO] [stderr] Compiling postgres-protocol v0.6.8 [INFO] [stderr] Compiling toml v0.8.20 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling thiserror-impl v2.0.12 [INFO] [stderr] Compiling async-trait v0.1.87 [INFO] [stderr] Compiling clap_derive v4.5.32 [INFO] [stderr] Compiling derive-getters v0.5.0 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling postgres-types v0.2.9 [INFO] [stderr] Compiling tokio v1.47.1 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling thiserror v2.0.12 [INFO] [stderr] Compiling darling_macro v0.20.10 [INFO] [stderr] Compiling darling v0.20.10 [INFO] [stderr] Compiling derive_builder_core v0.20.2 [INFO] [stderr] Compiling clap v4.5.32 [INFO] [stderr] Compiling derive_builder_macro v0.20.2 [INFO] [stderr] Compiling derive_builder v0.20.2 [INFO] [stderr] Compiling mockall v0.13.1 [INFO] [stderr] Compiling tokio-util v0.7.15 [INFO] [stderr] Compiling tokio-postgres v0.7.13 [INFO] [stderr] Compiling orion-sentinel v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: struct `ControlSource` is never constructed [INFO] [stdout] --> src/ctrl_src/mod.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct ControlSource; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `UserDAcls` is never constructed [INFO] [stdout] --> src/data_acl/define.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct UserDAcls { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `set_user_id` is never used [INFO] [stdout] --> src/data_acl/define.rs:13:19 [INFO] [stdout] | [INFO] [stdout] 12 | impl UserDAcls { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] 13 | pub(crate) fn set_user_id>(&mut self, user_id: S) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DataAcl` is never constructed [INFO] [stdout] --> src/data_acl/define.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | pub struct DataAcl { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DataView` is never constructed [INFO] [stdout] --> src/data_acl/define.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 27 | pub struct DataView { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ViewScope` is never constructed [INFO] [stdout] --> src/data_acl/define.rs:36:12 [INFO] [stdout] | [INFO] [stdout] 36 | pub struct ViewScope { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Condition` is never constructed [INFO] [stdout] --> src/data_acl/define.rs:43:12 [INFO] [stdout] | [INFO] [stdout] 43 | pub struct Condition { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `to_sql_where_condition` and `apply_to_query` are never used [INFO] [stdout] --> src/data_acl/define.rs:50:12 [INFO] [stdout] | [INFO] [stdout] 48 | impl Condition { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] 49 | /// 将所有filter_clauses合并为一个SQL WHERE条件 [INFO] [stdout] 50 | pub fn to_sql_where_condition(&self) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 69 | pub fn apply_to_query(&self, sql: &str) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AclManager` is never constructed [INFO] [stdout] --> src/data_acl/manager.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct AclManager { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `register_config`, and `get_config` are never used [INFO] [stdout] --> src/data_acl/manager.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl AclManager { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 11 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 17 | pub fn register_config(&self, user_id: String, config: UserDAcls) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 22 | pub fn get_config(&self, user_id: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PostgreSQLProxy` is never constructed [INFO] [stdout] --> src/proxy_srv/postgresql.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct PostgreSQLProxy { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PostgreSQLConfig` is never constructed [INFO] [stdout] --> src/proxy_srv/postgresql.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct PostgreSQLConfig { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/proxy_srv/postgresql.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 26 | impl PostgreSQLConfig { [INFO] [stdout] | --------------------- associated function in this implementation [INFO] [stdout] 27 | /// 创建 PostgreSQL 连接配置 [INFO] [stdout] 28 | pub fn new(host: &str, port: u16, database: &str, username: &str, password: &str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `connect`, and `execute_query` are never used [INFO] [stdout] --> src/proxy_srv/postgresql.rs:77:12 [INFO] [stdout] | [INFO] [stdout] 75 | impl PostgreSQLProxy { [INFO] [stdout] | -------------------- associated items in this implementation [INFO] [stdout] 76 | /// 创建新的 PostgreSQL 代理实例 [INFO] [stdout] 77 | pub fn new(config: PostgreSQLConfig) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 82 | pub async fn connect(&self) -> Result> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 103 | pub async fn execute_query(&self, query: &str, condition: Option<&str>) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `TestSubAble` is never used [INFO] [stdout] --> src/traits.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | pub trait TestSubAble { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 35.96s [INFO] running `Command { std: "docker" "inspect" "fd17d58b61cc1cd790e0b1f34efd8cbbb8637b59698233a41293c4536de007fb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fd17d58b61cc1cd790e0b1f34efd8cbbb8637b59698233a41293c4536de007fb", kill_on_drop: false }` [INFO] [stdout] fd17d58b61cc1cd790e0b1f34efd8cbbb8637b59698233a41293c4536de007fb [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" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 31e07e9cd5458622f3eb166390e3ff14a083d1996809b991f0ee562e92496e5f [INFO] running `Command { std: "docker" "start" "-a" "31e07e9cd5458622f3eb166390e3ff14a083d1996809b991f0ee562e92496e5f", kill_on_drop: false }` [INFO] [stdout] warning: struct `ControlSource` is never constructed [INFO] [stdout] --> src/ctrl_src/mod.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct ControlSource; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling orion-sentinel v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: struct `UserDAcls` is never constructed [INFO] [stdout] --> src/data_acl/define.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct UserDAcls { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `set_user_id` is never used [INFO] [stdout] --> src/data_acl/define.rs:13:19 [INFO] [stdout] | [INFO] [stdout] 12 | impl UserDAcls { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] 13 | pub(crate) fn set_user_id>(&mut self, user_id: S) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DataAcl` is never constructed [INFO] [stdout] --> src/data_acl/define.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | pub struct DataAcl { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DataView` is never constructed [INFO] [stdout] --> src/data_acl/define.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 27 | pub struct DataView { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ViewScope` is never constructed [INFO] [stdout] --> src/data_acl/define.rs:36:12 [INFO] [stdout] | [INFO] [stdout] 36 | pub struct ViewScope { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Condition` is never constructed [INFO] [stdout] --> src/data_acl/define.rs:43:12 [INFO] [stdout] | [INFO] [stdout] 43 | pub struct Condition { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `to_sql_where_condition` and `apply_to_query` are never used [INFO] [stdout] --> src/data_acl/define.rs:50:12 [INFO] [stdout] | [INFO] [stdout] 48 | impl Condition { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] 49 | /// 将所有filter_clauses合并为一个SQL WHERE条件 [INFO] [stdout] 50 | pub fn to_sql_where_condition(&self) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 69 | pub fn apply_to_query(&self, sql: &str) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AclManager` is never constructed [INFO] [stdout] --> src/data_acl/manager.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct AclManager { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `register_config`, and `get_config` are never used [INFO] [stdout] --> src/data_acl/manager.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl AclManager { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 11 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 17 | pub fn register_config(&self, user_id: String, config: UserDAcls) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 22 | pub fn get_config(&self, user_id: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PostgreSQLProxy` is never constructed [INFO] [stdout] --> src/proxy_srv/postgresql.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct PostgreSQLProxy { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PostgreSQLConfig` is never constructed [INFO] [stdout] --> src/proxy_srv/postgresql.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct PostgreSQLConfig { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/proxy_srv/postgresql.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 26 | impl PostgreSQLConfig { [INFO] [stdout] | --------------------- associated function in this implementation [INFO] [stdout] 27 | /// 创建 PostgreSQL 连接配置 [INFO] [stdout] 28 | pub fn new(host: &str, port: u16, database: &str, username: &str, password: &str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `connect`, and `execute_query` are never used [INFO] [stdout] --> src/proxy_srv/postgresql.rs:77:12 [INFO] [stdout] | [INFO] [stdout] 75 | impl PostgreSQLProxy { [INFO] [stdout] | -------------------- associated items in this implementation [INFO] [stdout] 76 | /// 创建新的 PostgreSQL 代理实例 [INFO] [stdout] 77 | pub fn new(config: PostgreSQLConfig) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 82 | pub async fn connect(&self) -> Result> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 103 | pub async fn execute_query(&self, query: &str, condition: Option<&str>) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `TestSubAble` is never used [INFO] [stdout] --> src/traits.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | pub trait TestSubAble { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ControlSource` is never constructed [INFO] [stdout] --> src/ctrl_src/mod.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct ControlSource; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `config` is never read [INFO] [stdout] --> src/proxy_srv/postgresql.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct PostgreSQLProxy { [INFO] [stdout] | --------------- field in this struct [INFO] [stdout] 8 | // PostgreSQL 连接配置 [INFO] [stdout] 9 | config: PostgreSQLConfig, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `connect` is never used [INFO] [stdout] --> src/proxy_srv/postgresql.rs:82:18 [INFO] [stdout] | [INFO] [stdout] 75 | impl PostgreSQLProxy { [INFO] [stdout] | -------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 82 | pub async fn connect(&self) -> Result> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 2.37s [INFO] running `Command { std: "docker" "inspect" "31e07e9cd5458622f3eb166390e3ff14a083d1996809b991f0ee562e92496e5f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "31e07e9cd5458622f3eb166390e3ff14a083d1996809b991f0ee562e92496e5f", kill_on_drop: false }` [INFO] [stdout] 31e07e9cd5458622f3eb166390e3ff14a083d1996809b991f0ee562e92496e5f