[INFO] cloning repository https://github.com/laoxong/nostr-relay
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/laoxong/nostr-relay" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flaoxong%2Fnostr-relay", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flaoxong%2Fnostr-relay'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 7ac67102ef013f18b63f183085c087f6fc55ab03
[INFO] checking laoxong/nostr-relay against 0b63defc8fd68957c635fe61f097b84df8fd9611 for pr-154715
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flaoxong%2Fnostr-relay" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/laoxong/nostr-relay
[INFO] finished tweaking git repo https://github.com/laoxong/nostr-relay
[INFO] tweaked toml for git repo https://github.com/laoxong/nostr-relay written to /workspace/builds/worker-4-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/laoxong/nostr-relay on toolchain 0b63defc8fd68957c635fe61f097b84df8fd9611
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+0b63defc8fd68957c635fe61f097b84df8fd9611" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/laoxong/nostr-relay 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" "+0b63defc8fd68957c635fe61f097b84df8fd9611" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Updating crates.io index
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded tungstenite v0.26.2
[INFO] [stderr]   Downloaded toml-cfg v0.2.0
[INFO] [stderr]   Downloaded uuid v1.17.0
[INFO] [stderr]   Downloaded tokio-tungstenite v0.26.2
[INFO] [stderr]   Downloaded sqlx-macros v0.8.6
[INFO] [stderr]   Downloaded atoi v2.0.0
[INFO] [stderr]   Downloaded env_filter v0.1.3
[INFO] [stderr]   Downloaded etcetera v0.8.0
[INFO] [stderr]   Downloaded crossbeam-queue v0.3.12
[INFO] [stderr]   Downloaded wasite v0.1.0
[INFO] [stderr]   Downloaded hashlink v0.10.0
[INFO] [stderr]   Downloaded whoami v1.6.0
[INFO] [stderr]   Downloaded sqlx-macros-core v0.8.6
[INFO] [stderr]   Downloaded redox_syscall v0.5.17
[INFO] [stderr]   Downloaded rustc-demangle v0.1.26
[INFO] [stderr]   Downloaded stringprep v0.1.5
[INFO] [stderr]   Downloaded env_logger v0.11.8
[INFO] [stderr]   Downloaded unicode-properties v0.1.3
[INFO] [stderr]   Downloaded portable-atomic-util v0.2.4
[INFO] [stderr]   Downloaded socket2 v0.6.0
[INFO] [stderr]   Downloaded tinyvec v1.9.0
[INFO] [stderr]   Downloaded unicode-bidi v0.3.18
[INFO] [stderr]   Downloaded flume v0.11.1
[INFO] [stderr]   Downloaded sqlx-mysql v0.8.6
[INFO] [stderr]   Downloaded jiff-static v0.2.15
[INFO] [stderr]   Downloaded futures-intrusive v0.5.0
[INFO] [stderr]   Downloaded sqlx-sqlite v0.8.6
[INFO] [stderr]   Downloaded rustls-webpki v0.103.4
[INFO] [stderr]   Downloaded secp256k1 v0.31.1
[INFO] [stderr]   Downloaded io-uring v0.7.9
[INFO] [stderr]   Downloaded cc v1.2.31
[INFO] [stderr]   Downloaded sqlx-core v0.8.6
[INFO] [stderr]   Downloaded serde_json v1.0.142
[INFO] [stderr]   Downloaded sqlx-postgres v0.8.6
[INFO] [stderr]   Downloaded unicode-normalization v0.1.24
[INFO] [stderr]   Downloaded portable-atomic v1.11.1
[INFO] [stderr]   Downloaded sqlx v0.8.6
[INFO] [stderr]   Downloaded hkdf v0.12.4
[INFO] [stderr]   Downloaded webpki-roots v1.0.2
[INFO] [stderr]   Downloaded rustls v0.23.31
[INFO] [stderr]   Downloaded jiff v0.2.15
[INFO] [stderr]   Downloaded tokio v1.47.1
[INFO] [stderr]   Downloaded secp256k1-sys v0.11.0
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/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:00c5645b54fe3ce5dae1417175e3c7fb6a6646c021d554ecd63a097b8b9f3602" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] e0517a3c71a3772c3c332a79824ae5b46509ba4c352d420815252f00f554fd77
[INFO] running `Command { std: "docker" "start" "e0517a3c71a3772c3c332a79824ae5b46509ba4c352d420815252f00f554fd77", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "e0517a3c71a3772c3c332a79824ae5b46509ba4c352d420815252f00f554fd77", 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" "e0517a3c71a3772c3c332a79824ae5b46509ba4c352d420815252f00f554fd77" "/opt/rustwide/cargo-home/bin/cargo" "+0b63defc8fd68957c635fe61f097b84df8fd9611" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "e0517a3c71a3772c3c332a79824ae5b46509ba4c352d420815252f00f554fd77", 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" "e0517a3c71a3772c3c332a79824ae5b46509ba4c352d420815252f00f554fd77" "/opt/rustwide/cargo-home/bin/cargo" "+0b63defc8fd68957c635fe61f097b84df8fd9611" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stderr]    Compiling proc-macro2 v1.0.95
[INFO] [stderr]    Compiling unicode-ident v1.0.18
[INFO] [stderr]    Compiling libc v0.2.174
[INFO] [stderr]    Compiling autocfg v1.5.0
[INFO] [stderr]    Compiling shlex v1.3.0
[INFO] [stderr]    Compiling typenum v1.18.0
[INFO] [stderr]    Compiling version_check v0.9.5
[INFO] [stderr]     Checking cfg-if v1.0.1
[INFO] [stderr]    Compiling serde v1.0.219
[INFO] [stderr]    Compiling icu_properties_data v2.0.1
[INFO] [stderr]    Compiling stable_deref_trait v1.2.0
[INFO] [stderr]    Compiling icu_normalizer_data v2.0.0
[INFO] [stderr]    Compiling parking_lot_core v0.9.11
[INFO] [stderr]    Compiling crossbeam-utils v0.8.21
[INFO] [stderr]     Checking smallvec v1.15.1
[INFO] [stderr]    Compiling litemap v0.8.0
[INFO] [stderr]    Compiling writeable v0.6.1
[INFO] [stderr]    Compiling cc v1.2.31
[INFO] [stderr]     Checking memchr v2.7.5
[INFO] [stderr]    Compiling thiserror v2.0.12
[INFO] [stderr]    Compiling pin-project-lite v0.2.16
[INFO] [stderr]    Compiling generic-array v0.14.7
[INFO] [stderr]    Compiling futures-core v0.3.31
[INFO] [stderr]    Compiling foldhash v0.1.5
[INFO] [stderr]     Checking scopeguard v1.2.0
[INFO] [stderr]    Compiling allocator-api2 v0.2.21
[INFO] [stderr]    Compiling serde_json v1.0.142
[INFO] [stderr]    Compiling zeroize v1.8.1
[INFO] [stderr]    Compiling rustls v0.23.31
[INFO] [stderr]    Compiling lock_api v0.4.13
[INFO] [stderr]    Compiling num-traits v0.2.19
[INFO] [stderr]    Compiling rustls-pki-types v1.12.0
[INFO] [stderr]    Compiling hashbrown v0.15.4
[INFO] [stderr]    Compiling getrandom v0.3.3
[INFO] [stderr]    Compiling futures-sink v0.3.31
[INFO] [stderr]    Compiling pkg-config v0.3.32
[INFO] [stderr]    Compiling vcpkg v0.2.15
[INFO] [stderr]    Compiling untrusted v0.9.0
[INFO] [stderr]    Compiling once_cell v1.21.3
[INFO] [stderr]    Compiling percent-encoding v2.3.1
[INFO] [stderr]    Compiling zerocopy v0.8.26
[INFO] [stderr]     Checking bytes v1.10.1
[INFO] [stderr]     Checking log v0.4.27
[INFO] [stderr]     Checking itoa v1.0.15
[INFO] [stderr]    Compiling form_urlencoded v1.2.1
[INFO] [stderr]    Compiling quote v1.0.40
[INFO] [stderr]    Compiling futures-task v0.3.31
[INFO] [stderr]    Compiling getrandom v0.2.16
[INFO] [stderr]    Compiling socket2 v0.6.0
[INFO] [stderr]    Compiling indexmap v2.10.0
[INFO] [stderr]    Compiling mio v1.0.4
[INFO] [stderr]    Compiling pin-utils v0.1.0
[INFO] [stderr]    Compiling syn v2.0.104
[INFO] [stderr]     Checking cpufeatures v0.2.17
[INFO] [stderr]    Compiling futures-io v0.3.31
[INFO] [stderr]     Checking parking_lot v0.12.4
[INFO] [stderr]    Compiling slab v0.4.10
[INFO] [stderr]    Compiling utf8_iter v1.0.4
[INFO] [stderr]    Compiling ryu v1.0.20
[INFO] [stderr]    Compiling concurrent-queue v2.5.0
[INFO] [stderr]     Checking signal-hook-registry v1.4.5
[INFO] [stderr]    Compiling futures-util v0.3.31
[INFO] [stderr]    Compiling tracing-core v0.1.34
[INFO] [stderr]    Compiling webpki-roots v1.0.2
[INFO] [stderr]    Compiling crc-catalog v2.4.0
[INFO] [stderr]    Compiling block-buffer v0.10.4
[INFO] [stderr]    Compiling crypto-common v0.1.6
[INFO] [stderr]    Compiling subtle v2.6.1
[INFO] [stderr]    Compiling digest v0.10.7
[INFO] [stderr]     Checking equivalent v1.0.2
[INFO] [stderr]    Compiling parking v2.2.1
[INFO] [stderr]    Compiling sha2 v0.10.9
[INFO] [stderr]    Compiling futures-intrusive v0.5.0
[INFO] [stderr]    Compiling tokio v1.47.1
[INFO] [stderr]    Compiling event-listener v5.4.0
[INFO] [stderr]    Compiling crc v3.3.0
[INFO] [stderr]    Compiling webpki-roots v0.26.11
[INFO] [stderr]    Compiling crossbeam-queue v0.3.12
[INFO] [stderr]     Checking rand_core v0.9.3
[INFO] [stderr]    Compiling hashlink v0.10.0
[INFO] [stderr]    Compiling ring v0.17.14
[INFO] [stderr]    Compiling libsqlite3-sys v0.30.1
[INFO] [stderr]    Compiling spin v0.9.8
[INFO] [stderr]    Compiling base64 v0.22.1
[INFO] [stderr]     Checking aho-corasick v1.1.3
[INFO] [stderr]    Compiling futures-channel v0.3.31
[INFO] [stderr]    Compiling flume v0.11.1
[INFO] [stderr]     Checking regex-syntax v0.8.5
[INFO] [stderr]    Compiling secp256k1-sys v0.11.0
[INFO] [stderr]     Checking utf8parse v0.2.2
[INFO] [stderr]    Compiling atoi v2.0.0
[INFO] [stderr]    Compiling heck v0.5.0
[INFO] [stderr]    Compiling toml_write v0.1.2
[INFO] [stderr]    Compiling dotenvy v0.15.7
[INFO] [stderr]     Checking ppv-lite86 v0.2.21
[INFO] [stderr]    Compiling hex v0.4.3
[INFO] [stderr]    Compiling winnow v0.7.12
[INFO] [stderr]     Checking http v1.3.1
[INFO] [stderr]     Checking anstyle-parse v0.2.7
[INFO] [stderr]     Checking sha1 v0.10.6
[INFO] [stderr]     Checking utf-8 v0.7.6
[INFO] [stderr]     Checking is_terminal_polyfill v1.70.1
[INFO] [stderr]     Checking colorchoice v1.0.4
[INFO] [stderr]     Checking anstyle v1.0.11
[INFO] [stderr]    Compiling anyhow v1.0.98
[INFO] [stderr]     Checking anstyle-query v1.1.3
[INFO] [stderr]     Checking data-encoding v2.9.0
[INFO] [stderr]     Checking rand_chacha v0.9.0
[INFO] [stderr]    Compiling heck v0.4.1
[INFO] [stderr]     Checking jiff v0.2.15
[INFO] [stderr]     Checking regex-automata v0.4.9
[INFO] [stderr]     Checking anstream v0.6.19
[INFO] [stderr]     Checking rand v0.9.2
[INFO] [stderr]     Checking uuid v1.17.0
[INFO] [stderr]    Compiling futures-executor v0.3.31
[INFO] [stderr]     Checking regex v1.11.1
[INFO] [stderr]     Checking env_filter v0.1.3
[INFO] [stderr]    Compiling tokio-stream v0.1.17
[INFO] [stderr]     Checking rustls-webpki v0.103.4
[INFO] [stderr]     Checking secp256k1 v0.31.1
[INFO] [stderr]    Compiling synstructure v0.13.2
[INFO] [stderr]     Checking env_logger v0.11.8
[INFO] [stderr]    Compiling zerofrom-derive v0.1.6
[INFO] [stderr]    Compiling yoke-derive v0.8.0
[INFO] [stderr]    Compiling zerovec-derive v0.11.1
[INFO] [stderr]    Compiling displaydoc v0.2.5
[INFO] [stderr]    Compiling serde_derive v1.0.219
[INFO] [stderr]    Compiling thiserror-impl v2.0.12
[INFO] [stderr]    Compiling tracing-attributes v0.1.30
[INFO] [stderr]    Compiling futures-macro v0.3.31
[INFO] [stderr]    Compiling tokio-macros v2.5.0
[INFO] [stderr]    Compiling tracing v0.1.41
[INFO] [stderr]     Checking tungstenite v0.26.2
[INFO] [stderr]    Compiling zerofrom v0.1.6
[INFO] [stderr]     Checking yoke v0.8.0
[INFO] [stderr]     Checking zerovec v0.11.2
[INFO] [stderr]     Checking zerotrie v0.2.2
[INFO] [stderr]     Checking tinystr v0.8.1
[INFO] [stderr]     Checking potential_utf v0.1.2
[INFO] [stderr]     Checking icu_collections v2.0.0
[INFO] [stderr]     Checking icu_locale_core v2.0.0
[INFO] [stderr]     Checking icu_provider v2.0.0
[INFO] [stderr]     Checking icu_properties v2.0.1
[INFO] [stderr]     Checking icu_normalizer v2.0.0
[INFO] [stderr]     Checking idna_adapter v1.2.1
[INFO] [stderr]     Checking idna v1.0.3
[INFO] [stderr]     Checking url v2.5.4
[INFO] [stderr]     Checking tokio-tungstenite v0.26.2
[INFO] [stderr]     Checking either v1.15.0
[INFO] [stderr]     Checking serde_urlencoded v0.7.1
[INFO] [stderr]     Checking sqlx-core v0.8.6
[INFO] [stderr]    Compiling toml_datetime v0.6.11
[INFO] [stderr]    Compiling serde_spanned v0.6.9
[INFO] [stderr]    Compiling toml_edit v0.22.27
[INFO] [stderr]     Checking sqlx-sqlite v0.8.6
[INFO] [stderr]    Compiling toml v0.8.23
[INFO] [stderr]    Compiling toml-cfg v0.2.0
[INFO] [stderr]    Compiling sqlx-macros-core v0.8.6
[INFO] [stderr]    Compiling sqlx-macros v0.8.6
[INFO] [stderr]     Checking sqlx v0.8.6
[INFO] [stderr]     Checking nostr-relay v0.0.4 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `std::collections::HashSet`
[INFO] [stdout]  --> src/database.rs:7:5
[INFO] [stdout]   |
[INFO] [stdout] 7 | use std::collections::HashSet;
[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: `anyhow`
[INFO] [stdout]  --> src/handlers.rs:1:22
[INFO] [stdout]   |
[INFO] [stdout] 1 | use anyhow::{Result, anyhow};
[INFO] [stdout]   |                      ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `error` and `info`
[INFO] [stdout]  --> src/handlers.rs:3:11
[INFO] [stdout]   |
[INFO] [stdout] 3 | use log::{error, info};
[INFO] [stdout]   |           ^^^^^  ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Deserialize`
[INFO] [stdout]  --> src/models.rs:2:13
[INFO] [stdout]   |
[INFO] [stdout] 2 | use serde::{Deserialize, Serialize};
[INFO] [stdout]   |             ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `error`
[INFO] [stdout]  --> src/nostr/event.rs:2:18
[INFO] [stdout]   |
[INFO] [stdout] 2 | use log::{debug, error, info};
[INFO] [stdout]   |                  ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Value`
[INFO] [stdout]  --> src/nostr/event.rs:6:18
[INFO] [stdout]   |
[INFO] [stdout] 6 | use serde_json::{Value, json};
[INFO] [stdout]   |                  ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::collections::HashMap`
[INFO] [stdout]  --> src/nostr/filter.rs:5:5
[INFO] [stdout]   |
[INFO] [stdout] 5 | use std::collections::HashMap;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `WebSocketStream`
[INFO] [stdout]   --> src/ws_logic.rs:12:25
[INFO] [stdout]    |
[INFO] [stdout] 12 | use tokio_tungstenite::{WebSocketStream, accept_async, tungstenite::protocol::Message};
[INFO] [stdout]    |                         ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `ClientMessage`
[INFO] [stdout]   --> src/ws_logic.rs:21:20
[INFO] [stdout]    |
[INFO] [stdout] 21 | use crate::nostr::{ClientMessage, Filter, NostrEvent};
[INFO] [stdout]    |                    ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::collections::HashSet`
[INFO] [stdout]  --> src/database.rs:7:5
[INFO] [stdout]   |
[INFO] [stdout] 7 | use std::collections::HashSet;
[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: `anyhow`
[INFO] [stdout]  --> src/handlers.rs:1:22
[INFO] [stdout]   |
[INFO] [stdout] 1 | use anyhow::{Result, anyhow};
[INFO] [stdout]   |                      ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `error` and `info`
[INFO] [stdout]  --> src/handlers.rs:3:11
[INFO] [stdout]   |
[INFO] [stdout] 3 | use log::{error, info};
[INFO] [stdout]   |           ^^^^^  ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Deserialize`
[INFO] [stdout]  --> src/models.rs:2:13
[INFO] [stdout]   |
[INFO] [stdout] 2 | use serde::{Deserialize, Serialize};
[INFO] [stdout]   |             ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `error`
[INFO] [stdout]  --> src/nostr/event.rs:2:18
[INFO] [stdout]   |
[INFO] [stdout] 2 | use log::{debug, error, info};
[INFO] [stdout]   |                  ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Value`
[INFO] [stdout]  --> src/nostr/event.rs:6:18
[INFO] [stdout]   |
[INFO] [stdout] 6 | use serde_json::{Value, json};
[INFO] [stdout]   |                  ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::collections::HashMap`
[INFO] [stdout]  --> src/nostr/filter.rs:5:5
[INFO] [stdout]   |
[INFO] [stdout] 5 | use std::collections::HashMap;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `WebSocketStream`
[INFO] [stdout]   --> src/ws_logic.rs:12:25
[INFO] [stdout]    |
[INFO] [stdout] 12 | use tokio_tungstenite::{WebSocketStream, accept_async, tungstenite::protocol::Message};
[INFO] [stdout]    |                         ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `ClientMessage`
[INFO] [stdout]   --> src/ws_logic.rs:21:20
[INFO] [stdout]    |
[INFO] [stdout] 21 | use crate::nostr::{ClientMessage, Filter, NostrEvent};
[INFO] [stdout]    |                    ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated associated function `secp256k1::schnorr::Signature::from_slice`: Use `from_byte_array` instead.
[INFO] [stdout]    --> src/nostr/event.rs:135:67
[INFO] [stdout]     |
[INFO] [stdout] 135 |         let signature: SchnorrSignature = match SchnorrSignature::from_slice(&sig_bytes) {
[INFO] [stdout]     |                                                                   ^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(deprecated)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated associated function `secp256k1::schnorr::Signature::from_slice`: Use `from_byte_array` instead.
[INFO] [stdout]    --> src/nostr/event.rs:135:67
[INFO] [stdout]     |
[INFO] [stdout] 135 |         let signature: SchnorrSignature = match SchnorrSignature::from_slice(&sig_bytes) {
[INFO] [stdout]     |                                                                   ^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(deprecated)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `relay_url` is assigned to, but never used
[INFO] [stdout]    --> src/nostr/event.rs:281:13
[INFO] [stdout]     |
[INFO] [stdout] 281 |         let mut relay_url = None; // NIP-42 也包含 relay url，但在这个验证中不是强制的。
[INFO] [stdout]     |             ^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: consider using `_relay_url` instead
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `relay_url` is never read
[INFO] [stdout]    --> src/nostr/event.rs:286:32
[INFO] [stdout]     |
[INFO] [stdout] 286 |                     "relay" => relay_url = Some(&tag[1]),
[INFO] [stdout]     |                                ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = help: maybe it is overwritten before being read?
[INFO] [stdout]     = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `relay_url` is assigned to, but never used
[INFO] [stdout]    --> src/nostr/event.rs:281:13
[INFO] [stdout]     |
[INFO] [stdout] 281 |         let mut relay_url = None; // NIP-42 也包含 relay url，但在这个验证中不是强制的。
[INFO] [stdout]     |             ^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: consider using `_relay_url` instead
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `relay_url` is never read
[INFO] [stdout]    --> src/nostr/event.rs:286:32
[INFO] [stdout]     |
[INFO] [stdout] 286 |                     "relay" => relay_url = Some(&tag[1]),
[INFO] [stdout]     |                                ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = help: maybe it is overwritten before being read?
[INFO] [stdout]     = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `DEFAULT_BIND_ADDR` is never used
[INFO] [stdout]  --> src/constants.rs:5:11
[INFO] [stdout]   |
[INFO] [stdout] 5 | pub const DEFAULT_BIND_ADDR: &str = "0.0.0.0:8080";
[INFO] [stdout]   |           ^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `DEFAULT_DB_PATH` is never used
[INFO] [stdout]  --> src/constants.rs:6:11
[INFO] [stdout]   |
[INFO] [stdout] 6 | pub const DEFAULT_DB_PATH: &str = "nostr.db";
[INFO] [stdout]   |           ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `MAX_EVENT_TAGS` is never used
[INFO] [stdout]  --> src/constants.rs:7:11
[INFO] [stdout]   |
[INFO] [stdout] 7 | pub const MAX_EVENT_TAGS: u32 = 5000;
[INFO] [stdout]   |           ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `MAX_LIMIT` is never used
[INFO] [stdout]  --> src/constants.rs:8:11
[INFO] [stdout]   |
[INFO] [stdout] 8 | pub const MAX_LIMIT: u64 = 500;
[INFO] [stdout]   |           ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `DEFAULT_LIMIT` is never used
[INFO] [stdout]  --> src/constants.rs:9:11
[INFO] [stdout]   |
[INFO] [stdout] 9 | pub const DEFAULT_LIMIT: u64 = 10;
[INFO] [stdout]   |           ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `MAX_FILTERS_PER_REQ` is never used
[INFO] [stdout]   --> src/constants.rs:10:11
[INFO] [stdout]    |
[INFO] [stdout] 10 | pub const MAX_FILTERS_PER_REQ: usize = 100;
[INFO] [stdout]    |           ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `BROADCAST_CHANNEL_SIZE` is never used
[INFO] [stdout]   --> src/constants.rs:11:11
[INFO] [stdout]    |
[INFO] [stdout] 11 | pub const BROADCAST_CHANNEL_SIZE: usize = 100;
[INFO] [stdout]    |           ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `CLIENT_CHANNEL_SIZE` is never used
[INFO] [stdout]   --> src/constants.rs:12:11
[INFO] [stdout]    |
[INFO] [stdout] 12 | pub const CLIENT_CHANNEL_SIZE: usize = 32;
[INFO] [stdout]    |           ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `MAX_SUBSCRIPTIONS` is never used
[INFO] [stdout]   --> src/constants.rs:13:11
[INFO] [stdout]    |
[INFO] [stdout] 13 | pub const MAX_SUBSCRIPTIONS: usize = 20;
[INFO] [stdout]    |           ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: static `SERVER_INFO` is never used
[INFO] [stdout]   --> src/constants.rs:15:12
[INFO] [stdout]    |
[INFO] [stdout] 15 | pub static SERVER_INFO: Lazy<ServerInfo> = Lazy::new(|| ServerInfo {
[INFO] [stdout]    |            ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `init_database` is never used
[INFO] [stdout]  --> src/database.rs:9:14
[INFO] [stdout]   |
[INFO] [stdout] 9 | pub async fn init_database(pool: &SqlitePool) -> Result<()> {
[INFO] [stdout]   |              ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_trust_accounts` is never used
[INFO] [stdout]   --> src/database.rs:42:14
[INFO] [stdout]    |
[INFO] [stdout] 42 | pub async fn get_trust_accounts(pool: &SqlitePool) -> Vec<String> {
[INFO] [stdout]    |              ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `handle_connection_multiplex` is never used
[INFO] [stdout]   --> src/handlers.rs:17:14
[INFO] [stdout]    |
[INFO] [stdout] 17 | pub async fn handle_connection_multiplex(
[INFO] [stdout]    |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `handle_http_info` is never used
[INFO] [stdout]   --> src/handlers.rs:76:14
[INFO] [stdout]    |
[INFO] [stdout] 76 | pub async fn handle_http_info(mut stream: TcpStream) -> Result<(), anyhow::Error> {
[INFO] [stdout]    |              ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `handle_http_dashboard` is never used
[INFO] [stdout]   --> src/handlers.rs:99:14
[INFO] [stdout]    |
[INFO] [stdout] 99 | pub async fn handle_http_dashboard(mut stream: TcpStream) -> Result<(), anyhow::Error> {
[INFO] [stdout]    |              ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `ServerInfo` is never constructed
[INFO] [stdout]  --> src/models.rs:9:12
[INFO] [stdout]   |
[INFO] [stdout] 9 | pub struct ServerInfo {
[INFO] [stdout]   |            ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Limitation` is never constructed
[INFO] [stdout]   --> src/models.rs:23:12
[INFO] [stdout]    |
[INFO] [stdout] 23 | pub struct Limitation {
[INFO] [stdout]    |            ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Subscription` is never constructed
[INFO] [stdout]   --> src/models.rs:37:12
[INFO] [stdout]    |
[INFO] [stdout] 37 | pub struct Subscription {
[INFO] [stdout]    |            ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `ClientConnection` is never constructed
[INFO] [stdout]   --> src/models.rs:42:12
[INFO] [stdout]    |
[INFO] [stdout] 42 | pub struct ClientConnection {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `NostrEvent` is never constructed
[INFO] [stdout]   --> src/nostr/mod.rs:11:12
[INFO] [stdout]    |
[INFO] [stdout] 11 | pub struct NostrEvent {
[INFO] [stdout]    |            ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `RelayMessage` is never used
[INFO] [stdout]   --> src/nostr/mod.rs:24:10
[INFO] [stdout]    |
[INFO] [stdout] 24 | pub enum RelayMessage {
[INFO] [stdout]    |          ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `ClientMessage` is never used
[INFO] [stdout]   --> src/nostr/mod.rs:49:10
[INFO] [stdout]    |
[INFO] [stdout] 49 | pub enum ClientMessage {
[INFO] [stdout]    |          ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Filter` is never constructed
[INFO] [stdout]   --> src/nostr/mod.rs:58:12
[INFO] [stdout]    |
[INFO] [stdout] 58 | pub struct Filter {
[INFO] [stdout]    |            ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait `NostrEventExt` is never used
[INFO] [stdout]   --> src/nostr/event.rs:20:11
[INFO] [stdout]    |
[INFO] [stdout] 20 | pub trait NostrEventExt {
[INFO] [stdout]    |           ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait `FilterExt` is never used
[INFO] [stdout]   --> src/nostr/filter.rs:12:11
[INFO] [stdout]    |
[INFO] [stdout] 12 | pub trait FilterExt {
[INFO] [stdout]    |           ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `RelayMessage` is never constructed
[INFO] [stdout]  --> src/nostr/messages.rs:5:12
[INFO] [stdout]   |
[INFO] [stdout] 5 | pub struct RelayMessage;
[INFO] [stdout]   |            ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated functions `send_ok`, `send_event`, `send_eose`, `send_closed`, and `send_notice` are never used
[INFO] [stdout]   --> src/nostr/messages.rs:9:18
[INFO] [stdout]    |
[INFO] [stdout]  7 | impl RelayMessage {
[INFO] [stdout]    | ----------------- associated functions in this implementation
[INFO] [stdout]  8 |     // 发送 OK 消息 (NIP-20)
[INFO] [stdout]  9 |     pub async fn send_ok(
[INFO] [stdout]    |                  ^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 22 |     pub async fn send_event(
[INFO] [stdout]    |                  ^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 43 |     pub async fn send_eose(sub_id: &str, to_client_msg_tx: &mpsc::Sender<String>) {
[INFO] [stdout]    |                  ^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 51 |     pub async fn send_closed(
[INFO] [stdout]    |                  ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 63 |     pub async fn send_notice(message: String, to_client_msg_tx: &mpsc::Sender<String>) {
[INFO] [stdout]    |                  ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `extract_p_tags_from_json` is never used
[INFO] [stdout]  --> src/nostr/utils.rs:6:8
[INFO] [stdout]   |
[INFO] [stdout] 6 | pub fn extract_p_tags_from_json(tags_json: &str) -> Result<Vec<String>, serde_json::Error> {
[INFO] [stdout]   |        ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `extract_p_tags_from_vec` is never used
[INFO] [stdout]   --> src/nostr/utils.rs:37:8
[INFO] [stdout]    |
[INFO] [stdout] 37 | pub fn extract_p_tags_from_vec(tags: &[Vec<String>]) -> Vec<String> {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `handle_ws_connection` is never used
[INFO] [stdout]   --> src/ws_logic.rs:23:14
[INFO] [stdout]    |
[INFO] [stdout] 23 | pub async fn handle_ws_connection(
[INFO] [stdout]    |              ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `handle_message` is never used
[INFO] [stdout]    --> src/ws_logic.rs:157:14
[INFO] [stdout]     |
[INFO] [stdout] 157 | pub async fn handle_message(
[INFO] [stdout]     |              ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `DEFAULT_BIND_ADDR` is never used
[INFO] [stdout]  --> src/constants.rs:5:11
[INFO] [stdout]   |
[INFO] [stdout] 5 | pub const DEFAULT_BIND_ADDR: &str = "0.0.0.0:8080";
[INFO] [stdout]   |           ^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `DEFAULT_DB_PATH` is never used
[INFO] [stdout]  --> src/constants.rs:6:11
[INFO] [stdout]   |
[INFO] [stdout] 6 | pub const DEFAULT_DB_PATH: &str = "nostr.db";
[INFO] [stdout]   |           ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `MAX_EVENT_TAGS` is never used
[INFO] [stdout]  --> src/constants.rs:7:11
[INFO] [stdout]   |
[INFO] [stdout] 7 | pub const MAX_EVENT_TAGS: u32 = 5000;
[INFO] [stdout]   |           ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `MAX_LIMIT` is never used
[INFO] [stdout]  --> src/constants.rs:8:11
[INFO] [stdout]   |
[INFO] [stdout] 8 | pub const MAX_LIMIT: u64 = 500;
[INFO] [stdout]   |           ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `DEFAULT_LIMIT` is never used
[INFO] [stdout]  --> src/constants.rs:9:11
[INFO] [stdout]   |
[INFO] [stdout] 9 | pub const DEFAULT_LIMIT: u64 = 10;
[INFO] [stdout]   |           ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `MAX_FILTERS_PER_REQ` is never used
[INFO] [stdout]   --> src/constants.rs:10:11
[INFO] [stdout]    |
[INFO] [stdout] 10 | pub const MAX_FILTERS_PER_REQ: usize = 100;
[INFO] [stdout]    |           ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `BROADCAST_CHANNEL_SIZE` is never used
[INFO] [stdout]   --> src/constants.rs:11:11
[INFO] [stdout]    |
[INFO] [stdout] 11 | pub const BROADCAST_CHANNEL_SIZE: usize = 100;
[INFO] [stdout]    |           ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `CLIENT_CHANNEL_SIZE` is never used
[INFO] [stdout]   --> src/constants.rs:12:11
[INFO] [stdout]    |
[INFO] [stdout] 12 | pub const CLIENT_CHANNEL_SIZE: usize = 32;
[INFO] [stdout]    |           ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `MAX_SUBSCRIPTIONS` is never used
[INFO] [stdout]   --> src/constants.rs:13:11
[INFO] [stdout]    |
[INFO] [stdout] 13 | pub const MAX_SUBSCRIPTIONS: usize = 20;
[INFO] [stdout]    |           ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: static `SERVER_INFO` is never used
[INFO] [stdout]   --> src/constants.rs:15:12
[INFO] [stdout]    |
[INFO] [stdout] 15 | pub static SERVER_INFO: Lazy<ServerInfo> = Lazy::new(|| ServerInfo {
[INFO] [stdout]    |            ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `init_database` is never used
[INFO] [stdout]  --> src/database.rs:9:14
[INFO] [stdout]   |
[INFO] [stdout] 9 | pub async fn init_database(pool: &SqlitePool) -> Result<()> {
[INFO] [stdout]   |              ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_trust_accounts` is never used
[INFO] [stdout]   --> src/database.rs:42:14
[INFO] [stdout]    |
[INFO] [stdout] 42 | pub async fn get_trust_accounts(pool: &SqlitePool) -> Vec<String> {
[INFO] [stdout]    |              ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `handle_connection_multiplex` is never used
[INFO] [stdout]   --> src/handlers.rs:17:14
[INFO] [stdout]    |
[INFO] [stdout] 17 | pub async fn handle_connection_multiplex(
[INFO] [stdout]    |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `handle_http_info` is never used
[INFO] [stdout]   --> src/handlers.rs:76:14
[INFO] [stdout]    |
[INFO] [stdout] 76 | pub async fn handle_http_info(mut stream: TcpStream) -> Result<(), anyhow::Error> {
[INFO] [stdout]    |              ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `handle_http_dashboard` is never used
[INFO] [stdout]   --> src/handlers.rs:99:14
[INFO] [stdout]    |
[INFO] [stdout] 99 | pub async fn handle_http_dashboard(mut stream: TcpStream) -> Result<(), anyhow::Error> {
[INFO] [stdout]    |              ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `ServerInfo` is never constructed
[INFO] [stdout]  --> src/models.rs:9:12
[INFO] [stdout]   |
[INFO] [stdout] 9 | pub struct ServerInfo {
[INFO] [stdout]   |            ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Limitation` is never constructed
[INFO] [stdout]   --> src/models.rs:23:12
[INFO] [stdout]    |
[INFO] [stdout] 23 | pub struct Limitation {
[INFO] [stdout]    |            ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Subscription` is never constructed
[INFO] [stdout]   --> src/models.rs:37:12
[INFO] [stdout]    |
[INFO] [stdout] 37 | pub struct Subscription {
[INFO] [stdout]    |            ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `ClientConnection` is never constructed
[INFO] [stdout]   --> src/models.rs:42:12
[INFO] [stdout]    |
[INFO] [stdout] 42 | pub struct ClientConnection {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `NostrEvent` is never constructed
[INFO] [stdout]   --> src/nostr/mod.rs:11:12
[INFO] [stdout]    |
[INFO] [stdout] 11 | pub struct NostrEvent {
[INFO] [stdout]    |            ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `RelayMessage` is never used
[INFO] [stdout]   --> src/nostr/mod.rs:24:10
[INFO] [stdout]    |
[INFO] [stdout] 24 | pub enum RelayMessage {
[INFO] [stdout]    |          ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `ClientMessage` is never used
[INFO] [stdout]   --> src/nostr/mod.rs:49:10
[INFO] [stdout]    |
[INFO] [stdout] 49 | pub enum ClientMessage {
[INFO] [stdout]    |          ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Filter` is never constructed
[INFO] [stdout]   --> src/nostr/mod.rs:58:12
[INFO] [stdout]    |
[INFO] [stdout] 58 | pub struct Filter {
[INFO] [stdout]    |            ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait `NostrEventExt` is never used
[INFO] [stdout]   --> src/nostr/event.rs:20:11
[INFO] [stdout]    |
[INFO] [stdout] 20 | pub trait NostrEventExt {
[INFO] [stdout]    |           ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait `FilterExt` is never used
[INFO] [stdout]   --> src/nostr/filter.rs:12:11
[INFO] [stdout]    |
[INFO] [stdout] 12 | pub trait FilterExt {
[INFO] [stdout]    |           ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `RelayMessage` is never constructed
[INFO] [stdout]  --> src/nostr/messages.rs:5:12
[INFO] [stdout]   |
[INFO] [stdout] 5 | pub struct RelayMessage;
[INFO] [stdout]   |            ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated functions `send_ok`, `send_event`, `send_eose`, `send_closed`, and `send_notice` are never used
[INFO] [stdout]   --> src/nostr/messages.rs:9:18
[INFO] [stdout]    |
[INFO] [stdout]  7 | impl RelayMessage {
[INFO] [stdout]    | ----------------- associated functions in this implementation
[INFO] [stdout]  8 |     // 发送 OK 消息 (NIP-20)
[INFO] [stdout]  9 |     pub async fn send_ok(
[INFO] [stdout]    |                  ^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 22 |     pub async fn send_event(
[INFO] [stdout]    |                  ^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 43 |     pub async fn send_eose(sub_id: &str, to_client_msg_tx: &mpsc::Sender<String>) {
[INFO] [stdout]    |                  ^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 51 |     pub async fn send_closed(
[INFO] [stdout]    |                  ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 63 |     pub async fn send_notice(message: String, to_client_msg_tx: &mpsc::Sender<String>) {
[INFO] [stdout]    |                  ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `extract_p_tags_from_json` is never used
[INFO] [stdout]  --> src/nostr/utils.rs:6:8
[INFO] [stdout]   |
[INFO] [stdout] 6 | pub fn extract_p_tags_from_json(tags_json: &str) -> Result<Vec<String>, serde_json::Error> {
[INFO] [stdout]   |        ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `extract_p_tags_from_vec` is never used
[INFO] [stdout]   --> src/nostr/utils.rs:37:8
[INFO] [stdout]    |
[INFO] [stdout] 37 | pub fn extract_p_tags_from_vec(tags: &[Vec<String>]) -> Vec<String> {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `handle_ws_connection` is never used
[INFO] [stdout]   --> src/ws_logic.rs:23:14
[INFO] [stdout]    |
[INFO] [stdout] 23 | pub async fn handle_ws_connection(
[INFO] [stdout]    |              ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `handle_message` is never used
[INFO] [stdout]    --> src/ws_logic.rs:157:14
[INFO] [stdout]     |
[INFO] [stdout] 157 | pub async fn handle_message(
[INFO] [stdout]     |              ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::collections::HashSet`
[INFO] [stdout]  --> src/database.rs:7:5
[INFO] [stdout]   |
[INFO] [stdout] 7 | use std::collections::HashSet;
[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: `anyhow`
[INFO] [stdout]  --> src/handlers.rs:1:22
[INFO] [stdout]   |
[INFO] [stdout] 1 | use anyhow::{Result, anyhow};
[INFO] [stdout]   |                      ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `error` and `info`
[INFO] [stdout]  --> src/handlers.rs:3:11
[INFO] [stdout]   |
[INFO] [stdout] 3 | use log::{error, info};
[INFO] [stdout]   |           ^^^^^  ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Deserialize`
[INFO] [stdout]  --> src/models.rs:2:13
[INFO] [stdout]   |
[INFO] [stdout] 2 | use serde::{Deserialize, Serialize};
[INFO] [stdout]   |             ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `WebSocketStream`
[INFO] [stdout]   --> src/ws_logic.rs:12:25
[INFO] [stdout]    |
[INFO] [stdout] 12 | use tokio_tungstenite::{WebSocketStream, accept_async, tungstenite::protocol::Message};
[INFO] [stdout]    |                         ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `ClientMessage`
[INFO] [stdout]   --> src/ws_logic.rs:21:20
[INFO] [stdout]    |
[INFO] [stdout] 21 | use crate::nostr::{ClientMessage, Filter, NostrEvent};
[INFO] [stdout]    |                    ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `error`
[INFO] [stdout]  --> src/nostr/event.rs:2:18
[INFO] [stdout]   |
[INFO] [stdout] 2 | use log::{debug, error, info};
[INFO] [stdout]   |                  ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Value`
[INFO] [stdout]  --> src/nostr/event.rs:6:18
[INFO] [stdout]   |
[INFO] [stdout] 6 | use serde_json::{Value, json};
[INFO] [stdout]   |                  ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::collections::HashMap`
[INFO] [stdout]  --> src/nostr/filter.rs:5:5
[INFO] [stdout]   |
[INFO] [stdout] 5 | use std::collections::HashMap;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::collections::HashSet`
[INFO] [stdout]  --> src/database.rs:7:5
[INFO] [stdout]   |
[INFO] [stdout] 7 | use std::collections::HashSet;
[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: `anyhow`
[INFO] [stdout]  --> src/handlers.rs:1:22
[INFO] [stdout]   |
[INFO] [stdout] 1 | use anyhow::{Result, anyhow};
[INFO] [stdout]   |                      ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `error` and `info`
[INFO] [stdout]  --> src/handlers.rs:3:11
[INFO] [stdout]   |
[INFO] [stdout] 3 | use log::{error, info};
[INFO] [stdout]   |           ^^^^^  ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Deserialize`
[INFO] [stdout]  --> src/models.rs:2:13
[INFO] [stdout]   |
[INFO] [stdout] 2 | use serde::{Deserialize, Serialize};
[INFO] [stdout]   |             ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `WebSocketStream`
[INFO] [stdout]   --> src/ws_logic.rs:12:25
[INFO] [stdout]    |
[INFO] [stdout] 12 | use tokio_tungstenite::{WebSocketStream, accept_async, tungstenite::protocol::Message};
[INFO] [stdout]    |                         ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `ClientMessage`
[INFO] [stdout]   --> src/ws_logic.rs:21:20
[INFO] [stdout]    |
[INFO] [stdout] 21 | use crate::nostr::{ClientMessage, Filter, NostrEvent};
[INFO] [stdout]    |                    ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `error`
[INFO] [stdout]  --> src/nostr/event.rs:2:18
[INFO] [stdout]   |
[INFO] [stdout] 2 | use log::{debug, error, info};
[INFO] [stdout]   |                  ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Value`
[INFO] [stdout]  --> src/nostr/event.rs:6:18
[INFO] [stdout]   |
[INFO] [stdout] 6 | use serde_json::{Value, json};
[INFO] [stdout]   |                  ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::collections::HashMap`
[INFO] [stdout]  --> src/nostr/filter.rs:5:5
[INFO] [stdout]   |
[INFO] [stdout] 5 | use std::collections::HashMap;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated associated function `secp256k1::schnorr::Signature::from_slice`: Use `from_byte_array` instead.
[INFO] [stdout]    --> src/nostr/event.rs:135:67
[INFO] [stdout]     |
[INFO] [stdout] 135 |         let signature: SchnorrSignature = match SchnorrSignature::from_slice(&sig_bytes) {
[INFO] [stdout]     |                                                                   ^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(deprecated)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated associated function `secp256k1::schnorr::Signature::from_slice`: Use `from_byte_array` instead.
[INFO] [stdout]    --> src/nostr/event.rs:135:67
[INFO] [stdout]     |
[INFO] [stdout] 135 |         let signature: SchnorrSignature = match SchnorrSignature::from_slice(&sig_bytes) {
[INFO] [stdout]     |                                                                   ^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(deprecated)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `relay_url` is assigned to, but never used
[INFO] [stdout]    --> src/nostr/event.rs:281:13
[INFO] [stdout]     |
[INFO] [stdout] 281 |         let mut relay_url = None; // NIP-42 也包含 relay url，但在这个验证中不是强制的。
[INFO] [stdout]     |             ^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: consider using `_relay_url` instead
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `relay_url` is never read
[INFO] [stdout]    --> src/nostr/event.rs:286:32
[INFO] [stdout]     |
[INFO] [stdout] 286 |                     "relay" => relay_url = Some(&tag[1]),
[INFO] [stdout]     |                                ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = help: maybe it is overwritten before being read?
[INFO] [stdout]     = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `relay_url` is assigned to, but never used
[INFO] [stdout]    --> src/nostr/event.rs:281:13
[INFO] [stdout]     |
[INFO] [stdout] 281 |         let mut relay_url = None; // NIP-42 也包含 relay url，但在这个验证中不是强制的。
[INFO] [stdout]     |             ^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: consider using `_relay_url` instead
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `relay_url` is never read
[INFO] [stdout]    --> src/nostr/event.rs:286:32
[INFO] [stdout]     |
[INFO] [stdout] 286 |                     "relay" => relay_url = Some(&tag[1]),
[INFO] [stdout]     |                                ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = help: maybe it is overwritten before being read?
[INFO] [stdout]     = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `RelayMessage` is never used
[INFO] [stdout]   --> src/nostr/mod.rs:24:10
[INFO] [stdout]    |
[INFO] [stdout] 24 | pub enum RelayMessage {
[INFO] [stdout]    |          ^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `ClientMessage` is never used
[INFO] [stdout]   --> src/nostr/mod.rs:49:10
[INFO] [stdout]    |
[INFO] [stdout] 49 | pub enum ClientMessage {
[INFO] [stdout]    |          ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `RelayMessage` is never used
[INFO] [stdout]   --> src/nostr/mod.rs:24:10
[INFO] [stdout]    |
[INFO] [stdout] 24 | pub enum RelayMessage {
[INFO] [stdout]    |          ^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `ClientMessage` is never used
[INFO] [stdout]   --> src/nostr/mod.rs:49:10
[INFO] [stdout]    |
[INFO] [stdout] 49 | pub enum ClientMessage {
[INFO] [stdout]    |          ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 18s
[INFO] running `Command { std: "docker" "inspect" "e0517a3c71a3772c3c332a79824ae5b46509ba4c352d420815252f00f554fd77", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "e0517a3c71a3772c3c332a79824ae5b46509ba4c352d420815252f00f554fd77", kill_on_drop: false }`
[INFO] [stdout] e0517a3c71a3772c3c332a79824ae5b46509ba4c352d420815252f00f554fd77
