[INFO] fetching crate run_code_rmcp 0.0.33... [INFO] building run_code_rmcp-0.0.33 against master#ad85bc524b1ad696e42061ad8338d382dffbdbe5 for pr-146237-1 [INFO] extracting crate run_code_rmcp 0.0.33 into /workspace/builds/worker-1-tc1/source [INFO] started tweaking crates.io crate run_code_rmcp 0.0.33 [INFO] finished tweaking crates.io crate run_code_rmcp 0.0.33 [INFO] tweaked toml for crates.io crate run_code_rmcp 0.0.33 written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate run_code_rmcp 0.0.33 on toolchain ad85bc524b1ad696e42061ad8338d382dffbdbe5 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate run_code_rmcp 0.0.33 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" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded darling v0.21.1 [INFO] [stderr] Downloaded darling_macro v0.21.1 [INFO] [stderr] Downloaded rmcp-macros v0.6.1 [INFO] [stderr] Downloaded rustls-webpki v0.103.2 [INFO] [stderr] Downloaded cc v1.2.22 [INFO] [stderr] Downloaded jiff-static v0.2.13 [INFO] [stderr] Downloaded darling_core v0.21.1 [INFO] [stderr] Downloaded jiff v0.2.13 [INFO] [stderr] Downloaded process-wrap v8.2.1 [INFO] [stderr] Downloaded rmcp v0.6.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] b91f93f7b40000dae543c06cf92eca043888cb88af5ebf36b3a07eae01220b36 [INFO] running `Command { std: "docker" "start" "-a" "b91f93f7b40000dae543c06cf92eca043888cb88af5ebf36b3a07eae01220b36", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b91f93f7b40000dae543c06cf92eca043888cb88af5ebf36b3a07eae01220b36", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b91f93f7b40000dae543c06cf92eca043888cb88af5ebf36b3a07eae01220b36", kill_on_drop: false }` [INFO] [stdout] b91f93f7b40000dae543c06cf92eca043888cb88af5ebf36b3a07eae01220b36 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1df00c222ea2b9874b51d912ce848ec5cf9193bbb222850f68a6d123621372fb [INFO] running `Command { std: "docker" "start" "-a" "1df00c222ea2b9874b51d912ce848ec5cf9193bbb222850f68a6d123621372fb", kill_on_drop: false }` [INFO] [stderr] Compiling syn v2.0.101 [INFO] [stderr] Compiling libc v0.2.172 [INFO] [stderr] Compiling cc v1.2.22 [INFO] [stderr] Compiling icu_properties_data v2.0.0 [INFO] [stderr] Compiling rustls v0.23.27 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling bitflags v2.9.0 [INFO] [stderr] Compiling nix v0.30.1 [INFO] [stderr] Compiling webpki-roots v1.0.0 [INFO] [stderr] Compiling regex-automata v0.4.9 [INFO] [stderr] Compiling hashbrown v0.15.5 [INFO] [stderr] Compiling serde_json v1.0.140 [INFO] [stderr] Compiling clap_builder v4.5.38 [INFO] [stderr] Compiling jiff v0.2.13 [INFO] [stderr] Compiling webpki-roots v0.26.11 [INFO] [stderr] Compiling rustix v1.0.7 [INFO] [stderr] Compiling indexmap v2.10.0 [INFO] [stderr] Compiling ring v0.17.14 [INFO] [stderr] Compiling blake3 v1.8.2 [INFO] [stderr] Compiling signal-hook-registry v1.4.5 [INFO] [stderr] Compiling socket2 v0.6.0 [INFO] [stderr] Compiling mio v1.0.3 [INFO] [stderr] Compiling getrandom v0.2.16 [INFO] [stderr] Compiling getrandom v0.3.3 [INFO] [stderr] Compiling socket2 v0.5.9 [INFO] [stderr] Compiling rand_core v0.9.3 [INFO] [stderr] Compiling uuid v1.18.0 [INFO] [stderr] Compiling rand_chacha v0.9.0 [INFO] [stderr] Compiling regex v1.11.1 [INFO] [stderr] Compiling rand v0.9.1 [INFO] [stderr] Compiling env_filter v0.1.3 [INFO] [stderr] Compiling tempfile v3.21.0 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling darling_core v0.21.1 [INFO] [stderr] Compiling serde_derive_internals v0.29.1 [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 futures-macro v0.3.31 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling tracing-attributes v0.1.28 [INFO] [stderr] Compiling thiserror-impl v2.0.12 [INFO] [stderr] Compiling ref-cast-impl v1.0.24 [INFO] [stderr] Compiling clap_derive v4.5.32 [INFO] [stderr] Compiling pin-project-internal v1.1.10 [INFO] [stderr] Compiling ref-cast v1.0.24 [INFO] [stderr] Compiling tokio v1.47.1 [INFO] [stderr] Compiling env_logger v0.11.8 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling schemars_derive v1.0.4 [INFO] [stderr] Compiling async-trait v0.1.88 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling pin-project v1.1.10 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling rustls-webpki v0.103.2 [INFO] [stderr] Compiling yoke v0.8.0 [INFO] [stderr] Compiling axum-core v0.5.2 [INFO] [stderr] Compiling thiserror v2.0.12 [INFO] [stderr] Compiling pest v2.8.0 [INFO] [stderr] Compiling clap v4.5.38 [INFO] [stderr] Compiling zerovec v0.11.2 [INFO] [stderr] Compiling zerotrie v0.2.2 [INFO] [stderr] Compiling darling_macro v0.21.1 [INFO] [stderr] Compiling darling v0.21.1 [INFO] [stderr] Compiling pest_meta v2.8.0 [INFO] [stderr] Compiling rmcp-macros v0.6.1 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling futures-executor v0.3.31 [INFO] [stderr] Compiling sse-stream v0.2.1 [INFO] [stderr] Compiling tinystr v0.8.1 [INFO] [stderr] Compiling potential_utf v0.1.2 [INFO] [stderr] Compiling futures v0.3.31 [INFO] [stderr] Compiling icu_collections v2.0.0 [INFO] [stderr] Compiling icu_locale_core v2.0.0 [INFO] [stderr] Compiling pest_generator v2.8.0 [INFO] [stderr] Compiling icu_provider v2.0.0 [INFO] [stderr] Compiling icu_properties v2.0.0 [INFO] [stderr] Compiling icu_normalizer v2.0.0 [INFO] [stderr] Compiling pest_derive v2.8.0 [INFO] [stderr] Compiling hyper v1.6.0 [INFO] [stderr] Compiling tower v0.5.2 [INFO] [stderr] Compiling tokio-util v0.7.15 [INFO] [stderr] Compiling tokio-stream v0.1.17 [INFO] [stderr] Compiling process-wrap v8.2.1 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling chrono v0.4.41 [INFO] [stderr] Compiling tokio-rustls v0.26.2 [INFO] [stderr] Compiling serde_path_to_error v0.1.17 [INFO] [stderr] Compiling idna_adapter v1.2.1 [INFO] [stderr] Compiling idna v1.0.3 [INFO] [stderr] Compiling url v2.5.4 [INFO] [stderr] Compiling hyper-util v0.1.11 [INFO] [stderr] Compiling schemars v1.0.4 [INFO] [stderr] Compiling hyper-rustls v0.27.5 [INFO] [stderr] Compiling axum v0.8.4 [INFO] [stderr] Compiling reqwest v0.12.15 [INFO] [stderr] Compiling rmcp v0.6.1 [INFO] [stderr] Compiling run_code_rmcp v0.0.33 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::io::Write` [INFO] [stdout] --> src/deno_runner/common_runner.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::io::Write; [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: `std::path::PathBuf` [INFO] [stdout] --> src/deno_runner/common_runner.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::path::PathBuf; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tempfile::NamedTempFile` [INFO] [stdout] --> src/deno_runner/common_runner.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use tempfile::NamedTempFile; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::io::AsyncWriteExt` [INFO] [stdout] --> src/deno_runner/common_runner.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use tokio::io::AsyncWriteExt; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tool_handler` [INFO] [stdout] --> src/mcp/mcp_server.rs:8:11 [INFO] [stdout] | [INFO] [stdout] 8 | tool, tool_handler, tool_router, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `CodeRunnerService` [INFO] [stdout] --> src/mcp/mod.rs:3:22 [INFO] [stdout] | [INFO] [stdout] 3 | pub use mcp_server::{CodeRunnerService,CodeRunRequest}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Write` [INFO] [stdout] --> src/python_runner/python_runner.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::io::Write; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::path::PathBuf` [INFO] [stdout] --> src/python_runner/python_runner.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::path::PathBuf; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tempfile::NamedTempFile` [INFO] [stdout] --> src/python_runner/python_runner.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use tempfile::NamedTempFile; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::io::AsyncWriteExt` [INFO] [stdout] --> src/python_runner/python_runner.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use tokio::io::AsyncWriteExt; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `temp_dir_path` [INFO] [stdout] --> src/deno_runner/common_runner.rs:66:13 [INFO] [stdout] | [INFO] [stdout] 66 | let temp_dir_path = temp_dir.path().to_path_buf(); [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_temp_dir_path` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `temp_dir_path` [INFO] [stdout] --> src/python_runner/python_runner.rs:125:17 [INFO] [stdout] | [INFO] [stdout] 125 | let temp_dir_path = temp_dir.path().to_path_buf(); [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_temp_dir_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `AppError` is never used [INFO] [stdout] --> src/app_error.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum AppError { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CodeRunnerService` is never constructed [INFO] [stdout] --> src/mcp/mcp_server.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 27 | pub struct CodeRunnerService; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RunCodeMessageRequest` is never constructed [INFO] [stdout] --> src/model/tool_params.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct RunCodeMessageRequest { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CodeExecutionParams` is never constructed [INFO] [stdout] --> src/model/tool_params.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 30 | pub struct CodeExecutionParams { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ToolExecutionResult` is never constructed [INFO] [stdout] --> src/model/tool_params.rs:41:12 [INFO] [stdout] | [INFO] [stdout] 41 | pub struct ToolExecutionResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Write` [INFO] [stdout] --> src/deno_runner/common_runner.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::io::Write; [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: `std::path::PathBuf` [INFO] [stdout] --> src/deno_runner/common_runner.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::path::PathBuf; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tempfile::NamedTempFile` [INFO] [stdout] --> src/deno_runner/common_runner.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use tempfile::NamedTempFile; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::io::AsyncWriteExt` [INFO] [stdout] --> src/deno_runner/common_runner.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use tokio::io::AsyncWriteExt; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tool_handler` [INFO] [stdout] --> src/mcp/mcp_server.rs:8:11 [INFO] [stdout] | [INFO] [stdout] 8 | tool, tool_handler, tool_router, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `CodeRunRequest` and `CodeRunnerService` [INFO] [stdout] --> src/mcp/mod.rs:3:22 [INFO] [stdout] | [INFO] [stdout] 3 | pub use mcp_server::{CodeRunnerService,CodeRunRequest}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Write` [INFO] [stdout] --> src/python_runner/python_runner.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::io::Write; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::path::PathBuf` [INFO] [stdout] --> src/python_runner/python_runner.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::path::PathBuf; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tempfile::NamedTempFile` [INFO] [stdout] --> src/python_runner/python_runner.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use tempfile::NamedTempFile; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::io::AsyncWriteExt` [INFO] [stdout] --> src/python_runner/python_runner.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use tokio::io::AsyncWriteExt; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Write` [INFO] [stdout] --> src/deno_runner/common_runner.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::io::Write; [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: `std::path::PathBuf` [INFO] [stdout] --> src/deno_runner/common_runner.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::path::PathBuf; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tempfile::NamedTempFile` [INFO] [stdout] --> src/deno_runner/common_runner.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use tempfile::NamedTempFile; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::io::AsyncWriteExt` [INFO] [stdout] --> src/deno_runner/common_runner.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use tokio::io::AsyncWriteExt; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tool_handler` [INFO] [stdout] --> src/mcp/mcp_server.rs:8:11 [INFO] [stdout] | [INFO] [stdout] 8 | tool, tool_handler, tool_router, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `CodeRunRequest` [INFO] [stdout] --> src/mcp/mod.rs:3:40 [INFO] [stdout] | [INFO] [stdout] 3 | pub use mcp_server::{CodeRunnerService,CodeRunRequest}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Write` [INFO] [stdout] --> src/python_runner/python_runner.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::io::Write; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::path::PathBuf` [INFO] [stdout] --> src/python_runner/python_runner.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::path::PathBuf; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tempfile::NamedTempFile` [INFO] [stdout] --> src/python_runner/python_runner.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use tempfile::NamedTempFile; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::io::AsyncWriteExt` [INFO] [stdout] --> src/python_runner/python_runner.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use tokio::io::AsyncWriteExt; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `temp_dir_path` [INFO] [stdout] --> src/deno_runner/common_runner.rs:66:13 [INFO] [stdout] | [INFO] [stdout] 66 | let temp_dir_path = temp_dir.path().to_path_buf(); [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_temp_dir_path` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `temp_dir_path` [INFO] [stdout] --> src/deno_runner/common_runner.rs:66:13 [INFO] [stdout] | [INFO] [stdout] 66 | let temp_dir_path = temp_dir.path().to_path_buf(); [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_temp_dir_path` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `temp_dir_path` [INFO] [stdout] --> src/python_runner/python_runner.rs:125:17 [INFO] [stdout] | [INFO] [stdout] 125 | let temp_dir_path = temp_dir.path().to_path_buf(); [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_temp_dir_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `temp_dir_path` [INFO] [stdout] --> src/python_runner/python_runner.rs:125:17 [INFO] [stdout] | [INFO] [stdout] 125 | let temp_dir_path = temp_dir.path().to_path_buf(); [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_temp_dir_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `AppError` is never used [INFO] [stdout] --> src/app_error.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum AppError { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CodeFileCache` is never constructed [INFO] [stdout] --> src/cache/code_file_cache.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct CodeFileCache; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated functions are never used [INFO] [stdout] --> src/cache/code_file_cache.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl CodeFileCache { [INFO] [stdout] | ------------------ associated functions in this implementation [INFO] [stdout] 12 | /// 检查代码文件缓存 [INFO] [stdout] 13 | pub fn obtain_code_hash(code: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 22 | pub async fn check_code_file_cache_exisht(hash: &str, language: &LanguageScript) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | pub async fn get_code_file_cache( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 41 | pub async fn save_code_file_cache( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 79 | pub async fn clear_cache_by_language(language: &LanguageScript) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 105 | pub async fn clear_all_cache() -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 116 | fn get_cache_dir() -> PathBuf { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 122 | fn get_cache_file_path(hash: &str, language: &LanguageScript) -> PathBuf { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `run_deno_script_with_params` is never used [INFO] [stdout] --> src/deno_runner/common_runner.rs:14:14 [INFO] [stdout] | [INFO] [stdout] 14 | pub async fn run_deno_script_with_params( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `JsRunner` is never constructed [INFO] [stdout] --> src/deno_runner/js_runner.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct JsRunner; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `prepare_js_code` is never used [INFO] [stdout] --> src/deno_runner/js_runner.rs:30:8 [INFO] [stdout] | [INFO] [stdout] 28 | impl JsRunner { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] 29 | /// 准备JavaScript代码,添加日志捕获和handler函数执行逻辑 [INFO] [stdout] 30 | fn prepare_js_code(&self, code: &str, show_logs: bool) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TsRunner` is never constructed [INFO] [stdout] --> src/deno_runner/ts_runner.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct TsRunner; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `prepare_ts_code` is never used [INFO] [stdout] --> src/deno_runner/ts_runner.rs:30:8 [INFO] [stdout] | [INFO] [stdout] 27 | impl TsRunner { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 30 | fn prepare_ts_code(&self, code: &str, show_logs: bool) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CodeRunRequest` is never constructed [INFO] [stdout] --> src/mcp/mcp_server.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct CodeRunRequest { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `LanguageScript` is never used [INFO] [stdout] --> src/model/code_run_model.rs:23:10 [INFO] [stdout] | [INFO] [stdout] 23 | pub enum LanguageScript { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_file_suffix` is never used [INFO] [stdout] --> src/model/code_run_model.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 29 | impl LanguageScript { [INFO] [stdout] | ------------------- method in this implementation [INFO] [stdout] 30 | /// 获取文件后缀 [INFO] [stdout] 31 | pub fn get_file_suffix(&self) -> &str { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CodeScriptExecutionResult` is never constructed [INFO] [stdout] --> src/model/code_run_model.rs:42:12 [INFO] [stdout] | [INFO] [stdout] 42 | pub struct CodeScriptExecutionResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `RunCode` is never used [INFO] [stdout] --> src/model/code_run_model.rs:57:11 [INFO] [stdout] | [INFO] [stdout] 57 | pub trait RunCode { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CodeExecutor` is never constructed [INFO] [stdout] --> src/model/code_run_model.rs:68:12 [INFO] [stdout] | [INFO] [stdout] 68 | pub struct CodeExecutor; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `execute_with_params`, `execute_with_params_compat`, and `parse_execution_output` are never used [INFO] [stdout] --> src/model/code_run_model.rs:72:18 [INFO] [stdout] | [INFO] [stdout] 70 | impl CodeExecutor { [INFO] [stdout] | ----------------- associated functions in this implementation [INFO] [stdout] 71 | /// 执行代码并传递参数,可选设置超时时间 [INFO] [stdout] 72 | pub async fn execute_with_params( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 101 | pub async fn execute_with_params_compat( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 110 | pub async fn parse_execution_output( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `default` and `with_timeout` are never used [INFO] [stdout] --> src/model/code_run_model.rs:229:12 [INFO] [stdout] | [INFO] [stdout] 228 | impl CommandExecutor { [INFO] [stdout] | -------------------------- associated functions in this implementation [INFO] [stdout] 229 | pub fn default(future: F) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 235 | pub fn with_timeout(future: F, timeout_seconds: u64) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RunCodeMessageRequest` is never constructed [INFO] [stdout] --> src/model/tool_params.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct RunCodeMessageRequest { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RunCodeHttpResult` is never constructed [INFO] [stdout] --> src/model/tool_params.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct RunCodeHttpResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CodeExecutionParams` is never constructed [INFO] [stdout] --> src/model/tool_params.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 30 | pub struct CodeExecutionParams { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ToolExecutionResult` is never constructed [INFO] [stdout] --> src/model/tool_params.rs:41:12 [INFO] [stdout] | [INFO] [stdout] 41 | pub struct ToolExecutionResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ImportParser` is never constructed [INFO] [stdout] --> src/python_runner/dependencies/python_dependencies.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | struct ImportParser; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `PYTHON_STDLIB_MODULES` is never used [INFO] [stdout] --> src/python_runner/dependencies/python_dependencies.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | static PYTHON_STDLIB_MODULES: &[&str] = &[ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_import` is never used [INFO] [stdout] --> src/python_runner/dependencies/python_dependencies.rs:192:8 [INFO] [stdout] | [INFO] [stdout] 192 | pub fn parse_import(code: &str) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_python_imports` is never used [INFO] [stdout] --> src/python_runner/dependencies/python_dependencies.rs:206:4 [INFO] [stdout] | [INFO] [stdout] 206 | fn parse_python_imports(python_code: &str) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_standard_library` is never used [INFO] [stdout] --> src/python_runner/dependencies/python_dependencies.rs:272:4 [INFO] [stdout] | [INFO] [stdout] 272 | fn is_standard_library(module: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PythonRunner` is never constructed [INFO] [stdout] --> src/python_runner/python_runner.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct PythonRunner; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `PYTHON_ACCELERATION_ADDRESS` is never used [INFO] [stdout] --> src/python_runner/python_runner.rs:20:7 [INFO] [stdout] | [INFO] [stdout] 20 | const PYTHON_ACCELERATION_ADDRESS: &str = "https://mirrors.aliyun.com/pypi/simple"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `prepare_python_code` is never used [INFO] [stdout] --> src/python_runner/python_runner.rs:191:8 [INFO] [stdout] | [INFO] [stdout] 189 | impl PythonRunner { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] 190 | /// 准备Python代码,添加日志捕获和handler函数执行逻辑 [INFO] [stdout] 191 | fn prepare_python_code(&self, code: &str, show_logs: bool) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `AppError` is never used [INFO] [stdout] --> src/app_error.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum AppError { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CodeRunRequest` is never constructed [INFO] [stdout] --> src/mcp/mcp_server.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct CodeRunRequest { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CodeRunnerService` is never constructed [INFO] [stdout] --> src/mcp/mcp_server.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 27 | pub struct CodeRunnerService; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `success` is never read [INFO] [stdout] --> src/model/code_run_model.rs:49:9 [INFO] [stdout] | [INFO] [stdout] 42 | pub struct CodeScriptExecutionResult { [INFO] [stdout] | ------------------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 49 | pub success: bool, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CodeScriptExecutionResult` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RunCodeMessageRequest` is never constructed [INFO] [stdout] --> src/model/tool_params.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct RunCodeMessageRequest { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RunCodeHttpResult` is never constructed [INFO] [stdout] --> src/model/tool_params.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct RunCodeHttpResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CodeExecutionParams` is never constructed [INFO] [stdout] --> src/model/tool_params.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 30 | pub struct CodeExecutionParams { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ToolExecutionResult` is never constructed [INFO] [stdout] --> src/model/tool_params.rs:41:12 [INFO] [stdout] | [INFO] [stdout] 41 | pub struct ToolExecutionResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 01s [INFO] running `Command { std: "docker" "inspect" "1df00c222ea2b9874b51d912ce848ec5cf9193bbb222850f68a6d123621372fb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1df00c222ea2b9874b51d912ce848ec5cf9193bbb222850f68a6d123621372fb", kill_on_drop: false }` [INFO] [stdout] 1df00c222ea2b9874b51d912ce848ec5cf9193bbb222850f68a6d123621372fb [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 32475c87947dd3f021b0259b8e50963e10875538cab167fad06386f40e9e1a1f [INFO] running `Command { std: "docker" "start" "-a" "32475c87947dd3f021b0259b8e50963e10875538cab167fad06386f40e9e1a1f", kill_on_drop: false }` [INFO] [stdout] warning: unused import: `std::io::Write` [INFO] [stdout] --> src/deno_runner/common_runner.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::io::Write; [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: `std::path::PathBuf` [INFO] [stdout] --> src/deno_runner/common_runner.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::path::PathBuf; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tempfile::NamedTempFile` [INFO] [stdout] --> src/deno_runner/common_runner.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use tempfile::NamedTempFile; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::io::AsyncWriteExt` [INFO] [stdout] --> src/deno_runner/common_runner.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use tokio::io::AsyncWriteExt; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tool_handler` [INFO] [stdout] --> src/mcp/mcp_server.rs:8:11 [INFO] [stdout] | [INFO] [stdout] 8 | tool, tool_handler, tool_router, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `CodeRunnerService` [INFO] [stdout] --> src/mcp/mod.rs:3:22 [INFO] [stdout] | [INFO] [stdout] 3 | pub use mcp_server::{CodeRunnerService,CodeRunRequest}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Write` [INFO] [stdout] --> src/python_runner/python_runner.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::io::Write; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::path::PathBuf` [INFO] [stdout] --> src/python_runner/python_runner.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::path::PathBuf; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tempfile::NamedTempFile` [INFO] [stdout] --> src/python_runner/python_runner.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use tempfile::NamedTempFile; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::io::AsyncWriteExt` [INFO] [stdout] --> src/python_runner/python_runner.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use tokio::io::AsyncWriteExt; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `temp_dir_path` [INFO] [stdout] --> src/deno_runner/common_runner.rs:66:13 [INFO] [stdout] | [INFO] [stdout] 66 | let temp_dir_path = temp_dir.path().to_path_buf(); [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_temp_dir_path` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `temp_dir_path` [INFO] [stdout] --> src/python_runner/python_runner.rs:125:17 [INFO] [stdout] | [INFO] [stdout] 125 | let temp_dir_path = temp_dir.path().to_path_buf(); [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_temp_dir_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `AppError` is never used [INFO] [stdout] --> src/app_error.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum AppError { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CodeRunnerService` is never constructed [INFO] [stdout] --> src/mcp/mcp_server.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 27 | pub struct CodeRunnerService; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RunCodeMessageRequest` is never constructed [INFO] [stdout] --> src/model/tool_params.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct RunCodeMessageRequest { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CodeExecutionParams` is never constructed [INFO] [stdout] --> src/model/tool_params.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 30 | pub struct CodeExecutionParams { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ToolExecutionResult` is never constructed [INFO] [stdout] --> src/model/tool_params.rs:41:12 [INFO] [stdout] | [INFO] [stdout] 41 | pub struct ToolExecutionResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling run_code_rmcp v0.0.33 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::io::Write` [INFO] [stdout] --> src/deno_runner/common_runner.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::io::Write; [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: `std::path::PathBuf` [INFO] [stdout] --> src/deno_runner/common_runner.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::path::PathBuf; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tempfile::NamedTempFile` [INFO] [stdout] --> src/deno_runner/common_runner.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use tempfile::NamedTempFile; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::io::AsyncWriteExt` [INFO] [stdout] --> src/deno_runner/common_runner.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use tokio::io::AsyncWriteExt; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tool_handler` [INFO] [stdout] --> src/mcp/mcp_server.rs:8:11 [INFO] [stdout] | [INFO] [stdout] 8 | tool, tool_handler, tool_router, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `CodeRunRequest` and `CodeRunnerService` [INFO] [stdout] --> src/mcp/mod.rs:3:22 [INFO] [stdout] | [INFO] [stdout] 3 | pub use mcp_server::{CodeRunnerService,CodeRunRequest}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Write` [INFO] [stdout] --> src/python_runner/python_runner.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::io::Write; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::path::PathBuf` [INFO] [stdout] --> src/python_runner/python_runner.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::path::PathBuf; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tempfile::NamedTempFile` [INFO] [stdout] --> src/python_runner/python_runner.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use tempfile::NamedTempFile; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::io::AsyncWriteExt` [INFO] [stdout] --> src/python_runner/python_runner.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use tokio::io::AsyncWriteExt; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Write` [INFO] [stdout] --> src/deno_runner/common_runner.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::io::Write; [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: `std::path::PathBuf` [INFO] [stdout] --> src/deno_runner/common_runner.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::path::PathBuf; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Write` [INFO] [stdout] --> src/deno_runner/common_runner.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::io::Write; [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: `tempfile::NamedTempFile` [INFO] [stdout] --> src/deno_runner/common_runner.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use tempfile::NamedTempFile; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::io::AsyncWriteExt` [INFO] [stdout] --> src/deno_runner/common_runner.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use tokio::io::AsyncWriteExt; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::path::PathBuf` [INFO] [stdout] --> src/deno_runner/common_runner.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::path::PathBuf; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tempfile::NamedTempFile` [INFO] [stdout] --> src/deno_runner/common_runner.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use tempfile::NamedTempFile; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tool_handler` [INFO] [stdout] --> src/mcp/mcp_server.rs:8:11 [INFO] [stdout] | [INFO] [stdout] 8 | tool, tool_handler, tool_router, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::io::AsyncWriteExt` [INFO] [stdout] --> src/deno_runner/common_runner.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use tokio::io::AsyncWriteExt; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tool_handler` [INFO] [stdout] --> src/mcp/mcp_server.rs:8:11 [INFO] [stdout] | [INFO] [stdout] 8 | tool, tool_handler, tool_router, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `CodeRunnerService` [INFO] [stdout] --> src/mcp/mod.rs:3:22 [INFO] [stdout] | [INFO] [stdout] 3 | pub use mcp_server::{CodeRunnerService,CodeRunRequest}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `CodeRunRequest` [INFO] [stdout] --> src/mcp/mod.rs:3:40 [INFO] [stdout] | [INFO] [stdout] 3 | pub use mcp_server::{CodeRunnerService,CodeRunRequest}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Write` [INFO] [stdout] --> src/python_runner/python_runner.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::io::Write; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::path::PathBuf` [INFO] [stdout] --> src/python_runner/python_runner.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::path::PathBuf; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Write` [INFO] [stdout] --> src/python_runner/python_runner.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::io::Write; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::path::PathBuf` [INFO] [stdout] --> src/python_runner/python_runner.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::path::PathBuf; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tempfile::NamedTempFile` [INFO] [stdout] --> src/python_runner/python_runner.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use tempfile::NamedTempFile; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `temp_dir_path` [INFO] [stdout] --> src/deno_runner/common_runner.rs:66:13 [INFO] [stdout] | [INFO] [stdout] 66 | let temp_dir_path = temp_dir.path().to_path_buf(); [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_temp_dir_path` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::io::AsyncWriteExt` [INFO] [stdout] --> src/python_runner/python_runner.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use tokio::io::AsyncWriteExt; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tempfile::NamedTempFile` [INFO] [stdout] --> src/python_runner/python_runner.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use tempfile::NamedTempFile; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::io::AsyncWriteExt` [INFO] [stdout] --> src/python_runner/python_runner.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use tokio::io::AsyncWriteExt; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `temp_dir_path` [INFO] [stdout] --> src/python_runner/python_runner.rs:125:17 [INFO] [stdout] | [INFO] [stdout] 125 | let temp_dir_path = temp_dir.path().to_path_buf(); [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_temp_dir_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `temp_dir_path` [INFO] [stdout] --> src/deno_runner/common_runner.rs:66:13 [INFO] [stdout] | [INFO] [stdout] 66 | let temp_dir_path = temp_dir.path().to_path_buf(); [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_temp_dir_path` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `temp_dir_path` [INFO] [stdout] --> src/deno_runner/common_runner.rs:66:13 [INFO] [stdout] | [INFO] [stdout] 66 | let temp_dir_path = temp_dir.path().to_path_buf(); [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_temp_dir_path` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `temp_dir_path` [INFO] [stdout] --> src/python_runner/python_runner.rs:125:17 [INFO] [stdout] | [INFO] [stdout] 125 | let temp_dir_path = temp_dir.path().to_path_buf(); [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_temp_dir_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `temp_dir_path` [INFO] [stdout] --> src/python_runner/python_runner.rs:125:17 [INFO] [stdout] | [INFO] [stdout] 125 | let temp_dir_path = temp_dir.path().to_path_buf(); [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_temp_dir_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `AppError` is never used [INFO] [stdout] --> src/app_error.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum AppError { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CodeRunRequest` is never constructed [INFO] [stdout] --> src/mcp/mcp_server.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct CodeRunRequest { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CodeRunnerService` is never constructed [INFO] [stdout] --> src/mcp/mcp_server.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 27 | pub struct CodeRunnerService; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `success` is never read [INFO] [stdout] --> src/model/code_run_model.rs:49:9 [INFO] [stdout] | [INFO] [stdout] 42 | pub struct CodeScriptExecutionResult { [INFO] [stdout] | ------------------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 49 | pub success: bool, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CodeScriptExecutionResult` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RunCodeMessageRequest` is never constructed [INFO] [stdout] --> src/model/tool_params.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct RunCodeMessageRequest { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RunCodeHttpResult` is never constructed [INFO] [stdout] --> src/model/tool_params.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct RunCodeHttpResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CodeExecutionParams` is never constructed [INFO] [stdout] --> src/model/tool_params.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 30 | pub struct CodeExecutionParams { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ToolExecutionResult` is never constructed [INFO] [stdout] --> src/model/tool_params.rs:41:12 [INFO] [stdout] | [INFO] [stdout] 41 | pub struct ToolExecutionResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `AppError` is never used [INFO] [stdout] --> src/app_error.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum AppError { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CodeFileCache` is never constructed [INFO] [stdout] --> src/cache/code_file_cache.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct CodeFileCache; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated functions are never used [INFO] [stdout] --> src/cache/code_file_cache.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl CodeFileCache { [INFO] [stdout] | ------------------ associated functions in this implementation [INFO] [stdout] 12 | /// 检查代码文件缓存 [INFO] [stdout] 13 | pub fn obtain_code_hash(code: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 22 | pub async fn check_code_file_cache_exisht(hash: &str, language: &LanguageScript) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | pub async fn get_code_file_cache( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 41 | pub async fn save_code_file_cache( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 79 | pub async fn clear_cache_by_language(language: &LanguageScript) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 105 | pub async fn clear_all_cache() -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 116 | fn get_cache_dir() -> PathBuf { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 122 | fn get_cache_file_path(hash: &str, language: &LanguageScript) -> PathBuf { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `run_deno_script_with_params` is never used [INFO] [stdout] --> src/deno_runner/common_runner.rs:14:14 [INFO] [stdout] | [INFO] [stdout] 14 | pub async fn run_deno_script_with_params( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `JsRunner` is never constructed [INFO] [stdout] --> src/deno_runner/js_runner.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct JsRunner; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `prepare_js_code` is never used [INFO] [stdout] --> src/deno_runner/js_runner.rs:30:8 [INFO] [stdout] | [INFO] [stdout] 28 | impl JsRunner { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] 29 | /// 准备JavaScript代码,添加日志捕获和handler函数执行逻辑 [INFO] [stdout] 30 | fn prepare_js_code(&self, code: &str, show_logs: bool) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TsRunner` is never constructed [INFO] [stdout] --> src/deno_runner/ts_runner.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct TsRunner; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `prepare_ts_code` is never used [INFO] [stdout] --> src/deno_runner/ts_runner.rs:30:8 [INFO] [stdout] | [INFO] [stdout] 27 | impl TsRunner { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 30 | fn prepare_ts_code(&self, code: &str, show_logs: bool) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CodeRunRequest` is never constructed [INFO] [stdout] --> src/mcp/mcp_server.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct CodeRunRequest { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `LanguageScript` is never used [INFO] [stdout] --> src/model/code_run_model.rs:23:10 [INFO] [stdout] | [INFO] [stdout] 23 | pub enum LanguageScript { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_file_suffix` is never used [INFO] [stdout] --> src/model/code_run_model.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 29 | impl LanguageScript { [INFO] [stdout] | ------------------- method in this implementation [INFO] [stdout] 30 | /// 获取文件后缀 [INFO] [stdout] 31 | pub fn get_file_suffix(&self) -> &str { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CodeScriptExecutionResult` is never constructed [INFO] [stdout] --> src/model/code_run_model.rs:42:12 [INFO] [stdout] | [INFO] [stdout] 42 | pub struct CodeScriptExecutionResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `RunCode` is never used [INFO] [stdout] --> src/model/code_run_model.rs:57:11 [INFO] [stdout] | [INFO] [stdout] 57 | pub trait RunCode { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CodeExecutor` is never constructed [INFO] [stdout] --> src/model/code_run_model.rs:68:12 [INFO] [stdout] | [INFO] [stdout] 68 | pub struct CodeExecutor; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `execute_with_params`, `execute_with_params_compat`, and `parse_execution_output` are never used [INFO] [stdout] --> src/model/code_run_model.rs:72:18 [INFO] [stdout] | [INFO] [stdout] 70 | impl CodeExecutor { [INFO] [stdout] | ----------------- associated functions in this implementation [INFO] [stdout] 71 | /// 执行代码并传递参数,可选设置超时时间 [INFO] [stdout] 72 | pub async fn execute_with_params( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 101 | pub async fn execute_with_params_compat( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 110 | pub async fn parse_execution_output( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `default` and `with_timeout` are never used [INFO] [stdout] --> src/model/code_run_model.rs:229:12 [INFO] [stdout] | [INFO] [stdout] 228 | impl CommandExecutor { [INFO] [stdout] | -------------------------- associated functions in this implementation [INFO] [stdout] 229 | pub fn default(future: F) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 235 | pub fn with_timeout(future: F, timeout_seconds: u64) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RunCodeMessageRequest` is never constructed [INFO] [stdout] --> src/model/tool_params.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct RunCodeMessageRequest { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RunCodeHttpResult` is never constructed [INFO] [stdout] --> src/model/tool_params.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct RunCodeHttpResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CodeExecutionParams` is never constructed [INFO] [stdout] --> src/model/tool_params.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 30 | pub struct CodeExecutionParams { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ToolExecutionResult` is never constructed [INFO] [stdout] --> src/model/tool_params.rs:41:12 [INFO] [stdout] | [INFO] [stdout] 41 | pub struct ToolExecutionResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PythonRunner` is never constructed [INFO] [stdout] --> src/python_runner/python_runner.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct PythonRunner; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `PYTHON_ACCELERATION_ADDRESS` is never used [INFO] [stdout] --> src/python_runner/python_runner.rs:20:7 [INFO] [stdout] | [INFO] [stdout] 20 | const PYTHON_ACCELERATION_ADDRESS: &str = "https://mirrors.aliyun.com/pypi/simple"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `prepare_python_code` is never used [INFO] [stdout] --> src/python_runner/python_runner.rs:191:8 [INFO] [stdout] | [INFO] [stdout] 189 | impl PythonRunner { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] 190 | /// 准备Python代码,添加日志捕获和handler函数执行逻辑 [INFO] [stdout] 191 | fn prepare_python_code(&self, code: &str, show_logs: bool) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `AppError` is never used [INFO] [stdout] --> src/app_error.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum AppError { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CodeRunnerService` is never constructed [INFO] [stdout] --> src/mcp/mcp_server.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 27 | pub struct CodeRunnerService; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RunCodeMessageRequest` is never constructed [INFO] [stdout] --> src/model/tool_params.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct RunCodeMessageRequest { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CodeExecutionParams` is never constructed [INFO] [stdout] --> src/model/tool_params.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 30 | pub struct CodeExecutionParams { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ToolExecutionResult` is never constructed [INFO] [stdout] --> src/model/tool_params.rs:41:12 [INFO] [stdout] | [INFO] [stdout] 41 | pub struct ToolExecutionResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 7.38s [INFO] running `Command { std: "docker" "inspect" "32475c87947dd3f021b0259b8e50963e10875538cab167fad06386f40e9e1a1f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "32475c87947dd3f021b0259b8e50963e10875538cab167fad06386f40e9e1a1f", kill_on_drop: false }` [INFO] [stdout] 32475c87947dd3f021b0259b8e50963e10875538cab167fad06386f40e9e1a1f