[INFO] cloning repository https://github.com/AlqattanDev/rust-ai-toolkit
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/AlqattanDev/rust-ai-toolkit" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAlqattanDev%2Frust-ai-toolkit", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAlqattanDev%2Frust-ai-toolkit'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 57f08fc9cb12ffd7bec76b8650733cd937baf873
[INFO] checking AlqattanDev/rust-ai-toolkit against master#c9af9c1dc85a55e309345030ff9cb7ea247953fa for pr-151146
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAlqattanDev%2Frust-ai-toolkit" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/AlqattanDev/rust-ai-toolkit
[INFO] finished tweaking git repo https://github.com/AlqattanDev/rust-ai-toolkit
[INFO] tweaked toml for git repo https://github.com/AlqattanDev/rust-ai-toolkit written to /workspace/builds/worker-5-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/AlqattanDev/rust-ai-toolkit on toolchain c9af9c1dc85a55e309345030ff9cb7ea247953fa
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c9af9c1dc85a55e309345030ff9cb7ea247953fa" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/AlqattanDev/rust-ai-toolkit 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" "+c9af9c1dc85a55e309345030ff9cb7ea247953fa" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Updating crates.io index
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded nanoid v0.4.0
[INFO] [stderr]   Downloaded test-log-macros v0.2.17
[INFO] [stderr]   Downloaded test-log v0.2.17
[INFO] [stderr]   Downloaded once_cell v1.21.0
[INFO] [stderr]   Downloaded tempfile v3.18.0
[INFO] [stderr]   Downloaded hermit-abi v0.5.0
[INFO] [stderr]   Downloaded async-trait v0.1.87
[INFO] [stderr]   Downloaded clap v4.5.32
[INFO] [stderr]   Downloaded env_logger v0.10.2
[INFO] [stderr]   Downloaded mockall_derive v0.12.1
[INFO] [stderr]   Downloaded mockall v0.12.1
[INFO] [stderr]   Downloaded serde_test v1.0.177
[INFO] [stderr]   Downloaded clap_builder v4.5.32
[INFO] [stderr]   Downloaded tokio v1.44.0
[INFO] [stderr]   Downloaded rustix v1.0.2
[INFO] [stderr]   Downloaded linux-raw-sys v0.9.2
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:98afbf2d16093dec2546ff8915fddc74e65664aa03fc460b3712b1c2c54a33e4" "/opt/rustwide/cargo-home/bin/cargo" "+c9af9c1dc85a55e309345030ff9cb7ea247953fa" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 5cbf12e686fd67db0f03a7ef84db2b5b8486ed0b8240bfa489fb19d3aae76eb0
[INFO] running `Command { std: "docker" "start" "-a" "5cbf12e686fd67db0f03a7ef84db2b5b8486ed0b8240bfa489fb19d3aae76eb0", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "5cbf12e686fd67db0f03a7ef84db2b5b8486ed0b8240bfa489fb19d3aae76eb0", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "5cbf12e686fd67db0f03a7ef84db2b5b8486ed0b8240bfa489fb19d3aae76eb0", kill_on_drop: false }`
[INFO] [stdout] 5cbf12e686fd67db0f03a7ef84db2b5b8486ed0b8240bfa489fb19d3aae76eb0
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:98afbf2d16093dec2546ff8915fddc74e65664aa03fc460b3712b1c2c54a33e4" "/opt/rustwide/cargo-home/bin/cargo" "+c9af9c1dc85a55e309345030ff9cb7ea247953fa" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 78d9a5c45531d6377e1b61c9b5788601ad375d058a7c6a0fd69ea0136ef9ae2a
[INFO] running `Command { std: "docker" "start" "-a" "78d9a5c45531d6377e1b61c9b5788601ad375d058a7c6a0fd69ea0136ef9ae2a", kill_on_drop: false }`
[INFO] [stderr]    Compiling proc-macro2 v1.0.94
[INFO] [stderr]    Compiling unicode-ident v1.0.18
[INFO] [stderr]    Compiling libc v0.2.170
[INFO] [stderr]     Checking smallvec v1.14.0
[INFO] [stderr]     Checking once_cell v1.21.0
[INFO] [stderr]    Compiling serde v1.0.219
[INFO] [stderr]    Compiling cc v1.2.16
[INFO] [stderr]     Checking litemap v0.7.5
[INFO] [stderr]     Checking bitflags v2.9.0
[INFO] [stderr]     Checking tracing-core v0.1.33
[INFO] [stderr]     Checking indexmap v2.8.0
[INFO] [stderr]    Compiling zerocopy v0.8.23
[INFO] [stderr]    Compiling openssl v0.10.71
[INFO] [stderr]     Checking http v0.2.12
[INFO] [stderr]     Checking regex-automata v0.4.9
[INFO] [stderr]    Compiling quote v1.0.39
[INFO] [stderr]     Checking parking_lot_core v0.9.10
[INFO] [stderr]    Compiling syn v2.0.100
[INFO] [stderr]     Checking mio v1.0.3
[INFO] [stderr]     Checking socket2 v0.5.8
[INFO] [stderr]     Checking signal-hook-registry v1.4.2
[INFO] [stderr]     Checking parking_lot v0.12.3
[INFO] [stderr]     Checking getrandom v0.2.15
[INFO] [stderr]    Compiling rustix v1.0.2
[INFO] [stderr]    Compiling serde_json v1.0.140
[INFO] [stderr]    Compiling getrandom v0.3.1
[INFO] [stderr]     Checking rand_core v0.6.4
[INFO] [stderr]     Checking http-body v0.4.6
[INFO] [stderr]     Checking linux-raw-sys v0.9.2
[INFO] [stderr]    Compiling portable-atomic v1.11.0
[INFO] [stderr]     Checking console v0.15.11
[INFO] [stderr]    Compiling openssl-sys v0.9.106
[INFO] [stderr]     Checking winnow v0.7.3
[INFO] [stderr]     Checking option-ext v0.2.0
[INFO] [stderr]    Compiling anyhow v1.0.97
[INFO] [stderr]     Checking ppv-lite86 v0.2.21
[INFO] [stderr]     Checking clap_builder v4.5.32
[INFO] [stderr]    Compiling native-tls v0.2.14
[INFO] [stderr]     Checking dirs-sys v0.4.1
[INFO] [stderr]     Checking rand_chacha v0.3.1
[INFO] [stderr]     Checking rand v0.8.5
[INFO] [stderr]     Checking is-terminal v0.4.16
[INFO] [stderr]     Checking regex v1.11.1
[INFO] [stderr]     Checking shell-words v1.1.0
[INFO] [stderr]     Checking indicatif v0.17.11
[INFO] [stderr]     Checking env_logger v0.10.2
[INFO] [stderr]     Checking dirs v5.0.1
[INFO] [stderr]     Checking glob v0.3.2
[INFO] [stderr]     Checking tracing-log v0.2.0
[INFO] [stderr]     Checking nanoid v0.4.0
[INFO] [stderr]     Checking thread_local v1.1.8
[INFO] [stderr]     Checking env_filter v0.1.3
[INFO] [stderr]     Checking predicates v3.1.3
[INFO] [stderr]     Checking fragile v2.0.0
[INFO] [stderr]     Checking env_logger v0.11.7
[INFO] [stderr]     Checking downcast v0.11.0
[INFO] [stderr]     Checking tempfile v3.18.0
[INFO] [stderr]    Compiling synstructure v0.13.1
[INFO] [stderr]    Compiling zerofrom-derive v0.1.6
[INFO] [stderr]    Compiling yoke-derive v0.7.5
[INFO] [stderr]    Compiling zerovec-derive v0.10.3
[INFO] [stderr]    Compiling serde_derive v1.0.219
[INFO] [stderr]    Compiling displaydoc v0.2.5
[INFO] [stderr]    Compiling tokio-macros v2.5.0
[INFO] [stderr]    Compiling thiserror-impl v2.0.12
[INFO] [stderr]    Compiling icu_provider_macros v1.5.0
[INFO] [stderr]    Compiling tracing-attributes v0.1.28
[INFO] [stderr]    Compiling futures-macro v0.3.31
[INFO] [stderr]     Checking tokio v1.44.0
[INFO] [stderr]    Compiling openssl-macros v0.1.1
[INFO] [stderr]    Compiling thiserror-impl v1.0.69
[INFO] [stderr]     Checking futures-util v0.3.31
[INFO] [stderr]    Compiling thiserror v2.0.12
[INFO] [stderr]    Compiling pest v2.7.15
[INFO] [stderr]     Checking zerofrom v0.1.6
[INFO] [stderr]     Checking tracing v0.1.41
[INFO] [stderr]     Checking yoke v0.7.5
[INFO] [stderr]     Checking zerovec v0.10.4
[INFO] [stderr]     Checking thiserror v1.0.69
[INFO] [stderr]    Compiling clap_derive v4.5.32
[INFO] [stderr]     Checking tinystr v0.7.6
[INFO] [stderr]     Checking icu_locid v1.5.0
[INFO] [stderr]     Checking icu_collections v1.5.0
[INFO] [stderr]    Compiling pest_meta v2.7.15
[INFO] [stderr]     Checking dialoguer v0.11.0
[INFO] [stderr]     Checking icu_provider v1.5.0
[INFO] [stderr]    Compiling async-trait v0.1.87
[INFO] [stderr]     Checking futures-executor v0.3.31
[INFO] [stderr]     Checking icu_locid_transform v1.5.0
[INFO] [stderr]    Compiling pest_generator v2.7.15
[INFO] [stderr]     Checking futures v0.3.31
[INFO] [stderr]     Checking icu_properties v1.5.1
[INFO] [stderr]    Compiling async-stream-impl v0.3.6
[INFO] [stderr]     Checking clap v4.5.32
[INFO] [stderr]     Checking tracing-subscriber v0.3.19
[INFO] [stderr]    Compiling test-log-macros v0.2.17
[INFO] [stderr]    Compiling mockall_derive v0.12.1
[INFO] [stderr]     Checking tokio-util v0.7.13
[INFO] [stderr]     Checking tokio-native-tls v0.3.1
[INFO] [stderr]     Checking tokio-stream v0.1.17
[INFO] [stderr]     Checking async-stream v0.3.6
[INFO] [stderr]     Checking h2 v0.3.26
[INFO] [stderr]    Compiling pest_derive v2.7.15
[INFO] [stderr]     Checking tokio-test v0.4.4
[INFO] [stderr]     Checking test-log v0.2.17
[INFO] [stderr]     Checking icu_normalizer v1.5.0
[INFO] [stderr]     Checking toml_datetime v0.6.8
[INFO] [stderr]     Checking serde_spanned v0.6.8
[INFO] [stderr]     Checking serde_urlencoded v0.7.1
[INFO] [stderr]     Checking chrono v0.4.40
[INFO] [stderr]     Checking serde_test v1.0.177
[INFO] [stderr]     Checking idna_adapter v1.2.0
[INFO] [stderr]     Checking toml_edit v0.22.24
[INFO] [stderr]     Checking idna v1.0.3
[INFO] [stderr]     Checking url v2.5.4
[INFO] [stderr]     Checking handlebars v4.5.0
[INFO] [stderr]     Checking mockall v0.12.1
[INFO] [stderr]     Checking hyper v0.14.32
[INFO] [stderr]     Checking toml v0.8.20
[INFO] [stderr]     Checking hyper-tls v0.5.0
[INFO] [stderr]     Checking reqwest v0.11.27
[INFO] [stderr]     Checking rust-ai-toolkit v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused doc comment
[INFO] [stdout]   --> src/ai/mod.rs:71:1
[INFO] [stdout]    |
[INFO] [stdout] 71 | /// Add a shared HTTP client that can be reused across all AI client instances
[INFO] [stdout]    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ rustdoc does not generate documentation for macro invocations
[INFO] [stdout]    |
[INFO] [stdout]    = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion
[INFO] [stdout]    = note: `#[warn(unused_doc_comments)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::sync::Arc`
[INFO] [stdout]  --> src/ai/cache.rs:7:5
[INFO] [stdout]   |
[INFO] [stdout] 7 | use std::sync::Arc;
[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: `crate::config`
[INFO] [stdout]   --> src/ai/mod.rs:39:5
[INFO] [stdout]    |
[INFO] [stdout] 39 | use crate::config;
[INFO] [stdout]    |     ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `HashSet`
[INFO] [stdout]   --> src/stages/mod.rs:13:33
[INFO] [stdout]    |
[INFO] [stdout] 13 | use std::collections::{HashMap, HashSet};
[INFO] [stdout]    |                                 ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `anyhow::anyhow`
[INFO] [stdout]   --> src/stages/mod.rs:17:5
[INFO] [stdout]    |
[INFO] [stdout] 17 | use anyhow::anyhow;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `Mutex` in this scope
[INFO] [stdout]    --> src/ai/cache.rs:400:28
[INFO] [stdout]     |
[INFO] [stdout] 400 |         generate_response: Mutex<Option<String>>,
[INFO] [stdout]     |                            ^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout]     = note: struct `crate::utils::cache::tests::Mutex` exists but is inaccessible
[INFO] [stdout] help: consider importing one of these structs
[INFO] [stdout]     |
[INFO] [stdout] 391 +     use std::sync::Mutex;
[INFO] [stdout]     |
[INFO] [stdout] 391 +     use std::sync::nonpoison::Mutex;
[INFO] [stdout]     |
[INFO] [stdout] 391 +     use futures::lock::Mutex;
[INFO] [stdout]     |
[INFO] [stdout] 391 +     use tokio::sync::Mutex;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `Mutex` in this scope
[INFO] [stdout]    --> src/ai/cache.rs:401:25
[INFO] [stdout]     |
[INFO] [stdout] 401 |         generate_error: Mutex<Option<ToolkitError>>,
[INFO] [stdout]     |                         ^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout]     = note: struct `crate::utils::cache::tests::Mutex` exists but is inaccessible
[INFO] [stdout] help: consider importing one of these structs
[INFO] [stdout]     |
[INFO] [stdout] 391 +     use std::sync::Mutex;
[INFO] [stdout]     |
[INFO] [stdout] 391 +     use std::sync::nonpoison::Mutex;
[INFO] [stdout]     |
[INFO] [stdout] 391 +     use futures::lock::Mutex;
[INFO] [stdout]     |
[INFO] [stdout] 391 +     use tokio::sync::Mutex;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `ToolkitError` in this scope
[INFO] [stdout]    --> src/ai/cache.rs:401:38
[INFO] [stdout]     |
[INFO] [stdout] 401 |         generate_error: Mutex<Option<ToolkitError>>,
[INFO] [stdout]     |                                      ^^^^^^^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing this enum through its public re-export
[INFO] [stdout]     |
[INFO] [stdout] 391 +     use crate::ToolkitError;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `Mutex` in this scope
[INFO] [stdout]    --> src/ai/cache.rs:402:41
[INFO] [stdout]     |
[INFO] [stdout] 402 |         generate_with_options_response: Mutex<Option<String>>,
[INFO] [stdout]     |                                         ^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout]     = note: struct `crate::utils::cache::tests::Mutex` exists but is inaccessible
[INFO] [stdout] help: consider importing one of these structs
[INFO] [stdout]     |
[INFO] [stdout] 391 +     use std::sync::Mutex;
[INFO] [stdout]     |
[INFO] [stdout] 391 +     use std::sync::nonpoison::Mutex;
[INFO] [stdout]     |
[INFO] [stdout] 391 +     use futures::lock::Mutex;
[INFO] [stdout]     |
[INFO] [stdout] 391 +     use tokio::sync::Mutex;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `Mutex` in this scope
[INFO] [stdout]    --> src/ai/cache.rs:403:38
[INFO] [stdout]     |
[INFO] [stdout] 403 |         generate_with_options_error: Mutex<Option<ToolkitError>>,
[INFO] [stdout]     |                                      ^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout]     = note: struct `crate::utils::cache::tests::Mutex` exists but is inaccessible
[INFO] [stdout] help: consider importing one of these structs
[INFO] [stdout]     |
[INFO] [stdout] 391 +     use std::sync::Mutex;
[INFO] [stdout]     |
[INFO] [stdout] 391 +     use std::sync::nonpoison::Mutex;
[INFO] [stdout]     |
[INFO] [stdout] 391 +     use futures::lock::Mutex;
[INFO] [stdout]     |
[INFO] [stdout] 391 +     use tokio::sync::Mutex;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `ToolkitError` in this scope
[INFO] [stdout]    --> src/ai/cache.rs:403:51
[INFO] [stdout]     |
[INFO] [stdout] 403 |         generate_with_options_error: Mutex<Option<ToolkitError>>,
[INFO] [stdout]     |                                                   ^^^^^^^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing this enum through its public re-export
[INFO] [stdout]     |
[INFO] [stdout] 391 +     use crate::ToolkitError;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Mutex`
[INFO] [stdout]    --> src/ai/cache.rs:409:36
[INFO] [stdout]     |
[INFO] [stdout] 409 |                 generate_response: Mutex::new(None),
[INFO] [stdout]     |                                    ^^^^^ use of undeclared type `Mutex`
[INFO] [stdout]     |
[INFO] [stdout]     = note: struct `crate::utils::cache::tests::Mutex` exists but is inaccessible
[INFO] [stdout] help: consider importing one of these structs
[INFO] [stdout]     |
[INFO] [stdout] 391 +     use std::sync::Mutex;
[INFO] [stdout]     |
[INFO] [stdout] 391 +     use std::sync::nonpoison::Mutex;
[INFO] [stdout]     |
[INFO] [stdout] 391 +     use futures::lock::Mutex;
[INFO] [stdout]     |
[INFO] [stdout] 391 +     use tokio::sync::Mutex;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Mutex`
[INFO] [stdout]    --> src/ai/cache.rs:410:33
[INFO] [stdout]     |
[INFO] [stdout] 410 |                 generate_error: Mutex::new(None),
[INFO] [stdout]     |                                 ^^^^^ use of undeclared type `Mutex`
[INFO] [stdout]     |
[INFO] [stdout]     = note: struct `crate::utils::cache::tests::Mutex` exists but is inaccessible
[INFO] [stdout] help: consider importing one of these structs
[INFO] [stdout]     |
[INFO] [stdout] 391 +     use std::sync::Mutex;
[INFO] [stdout]     |
[INFO] [stdout] 391 +     use std::sync::nonpoison::Mutex;
[INFO] [stdout]     |
[INFO] [stdout] 391 +     use futures::lock::Mutex;
[INFO] [stdout]     |
[INFO] [stdout] 391 +     use tokio::sync::Mutex;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Mutex`
[INFO] [stdout]    --> src/ai/cache.rs:411:49
[INFO] [stdout]     |
[INFO] [stdout] 411 |                 generate_with_options_response: Mutex::new(None),
[INFO] [stdout]     |                                                 ^^^^^ use of undeclared type `Mutex`
[INFO] [stdout]     |
[INFO] [stdout]     = note: struct `crate::utils::cache::tests::Mutex` exists but is inaccessible
[INFO] [stdout] help: consider importing one of these structs
[INFO] [stdout]     |
[INFO] [stdout] 391 +     use std::sync::Mutex;
[INFO] [stdout]     |
[INFO] [stdout] 391 +     use std::sync::nonpoison::Mutex;
[INFO] [stdout]     |
[INFO] [stdout] 391 +     use futures::lock::Mutex;
[INFO] [stdout]     |
[INFO] [stdout] 391 +     use tokio::sync::Mutex;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Mutex`
[INFO] [stdout]    --> src/ai/cache.rs:412:46
[INFO] [stdout]     |
[INFO] [stdout] 412 |                 generate_with_options_error: Mutex::new(None),
[INFO] [stdout]     |                                              ^^^^^ use of undeclared type `Mutex`
[INFO] [stdout]     |
[INFO] [stdout]     = note: struct `crate::utils::cache::tests::Mutex` exists but is inaccessible
[INFO] [stdout] help: consider importing one of these structs
[INFO] [stdout]     |
[INFO] [stdout] 391 +     use std::sync::Mutex;
[INFO] [stdout]     |
[INFO] [stdout] 391 +     use std::sync::nonpoison::Mutex;
[INFO] [stdout]     |
[INFO] [stdout] 391 +     use futures::lock::Mutex;
[INFO] [stdout]     |
[INFO] [stdout] 391 +     use tokio::sync::Mutex;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ToolkitError`
[INFO] [stdout]    --> src/ai/cache.rs:464:21
[INFO] [stdout]     |
[INFO] [stdout] 464 |                 Err(ToolkitError::Api("No mock response configured".to_string()))
[INFO] [stdout]     |                     ^^^^^^^^^^^^ use of undeclared type `ToolkitError`
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing this enum through its public re-export
[INFO] [stdout]     |
[INFO] [stdout] 391 +     use crate::ToolkitError;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ToolkitError`
[INFO] [stdout]    --> src/ai/cache.rs:479:21
[INFO] [stdout]     |
[INFO] [stdout] 479 |                 Err(ToolkitError::Api("No mock response configured".to_string()))
[INFO] [stdout]     |                     ^^^^^^^^^^^^ use of undeclared type `ToolkitError`
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing this enum through its public re-export
[INFO] [stdout]     |
[INFO] [stdout] 391 +     use crate::ToolkitError;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ToolkitError`
[INFO] [stdout]    --> src/ai/cache.rs:611:34
[INFO] [stdout]     |
[INFO] [stdout] 611 |         mock.expect_generate(Err(ToolkitError::Api("API error".to_string())));
[INFO] [stdout]     |                                  ^^^^^^^^^^^^ use of undeclared type `ToolkitError`
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing this enum through its public re-export
[INFO] [stdout]     |
[INFO] [stdout] 391 +     use crate::ToolkitError;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ToolkitError`
[INFO] [stdout]    --> src/ai/cache.rs:619:20
[INFO] [stdout]     |
[INFO] [stdout] 619 |         if let Err(ToolkitError::Api(msg)) = result {
[INFO] [stdout]     |                    ^^^^^^^^^^^^ use of undeclared type `ToolkitError`
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing this enum through its public re-export
[INFO] [stdout]     |
[INFO] [stdout] 391 +     use crate::ToolkitError;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `AtomicU64` in this scope
[INFO] [stdout]    --> src/utils/rate_limiter.rs:551:18
[INFO] [stdout]     |
[INFO] [stdout] 551 |         now: Arc<AtomicU64>,
[INFO] [stdout]     |                  ^^^^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]     |
[INFO] [stdout] 546 +     use std::sync::atomic::AtomicU64;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `AtomicU64`
[INFO] [stdout]    --> src/utils/rate_limiter.rs:557:31
[INFO] [stdout]     |
[INFO] [stdout] 557 |                 now: Arc::new(AtomicU64::new(0)),
[INFO] [stdout]     |                               ^^^^^^^^^ use of undeclared type `AtomicU64`
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]     |
[INFO] [stdout] 546 +     use std::sync::atomic::AtomicU64;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Ordering`
[INFO] [stdout]    --> src/utils/rate_limiter.rs:562:60
[INFO] [stdout]     |
[INFO] [stdout] 562 |             self.now.fetch_add(duration.as_nanos() as u64, Ordering::SeqCst);
[INFO] [stdout]     |                                                            ^^^^^^^^ use of undeclared type `Ordering`
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing one of these enums
[INFO] [stdout]     |
[INFO] [stdout] 546 +     use std::cmp::Ordering;
[INFO] [stdout]     |
[INFO] [stdout] 546 +     use std::sync::atomic::Ordering;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Ordering`
[INFO] [stdout]    --> src/utils/rate_limiter.rs:568:39
[INFO] [stdout]     |
[INFO] [stdout] 568 |             let nanos = self.now.load(Ordering::SeqCst);
[INFO] [stdout]     |                                       ^^^^^^^^ use of undeclared type `Ordering`
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing one of these enums
[INFO] [stdout]     |
[INFO] [stdout] 546 +     use std::cmp::Ordering;
[INFO] [stdout]     |
[INFO] [stdout] 546 +     use std::sync::atomic::Ordering;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `AtomicU64`
[INFO] [stdout]    --> src/utils/rate_limiter.rs:670:38
[INFO] [stdout]     |
[INFO] [stdout] 670 |         let request_count = Arc::new(AtomicU64::new(0));
[INFO] [stdout]     |                                      ^^^^^^^^^ use of undeclared type `AtomicU64`
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]     |
[INFO] [stdout] 546 +     use std::sync::atomic::AtomicU64;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Ordering`
[INFO] [stdout]    --> src/utils/rate_limiter.rs:683:52
[INFO] [stdout]     |
[INFO] [stdout] 683 |                         request_count.fetch_add(1, Ordering::SeqCst);
[INFO] [stdout]     |                                                    ^^^^^^^^ use of undeclared type `Ordering`
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing one of these enums
[INFO] [stdout]     |
[INFO] [stdout] 546 +     use std::cmp::Ordering;
[INFO] [stdout]     |
[INFO] [stdout] 546 +     use std::sync::atomic::Ordering;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Ordering`
[INFO] [stdout]    --> src/utils/rate_limiter.rs:695:49
[INFO] [stdout]     |
[INFO] [stdout] 695 |         let total_requests = request_count.load(Ordering::SeqCst);
[INFO] [stdout]     |                                                 ^^^^^^^^ use of undeclared type `Ordering`
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing one of these enums
[INFO] [stdout]     |
[INFO] [stdout] 546 +     use std::cmp::Ordering;
[INFO] [stdout]     |
[INFO] [stdout] 546 +     use std::sync::atomic::Ordering;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused doc comment
[INFO] [stdout]   --> src/ai/mod.rs:71:1
[INFO] [stdout]    |
[INFO] [stdout] 71 | /// Add a shared HTTP client that can be reused across all AI client instances
[INFO] [stdout]    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ rustdoc does not generate documentation for macro invocations
[INFO] [stdout]    |
[INFO] [stdout]    = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion
[INFO] [stdout]    = note: `#[warn(unused_doc_comments)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::sync::Arc`
[INFO] [stdout]  --> src/ai/cache.rs:7:5
[INFO] [stdout]   |
[INFO] [stdout] 7 | use std::sync::Arc;
[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: `tokio::sync::RwLock`
[INFO] [stdout]    --> src/ai/cache.rs:393:9
[INFO] [stdout]     |
[INFO] [stdout] 393 |     use tokio::sync::RwLock;
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::sync::Arc`
[INFO] [stdout]    --> src/ai/cache.rs:394:9
[INFO] [stdout]     |
[INFO] [stdout] 394 |     use std::sync::Arc;
[INFO] [stdout]     |         ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::config`
[INFO] [stdout]   --> src/ai/mod.rs:39:5
[INFO] [stdout]    |
[INFO] [stdout] 39 | use crate::config;
[INFO] [stdout]    |     ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `HashSet`
[INFO] [stdout]   --> src/stages/mod.rs:13:33
[INFO] [stdout]    |
[INFO] [stdout] 13 | use std::collections::{HashMap, HashSet};
[INFO] [stdout]    |                                 ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `anyhow::anyhow`
[INFO] [stdout]   --> src/stages/mod.rs:17:5
[INFO] [stdout]    |
[INFO] [stdout] 17 | use anyhow::anyhow;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0282]: type annotations needed
[INFO] [stdout]    --> src/ai/cache.rs:456:28
[INFO] [stdout]     |
[INFO] [stdout] 456 |                 return Err(error.clone());
[INFO] [stdout]     |                            ^^^^^ cannot infer type
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0282]: type annotations needed
[INFO] [stdout]    --> src/ai/cache.rs:462:20
[INFO] [stdout]     |
[INFO] [stdout] 462 |                 Ok(response.clone())
[INFO] [stdout]     |                    ^^^^^^^^ cannot infer type
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0282]: type annotations needed
[INFO] [stdout]    --> src/ai/cache.rs:471:28
[INFO] [stdout]     |
[INFO] [stdout] 471 |                 return Err(error.clone());
[INFO] [stdout]     |                            ^^^^^ cannot infer type
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0282]: type annotations needed
[INFO] [stdout]    --> src/ai/cache.rs:477:20
[INFO] [stdout]     |
[INFO] [stdout] 477 |                 Ok(response.clone())
[INFO] [stdout]     |                    ^^^^^^^^ cannot infer type
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `clone` found for struct `ai::cache::RESPONSE_CACHE` in the current scope
[INFO] [stdout]    --> src/ai/cache.rs:628:36
[INFO] [stdout]     |
[INFO] [stdout]  25 | / lazy_static! {
[INFO] [stdout]  26 | |     /// Global response cache for AI completions
[INFO] [stdout]  27 | |     pub static ref RESPONSE_CACHE: RwLock<ResponseCache> = {
[INFO] [stdout]  28 | |         let config = config::get_config().unwrap_or_default();
[INFO] [stdout] ...   |
[INFO] [stdout]  33 | |     };
[INFO] [stdout]  34 | | }
[INFO] [stdout]     | |_- method `clone` not found for this struct
[INFO] [stdout] ...
[INFO] [stdout] 628 |           let cache = RESPONSE_CACHE.clone();
[INFO] [stdout]     |                                      ^^^^^ method not found in `ai::cache::RESPONSE_CACHE`
[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 `clone`, perhaps you need to implement it:
[INFO] [stdout]             candidate #1: `Clone`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0282]: type annotations needed
[INFO] [stdout]    --> src/ai/cache.rs:640:21
[INFO] [stdout]     |
[INFO] [stdout] 640 |                 let mut cache = cache.write().await;
[INFO] [stdout]     |                     ^^^^^^^^^
[INFO] [stdout] 641 |                 cache.insert(&prompt, None, response);
[INFO] [stdout]     |                 ----- type must be known at this point
[INFO] [stdout]     |
[INFO] [stdout] help: consider giving `cache` an explicit type
[INFO] [stdout]     |
[INFO] [stdout] 640 |                 let mut cache: /* Type */ = cache.write().await;
[INFO] [stdout]     |                              ++++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0282]: type annotations needed
[INFO] [stdout]    --> src/ai/cache.rs:651:13
[INFO] [stdout]     |
[INFO] [stdout] 651 |         let cache_read = cache.read().await;
[INFO] [stdout]     |             ^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 655 |             assert_eq!(cache_read.get(&prompt, None).unwrap(), response);
[INFO] [stdout]     |                        ---------- type must be known at this point
[INFO] [stdout]     |
[INFO] [stdout] help: consider giving `cache_read` an explicit type
[INFO] [stdout]     |
[INFO] [stdout] 651 |         let cache_read: /* Type */ = cache.read().await;
[INFO] [stdout]     |                       ++++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `StreamExt`
[INFO] [stdout]   --> src/utils/project.rs:13:23
[INFO] [stdout]    |
[INFO] [stdout] 13 | use futures::stream::{StreamExt};
[INFO] [stdout]    |                       ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0282]: type annotations needed for `std::sync::Arc<_, _>`
[INFO] [stdout]    --> src/utils/rate_limiter.rs:676:17
[INFO] [stdout]     |
[INFO] [stdout] 676 |             let request_count = Arc::clone(&request_count);
[INFO] [stdout]     |                 ^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 683 |                         request_count.fetch_add(1, Ordering::SeqCst);
[INFO] [stdout]     |                         ------------- type must be known at this point
[INFO] [stdout]     |
[INFO] [stdout] help: consider giving `request_count` an explicit type, where the placeholders `_` are specified
[INFO] [stdout]     |
[INFO] [stdout] 676 |             let request_count: std::sync::Arc<T, A> = Arc::clone(&request_count);
[INFO] [stdout]     |                              ++++++++++++++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `StreamExt`
[INFO] [stdout]   --> src/utils/project.rs:13:23
[INFO] [stdout]    |
[INFO] [stdout] 13 | use futures::stream::{StreamExt};
[INFO] [stdout]    |                       ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `max_size`
[INFO] [stdout]   --> src/ai/cache.rs:29:13
[INFO] [stdout]    |
[INFO] [stdout] 29 |         let max_size = MAX_CACHE_SIZE;
[INFO] [stdout]    |             ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_max_size`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `max_memory_bytes`
[INFO] [stdout]   --> src/ai/cache.rs:31:13
[INFO] [stdout]    |
[INFO] [stdout] 31 |         let max_memory_bytes = max_memory_mb * 1024 * 1024; // Convert MB to bytes
[INFO] [stdout]    |             ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_max_memory_bytes`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `options`
[INFO] [stdout]    --> src/ai/mod.rs:256:57
[INFO] [stdout]     |
[INFO] [stdout] 256 |     async fn generate_with_options(&self, prompt: &str, options: RequestOptions) -> Result<String> {
[INFO] [stdout]     |                                                         ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_options`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `config_path`
[INFO] [stdout]    --> src/config/mod.rs:243:34
[INFO] [stdout]     |
[INFO] [stdout] 243 | fn migrate_config(content: &str, config_path: &PathBuf) -> Result<Config> {
[INFO] [stdout]     |                                  ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_config_path`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `max_size`
[INFO] [stdout]   --> src/ai/cache.rs:29:13
[INFO] [stdout]    |
[INFO] [stdout] 29 |         let max_size = MAX_CACHE_SIZE;
[INFO] [stdout]    |             ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_max_size`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `max_memory_bytes`
[INFO] [stdout]   --> src/ai/cache.rs:31:13
[INFO] [stdout]    |
[INFO] [stdout] 31 |         let max_memory_bytes = max_memory_mb * 1024 * 1024; // Convert MB to bytes
[INFO] [stdout]    |             ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_max_memory_bytes`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `options`
[INFO] [stdout]    --> src/ai/mod.rs:256:57
[INFO] [stdout]     |
[INFO] [stdout] 256 |     async fn generate_with_options(&self, prompt: &str, options: RequestOptions) -> Result<String> {
[INFO] [stdout]     |                                                         ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_options`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `config_path`
[INFO] [stdout]    --> src/config/mod.rs:243:34
[INFO] [stdout]     |
[INFO] [stdout] 243 | fn migrate_config(content: &str, config_path: &PathBuf) -> Result<Config> {
[INFO] [stdout]     |                                  ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_config_path`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/utils/rate_limiter.rs:648:13
[INFO] [stdout]     |
[INFO] [stdout] 648 |         let mut limiter = RateLimiter::new(clock.clone());
[INFO] [stdout]     |             ----^^^^^^^
[INFO] [stdout]     |             |
[INFO] [stdout]     |             help: remove this `mut`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0282, E0425, E0433, E0599.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0282`.
[INFO] [stdout] 
[INFO] [stdout] warning: struct `ProxyAiClient` is never constructed
[INFO] [stdout]    --> src/ai/mod.rs:549:8
[INFO] [stdout]     |
[INFO] [stdout] 549 | struct ProxyAiClient<'a> {
[INFO] [stdout]     |        ^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `new` is never used
[INFO] [stdout]    --> src/ai/mod.rs:554:8
[INFO] [stdout]     |
[INFO] [stdout] 553 | impl<'a> ProxyAiClient<'a> {
[INFO] [stdout]     | -------------------------- associated function in this implementation
[INFO] [stdout] 554 |     fn new(inner: &'a Box<dyn AiClient>) -> Self {
[INFO] [stdout]     |        ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `content_type` is never read
[INFO] [stdout]   --> src/ai/anthropic.rs:69:5
[INFO] [stdout]    |
[INFO] [stdout] 67 | struct ResponseContent {
[INFO] [stdout]    |        --------------- field in this struct
[INFO] [stdout] 68 |     #[serde(rename = "type")]
[INFO] [stdout] 69 |     content_type: String,
[INFO] [stdout]    |     ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `rust-ai-toolkit` (lib test) due to 29 previous errors; 13 warnings emitted
[INFO] [stdout] warning: methods `size`, `memory_usage`, and `max_memory_usage` are never used
[INFO] [stdout]    --> src/ai/cache.rs:175:12
[INFO] [stdout]     |
[INFO] [stdout]  85 | impl ResponseCache {
[INFO] [stdout]     | ------------------ methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 175 |     pub fn size(&self) -> usize {
[INFO] [stdout]     |            ^^^^
[INFO] [stdout] ...
[INFO] [stdout] 180 |     pub fn memory_usage(&self) -> usize {
[INFO] [stdout]     |            ^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 185 |     pub fn max_memory_usage(&self) -> usize {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stdout] warning: function `is_valid_log_level` is never used
[INFO] [stdout]     --> src/config/mod.rs:1062:4
[INFO] [stdout]      |
[INFO] [stdout] 1062 | fn is_valid_log_level(level: &str) -> bool {
[INFO] [stdout]      |    ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `search_for_project_in_directory_async` is never used
[INFO] [stdout]    --> src/utils/project.rs:275:10
[INFO] [stdout]     |
[INFO] [stdout] 275 | async fn search_for_project_in_directory_async(dir: &Path, project_id: &str) -> Result<Option<std::path::PathBuf>> {
[INFO] [stdout]     |          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `CachedProject` is never constructed
[INFO] [stdout]    --> src/utils/project.rs:727:8
[INFO] [stdout]     |
[INFO] [stdout] 727 | struct CachedProject {
[INFO] [stdout]     |        ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `new` and `is_valid` are never used
[INFO] [stdout]    --> src/utils/project.rs:738:8
[INFO] [stdout]     |
[INFO] [stdout] 736 | impl CachedProject {
[INFO] [stdout]     | ------------------ associated items in this implementation
[INFO] [stdout] 737 |     /// Create a new cached project
[INFO] [stdout] 738 |     fn new(project: Project, last_modified: SystemTime) -> Self {
[INFO] [stdout]     |        ^^^
[INFO] [stdout] ...
[INFO] [stdout] 747 |     fn is_valid(&self) -> bool {
[INFO] [stdout]     |        ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `ProjectCache` is never constructed
[INFO] [stdout]    --> src/utils/project.rs:766:8
[INFO] [stdout]     |
[INFO] [stdout] 766 | struct ProjectCache {
[INFO] [stdout]     |        ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `new`, `get_project`, `insert_project`, `record_dir_scan`, `get_projects_in_dir`, and `clean` are never used
[INFO] [stdout]    --> src/utils/project.rs:777:8
[INFO] [stdout]     |
[INFO] [stdout] 775 | impl ProjectCache {
[INFO] [stdout]     | ----------------- associated items in this implementation
[INFO] [stdout] 776 |     /// Create a new empty project cache
[INFO] [stdout] 777 |     fn new() -> Self {
[INFO] [stdout]     |        ^^^
[INFO] [stdout] ...
[INFO] [stdout] 786 |     fn get_project(&self, project_id: &str) -> Option<&CachedProject> {
[INFO] [stdout]     |        ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 796 |     fn insert_project(&mut self, project: Project) {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 808 |     fn record_dir_scan(&mut self, dir: PathBuf, project_ids: Vec<String>) {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 814 |     fn get_projects_in_dir(&self, dir: &Path) -> Option<&Vec<String>> {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 825 |     fn clean(&mut self) {
[INFO] [stdout]     |        ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `record_request` is never used
[INFO] [stdout]    --> src/utils/rate_limiter.rs:217:8
[INFO] [stdout]     |
[INFO] [stdout] 152 | impl ProviderRateLimit {
[INFO] [stdout]     | ---------------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 217 |     fn record_request<C: Clock>(&mut self, clock: &C) {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `ttl` is never read
[INFO] [stdout]    --> src/utils/cache.rs:170:5
[INFO] [stdout]     |
[INFO] [stdout] 160 | pub struct ProjectCache {
[INFO] [stdout]     |            ------------ field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 170 |     ttl: Duration,
[INFO] [stdout]     |     ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] running `Command { std: "docker" "inspect" "78d9a5c45531d6377e1b61c9b5788601ad375d058a7c6a0fd69ea0136ef9ae2a", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "78d9a5c45531d6377e1b61c9b5788601ad375d058a7c6a0fd69ea0136ef9ae2a", kill_on_drop: false }`
[INFO] [stdout] 78d9a5c45531d6377e1b61c9b5788601ad375d058a7c6a0fd69ea0136ef9ae2a
