[INFO] cloning repository https://github.com/Ada4488/ZT_LTP
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Ada4488/ZT_LTP" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAda4488%2FZT_LTP", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAda4488%2FZT_LTP'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 6bd3490ed17adcfaa874dfaf4d0c7dd67f3fb3d3
[INFO] checking Ada4488/ZT_LTP against master#c8a31b780d5415358566a20b94912620a3f27067 for pr-139493-1
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAda4488%2FZT_LTP" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/Ada4488/ZT_LTP
[INFO] finished tweaking git repo https://github.com/Ada4488/ZT_LTP
[INFO] tweaked toml for git repo https://github.com/Ada4488/ZT_LTP written to /workspace/builds/worker-7-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/Ada4488/ZT_LTP on toolchain c8a31b780d5415358566a20b94912620a3f27067
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c8a31b780d5415358566a20b94912620a3f27067" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/Ada4488/ZT_LTP 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" "+c8a31b780d5415358566a20b94912620a3f27067" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded cc v1.2.24
[INFO] [stderr]   Downloaded hermit-abi v0.5.1
[INFO] [stderr]   Downloaded smallvec v1.15.0
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c8a31b780d5415358566a20b94912620a3f27067" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 41016b6a96a49eb3d99dc432376a133161f7bc4ed3a6bad1616b995573897d72
[INFO] running `Command { std: "docker" "start" "-a" "41016b6a96a49eb3d99dc432376a133161f7bc4ed3a6bad1616b995573897d72", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "41016b6a96a49eb3d99dc432376a133161f7bc4ed3a6bad1616b995573897d72", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "41016b6a96a49eb3d99dc432376a133161f7bc4ed3a6bad1616b995573897d72", kill_on_drop: false }`
[INFO] [stdout] 41016b6a96a49eb3d99dc432376a133161f7bc4ed3a6bad1616b995573897d72
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c8a31b780d5415358566a20b94912620a3f27067" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] ad3298aadc5e47f5a5de865d17ee98c861ee37c497477219a0855700853b67ce
[INFO] running `Command { std: "docker" "start" "-a" "ad3298aadc5e47f5a5de865d17ee98c861ee37c497477219a0855700853b67ce", kill_on_drop: false }`
[INFO] [stderr]    Compiling libc v0.2.172
[INFO] [stderr]    Compiling serde v1.0.219
[INFO] [stderr]     Checking smallvec v1.15.0
[INFO] [stderr]     Checking bytes v1.10.1
[INFO] [stderr]     Checking log v0.4.27
[INFO] [stderr]    Compiling getrandom v0.3.3
[INFO] [stderr]     Checking aho-corasick v1.1.3
[INFO] [stderr]    Compiling num-traits v0.2.19
[INFO] [stderr]    Compiling serde_json v1.0.140
[INFO] [stderr]     Checking itoa v1.0.15
[INFO] [stderr]     Checking ryu v1.0.20
[INFO] [stderr]     Checking humantime v2.2.0
[INFO] [stderr]    Compiling syn v2.0.101
[INFO] [stderr]     Checking regex-automata v0.4.9
[INFO] [stderr]     Checking parking_lot_core v0.9.10
[INFO] [stderr]     Checking mio v1.0.4
[INFO] [stderr]     Checking socket2 v0.5.10
[INFO] [stderr]     Checking signal-hook-registry v1.4.5
[INFO] [stderr]     Checking is-terminal v0.4.16
[INFO] [stderr]     Checking parking_lot v0.12.3
[INFO] [stderr]    Compiling serde_derive v1.0.219
[INFO] [stderr]    Compiling thiserror-impl v1.0.69
[INFO] [stderr]    Compiling tokio-macros v2.5.0
[INFO] [stderr]     Checking regex v1.11.1
[INFO] [stderr]     Checking tokio v1.45.1
[INFO] [stderr]     Checking thiserror v1.0.69
[INFO] [stderr]     Checking env_logger v0.10.2
[INFO] [stderr]     Checking uuid v1.17.0
[INFO] [stderr]     Checking bincode v1.3.3
[INFO] [stderr]     Checking chrono v0.4.41
[INFO] [stderr]     Checking zt_ltp_he v0.1.0 (/opt/rustwide/workdir/zt_ltp_he)
[INFO] [stderr]     Checking zt_ltp_provenance_client v0.1.0 (/opt/rustwide/workdir/zt_ltp_provenance_client)
[INFO] [stderr]     Checking zt_ltp_remediation v0.1.0 (/opt/rustwide/workdir/zt_ltp_remediation)
[INFO] [stderr]     Checking zt_ltp_core v0.1.0 (/opt/rustwide/workdir/zt_ltp_core)
[INFO] [stdout] error[E0432]: unresolved import `crate::config`
[INFO] [stdout]  --> zt_ltp_core/src/network.rs:8:12
[INFO] [stdout]   |
[INFO] [stdout] 8 | use crate::config::NetworkConfig;
[INFO] [stdout]   |            ^^^^^^
[INFO] [stdout]   |            |
[INFO] [stdout]   |            unresolved import
[INFO] [stdout]   |            help: a similar path exists: `bincode::config`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0432]: unresolved import `crate::errors`
[INFO] [stdout]  --> zt_ltp_core/src/network.rs:9:12
[INFO] [stdout]   |
[INFO] [stdout] 9 | use crate::errors::{ZtLtpError, Result}; // Ensure Result is crate::errors::Result
[INFO] [stdout]   |            ^^^^^^ could not find `errors` in the crate root
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0432]: unresolved import `crate::stats`
[INFO] [stdout]   --> zt_ltp_core/src/network.rs:11:12
[INFO] [stdout]    |
[INFO] [stdout] 11 | use crate::stats::NetworkStats;
[INFO] [stdout]    |            ^^^^^ could not find `stats` in the crate root
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0432]: unresolved import `crate::config`
[INFO] [stdout]   --> zt_ltp_core/src/server.rs:16:12
[INFO] [stdout]    |
[INFO] [stdout] 16 | use crate::config::{ServerConfig, SessionConfig};
[INFO] [stdout]    |            ^^^^^^
[INFO] [stdout]    |            |
[INFO] [stdout]    |            unresolved import
[INFO] [stdout]    |            help: a similar path exists: `bincode::config`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0432]: unresolved import `crate::errors`
[INFO] [stdout]   --> zt_ltp_core/src/server.rs:17:12
[INFO] [stdout]    |
[INFO] [stdout] 17 | use crate::errors::{ZtLtpError, Result};
[INFO] [stdout]    |            ^^^^^^ could not find `errors` in the crate root
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0432]: unresolved imports `crate::protocol::Frame`, `crate::protocol::SessionId`
[INFO] [stdout]   --> zt_ltp_core/src/server.rs:19:21
[INFO] [stdout]    |
[INFO] [stdout] 19 |     ControlMessage, Frame, FrameType, SessionId,
[INFO] [stdout]    |                     ^^^^^             ^^^^^^^^^
[INFO] [stdout]    |                     |                 |
[INFO] [stdout]    |                     |                 no `SessionId` in `protocol`
[INFO] [stdout]    |                     |                 help: a similar name exists in the module: `session`
[INFO] [stdout]    |                     no `Frame` in `protocol`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0432]: unresolved import `crate::config`
[INFO] [stdout]  --> zt_ltp_core/src/logging.rs:6:12
[INFO] [stdout]   |
[INFO] [stdout] 6 | use crate::config::LoggingConfig;
[INFO] [stdout]   |            ^^^^^^
[INFO] [stdout]   |            |
[INFO] [stdout]   |            unresolved import
[INFO] [stdout]   |            help: a similar path exists: `bincode::config`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0432]: unresolved import `crate::errors`
[INFO] [stdout]  --> zt_ltp_core/src/logging.rs:7:12
[INFO] [stdout]   |
[INFO] [stdout] 7 | use crate::errors::Result; // Assuming Result is defined in errors module
[INFO] [stdout]   |            ^^^^^^ could not find `errors` in the crate root
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0432]: unresolved import `crate::config`
[INFO] [stdout]  --> zt_ltp_core/src/network.rs:8:12
[INFO] [stdout]   |
[INFO] [stdout] 8 | use crate::config::NetworkConfig;
[INFO] [stdout]   |            ^^^^^^
[INFO] [stdout]   |            |
[INFO] [stdout]   |            unresolved import
[INFO] [stdout]   |            help: a similar path exists: `bincode::config`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0432]: unresolved import `crate::errors`
[INFO] [stdout]  --> zt_ltp_core/src/network.rs:9:12
[INFO] [stdout]   |
[INFO] [stdout] 9 | use crate::errors::{ZtLtpError, Result}; // Ensure Result is crate::errors::Result
[INFO] [stdout]   |            ^^^^^^ could not find `errors` in the crate root
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0432]: unresolved import `crate::stats`
[INFO] [stdout]   --> zt_ltp_core/src/network.rs:11:12
[INFO] [stdout]    |
[INFO] [stdout] 11 | use crate::stats::NetworkStats;
[INFO] [stdout]    |            ^^^^^ could not find `stats` in the crate root
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0432]: unresolved import `crate::config`
[INFO] [stdout]   --> zt_ltp_core/src/server.rs:16:12
[INFO] [stdout]    |
[INFO] [stdout] 16 | use crate::config::{ServerConfig, SessionConfig};
[INFO] [stdout]    |            ^^^^^^
[INFO] [stdout]    |            |
[INFO] [stdout]    |            unresolved import
[INFO] [stdout]    |            help: a similar path exists: `bincode::config`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0432]: unresolved import `crate::errors`
[INFO] [stdout]   --> zt_ltp_core/src/server.rs:17:12
[INFO] [stdout]    |
[INFO] [stdout] 17 | use crate::errors::{ZtLtpError, Result};
[INFO] [stdout]    |            ^^^^^^ could not find `errors` in the crate root
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0432]: unresolved imports `crate::protocol::Frame`, `crate::protocol::SessionId`
[INFO] [stdout]   --> zt_ltp_core/src/server.rs:19:21
[INFO] [stdout]    |
[INFO] [stdout] 19 |     ControlMessage, Frame, FrameType, SessionId,
[INFO] [stdout]    |                     ^^^^^             ^^^^^^^^^
[INFO] [stdout]    |                     |                 |
[INFO] [stdout]    |                     |                 no `SessionId` in `protocol`
[INFO] [stdout]    |                     |                 help: a similar name exists in the module: `session`
[INFO] [stdout]    |                     no `Frame` in `protocol`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0432]: unresolved import `crate::config`
[INFO] [stdout]    --> zt_ltp_core/src/server.rs:681:16
[INFO] [stdout]     |
[INFO] [stdout] 681 |     use crate::config::{SessionConfig}; // ServerConfig is defined in this module
[INFO] [stdout]     |                ^^^^^^
[INFO] [stdout]     |                |
[INFO] [stdout]     |                unresolved import
[INFO] [stdout]     |                help: a similar path exists: `bincode::config`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0432]: unresolved import `crate::config`
[INFO] [stdout]  --> zt_ltp_core/src/logging.rs:6:12
[INFO] [stdout]   |
[INFO] [stdout] 6 | use crate::config::LoggingConfig;
[INFO] [stdout]   |            ^^^^^^
[INFO] [stdout]   |            |
[INFO] [stdout]   |            unresolved import
[INFO] [stdout]   |            help: a similar path exists: `bincode::config`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0432]: unresolved import `crate::errors`
[INFO] [stdout]  --> zt_ltp_core/src/logging.rs:7:12
[INFO] [stdout]   |
[INFO] [stdout] 7 | use crate::errors::Result; // Assuming Result is defined in errors module
[INFO] [stdout]   |            ^^^^^^ could not find `errors` in the crate root
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Duration` in this scope
[INFO] [stdout]   --> zt_ltp_core/src/server.rs:41:29
[INFO] [stdout]    |
[INFO] [stdout] 41 |     pub connection_timeout: Duration,
[INFO] [stdout]    |                             ^^^^^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]    |
[INFO] [stdout]  6 + use std::time::Duration;
[INFO] [stdout]    |
[INFO] [stdout]  6 + use chrono::Duration;
[INFO] [stdout]    |
[INFO] [stdout]  6 + use tokio::time::Duration;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Duration` in this scope
[INFO] [stdout]   --> zt_ltp_core/src/server.rs:43:23
[INFO] [stdout]    |
[INFO] [stdout] 43 |     pub idle_timeout: Duration,
[INFO] [stdout]    |                       ^^^^^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]    |
[INFO] [stdout]  6 + use std::time::Duration;
[INFO] [stdout]    |
[INFO] [stdout]  6 + use chrono::Duration;
[INFO] [stdout]    |
[INFO] [stdout]  6 + use tokio::time::Duration;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Duration` in this scope
[INFO] [stdout]   --> zt_ltp_core/src/server.rs:45:32
[INFO] [stdout]    |
[INFO] [stdout] 45 |     pub health_check_interval: Duration,
[INFO] [stdout]    |                                ^^^^^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]    |
[INFO] [stdout]  6 + use std::time::Duration;
[INFO] [stdout]    |
[INFO] [stdout]  6 + use chrono::Duration;
[INFO] [stdout]    |
[INFO] [stdout]  6 + use tokio::time::Duration;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Duration`
[INFO] [stdout]   --> zt_ltp_core/src/server.rs:57:33
[INFO] [stdout]    |
[INFO] [stdout] 57 |             connection_timeout: Duration::from_secs(30),
[INFO] [stdout]    |                                 ^^^^^^^^ use of undeclared type `Duration`
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]    |
[INFO] [stdout]  6 + use std::time::Duration;
[INFO] [stdout]    |
[INFO] [stdout]  6 + use chrono::Duration;
[INFO] [stdout]    |
[INFO] [stdout]  6 + use tokio::time::Duration;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Duration`
[INFO] [stdout]   --> zt_ltp_core/src/server.rs:58:27
[INFO] [stdout]    |
[INFO] [stdout] 58 |             idle_timeout: Duration::from_secs(300), // 5 minutes
[INFO] [stdout]    |                           ^^^^^^^^ use of undeclared type `Duration`
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]    |
[INFO] [stdout]  6 + use std::time::Duration;
[INFO] [stdout]    |
[INFO] [stdout]  6 + use chrono::Duration;
[INFO] [stdout]    |
[INFO] [stdout]  6 + use tokio::time::Duration;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Duration`
[INFO] [stdout]   --> zt_ltp_core/src/server.rs:59:36
[INFO] [stdout]    |
[INFO] [stdout] 59 |             health_check_interval: Duration::from_secs(30),
[INFO] [stdout]    |                                    ^^^^^^^^ use of undeclared type `Duration`
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]    |
[INFO] [stdout]  6 + use std::time::Duration;
[INFO] [stdout]    |
[INFO] [stdout]  6 + use chrono::Duration;
[INFO] [stdout]    |
[INFO] [stdout]  6 + use tokio::time::Duration;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Duration` in this scope
[INFO] [stdout]   --> zt_ltp_core/src/server.rs:85:17
[INFO] [stdout]    |
[INFO] [stdout] 85 |     pub uptime: Duration,
[INFO] [stdout]    |                 ^^^^^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]    |
[INFO] [stdout]  6 + use std::time::Duration;
[INFO] [stdout]    |
[INFO] [stdout]  6 + use chrono::Duration;
[INFO] [stdout]    |
[INFO] [stdout]  6 + use tokio::time::Duration;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Duration` in this scope
[INFO] [stdout]    --> zt_ltp_core/src/server.rs:131:32
[INFO] [stdout]     |
[INFO] [stdout] 131 |     fn is_idle(&self, timeout: Duration) -> bool {
[INFO] [stdout]     |                                ^^^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]     |
[INFO] [stdout]   6 + use std::time::Duration;
[INFO] [stdout]     |
[INFO] [stdout]   6 + use chrono::Duration;
[INFO] [stdout]     |
[INFO] [stdout]   6 + use tokio::time::Duration;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Duration`
[INFO] [stdout]    --> zt_ltp_core/src/server.rs:328:41
[INFO] [stdout]     |
[INFO] [stdout] 328 |             cleanup_interval_duration = Duration::from_secs(30);
[INFO] [stdout]     |                                         ^^^^^^^^ use of undeclared type `Duration`
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]     |
[INFO] [stdout]   6 + use std::time::Duration;
[INFO] [stdout]     |
[INFO] [stdout]   6 + use chrono::Duration;
[INFO] [stdout]     |
[INFO] [stdout]   6 + use tokio::time::Duration;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Duration`
[INFO] [stdout]    --> zt_ltp_core/src/server.rs:391:48
[INFO] [stdout]     |
[INFO] [stdout] 391 | ...                   tokio::time::sleep(Duration::from_millis(100)).await;
[INFO] [stdout]     |                                          ^^^^^^^^ use of undeclared type `Duration`
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]     |
[INFO] [stdout]   6 + use std::time::Duration;
[INFO] [stdout]     |
[INFO] [stdout]   6 + use chrono::Duration;
[INFO] [stdout]     |
[INFO] [stdout]   6 + use tokio::time::Duration;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Duration` in this scope
[INFO] [stdout]    --> zt_ltp_core/src/server.rs:648:50
[INFO] [stdout]     |
[INFO] [stdout] 648 |     pub fn connection_timeout(mut self, timeout: Duration) -> Self {
[INFO] [stdout]     |                                                  ^^^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]     |
[INFO] [stdout]   6 + use std::time::Duration;
[INFO] [stdout]     |
[INFO] [stdout]   6 + use chrono::Duration;
[INFO] [stdout]     |
[INFO] [stdout]   6 + use tokio::time::Duration;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Duration` in this scope
[INFO] [stdout]    --> zt_ltp_core/src/server.rs:654:44
[INFO] [stdout]     |
[INFO] [stdout] 654 |     pub fn idle_timeout(mut self, timeout: Duration) -> Self {
[INFO] [stdout]     |                                            ^^^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]     |
[INFO] [stdout]   6 + use std::time::Duration;
[INFO] [stdout]     |
[INFO] [stdout]   6 + use chrono::Duration;
[INFO] [stdout]     |
[INFO] [stdout]   6 + use tokio::time::Duration;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Mutex` in this scope
[INFO] [stdout]   --> zt_ltp_core/src/logging.rs:48:25
[INFO] [stdout]    |
[INFO] [stdout] 48 |     file_writer: Option<Mutex<std::fs::File>>,
[INFO] [stdout]    |                         ^^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing one of these structs
[INFO] [stdout]    |
[INFO] [stdout]  6 + use std::sync::Mutex;
[INFO] [stdout]    |
[INFO] [stdout]  6 + use std::sync::nonpoison::Mutex;
[INFO] [stdout]    |
[INFO] [stdout]  6 + use tokio::sync::Mutex;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Mutex`
[INFO] [stdout]   --> zt_ltp_core/src/logging.rs:55:18
[INFO] [stdout]    |
[INFO] [stdout] 55 |             Some(Mutex::new(std::fs::OpenOptions::new()
[INFO] [stdout]    |                  ^^^^^ use of undeclared type `Mutex`
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing one of these structs
[INFO] [stdout]    |
[INFO] [stdout]  6 + use std::sync::Mutex;
[INFO] [stdout]    |
[INFO] [stdout]  6 + use std::sync::nonpoison::Mutex;
[INFO] [stdout]    |
[INFO] [stdout]  6 + use tokio::sync::Mutex;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Value`
[INFO] [stdout]   --> zt_ltp_core/src/logging.rs:83:50
[INFO] [stdout]    |
[INFO] [stdout] 83 |             json.insert("timestamp".to_string(), Value::String(Utc::now().to_rfc3339()));
[INFO] [stdout]    |                                                  ^^^^^ use of undeclared type `Value`
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this enum
[INFO] [stdout]    |
[INFO] [stdout]  6 + use serde_json::Value;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Value`
[INFO] [stdout]   --> zt_ltp_core/src/logging.rs:86:42
[INFO] [stdout]    |
[INFO] [stdout] 86 |         json.insert("level".to_string(), Value::String(record.level().to_string().to_lowercase()));
[INFO] [stdout]    |                                          ^^^^^ use of undeclared type `Value`
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this enum
[INFO] [stdout]    |
[INFO] [stdout]  6 + use serde_json::Value;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Value`
[INFO] [stdout]   --> zt_ltp_core/src/logging.rs:87:44
[INFO] [stdout]    |
[INFO] [stdout] 87 |         json.insert("message".to_string(), Value::String(record.args().to_string()));
[INFO] [stdout]    |                                            ^^^^^ use of undeclared type `Value`
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this enum
[INFO] [stdout]    |
[INFO] [stdout]  6 + use serde_json::Value;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Value`
[INFO] [stdout]   --> zt_ltp_core/src/logging.rs:91:51
[INFO] [stdout]    |
[INFO] [stdout] 91 |                 json.insert("module".to_string(), Value::String(module.to_string()));
[INFO] [stdout]    |                                                   ^^^^^ use of undeclared type `Value`
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this enum
[INFO] [stdout]    |
[INFO] [stdout]  6 + use serde_json::Value;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Value`
[INFO] [stdout]   --> zt_ltp_core/src/logging.rs:94:49
[INFO] [stdout]    |
[INFO] [stdout] 94 |                 json.insert("file".to_string(), Value::String(file.to_string()));
[INFO] [stdout]    |                                                 ^^^^^ use of undeclared type `Value`
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this enum
[INFO] [stdout]    |
[INFO] [stdout]  6 + use serde_json::Value;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Value`
[INFO] [stdout]   --> zt_ltp_core/src/logging.rs:97:49
[INFO] [stdout]    |
[INFO] [stdout] 97 |                 json.insert("line".to_string(), Value::Number(line.into()));
[INFO] [stdout]    |                                                 ^^^^^ use of undeclared type `Value`
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this enum
[INFO] [stdout]    |
[INFO] [stdout]  6 + use serde_json::Value;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Value`
[INFO] [stdout]    --> zt_ltp_core/src/logging.rs:102:45
[INFO] [stdout]     |
[INFO] [stdout] 102 |         json.insert("protocol".to_string(), Value::String("zt-ltp".to_string()));
[INFO] [stdout]     |                                             ^^^^^ use of undeclared type `Value`
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing this enum
[INFO] [stdout]     |
[INFO] [stdout]   6 + use serde_json::Value;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Value`
[INFO] [stdout]    --> zt_ltp_core/src/logging.rs:103:44
[INFO] [stdout]     |
[INFO] [stdout] 103 |         json.insert("version".to_string(), Value::String(crate::PROTOCOL_VERSION.to_string()));
[INFO] [stdout]     |                                            ^^^^^ use of undeclared type `Value`
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing this enum
[INFO] [stdout]     |
[INFO] [stdout]   6 + use serde_json::Value;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0423]: expected value, found module `io`
[INFO] [stdout]    --> zt_ltp_core/src/logging.rs:161:17
[INFO] [stdout]     |
[INFO] [stdout] 161 |         let _ = io.stderr().flush();
[INFO] [stdout]     |                 ^^
[INFO] [stdout]     |
[INFO] [stdout] help: use the path separator to refer to an item
[INFO] [stdout]     |
[INFO] [stdout] 161 -         let _ = io.stderr().flush();
[INFO] [stdout] 161 +         let _ = io::stderr().flush();
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `chrono::Utc`
[INFO] [stdout]   --> zt_ltp_core/src/server.rs:13:5
[INFO] [stdout]    |
[INFO] [stdout] 13 | use chrono::Utc; // Added
[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 imports: `AuthMessage`, `ControlMessage`, `FrameType`, and `SessionEvent`
[INFO] [stdout]   --> zt_ltp_core/src/server.rs:19:5
[INFO] [stdout]    |
[INFO] [stdout] 19 |     ControlMessage, Frame, FrameType, SessionId,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^         ^^^^^^^^^
[INFO] [stdout] 20 |     SessionState, SessionContext, SessionEvent, // Removed SessionConfig as ProtocolSessionConfig, Added SessionEvent
[INFO] [stdout]    |                                   ^^^^^^^^^^^^
[INFO] [stdout] 21 |     AuthMessage, // Removed ClientIdentity
[INFO] [stdout]    |     ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `NetworkFrame`
[INFO] [stdout]   --> zt_ltp_core/src/server.rs:23:50
[INFO] [stdout]    |
[INFO] [stdout] 23 | use crate::network::{FramedConnection, Listener, NetworkFrame}; // Added Listener, NetworkFrame, FramedConnection
[INFO] [stdout]    |                                                  ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `LlmRequest`, `LlmResponse`, and `ZtLtpMessage`
[INFO] [stdout]   --> zt_ltp_core/src/server.rs:26:5
[INFO] [stdout]    |
[INFO] [stdout] 26 |     ZtLtpMessage, LlmRequest, LlmResponse, DEFAULT_PORT, // Added DEFAULT_PORT
[INFO] [stdout]    |     ^^^^^^^^^^^^  ^^^^^^^^^^  ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Duration` in this scope
[INFO] [stdout]   --> zt_ltp_core/src/server.rs:41:29
[INFO] [stdout]    |
[INFO] [stdout] 41 |     pub connection_timeout: Duration,
[INFO] [stdout]    |                             ^^^^^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout]    = note: struct `crate::protocol::session::tests::Duration` exists but is inaccessible
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]    |
[INFO] [stdout]  6 + use std::time::Duration;
[INFO] [stdout]    |
[INFO] [stdout]  6 + use chrono::Duration;
[INFO] [stdout]    |
[INFO] [stdout]  6 + use tokio::time::Duration;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Duration` in this scope
[INFO] [stdout]   --> zt_ltp_core/src/server.rs:43:23
[INFO] [stdout]    |
[INFO] [stdout] 43 |     pub idle_timeout: Duration,
[INFO] [stdout]    |                       ^^^^^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout]    = note: struct `crate::protocol::session::tests::Duration` exists but is inaccessible
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]    |
[INFO] [stdout]  6 + use std::time::Duration;
[INFO] [stdout]    |
[INFO] [stdout]  6 + use chrono::Duration;
[INFO] [stdout]    |
[INFO] [stdout]  6 + use tokio::time::Duration;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Duration` in this scope
[INFO] [stdout]   --> zt_ltp_core/src/server.rs:45:32
[INFO] [stdout]    |
[INFO] [stdout] 45 |     pub health_check_interval: Duration,
[INFO] [stdout]    |                                ^^^^^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout]    = note: struct `crate::protocol::session::tests::Duration` exists but is inaccessible
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]    |
[INFO] [stdout]  6 + use std::time::Duration;
[INFO] [stdout]    |
[INFO] [stdout]  6 + use chrono::Duration;
[INFO] [stdout]    |
[INFO] [stdout]  6 + use tokio::time::Duration;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Duration`
[INFO] [stdout]   --> zt_ltp_core/src/server.rs:57:33
[INFO] [stdout]    |
[INFO] [stdout] 57 |             connection_timeout: Duration::from_secs(30),
[INFO] [stdout]    |                                 ^^^^^^^^ use of undeclared type `Duration`
[INFO] [stdout]    |
[INFO] [stdout]    = note: struct `crate::protocol::session::tests::Duration` exists but is inaccessible
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]    |
[INFO] [stdout]  6 + use std::time::Duration;
[INFO] [stdout]    |
[INFO] [stdout]  6 + use chrono::Duration;
[INFO] [stdout]    |
[INFO] [stdout]  6 + use tokio::time::Duration;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Duration`
[INFO] [stdout]   --> zt_ltp_core/src/server.rs:58:27
[INFO] [stdout]    |
[INFO] [stdout] 58 |             idle_timeout: Duration::from_secs(300), // 5 minutes
[INFO] [stdout]    |                           ^^^^^^^^ use of undeclared type `Duration`
[INFO] [stdout]    |
[INFO] [stdout]    = note: struct `crate::protocol::session::tests::Duration` exists but is inaccessible
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]    |
[INFO] [stdout]  6 + use std::time::Duration;
[INFO] [stdout]    |
[INFO] [stdout]  6 + use chrono::Duration;
[INFO] [stdout]    |
[INFO] [stdout]  6 + use tokio::time::Duration;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Duration`
[INFO] [stdout]   --> zt_ltp_core/src/server.rs:59:36
[INFO] [stdout]    |
[INFO] [stdout] 59 |             health_check_interval: Duration::from_secs(30),
[INFO] [stdout]    |                                    ^^^^^^^^ use of undeclared type `Duration`
[INFO] [stdout]    |
[INFO] [stdout]    = note: struct `crate::protocol::session::tests::Duration` exists but is inaccessible
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]    |
[INFO] [stdout]  6 + use std::time::Duration;
[INFO] [stdout]    |
[INFO] [stdout]  6 + use chrono::Duration;
[INFO] [stdout]    |
[INFO] [stdout]  6 + use tokio::time::Duration;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Duration` in this scope
[INFO] [stdout]   --> zt_ltp_core/src/server.rs:85:17
[INFO] [stdout]    |
[INFO] [stdout] 85 |     pub uptime: Duration,
[INFO] [stdout]    |                 ^^^^^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout]    = note: struct `crate::protocol::session::tests::Duration` exists but is inaccessible
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]    |
[INFO] [stdout]  6 + use std::time::Duration;
[INFO] [stdout]    |
[INFO] [stdout]  6 + use chrono::Duration;
[INFO] [stdout]    |
[INFO] [stdout]  6 + use tokio::time::Duration;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Duration` in this scope
[INFO] [stdout]    --> zt_ltp_core/src/server.rs:131:32
[INFO] [stdout]     |
[INFO] [stdout] 131 |     fn is_idle(&self, timeout: Duration) -> bool {
[INFO] [stdout]     |                                ^^^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout]     = note: struct `crate::protocol::session::tests::Duration` exists but is inaccessible
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]     |
[INFO] [stdout]   6 + use std::time::Duration;
[INFO] [stdout]     |
[INFO] [stdout]   6 + use chrono::Duration;
[INFO] [stdout]     |
[INFO] [stdout]   6 + use tokio::time::Duration;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Duration`
[INFO] [stdout]    --> zt_ltp_core/src/server.rs:328:41
[INFO] [stdout]     |
[INFO] [stdout] 328 |             cleanup_interval_duration = Duration::from_secs(30);
[INFO] [stdout]     |                                         ^^^^^^^^ use of undeclared type `Duration`
[INFO] [stdout]     |
[INFO] [stdout]     = note: struct `crate::protocol::session::tests::Duration` exists but is inaccessible
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]     |
[INFO] [stdout]   6 + use std::time::Duration;
[INFO] [stdout]     |
[INFO] [stdout]   6 + use chrono::Duration;
[INFO] [stdout]     |
[INFO] [stdout]   6 + use tokio::time::Duration;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Duration`
[INFO] [stdout]    --> zt_ltp_core/src/server.rs:391:48
[INFO] [stdout]     |
[INFO] [stdout] 391 | ...                   tokio::time::sleep(Duration::from_millis(100)).await;
[INFO] [stdout]     |                                          ^^^^^^^^ use of undeclared type `Duration`
[INFO] [stdout]     |
[INFO] [stdout]     = note: struct `crate::protocol::session::tests::Duration` exists but is inaccessible
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]     |
[INFO] [stdout]   6 + use std::time::Duration;
[INFO] [stdout]     |
[INFO] [stdout]   6 + use chrono::Duration;
[INFO] [stdout]     |
[INFO] [stdout]   6 + use tokio::time::Duration;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Duration` in this scope
[INFO] [stdout]    --> zt_ltp_core/src/server.rs:648:50
[INFO] [stdout]     |
[INFO] [stdout] 648 |     pub fn connection_timeout(mut self, timeout: Duration) -> Self {
[INFO] [stdout]     |                                                  ^^^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout]     = note: struct `crate::protocol::session::tests::Duration` exists but is inaccessible
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]     |
[INFO] [stdout]   6 + use std::time::Duration;
[INFO] [stdout]     |
[INFO] [stdout]   6 + use chrono::Duration;
[INFO] [stdout]     |
[INFO] [stdout]   6 + use tokio::time::Duration;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Duration` in this scope
[INFO] [stdout]    --> zt_ltp_core/src/server.rs:654:44
[INFO] [stdout]     |
[INFO] [stdout] 654 |     pub fn idle_timeout(mut self, timeout: Duration) -> Self {
[INFO] [stdout]     |                                            ^^^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout]     = note: struct `crate::protocol::session::tests::Duration` exists but is inaccessible
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]     |
[INFO] [stdout]   6 + use std::time::Duration;
[INFO] [stdout]     |
[INFO] [stdout]   6 + use chrono::Duration;
[INFO] [stdout]     |
[INFO] [stdout]   6 + use tokio::time::Duration;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Duration`
[INFO] [stdout]    --> zt_ltp_core/src/server.rs:699:33
[INFO] [stdout]     |
[INFO] [stdout] 699 |             connection_timeout: Duration::from_secs(10), // Corrected default
[INFO] [stdout]     |                                 ^^^^^^^^ use of undeclared type `Duration`
[INFO] [stdout]     |
[INFO] [stdout]     = note: struct `crate::protocol::session::tests::Duration` exists but is inaccessible
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]     |
[INFO] [stdout] 679 +     use std::time::Duration;
[INFO] [stdout]     |
[INFO] [stdout] 679 +     use chrono::Duration;
[INFO] [stdout]     |
[INFO] [stdout] 679 +     use tokio::time::Duration;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Duration`
[INFO] [stdout]    --> zt_ltp_core/src/server.rs:700:27
[INFO] [stdout]     |
[INFO] [stdout] 700 |             idle_timeout: Duration::from_secs(300),
[INFO] [stdout]     |                           ^^^^^^^^ use of undeclared type `Duration`
[INFO] [stdout]     |
[INFO] [stdout]     = note: struct `crate::protocol::session::tests::Duration` exists but is inaccessible
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]     |
[INFO] [stdout] 679 +     use std::time::Duration;
[INFO] [stdout]     |
[INFO] [stdout] 679 +     use chrono::Duration;
[INFO] [stdout]     |
[INFO] [stdout] 679 +     use tokio::time::Duration;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Duration`
[INFO] [stdout]    --> zt_ltp_core/src/server.rs:701:36
[INFO] [stdout]     |
[INFO] [stdout] 701 |             health_check_interval: Duration::from_secs(60), // Corrected default
[INFO] [stdout]     |                                    ^^^^^^^^ use of undeclared type `Duration`
[INFO] [stdout]     |
[INFO] [stdout]     = note: struct `crate::protocol::session::tests::Duration` exists but is inaccessible
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]     |
[INFO] [stdout] 679 +     use std::time::Duration;
[INFO] [stdout]     |
[INFO] [stdout] 679 +     use chrono::Duration;
[INFO] [stdout]     |
[INFO] [stdout] 679 +     use tokio::time::Duration;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Duration`
[INFO] [stdout]    --> zt_ltp_core/src/server.rs:727:23
[INFO] [stdout]     |
[INFO] [stdout] 727 |         match timeout(Duration::from_secs(5), manager_handle).await {
[INFO] [stdout]     |                       ^^^^^^^^ use of undeclared type `Duration`
[INFO] [stdout]     |
[INFO] [stdout]     = note: struct `crate::protocol::session::tests::Duration` exists but is inaccessible
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]     |
[INFO] [stdout] 679 +     use std::time::Duration;
[INFO] [stdout]     |
[INFO] [stdout] 679 +     use chrono::Duration;
[INFO] [stdout]     |
[INFO] [stdout] 679 +     use tokio::time::Duration;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Mutex` in this scope
[INFO] [stdout]   --> zt_ltp_core/src/logging.rs:48:25
[INFO] [stdout]    |
[INFO] [stdout] 48 |     file_writer: Option<Mutex<std::fs::File>>,
[INFO] [stdout]    |                         ^^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing one of these structs
[INFO] [stdout]    |
[INFO] [stdout]  6 + use std::sync::Mutex;
[INFO] [stdout]    |
[INFO] [stdout]  6 + use std::sync::nonpoison::Mutex;
[INFO] [stdout]    |
[INFO] [stdout]  6 + use tokio::sync::Mutex;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Mutex`
[INFO] [stdout]   --> zt_ltp_core/src/logging.rs:55:18
[INFO] [stdout]    |
[INFO] [stdout] 55 |             Some(Mutex::new(std::fs::OpenOptions::new()
[INFO] [stdout]    |                  ^^^^^ use of undeclared type `Mutex`
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing one of these structs
[INFO] [stdout]    |
[INFO] [stdout]  6 + use std::sync::Mutex;
[INFO] [stdout]    |
[INFO] [stdout]  6 + use std::sync::nonpoison::Mutex;
[INFO] [stdout]    |
[INFO] [stdout]  6 + use tokio::sync::Mutex;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Value`
[INFO] [stdout]   --> zt_ltp_core/src/logging.rs:83:50
[INFO] [stdout]    |
[INFO] [stdout] 83 |             json.insert("timestamp".to_string(), Value::String(Utc::now().to_rfc3339()));
[INFO] [stdout]    |                                                  ^^^^^ use of undeclared type `Value`
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this enum
[INFO] [stdout]    |
[INFO] [stdout]  6 + use serde_json::Value;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Value`
[INFO] [stdout]   --> zt_ltp_core/src/logging.rs:86:42
[INFO] [stdout]    |
[INFO] [stdout] 86 |         json.insert("level".to_string(), Value::String(record.level().to_string().to_lowercase()));
[INFO] [stdout]    |                                          ^^^^^ use of undeclared type `Value`
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this enum
[INFO] [stdout]    |
[INFO] [stdout]  6 + use serde_json::Value;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Value`
[INFO] [stdout]   --> zt_ltp_core/src/logging.rs:87:44
[INFO] [stdout]    |
[INFO] [stdout] 87 |         json.insert("message".to_string(), Value::String(record.args().to_string()));
[INFO] [stdout]    |                                            ^^^^^ use of undeclared type `Value`
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this enum
[INFO] [stdout]    |
[INFO] [stdout]  6 + use serde_json::Value;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Value`
[INFO] [stdout]   --> zt_ltp_core/src/logging.rs:91:51
[INFO] [stdout]    |
[INFO] [stdout] 91 |                 json.insert("module".to_string(), Value::String(module.to_string()));
[INFO] [stdout]    |                                                   ^^^^^ use of undeclared type `Value`
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this enum
[INFO] [stdout]    |
[INFO] [stdout]  6 + use serde_json::Value;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Value`
[INFO] [stdout]   --> zt_ltp_core/src/logging.rs:94:49
[INFO] [stdout]    |
[INFO] [stdout] 94 |                 json.insert("file".to_string(), Value::String(file.to_string()));
[INFO] [stdout]    |                                                 ^^^^^ use of undeclared type `Value`
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this enum
[INFO] [stdout]    |
[INFO] [stdout]  6 + use serde_json::Value;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Value`
[INFO] [stdout]   --> zt_ltp_core/src/logging.rs:97:49
[INFO] [stdout]    |
[INFO] [stdout] 97 |                 json.insert("line".to_string(), Value::Number(line.into()));
[INFO] [stdout]    |                                                 ^^^^^ use of undeclared type `Value`
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this enum
[INFO] [stdout]    |
[INFO] [stdout]  6 + use serde_json::Value;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Value`
[INFO] [stdout]    --> zt_ltp_core/src/logging.rs:102:45
[INFO] [stdout]     |
[INFO] [stdout] 102 |         json.insert("protocol".to_string(), Value::String("zt-ltp".to_string()));
[INFO] [stdout]     |                                             ^^^^^ use of undeclared type `Value`
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing this enum
[INFO] [stdout]     |
[INFO] [stdout]   6 + use serde_json::Value;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Value`
[INFO] [stdout]    --> zt_ltp_core/src/logging.rs:103:44
[INFO] [stdout]     |
[INFO] [stdout] 103 |         json.insert("version".to_string(), Value::String(crate::PROTOCOL_VERSION.to_string()));
[INFO] [stdout]     |                                            ^^^^^ use of undeclared type `Value`
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing this enum
[INFO] [stdout]     |
[INFO] [stdout]   6 + use serde_json::Value;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0423]: expected value, found module `io`
[INFO] [stdout]    --> zt_ltp_core/src/logging.rs:161:17
[INFO] [stdout]     |
[INFO] [stdout] 161 |         let _ = io.stderr().flush();
[INFO] [stdout]     |                 ^^
[INFO] [stdout]     |
[INFO] [stdout] help: use the path separator to refer to an item
[INFO] [stdout]     |
[INFO] [stdout] 161 -         let _ = io.stderr().flush();
[INFO] [stdout] 161 +         let _ = io::stderr().flush();
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `chrono::Utc`
[INFO] [stdout]   --> zt_ltp_core/src/server.rs:13:5
[INFO] [stdout]    |
[INFO] [stdout] 13 | use chrono::Utc; // Added
[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 imports: `AuthMessage`, `ControlMessage`, `FrameType`, and `SessionEvent`
[INFO] [stdout]   --> zt_ltp_core/src/server.rs:19:5
[INFO] [stdout]    |
[INFO] [stdout] 19 |     ControlMessage, Frame, FrameType, SessionId,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^         ^^^^^^^^^
[INFO] [stdout] 20 |     SessionState, SessionContext, SessionEvent, // Removed SessionConfig as ProtocolSessionConfig, Added SessionEvent
[INFO] [stdout]    |                                   ^^^^^^^^^^^^
[INFO] [stdout] 21 |     AuthMessage, // Removed ClientIdentity
[INFO] [stdout]    |     ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `NetworkFrame`
[INFO] [stdout]   --> zt_ltp_core/src/server.rs:23:50
[INFO] [stdout]    |
[INFO] [stdout] 23 | use crate::network::{FramedConnection, Listener, NetworkFrame}; // Added Listener, NetworkFrame, FramedConnection
[INFO] [stdout]    |                                                  ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `LlmRequest`, `LlmResponse`, and `ZtLtpMessage`
[INFO] [stdout]   --> zt_ltp_core/src/server.rs:26:5
[INFO] [stdout]    |
[INFO] [stdout] 26 |     ZtLtpMessage, LlmRequest, LlmResponse, DEFAULT_PORT, // Added DEFAULT_PORT
[INFO] [stdout]    |     ^^^^^^^^^^^^  ^^^^^^^^^^  ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `accept_with_addr` found for mutable reference `&mut Listener` in the current scope
[INFO] [stdout]    --> zt_ltp_core/src/server.rs:454:68
[INFO] [stdout]     |
[INFO] [stdout] 454 |             match timeout(self.config.connection_timeout, listener.accept_with_addr()).await { // Assuming accept_with_addr
[INFO] [stdout]     |                                                                    ^^^^^^^^^^^^^^^^ method not found in `&mut Listener`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `accept_with_addr` found for mutable reference `&mut Listener` in the current scope
[INFO] [stdout]    --> zt_ltp_core/src/server.rs:454:68
[INFO] [stdout]     |
[INFO] [stdout] 454 |             match timeout(self.config.connection_timeout, listener.accept_with_addr()).await { // Assuming accept_with_addr
[INFO] [stdout]     |                                                                    ^^^^^^^^^^^^^^^^ method not found in `&mut Listener`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0609]: no field `reader` on type `FramedConnection`
[INFO] [stdout]    --> zt_ltp_core/src/network.rs:147:15
[INFO] [stdout]     |
[INFO] [stdout] 147 |         (self.reader, self.writer)
[INFO] [stdout]     |               ^^^^^^ unknown field
[INFO] [stdout]     |
[INFO] [stdout]     = note: available field is: `stream`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0609]: no field `writer` on type `FramedConnection`
[INFO] [stdout]    --> zt_ltp_core/src/network.rs:147:28
[INFO] [stdout]     |
[INFO] [stdout] 147 |         (self.reader, self.writer)
[INFO] [stdout]     |                            ^^^^^^ unknown field
[INFO] [stdout]     |
[INFO] [stdout]     = note: available field is: `stream`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no function or associated item named `human_readable_format` found for struct `ZtLtpLogger` in the current scope
[INFO] [stdout]    --> zt_ltp_core/src/logging.rs:137:33
[INFO] [stdout]     |
[INFO] [stdout]  46 | pub struct ZtLtpLogger {
[INFO] [stdout]     | ---------------------- function or associated item `human_readable_format` not found for this struct
[INFO] [stdout] ...
[INFO] [stdout] 137 |             let message = Self::human_readable_format(record, &self.config);
[INFO] [stdout]     |                                 ^^^^^^^^^^^^^^^^^^^^^ function or associated item not found in `ZtLtpLogger`
[INFO] [stdout]     |
[INFO] [stdout] note: if you're trying to build a new `ZtLtpLogger`, consider using `ZtLtpLogger::new` which returns `std::result::Result<ZtLtpLogger, std::io::Error>`
[INFO] [stdout]    --> zt_ltp_core/src/logging.rs:53:5
[INFO] [stdout]     |
[INFO] [stdout]  53 |     pub fn new(config: LoggingConfig) -> io::Result<Self> {
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no function or associated item named `structured_format` found for struct `ZtLtpLogger` in the current scope
[INFO] [stdout]    --> zt_ltp_core/src/logging.rs:147:33
[INFO] [stdout]     |
[INFO] [stdout]  46 | pub struct ZtLtpLogger {
[INFO] [stdout]     | ---------------------- function or associated item `structured_format` not found for this struct
[INFO] [stdout] ...
[INFO] [stdout] 147 |             let message = Self::structured_format(record, &self.config);
[INFO] [stdout]     |                                 ^^^^^^^^^^^^^^^^^ function or associated item not found in `ZtLtpLogger`
[INFO] [stdout]     |
[INFO] [stdout] note: if you're trying to build a new `ZtLtpLogger`, consider using `ZtLtpLogger::new` which returns `std::result::Result<ZtLtpLogger, std::io::Error>`
[INFO] [stdout]    --> zt_ltp_core/src/logging.rs:53:5
[INFO] [stdout]     |
[INFO] [stdout]  53 |     pub fn new(config: LoggingConfig) -> io::Result<Self> {
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0282]: type annotations needed
[INFO] [stdout]    --> zt_ltp_core/src/logging.rs:182:38
[INFO] [stdout]     |
[INFO] [stdout] 182 |                     let _ = writeln!(file, "{}", message);
[INFO] [stdout]     |                                      ^^^^ cannot infer type
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0282]: type annotations needed
[INFO] [stdout]    --> zt_ltp_core/src/logging.rs:193:25
[INFO] [stdout]     |
[INFO] [stdout] 193 |                 let _ = file.flush();
[INFO] [stdout]     |                         ^^^^ cannot infer type
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0609]: no field `reader` on type `FramedConnection`
[INFO] [stdout]    --> zt_ltp_core/src/network.rs:147:15
[INFO] [stdout]     |
[INFO] [stdout] 147 |         (self.reader, self.writer)
[INFO] [stdout]     |               ^^^^^^ unknown field
[INFO] [stdout]     |
[INFO] [stdout]     = note: available field is: `stream`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0609]: no field `writer` on type `FramedConnection`
[INFO] [stdout]    --> zt_ltp_core/src/network.rs:147:28
[INFO] [stdout]     |
[INFO] [stdout] 147 |         (self.reader, self.writer)
[INFO] [stdout]     |                            ^^^^^^ unknown field
[INFO] [stdout]     |
[INFO] [stdout]     = note: available field is: `stream`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no function or associated item named `new` found for struct `network::FrameWriter<W>` in the current scope
[INFO] [stdout]    --> zt_ltp_core/src/network.rs:228:43
[INFO] [stdout]     |
[INFO] [stdout]  33 | pub struct FrameWriter<W> {
[INFO] [stdout]     | ------------------------- function or associated item `new` not found for this struct
[INFO] [stdout] ...
[INFO] [stdout] 228 |             let mut writer = FrameWriter::new(&mut buffer);
[INFO] [stdout]     |                                           ^^^ function or associated item not found in `network::FrameWriter<_>`
[INFO] [stdout]     |
[INFO] [stdout]     = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout]     = note: the following trait defines an item `new`, perhaps you need to implement it:
[INFO] [stdout]             candidate #1: `parking_lot_core::thread_parker::ThreadParkerT`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0282]: type annotations needed
[INFO] [stdout]    --> zt_ltp_core/src/network.rs:229:13
[INFO] [stdout]     |
[INFO] [stdout] 229 |             writer.write_frame(&original_frame).await.unwrap();
[INFO] [stdout]     |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0282]: type annotations needed
[INFO] [stdout]    --> zt_ltp_core/src/network.rs:234:31
[INFO] [stdout]     |
[INFO] [stdout] 234 |         let recovered_frame = reader.read_frame().await.unwrap().unwrap();
[INFO] [stdout]     |                               ^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no function or associated item named `new` found for struct `network::FrameWriter<W>` in the current scope
[INFO] [stdout]    --> zt_ltp_core/src/network.rs:250:43
[INFO] [stdout]     |
[INFO] [stdout]  33 | pub struct FrameWriter<W> {
[INFO] [stdout]     | ------------------------- function or associated item `new` not found for this struct
[INFO] [stdout] ...
[INFO] [stdout] 250 |             let mut writer = FrameWriter::new(&mut buffer);
[INFO] [stdout]     |                                           ^^^ function or associated item not found in `network::FrameWriter<_>`
[INFO] [stdout]     |
[INFO] [stdout]     = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout]     = note: the following trait defines an item `new`, perhaps you need to implement it:
[INFO] [stdout]             candidate #1: `parking_lot_core::thread_parker::ThreadParkerT`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0282]: type annotations needed
[INFO] [stdout]    --> zt_ltp_core/src/network.rs:251:13
[INFO] [stdout]     |
[INFO] [stdout] 251 |             writer.write_frames(&frames).await.unwrap();
[INFO] [stdout]     |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0282]: type annotations needed
[INFO] [stdout]    --> zt_ltp_core/src/network.rs:257:35
[INFO] [stdout]     |
[INFO] [stdout] 257 |             let recovered_frame = reader.read_frame().await.unwrap().unwrap();
[INFO] [stdout]     |                                   ^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no function or associated item named `human_readable_format` found for struct `logging::ZtLtpLogger` in the current scope
[INFO] [stdout]    --> zt_ltp_core/src/logging.rs:137:33
[INFO] [stdout]     |
[INFO] [stdout]  46 | pub struct ZtLtpLogger {
[INFO] [stdout]     | ---------------------- function or associated item `human_readable_format` not found for this struct
[INFO] [stdout] ...
[INFO] [stdout] 137 |             let message = Self::human_readable_format(record, &self.config);
[INFO] [stdout]     |                                 ^^^^^^^^^^^^^^^^^^^^^ function or associated item not found in `logging::ZtLtpLogger`
[INFO] [stdout]     |
[INFO] [stdout] note: if you're trying to build a new `logging::ZtLtpLogger`, consider using `logging::ZtLtpLogger::new` which returns `std::result::Result<logging::ZtLtpLogger, std::io::Error>`
[INFO] [stdout]    --> zt_ltp_core/src/logging.rs:53:5
[INFO] [stdout]     |
[INFO] [stdout]  53 |     pub fn new(config: LoggingConfig) -> io::Result<Self> {
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no function or associated item named `structured_format` found for struct `logging::ZtLtpLogger` in the current scope
[INFO] [stdout]    --> zt_ltp_core/src/logging.rs:147:33
[INFO] [stdout]     |
[INFO] [stdout]  46 | pub struct ZtLtpLogger {
[INFO] [stdout]     | ---------------------- function or associated item `structured_format` not found for this struct
[INFO] [stdout] ...
[INFO] [stdout] 147 |             let message = Self::structured_format(record, &self.config);
[INFO] [stdout]     |                                 ^^^^^^^^^^^^^^^^^ function or associated item not found in `logging::ZtLtpLogger`
[INFO] [stdout]     |
[INFO] [stdout] note: if you're trying to build a new `logging::ZtLtpLogger`, consider using `logging::ZtLtpLogger::new` which returns `std::result::Result<logging::ZtLtpLogger, std::io::Error>`
[INFO] [stdout]    --> zt_ltp_core/src/logging.rs:53:5
[INFO] [stdout]     |
[INFO] [stdout]  53 |     pub fn new(config: LoggingConfig) -> io::Result<Self> {
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0282]: type annotations needed
[INFO] [stdout]    --> zt_ltp_core/src/logging.rs:182:38
[INFO] [stdout]     |
[INFO] [stdout] 182 |                     let _ = writeln!(file, "{}", message);
[INFO] [stdout]     |                                      ^^^^ cannot infer type
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0282]: type annotations needed
[INFO] [stdout]    --> zt_ltp_core/src/logging.rs:193:25
[INFO] [stdout]     |
[INFO] [stdout] 193 |                 let _ = file.flush();
[INFO] [stdout]     |                         ^^^^ cannot infer type
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0282, E0412, E0423, E0432, E0433, E0599, E0609.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0282`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `zt_ltp_core` (lib) due to 38 previous errors; 4 warnings emitted
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stdout] warning: unused variable: `structured_logger`
[INFO] [stdout]    --> zt_ltp_core/src/logging.rs:392:13
[INFO] [stdout]     |
[INFO] [stdout] 392 |         let structured_logger = ZtLtpLogger::new(structured_config).unwrap();
[INFO] [stdout]     |             ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_structured_logger`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0282, E0412, E0423, E0432, E0433, E0599, E0609.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0282`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `zt_ltp_core` (lib test) due to 49 previous errors; 5 warnings emitted
[INFO] running `Command { std: "docker" "inspect" "ad3298aadc5e47f5a5de865d17ee98c861ee37c497477219a0855700853b67ce", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "ad3298aadc5e47f5a5de865d17ee98c861ee37c497477219a0855700853b67ce", kill_on_drop: false }`
[INFO] [stdout] ad3298aadc5e47f5a5de865d17ee98c861ee37c497477219a0855700853b67ce
