[INFO] cloning repository https://github.com/mhxy13867806343/rustchatService [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/mhxy13867806343/rustchatService" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmhxy13867806343%2FrustchatService", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmhxy13867806343%2FrustchatService'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 840509f770a4177c269cdf6848e4300771f827dd [INFO] checking mhxy13867806343/rustchatService against try#24e1a22664233bce1f9b5dc6eee7c1f74327e28c for pr-159343 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmhxy13867806343%2FrustchatService" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/mhxy13867806343/rustchatService [INFO] finished tweaking git repo https://github.com/mhxy13867806343/rustchatService [INFO] tweaked toml for git repo https://github.com/mhxy13867806343/rustchatService written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/mhxy13867806343/rustchatService on toolchain 24e1a22664233bce1f9b5dc6eee7c1f74327e28c [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+24e1a22664233bce1f9b5dc6eee7c1f74327e28c" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/mhxy13867806343/rustchatService 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" "+24e1a22664233bce1f9b5dc6eee7c1f74327e28c" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,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" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:3d5ced03c013a94a2f102a4510f48a6e9184255caf5fd8244f58017bde7f5210" "sleep" "infinity", kill_on_drop: false }` [INFO] [stdout] 15e65fd6a038ea8cfab4db49674ec9d07813b5ebcdca28f5924fea47ade09e23 [INFO] running `Command { std: "docker" "start" "15e65fd6a038ea8cfab4db49674ec9d07813b5ebcdca28f5924fea47ade09e23", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "15e65fd6a038ea8cfab4db49674ec9d07813b5ebcdca28f5924fea47ade09e23", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "15e65fd6a038ea8cfab4db49674ec9d07813b5ebcdca28f5924fea47ade09e23" "/opt/rustwide/cargo-home/bin/cargo" "+24e1a22664233bce1f9b5dc6eee7c1f74327e28c" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "15e65fd6a038ea8cfab4db49674ec9d07813b5ebcdca28f5924fea47ade09e23", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-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" "-w" "/opt/rustwide/workdir" "--user" "0:0" "15e65fd6a038ea8cfab4db49674ec9d07813b5ebcdca28f5924fea47ade09e23" "/opt/rustwide/cargo-home/bin/cargo" "+24e1a22664233bce1f9b5dc6eee7c1f74327e28c" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] Compiling generic-array v0.14.9 [INFO] [stderr] Compiling serde_core v1.0.228 [INFO] [stderr] Compiling cc v1.2.44 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Compiling icu_properties_data v2.1.1 [INFO] [stderr] Compiling icu_normalizer_data v2.1.1 [INFO] [stderr] Compiling libc v0.2.177 [INFO] [stderr] Compiling getrandom v0.3.4 [INFO] [stderr] Compiling stable_deref_trait v1.2.1 [INFO] [stderr] Compiling typenum v1.19.0 [INFO] [stderr] Compiling syn v2.0.108 [INFO] [stderr] Checking parking_lot_core v0.9.12 [INFO] [stderr] Compiling memchr v2.7.6 [INFO] [stderr] Checking getrandom v0.2.16 [INFO] [stderr] Compiling ahash v0.8.12 [INFO] [stderr] Compiling subtle v2.6.1 [INFO] [stderr] Checking writeable v0.6.2 [INFO] [stderr] Checking litemap v0.8.1 [INFO] [stderr] Compiling crossbeam-utils v0.8.21 [INFO] [stderr] Checking parking_lot v0.12.5 [INFO] [stderr] Checking futures-io v0.3.31 [INFO] [stderr] Checking slab v0.4.11 [INFO] [stderr] Checking futures-task v0.3.31 [INFO] [stderr] Compiling zerocopy v0.8.27 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling once_cell v1.21.3 [INFO] [stderr] Compiling rustls v0.21.12 [INFO] [stderr] Compiling untrusted v0.9.0 [INFO] [stderr] Compiling byteorder v1.5.0 [INFO] [stderr] Compiling futures-core v0.3.31 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling pin-project-lite v0.2.16 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking ppv-lite86 v0.2.21 [INFO] [stderr] Checking futures-channel v0.3.31 [INFO] [stderr] Compiling utf8_iter v1.0.4 [INFO] [stderr] Compiling tinyvec_macros v0.1.1 [INFO] [stderr] Checking block-buffer v0.10.4 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Compiling futures-sink v0.3.31 [INFO] [stderr] Compiling bytes v1.10.1 [INFO] [stderr] Compiling percent-encoding v2.3.2 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Compiling tinyvec v1.10.0 [INFO] [stderr] Compiling form_urlencoded v1.2.2 [INFO] [stderr] Checking sha2 v0.10.9 [INFO] [stderr] Compiling tracing-core v0.1.34 [INFO] [stderr] Compiling socket2 v0.6.1 [INFO] [stderr] Compiling mio v1.1.0 [INFO] [stderr] Compiling hashbrown v0.16.0 [INFO] [stderr] Compiling pin-utils v0.1.0 [INFO] [stderr] Compiling ring v0.17.14 [INFO] [stderr] Compiling option-ext v0.2.0 [INFO] [stderr] Compiling simd-adler32 v0.3.7 [INFO] [stderr] Compiling log v0.4.28 [INFO] [stderr] Compiling tokio v1.48.0 [INFO] [stderr] Compiling bitflags v2.10.0 [INFO] [stderr] Compiling iana-time-zone v0.1.64 [INFO] [stderr] Compiling rustix v1.1.2 [INFO] [stderr] Compiling base64 v0.21.7 [INFO] [stderr] Compiling unicode_categories v0.1.1 [INFO] [stderr] Compiling crc-catalog v2.4.0 [INFO] [stderr] Compiling crc v3.3.0 [INFO] [stderr] Compiling chrono v0.4.42 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Checking serde_json v1.0.145 [INFO] [stderr] Checking indexmap v2.12.0 [INFO] [stderr] Compiling miniz_oxide v0.8.9 [INFO] [stderr] Compiling futures-intrusive v0.5.0 [INFO] [stderr] Compiling rustls-pemfile v1.0.4 [INFO] [stderr] Compiling dirs-sys v0.5.0 [INFO] [stderr] Compiling crossbeam-queue v0.3.12 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling unicode-normalization v0.1.25 [INFO] [stderr] Compiling atoi v2.0.0 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Compiling crc32fast v1.5.0 [INFO] [stderr] Compiling aho-corasick v1.1.4 [INFO] [stderr] Compiling hashbrown v0.14.5 [INFO] [stderr] Compiling sqlformat v0.2.6 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling regex-syntax v0.8.8 [INFO] [stderr] Checking minimal-lexical v0.2.1 [INFO] [stderr] Compiling event-listener v2.5.3 [INFO] [stderr] Compiling unicode-properties v0.1.4 [INFO] [stderr] Compiling uuid v1.18.1 [INFO] [stderr] Compiling unicode-bidi v0.3.18 [INFO] [stderr] Compiling linux-raw-sys v0.11.0 [INFO] [stderr] Compiling hashlink v0.8.4 [INFO] [stderr] Compiling webpki-roots v0.25.4 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling stringprep v0.1.5 [INFO] [stderr] Compiling mime_guess v2.0.5 [INFO] [stderr] Compiling flate2 v1.1.5 [INFO] [stderr] Compiling hkdf v0.12.4 [INFO] [stderr] Compiling dirs v6.0.0 [INFO] [stderr] Compiling md-5 v0.10.6 [INFO] [stderr] Compiling multer v3.1.0 [INFO] [stderr] Compiling fastrand v2.3.0 [INFO] [stderr] Compiling home v0.5.12 [INFO] [stderr] Compiling whoami v1.6.1 [INFO] [stderr] Compiling dotenvy v0.15.7 [INFO] [stderr] Compiling thiserror v2.0.17 [INFO] [stderr] Compiling time-core v0.1.6 [INFO] [stderr] Checking deranged v0.5.5 [INFO] [stderr] Compiling time-macros v0.2.24 [INFO] [stderr] Compiling regex-automata v0.4.13 [INFO] [stderr] Compiling heck v0.4.1 [INFO] [stderr] Compiling zip v0.6.6 [INFO] [stderr] Compiling shellexpand v3.1.1 [INFO] [stderr] Compiling rust-embed-utils v8.9.0 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Compiling tokio-stream v0.1.17 [INFO] [stderr] Checking spin v0.9.8 [INFO] [stderr] Compiling sct v0.7.1 [INFO] [stderr] Compiling rustls-webpki v0.101.7 [INFO] [stderr] Checking num-bigint v0.4.6 [INFO] [stderr] Checking time v0.3.44 [INFO] [stderr] Checking serde_path_to_error v0.1.20 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.1 [INFO] [stderr] Compiling zerovec-derive v0.11.2 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling tokio-macros v2.6.0 [INFO] [stderr] Compiling tracing-attributes v0.1.30 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling async-trait v0.1.89 [INFO] [stderr] Compiling tempfile v3.23.0 [INFO] [stderr] Compiling thiserror-impl v2.0.17 [INFO] [stderr] Compiling utoipa-gen v4.3.1 [INFO] [stderr] Compiling rust-embed-impl v8.9.0 [INFO] [stderr] Checking sha1 v0.10.6 [INFO] [stderr] Checking http v0.2.12 [INFO] [stderr] Compiling regex v1.12.2 [INFO] [stderr] Checking zerofrom v0.1.6 [INFO] [stderr] Checking yoke v0.8.1 [INFO] [stderr] Checking thiserror v1.0.69 [INFO] [stderr] Checking tracing v0.1.41 [INFO] [stderr] Checking zerovec v0.11.5 [INFO] [stderr] Checking zerotrie v0.2.3 [INFO] [stderr] Checking matchit v0.7.3 [INFO] [stderr] Checking utf-8 v0.7.6 [INFO] [stderr] Checking pem v3.0.6 [INFO] [stderr] Checking rust-embed v8.9.0 [INFO] [stderr] Checking socket2 v0.4.10 [INFO] [stderr] Checking sha1_smol v1.0.1 [INFO] [stderr] Checking twox-hash v1.6.3 [INFO] [stderr] Checking tracing-subscriber v0.3.20 [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] Checking icu_collections v2.1.1 [INFO] [stderr] Checking simple_asn1 v0.6.3 [INFO] [stderr] Compiling utoipa-swagger-ui v5.0.0 [INFO] [stderr] Checking icu_provider v2.1.1 [INFO] [stderr] Checking either v1.15.0 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking jsonwebtoken v9.3.1 [INFO] [stderr] Checking icu_normalizer v2.1.1 [INFO] [stderr] Checking icu_properties v2.1.1 [INFO] [stderr] Checking axum-core v0.4.5 [INFO] [stderr] Checking idna_adapter v1.2.1 [INFO] [stderr] Checking tokio-util v0.7.17 [INFO] [stderr] Checking hyper v1.7.0 [INFO] [stderr] Checking tower v0.5.2 [INFO] [stderr] Checking idna v1.1.0 [INFO] [stderr] Checking utoipa v4.2.3 [INFO] [stderr] Checking url v2.5.7 [INFO] [stderr] Checking sqlx-core v0.7.4 [INFO] [stderr] Checking tungstenite v0.20.1 [INFO] [stderr] Checking combine v4.6.7 [INFO] [stderr] Checking tower-http v0.5.2 [INFO] [stderr] Checking hyper-util v0.1.17 [INFO] [stderr] Checking tokio-tungstenite v0.20.1 [INFO] [stderr] Checking axum v0.7.9 [INFO] [stderr] Checking sqlx-postgres v0.7.4 [INFO] [stderr] Checking redis v0.23.3 [INFO] [stderr] Compiling sqlx-macros-core v0.7.4 [INFO] [stderr] Compiling sqlx-macros v0.7.4 [INFO] [stderr] Checking sqlx v0.7.4 [INFO] [stderr] Checking chatService v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `errors::DomainError` [INFO] [stdout] --> src/chat_handlers.rs:7:23 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::{AppState, errors::DomainError, chat, errors::ApiErrorEnvelope}; [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: `chrono::Utc` [INFO] [stdout] --> src/chat_handlers.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use chrono::Utc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `User` [INFO] [stdout] --> src/ws/mod.rs:4:43 [INFO] [stdout] | [INFO] [stdout] 4 | pub use server::{ChatMessage, ChatServer, User}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::net::SocketAddr` [INFO] [stdout] --> src/main.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use std::net::SocketAddr; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `errors::DomainError` [INFO] [stdout] --> src/chat_handlers.rs:7:23 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::{AppState, errors::DomainError, chat, errors::ApiErrorEnvelope}; [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: `chrono::Utc` [INFO] [stdout] --> src/chat_handlers.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use chrono::Utc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `User` [INFO] [stdout] --> src/ws/mod.rs:4:43 [INFO] [stdout] | [INFO] [stdout] 4 | pub use server::{ChatMessage, ChatServer, User}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::net::SocketAddr` [INFO] [stdout] --> src/main.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use std::net::SocketAddr; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `wait_seconds` [INFO] [stdout] --> src/comments.rs:100:21 [INFO] [stdout] | [INFO] [stdout] 100 | let wait_seconds = COMMENT_INTERVAL_SECONDS - elapsed; [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_wait_seconds` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `wait_seconds` [INFO] [stdout] --> src/comments.rs:100:21 [INFO] [stdout] | [INFO] [stdout] 100 | let wait_seconds = COMMENT_INTERVAL_SECONDS - elapsed; [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_wait_seconds` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `MessageStatus` is never used [INFO] [stdout] --> src/chat/models.rs:27:10 [INFO] [stdout] | [INFO] [stdout] 27 | pub enum MessageStatus { [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 `ConversationMember` is never constructed [INFO] [stdout] --> src/chat/models.rs:70:12 [INFO] [stdout] | [INFO] [stdout] 70 | pub struct ConversationMember { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `OfflineMessage` is never constructed [INFO] [stdout] --> src/chat/models.rs:97:12 [INFO] [stdout] | [INFO] [stdout] 97 | pub struct OfflineMessage { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `save_offline_message` is never used [INFO] [stdout] --> src/chat/service.rs:559:25 [INFO] [stdout] | [INFO] [stdout] 28 | impl ChatService { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 559 | pub(crate) async fn save_offline_message(&self, user_id: i64, message_id: i64) -> Result<(), DomainError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `load_post_for_update` is never used [INFO] [stdout] --> src/comments.rs:109:14 [INFO] [stdout] | [INFO] [stdout] 48 | impl CommentService { [INFO] [stdout] | ------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 109 | async fn load_post_for_update(&self, tx: &mut Transaction<'_, Postgres>, post_id: i64) -> Result<(Option>, Option... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `TEMP_KEY_EXPIRY_MINUTES` is never used [INFO] [stdout] --> src/secret_key.rs:12:7 [INFO] [stdout] | [INFO] [stdout] 12 | const TEMP_KEY_EXPIRY_MINUTES: i64 = 3; // 临时密钥有效期(分钟) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `TEMP_KEY_LENGTH` is never used [INFO] [stdout] --> src/secret_key.rs:13:7 [INFO] [stdout] | [INFO] [stdout] 13 | const TEMP_KEY_LENGTH: usize = 128; // 临时密钥长度(位) [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `WS_KEY_LENGTH` is never used [INFO] [stdout] --> src/secret_key.rs:14:7 [INFO] [stdout] | [INFO] [stdout] 14 | const WS_KEY_LENGTH: usize = 64; // WebSocket 密钥长度(位) [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `TempKeyType` is never used [INFO] [stdout] --> src/secret_key.rs:18:10 [INFO] [stdout] | [INFO] [stdout] 18 | pub enum TempKeyType { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TempSecretKey` is never constructed [INFO] [stdout] --> src/secret_key.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 27 | pub struct TempSecretKey { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `WebSocketKey` is never constructed [INFO] [stdout] --> src/secret_key.rs:42:12 [INFO] [stdout] | [INFO] [stdout] 42 | pub struct WebSocketKey { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SecretKeyService` is never constructed [INFO] [stdout] --> src/secret_key.rs:52:12 [INFO] [stdout] | [INFO] [stdout] 52 | pub struct SecretKeyService { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/secret_key.rs:61:12 [INFO] [stdout] | [INFO] [stdout] 60 | impl SecretKeyService { [INFO] [stdout] | --------------------- associated items in this implementation [INFO] [stdout] 61 | pub fn new(pool: PgPool) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 79 | pub async fn generate_temp_key( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 159 | pub async fn validate_and_use_temp_key( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 231 | async fn check_temp_key_valid(&self, key_hash: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 249 | pub async fn cleanup_expired_temp_keys(&self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 265 | pub async fn generate_ws_key( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 313 | pub async fn validate_ws_key(&self, key_value: &str) -> Result<(i64, i64), DomainError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 327 | pub async fn remove_ws_key(&self, key_value: &str) -> Result<(), DomainError> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 334 | pub async fn get_user_ws_keys(&self, user_id: i64) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 346 | fn hash_key(&self, key_value: &str) -> String { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 353 | pub fn obfuscate_key(key_value: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `MessageStatus` is never used [INFO] [stdout] --> src/chat/models.rs:27:10 [INFO] [stdout] | [INFO] [stdout] 27 | pub enum MessageStatus { [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 `ConversationMember` is never constructed [INFO] [stdout] --> src/chat/models.rs:70:12 [INFO] [stdout] | [INFO] [stdout] 70 | pub struct ConversationMember { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `OfflineMessage` is never constructed [INFO] [stdout] --> src/chat/models.rs:97:12 [INFO] [stdout] | [INFO] [stdout] 97 | pub struct OfflineMessage { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `save_offline_message` is never used [INFO] [stdout] --> src/chat/service.rs:559:25 [INFO] [stdout] | [INFO] [stdout] 28 | impl ChatService { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 559 | pub(crate) async fn save_offline_message(&self, user_id: i64, message_id: i64) -> Result<(), DomainError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `load_post_for_update` is never used [INFO] [stdout] --> src/comments.rs:109:14 [INFO] [stdout] | [INFO] [stdout] 48 | impl CommentService { [INFO] [stdout] | ------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 109 | async fn load_post_for_update(&self, tx: &mut Transaction<'_, Postgres>, post_id: i64) -> Result<(Option>, Option... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `TEMP_KEY_EXPIRY_MINUTES` is never used [INFO] [stdout] --> src/secret_key.rs:12:7 [INFO] [stdout] | [INFO] [stdout] 12 | const TEMP_KEY_EXPIRY_MINUTES: i64 = 3; // 临时密钥有效期(分钟) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `TEMP_KEY_LENGTH` is never used [INFO] [stdout] --> src/secret_key.rs:13:7 [INFO] [stdout] | [INFO] [stdout] 13 | const TEMP_KEY_LENGTH: usize = 128; // 临时密钥长度(位) [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `WS_KEY_LENGTH` is never used [INFO] [stdout] --> src/secret_key.rs:14:7 [INFO] [stdout] | [INFO] [stdout] 14 | const WS_KEY_LENGTH: usize = 64; // WebSocket 密钥长度(位) [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `TempKeyType` is never used [INFO] [stdout] --> src/secret_key.rs:18:10 [INFO] [stdout] | [INFO] [stdout] 18 | pub enum TempKeyType { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TempSecretKey` is never constructed [INFO] [stdout] --> src/secret_key.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 27 | pub struct TempSecretKey { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `WebSocketKey` is never constructed [INFO] [stdout] --> src/secret_key.rs:42:12 [INFO] [stdout] | [INFO] [stdout] 42 | pub struct WebSocketKey { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SecretKeyService` is never constructed [INFO] [stdout] --> src/secret_key.rs:52:12 [INFO] [stdout] | [INFO] [stdout] 52 | pub struct SecretKeyService { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/secret_key.rs:61:12 [INFO] [stdout] | [INFO] [stdout] 60 | impl SecretKeyService { [INFO] [stdout] | --------------------- associated items in this implementation [INFO] [stdout] 61 | pub fn new(pool: PgPool) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 79 | pub async fn generate_temp_key( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 159 | pub async fn validate_and_use_temp_key( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 231 | async fn check_temp_key_valid(&self, key_hash: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 249 | pub async fn cleanup_expired_temp_keys(&self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 265 | pub async fn generate_ws_key( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 313 | pub async fn validate_ws_key(&self, key_value: &str) -> Result<(i64, i64), DomainError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 327 | pub async fn remove_ws_key(&self, key_value: &str) -> Result<(), DomainError> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 334 | pub async fn get_user_ws_keys(&self, user_id: i64) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 346 | fn hash_key(&self, key_value: &str) -> String { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 353 | pub fn obfuscate_key(key_value: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 16s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: redis v0.23.3, sqlx-postgres v0.7.4 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 3` [INFO] running `Command { std: "docker" "inspect" "15e65fd6a038ea8cfab4db49674ec9d07813b5ebcdca28f5924fea47ade09e23", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "15e65fd6a038ea8cfab4db49674ec9d07813b5ebcdca28f5924fea47ade09e23", kill_on_drop: false }` [INFO] [stdout] 15e65fd6a038ea8cfab4db49674ec9d07813b5ebcdca28f5924fea47ade09e23