[INFO] cloning repository https://github.com/promoteAI/rustray [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/promoteAI/rustray" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FpromoteAI%2Frustray", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FpromoteAI%2Frustray'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 95f5f7d0ad79a2915a3ff726f75a7ff410e0e11c [INFO] checking promoteAI/rustray against master#a932eb36f8adf6c8cdfc450f063943da3112d621 for pr-140209-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FpromoteAI%2Frustray" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/promoteAI/rustray on toolchain a932eb36f8adf6c8cdfc450f063943da3112d621 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a932eb36f8adf6c8cdfc450f063943da3112d621" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/promoteAI/rustray [INFO] finished tweaking git repo https://github.com/promoteAI/rustray [INFO] tweaked toml for git repo https://github.com/promoteAI/rustray written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/promoteAI/rustray 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" "+a932eb36f8adf6c8cdfc450f063943da3112d621" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded portable-atomic v0.3.20 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+a932eb36f8adf6c8cdfc450f063943da3112d621" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a2278fe43c2c704562782828a72dac5080f2cdc2a7ebfaee406a3ffc4d5a6c9f [INFO] running `Command { std: "docker" "start" "-a" "a2278fe43c2c704562782828a72dac5080f2cdc2a7ebfaee406a3ffc4d5a6c9f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a2278fe43c2c704562782828a72dac5080f2cdc2a7ebfaee406a3ffc4d5a6c9f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a2278fe43c2c704562782828a72dac5080f2cdc2a7ebfaee406a3ffc4d5a6c9f", kill_on_drop: false }` [INFO] [stdout] a2278fe43c2c704562782828a72dac5080f2cdc2a7ebfaee406a3ffc4d5a6c9f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+a932eb36f8adf6c8cdfc450f063943da3112d621" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 603f3e1477aca92dd4d24317314df2578d0c72c44b9e9b3bda89897cc4e8dbe5 [INFO] running `Command { std: "docker" "start" "-a" "603f3e1477aca92dd4d24317314df2578d0c72c44b9e9b3bda89897cc4e8dbe5", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.92 [INFO] [stderr] Compiling unicode-ident v1.0.14 [INFO] [stderr] Compiling autocfg v1.4.0 [INFO] [stderr] Compiling libc v0.2.167 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Checking once_cell v1.20.2 [INFO] [stderr] Checking bytes v1.9.0 [INFO] [stderr] Checking pin-project-lite v0.2.15 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Checking smallvec v1.13.2 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Checking scopeguard v1.2.0 [INFO] [stderr] Compiling anyhow v1.0.94 [INFO] [stderr] Checking itoa v1.0.14 [INFO] [stderr] Checking futures-core v0.3.31 [INFO] [stderr] Compiling either v1.13.0 [INFO] [stderr] Compiling rustversion v1.0.18 [INFO] [stderr] Checking pin-utils v0.1.0 [INFO] [stderr] Checking futures-task v0.3.31 [INFO] [stderr] Compiling rustix v0.38.41 [INFO] [stderr] Checking fnv v1.0.7 [INFO] [stderr] Compiling linux-raw-sys v0.4.14 [INFO] [stderr] Checking futures-sink v0.3.31 [INFO] [stderr] Compiling bitflags v2.6.0 [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Checking byteorder v1.5.0 [INFO] [stderr] Compiling serde v1.0.215 [INFO] [stderr] Compiling itertools v0.10.5 [INFO] [stderr] Compiling prettyplease v0.1.25 [INFO] [stderr] Checking tracing-core v0.1.33 [INFO] [stderr] Compiling httparse v1.9.5 [INFO] [stderr] Checking tower-service v0.3.3 [INFO] [stderr] Compiling regex-syntax v0.8.5 [INFO] [stderr] Compiling equivalent v1.0.1 [INFO] [stderr] Compiling hashbrown v0.15.2 [INFO] [stderr] Checking http v0.2.12 [INFO] [stderr] Compiling fastrand v2.2.0 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling syn v2.0.90 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling indexmap v1.9.3 [INFO] [stderr] Compiling home v0.5.9 [INFO] [stderr] Checking mio v1.0.3 [INFO] [stderr] Checking signal-hook-registry v1.4.2 [INFO] [stderr] Checking socket2 v0.5.8 [INFO] [stderr] Checking getrandom v0.2.15 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Compiling shlex v1.3.0 [INFO] [stderr] Checking parking_lot v0.12.3 [INFO] [stderr] Checking try-lock v0.2.5 [INFO] [stderr] Compiling fixedbitset v0.4.2 [INFO] [stderr] Compiling indexmap v2.7.0 [INFO] [stderr] Checking want v0.3.1 [INFO] [stderr] Compiling cc v1.2.2 [INFO] [stderr] Compiling axum-core v0.3.4 [INFO] [stderr] Checking futures-channel v0.3.31 [INFO] [stderr] Compiling log v0.4.22 [INFO] [stderr] Compiling lazy_static v1.5.0 [INFO] [stderr] Checking hashbrown v0.12.3 [INFO] [stderr] Compiling time-core v0.1.2 [INFO] [stderr] Compiling heck v0.4.1 [INFO] [stderr] Compiling num-conv v0.1.0 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling portable-atomic v1.10.0 [INFO] [stderr] Checking powerfmt v0.2.0 [INFO] [stderr] Compiling multimap v0.8.3 [INFO] [stderr] Compiling regex-automata v0.4.9 [INFO] [stderr] Checking httpdate v1.0.3 [INFO] [stderr] Compiling version_check v0.9.5 [INFO] [stderr] Checking tower-layer v0.3.3 [INFO] [stderr] Checking http-body v0.4.6 [INFO] [stderr] Checking memchr v2.7.4 [INFO] [stderr] Checking deranged v0.3.11 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Compiling time-macros v0.2.19 [INFO] [stderr] Compiling axum v0.6.20 [INFO] [stderr] Compiling portable-atomic v0.3.20 [INFO] [stderr] Compiling serde_json v1.0.133 [INFO] [stderr] Checking mime v0.3.17 [INFO] [stderr] Compiling petgraph v0.6.5 [INFO] [stderr] Checking num-bigint v0.4.6 [INFO] [stderr] Checking bitflags v1.3.2 [INFO] [stderr] Compiling ahash v0.7.8 [INFO] [stderr] Checking percent-encoding v2.3.1 [INFO] [stderr] Checking sync_wrapper v0.1.2 [INFO] [stderr] Checking spin v0.5.2 [INFO] [stderr] Compiling metrics v0.20.1 [INFO] [stderr] Checking overload v0.1.1 [INFO] [stderr] Checking base64 v0.21.7 [INFO] [stderr] Checking untrusted v0.7.1 [INFO] [stderr] Checking ryu v1.0.18 [INFO] [stderr] Checking matchit v0.7.3 [INFO] [stderr] Checking base64 v0.13.1 [INFO] [stderr] Checking sharded-slab v0.1.7 [INFO] [stderr] Checking tracing-log v0.2.0 [INFO] [stderr] Compiling which v4.4.2 [INFO] [stderr] Compiling tempfile v3.14.0 [INFO] [stderr] Checking nu-ansi-term v0.46.0 [INFO] [stderr] Checking pem v1.1.1 [INFO] [stderr] Checking thread_local v1.1.8 [INFO] [stderr] Checking hashbrown v0.14.5 [INFO] [stderr] Compiling ring v0.16.20 [INFO] [stderr] Checking dashmap v5.5.3 [INFO] [stderr] Checking tracing-subscriber v0.3.19 [INFO] [stderr] Checking time v0.3.37 [INFO] [stderr] Compiling regex v1.11.1 [INFO] [stderr] Compiling tokio-macros v2.4.0 [INFO] [stderr] Compiling tracing-attributes v0.1.28 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Compiling serde_derive v1.0.215 [INFO] [stderr] Compiling pin-project-internal v1.1.7 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling async-trait v0.1.83 [INFO] [stderr] Compiling prost-derive v0.11.9 [INFO] [stderr] Compiling metrics-macros v0.6.0 [INFO] [stderr] Checking zerocopy v0.7.35 [INFO] [stderr] Checking tokio v1.42.0 [INFO] [stderr] Checking simple_asn1 v0.6.2 [INFO] [stderr] Checking pin-project v1.1.7 [INFO] [stderr] Checking tracing v0.1.41 [INFO] [stderr] Checking ppv-lite86 v0.2.20 [INFO] [stderr] Compiling prost v0.11.9 [INFO] [stderr] Compiling prost-types v0.11.9 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Compiling prost-build v0.11.9 [INFO] [stderr] Compiling tonic-build v0.9.2 [INFO] [stderr] Checking tokio-util v0.7.13 [INFO] [stderr] Checking tokio-io-timeout v1.2.0 [INFO] [stderr] Checking tokio-stream v0.1.16 [INFO] [stderr] Compiling rustray v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Checking h2 v0.3.26 [INFO] [stderr] Checking tower v0.4.13 [INFO] [stderr] Checking uuid v1.11.0 [INFO] [stderr] Checking jsonwebtoken v8.3.0 [INFO] [stderr] Checking hyper v0.14.31 [INFO] [stderr] Checking hyper-timeout v0.4.1 [INFO] [stderr] Checking tonic v0.9.2 [INFO] [stdout] warning: unused imports: `NodeInfo`, `TaskResult`, and `TaskSpec` [INFO] [stdout] --> src/grpc/mod.rs:7:21 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::common::{NodeInfo, TaskSpec, TaskResult}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `NodeInfo`, `TaskResult`, and `TaskSpec` [INFO] [stdout] --> src/grpc/mod.rs:7:21 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::common::{NodeInfo, TaskSpec, TaskResult}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `submit_task` and `get_worker_count` are never used [INFO] [stdout] --> src/head/mod.rs:98:18 [INFO] [stdout] | [INFO] [stdout] 18 | impl HeadNode { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 98 | pub async fn submit_task(&self, task: TaskSpec) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 118 | pub async fn get_worker_count(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TaskScheduler` is never constructed [INFO] [stdout] --> src/scheduler/mod.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct TaskScheduler { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `schedule_task` are never used [INFO] [stdout] --> src/scheduler/mod.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl TaskScheduler { [INFO] [stdout] | ------------------ associated items in this implementation [INFO] [stdout] 14 | /// 创建新的任务调度器 [INFO] [stdout] 15 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | pub async fn schedule_task(&self, task: TaskSpec) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `RoundRobin` and `Random` are never constructed [INFO] [stdout] --> src/scheduler/load_balancer.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 8 | pub enum LoadBalancingStrategy { [INFO] [stdout] | --------------------- variants in this enum [INFO] [stdout] 9 | /// 轮询策略 [INFO] [stdout] 10 | RoundRobin, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 14 | Random, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `LoadBalancingStrategy` 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: fields `strategy` and `node_loads` are never read [INFO] [stdout] --> src/scheduler/load_balancer.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct LoadBalancer { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 19 | /// 负载均衡策略 [INFO] [stdout] 20 | strategy: LoadBalancingStrategy, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 21 | /// 节点负载信息 [INFO] [stdout] 22 | node_loads: HashMap, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `select_node`, `update_node_load`, and `remove_node` are never used [INFO] [stdout] --> src/scheduler/load_balancer.rs:41:12 [INFO] [stdout] | [INFO] [stdout] 25 | impl LoadBalancer { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 41 | pub fn select_node<'a>(&self, available_nodes: &'a [NodeInfo]) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 84 | pub fn update_node_load(&mut self, node_id: Uuid, load: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 93 | pub fn remove_node(&mut self, node_id: &Uuid) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `jwt_secret` is never read [INFO] [stdout] --> src/security/mod.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct SecurityConfig { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] 6 | /// JWT密钥 [INFO] [stdout] 7 | pub jwt_secret: Vec, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SecurityConfig` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/security/mod.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl SecurityConfig { [INFO] [stdout] | ------------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 18 | pub fn new(jwt_secret: Vec, token_expiration: u64) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `decoding_key` is never read [INFO] [stdout] --> src/security/auth.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 22 | pub struct AuthManager { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 26 | decoding_key: DecodingKey, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `with_config` and `verify_token` are never used [INFO] [stdout] --> src/security/auth.rs:49:12 [INFO] [stdout] | [INFO] [stdout] 31 | impl AuthManager { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 49 | pub fn with_config(config: SecurityConfig) -> Self { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 83 | pub fn verify_token(&self, token: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AuthInterceptor` is never constructed [INFO] [stdout] --> src/security/auth.rs:93:12 [INFO] [stdout] | [INFO] [stdout] 93 | pub struct AuthInterceptor { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `intercept` are never used [INFO] [stdout] --> src/security/auth.rs:103:12 [INFO] [stdout] | [INFO] [stdout] 98 | impl AuthInterceptor { [INFO] [stdout] | -------------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 103 | pub fn new(auth_manager: AuthManager) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 111 | pub fn intercept(&self, request: Request) -> std::result::Result, Status> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Pending`, `Running`, `Completed`, and `Failed` are never constructed [INFO] [stdout] --> src/task/mod.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 12 | pub enum TaskStatus { [INFO] [stdout] | ---------- variants in this enum [INFO] [stdout] 13 | /// 等待执行 [INFO] [stdout] 14 | Pending, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 15 | /// 正在执行 [INFO] [stdout] 16 | Running, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 17 | /// 已完成 [INFO] [stdout] 18 | Completed, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 19 | /// 执行失败 [INFO] [stdout] 20 | Failed, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TaskStatus` 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: struct `TaskManager` is never constructed [INFO] [stdout] --> src/task/mod.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 24 | pub struct TaskManager { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/task/mod.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 33 | impl TaskManager { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] 34 | /// 创建新的任务管理器 [INFO] [stdout] 35 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 47 | pub async fn submit_task(&self, task: TaskSpec) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 67 | pub async fn update_task_status(&self, task_id: Uuid, status: TaskStatus) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 86 | pub async fn set_task_result(&self, result: TaskResult) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 110 | pub async fn get_task_status(&self, task_id: Uuid) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 124 | pub async fn get_task_result(&self, task_id: Uuid) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 130 | pub fn notification_manager(&self) -> ¬ification::NotificationManager { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `buffer_size` is never read [INFO] [stdout] --> src/task/notification.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct NotificationManager { [INFO] [stdout] | ------------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 11 | buffer_size: usize, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `NotificationManager` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `notify`, `subscriber_count`, and `buffer_capacity` are never used [INFO] [stdout] --> src/task/notification.rs:31:18 [INFO] [stdout] | [INFO] [stdout] 14 | impl NotificationManager { [INFO] [stdout] | ------------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 31 | pub async fn notify(&self, result: TaskResult) -> Result<()> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | pub fn subscriber_count(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 47 | pub fn buffer_capacity(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `submit_task` and `get_worker_count` are never used [INFO] [stdout] --> src/head/mod.rs:98:18 [INFO] [stdout] | [INFO] [stdout] 18 | impl HeadNode { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 98 | pub async fn submit_task(&self, task: TaskSpec) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 118 | pub async fn get_worker_count(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TaskScheduler` is never constructed [INFO] [stdout] --> src/scheduler/mod.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct TaskScheduler { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `schedule_task` are never used [INFO] [stdout] --> src/scheduler/mod.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl TaskScheduler { [INFO] [stdout] | ------------------ associated items in this implementation [INFO] [stdout] 14 | /// 创建新的任务调度器 [INFO] [stdout] 15 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | pub async fn schedule_task(&self, task: TaskSpec) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `RoundRobin` and `Random` are never constructed [INFO] [stdout] --> src/scheduler/load_balancer.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 8 | pub enum LoadBalancingStrategy { [INFO] [stdout] | --------------------- variants in this enum [INFO] [stdout] 9 | /// 轮询策略 [INFO] [stdout] 10 | RoundRobin, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 14 | Random, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `LoadBalancingStrategy` 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: fields `strategy` and `node_loads` are never read [INFO] [stdout] --> src/scheduler/load_balancer.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct LoadBalancer { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 19 | /// 负载均衡策略 [INFO] [stdout] 20 | strategy: LoadBalancingStrategy, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 21 | /// 节点负载信息 [INFO] [stdout] 22 | node_loads: HashMap, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `select_node`, `update_node_load`, and `remove_node` are never used [INFO] [stdout] --> src/scheduler/load_balancer.rs:41:12 [INFO] [stdout] | [INFO] [stdout] 25 | impl LoadBalancer { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 41 | pub fn select_node<'a>(&self, available_nodes: &'a [NodeInfo]) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 84 | pub fn update_node_load(&mut self, node_id: Uuid, load: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 93 | pub fn remove_node(&mut self, node_id: &Uuid) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `jwt_secret` is never read [INFO] [stdout] --> src/security/mod.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct SecurityConfig { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] 6 | /// JWT密钥 [INFO] [stdout] 7 | pub jwt_secret: Vec, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SecurityConfig` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/security/mod.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl SecurityConfig { [INFO] [stdout] | ------------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 18 | pub fn new(jwt_secret: Vec, token_expiration: u64) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `decoding_key` is never read [INFO] [stdout] --> src/security/auth.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 22 | pub struct AuthManager { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 26 | decoding_key: DecodingKey, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `with_config` and `verify_token` are never used [INFO] [stdout] --> src/security/auth.rs:49:12 [INFO] [stdout] | [INFO] [stdout] 31 | impl AuthManager { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 49 | pub fn with_config(config: SecurityConfig) -> Self { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 83 | pub fn verify_token(&self, token: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AuthInterceptor` is never constructed [INFO] [stdout] --> src/security/auth.rs:93:12 [INFO] [stdout] | [INFO] [stdout] 93 | pub struct AuthInterceptor { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `intercept` are never used [INFO] [stdout] --> src/security/auth.rs:103:12 [INFO] [stdout] | [INFO] [stdout] 98 | impl AuthInterceptor { [INFO] [stdout] | -------------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 103 | pub fn new(auth_manager: AuthManager) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 111 | pub fn intercept(&self, request: Request) -> std::result::Result, Status> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Pending`, `Running`, `Completed`, and `Failed` are never constructed [INFO] [stdout] --> src/task/mod.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 12 | pub enum TaskStatus { [INFO] [stdout] | ---------- variants in this enum [INFO] [stdout] 13 | /// 等待执行 [INFO] [stdout] 14 | Pending, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 15 | /// 正在执行 [INFO] [stdout] 16 | Running, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 17 | /// 已完成 [INFO] [stdout] 18 | Completed, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 19 | /// 执行失败 [INFO] [stdout] 20 | Failed, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TaskStatus` 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: struct `TaskManager` is never constructed [INFO] [stdout] --> src/task/mod.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 24 | pub struct TaskManager { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/task/mod.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 33 | impl TaskManager { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] 34 | /// 创建新的任务管理器 [INFO] [stdout] 35 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 47 | pub async fn submit_task(&self, task: TaskSpec) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 67 | pub async fn update_task_status(&self, task_id: Uuid, status: TaskStatus) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 86 | pub async fn set_task_result(&self, result: TaskResult) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 110 | pub async fn get_task_status(&self, task_id: Uuid) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 124 | pub async fn get_task_result(&self, task_id: Uuid) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 130 | pub fn notification_manager(&self) -> ¬ification::NotificationManager { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `buffer_size` is never read [INFO] [stdout] --> src/task/notification.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct NotificationManager { [INFO] [stdout] | ------------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 11 | buffer_size: usize, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `NotificationManager` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `notify`, `subscriber_count`, and `buffer_capacity` are never used [INFO] [stdout] --> src/task/notification.rs:31:18 [INFO] [stdout] | [INFO] [stdout] 14 | impl NotificationManager { [INFO] [stdout] | ------------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 31 | pub async fn notify(&self, result: TaskResult) -> Result<()> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | pub fn subscriber_count(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 47 | pub fn buffer_capacity(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 56.37s [INFO] running `Command { std: "docker" "inspect" "603f3e1477aca92dd4d24317314df2578d0c72c44b9e9b3bda89897cc4e8dbe5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "603f3e1477aca92dd4d24317314df2578d0c72c44b9e9b3bda89897cc4e8dbe5", kill_on_drop: false }` [INFO] [stdout] 603f3e1477aca92dd4d24317314df2578d0c72c44b9e9b3bda89897cc4e8dbe5