[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#46424fb5054f211ec836c5c03159f92e46bb35ac for pr-139042
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAlqattanDev%2Frust-ai-toolkit" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'...
[INFO] [stderr] done.
[INFO] validating manifest of git repo https://github.com/AlqattanDev/rust-ai-toolkit on toolchain 46424fb5054f211ec836c5c03159f92e46bb35ac
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+46424fb5054f211ec836c5c03159f92e46bb35ac" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[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-3-tc1/source/Cargo.toml
[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" "+46424fb5054f211ec836c5c03159f92e46bb35ac" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Updating crates.io index
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded test-log-macros v0.2.17
[INFO] [stderr]   Downloaded once_cell v1.21.0
[INFO] [stderr]   Downloaded toml v0.8.20
[INFO] [stderr]   Downloaded pest_generator v2.7.15
[INFO] [stderr]   Downloaded colored v2.2.0
[INFO] [stderr]   Downloaded async-trait v0.1.87
[INFO] [stderr]   Downloaded dialoguer v0.11.0
[INFO] [stderr]   Downloaded quote v1.0.39
[INFO] [stderr]   Downloaded test-log v0.2.17
[INFO] [stderr]   Downloaded pest_meta v2.7.15
[INFO] [stderr]   Downloaded winnow v0.7.3
[INFO] [stderr]   Downloaded handlebars v4.5.0
[INFO] [stderr]   Downloaded tempfile v3.18.0
[INFO] [stderr]   Downloaded nanoid v0.4.0
[INFO] [stderr]   Downloaded pest_derive v2.7.15
[INFO] [stderr]   Downloaded serde_test v1.0.177
[INFO] [stderr]   Downloaded rustix v1.0.2
[INFO] [stderr]   Downloaded tokio v1.44.0
[INFO] [stderr]   Downloaded linux-raw-sys v0.9.2
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:4b26683ee3c49f365255c425c23003cbf4366de097804722c29c5bbbee3624d2" "/opt/rustwide/cargo-home/bin/cargo" "+46424fb5054f211ec836c5c03159f92e46bb35ac" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] fdb70d303db5003ba4ce522909883e5c2ec36e4cf3ac5f7e6372c080e6487201
[INFO] running `Command { std: "docker" "start" "-a" "fdb70d303db5003ba4ce522909883e5c2ec36e4cf3ac5f7e6372c080e6487201", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "fdb70d303db5003ba4ce522909883e5c2ec36e4cf3ac5f7e6372c080e6487201", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "fdb70d303db5003ba4ce522909883e5c2ec36e4cf3ac5f7e6372c080e6487201", kill_on_drop: false }`
[INFO] [stdout] fdb70d303db5003ba4ce522909883e5c2ec36e4cf3ac5f7e6372c080e6487201
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:4b26683ee3c49f365255c425c23003cbf4366de097804722c29c5bbbee3624d2" "/opt/rustwide/cargo-home/bin/cargo" "+46424fb5054f211ec836c5c03159f92e46bb35ac" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] d18df6c6852bff4fda7e50e23b76a334b5d532bffc6bfc738e7ed3da9abdcfc7
[INFO] running `Command { std: "docker" "start" "-a" "d18df6c6852bff4fda7e50e23b76a334b5d532bffc6bfc738e7ed3da9abdcfc7", 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 cfg-if v1.0.0
[INFO] [stderr]    Compiling autocfg v1.4.0
[INFO] [stderr]     Checking smallvec v1.14.0
[INFO] [stderr]     Checking once_cell v1.21.0
[INFO] [stderr]     Checking pin-project-lite v0.2.16
[INFO] [stderr]     Checking memchr v2.7.4
[INFO] [stderr]     Checking stable_deref_trait v1.2.0
[INFO] [stderr]     Checking futures-core v0.3.31
[INFO] [stderr]    Compiling serde v1.0.219
[INFO] [stderr]    Compiling parking_lot_core v0.9.10
[INFO] [stderr]     Checking log v0.4.26
[INFO] [stderr]     Checking bytes v1.10.1
[INFO] [stderr]    Compiling shlex v1.3.0
[INFO] [stderr]     Checking scopeguard v1.2.0
[INFO] [stderr]    Compiling pkg-config v0.3.32
[INFO] [stderr]    Compiling vcpkg v0.2.15
[INFO] [stderr]    Compiling cc v1.2.16
[INFO] [stderr]     Checking litemap v0.7.5
[INFO] [stderr]     Checking itoa v1.0.15
[INFO] [stderr]     Checking futures-sink v0.3.31
[INFO] [stderr]     Checking writeable v0.5.5
[INFO] [stderr]    Compiling thiserror v2.0.12
[INFO] [stderr]     Checking tracing-core v0.1.33
[INFO] [stderr]     Checking bitflags v2.9.0
[INFO] [stderr]     Checking futures-channel v0.3.31
[INFO] [stderr]     Checking futures-io v0.3.31
[INFO] [stderr]     Checking futures-task v0.3.31
[INFO] [stderr]     Checking pin-utils v0.1.0
[INFO] [stderr]     Checking hashbrown v0.15.2
[INFO] [stderr]     Checking icu_locid_transform_data v1.5.0
[INFO] [stderr]     Checking anstyle v1.0.10
[INFO] [stderr]     Checking equivalent v1.0.2
[INFO] [stderr]    Compiling zerocopy v0.8.23
[INFO] [stderr]     Checking utf8parse v0.2.2
[INFO] [stderr]    Compiling lock_api v0.4.12
[INFO] [stderr]    Compiling slab v0.4.9
[INFO] [stderr]     Checking fnv v1.0.7
[INFO] [stderr]     Checking icu_properties_data v1.5.0
[INFO] [stderr]     Checking foreign-types-shared v0.1.1
[INFO] [stderr]    Compiling openssl v0.10.71
[INFO] [stderr]     Checking foreign-types v0.3.2
[INFO] [stderr]     Checking anstyle-parse v0.2.6
[INFO] [stderr]     Checking aho-corasick v1.1.3
[INFO] [stderr]     Checking indexmap v2.8.0
[INFO] [stderr]     Checking colorchoice v1.0.3
[INFO] [stderr]     Checking regex-syntax v0.8.5
[INFO] [stderr]     Checking http v0.2.12
[INFO] [stderr]     Checking is_terminal_polyfill v1.70.1
[INFO] [stderr]    Compiling native-tls v0.2.14
[INFO] [stderr]    Compiling httparse v1.10.1
[INFO] [stderr]     Checking utf8_iter v1.0.4
[INFO] [stderr]     Checking utf16_iter v1.0.5
[INFO] [stderr]     Checking write16 v1.0.0
[INFO] [stderr]     Checking anstyle-query v1.1.2
[INFO] [stderr]    Compiling quote v1.0.39
[INFO] [stderr]    Compiling ucd-trie v0.1.7
[INFO] [stderr]     Checking icu_normalizer_data v1.5.0
[INFO] [stderr]     Checking lazy_static v1.5.0
[INFO] [stderr]     Checking anstream v0.6.18
[INFO] [stderr]     Checking percent-encoding v2.3.1
[INFO] [stderr]    Compiling serde_json v1.0.140
[INFO] [stderr]    Compiling getrandom v0.3.1
[INFO] [stderr]    Compiling syn v2.0.100
[INFO] [stderr]     Checking try-lock v0.2.5
[INFO] [stderr]     Checking openssl-probe v0.1.6
[INFO] [stderr]     Checking ryu v1.0.20
[INFO] [stderr]    Compiling rustix v1.0.2
[INFO] [stderr]    Compiling thiserror v1.0.69
[INFO] [stderr]     Checking want v0.3.1
[INFO] [stderr]     Checking form_urlencoded v1.2.1
[INFO] [stderr]    Compiling num-traits v0.2.19
[INFO] [stderr]     Checking linux-raw-sys v0.9.2
[INFO] [stderr]     Checking tower-service v0.3.3
[INFO] [stderr]     Checking httpdate v1.0.3
[INFO] [stderr]    Compiling portable-atomic v1.11.0
[INFO] [stderr]     Checking unicode-width v0.2.0
[INFO] [stderr]     Checking strsim v0.11.1
[INFO] [stderr]     Checking option-ext v0.2.0
[INFO] [stderr]    Compiling anyhow v1.0.97
[INFO] [stderr]     Checking fastrand v2.3.0
[INFO] [stderr]     Checking clap_lex v0.7.4
[INFO] [stderr]    Compiling heck v0.5.0
[INFO] [stderr]     Checking winnow v0.7.3
[INFO] [stderr]     Checking base64 v0.21.7
[INFO] [stderr]     Checking clap_builder v4.5.32
[INFO] [stderr]     Checking encoding_rs v0.8.35
[INFO] [stderr]     Checking ipnet v2.11.0
[INFO] [stderr]     Checking socket2 v0.5.8
[INFO] [stderr]     Checking signal-hook-registry v1.4.2
[INFO] [stderr]     Checking mio v1.0.3
[INFO] [stderr]     Checking parking_lot v0.12.3
[INFO] [stderr]     Checking getrandom v0.2.15
[INFO] [stderr]     Checking console v0.15.11
[INFO] [stderr]     Checking rand_core v0.6.4
[INFO] [stderr]     Checking http-body v0.4.6
[INFO] [stderr]    Compiling openssl-sys v0.9.106
[INFO] [stderr]     Checking rustls-pemfile v1.0.4
[INFO] [stderr]     Checking dirs-sys v0.4.1
[INFO] [stderr]     Checking is-terminal v0.4.16
[INFO] [stderr]     Checking humantime v2.1.0
[INFO] [stderr]     Checking iana-time-zone v0.1.61
[INFO] [stderr]     Checking mime v0.3.17
[INFO] [stderr]     Checking number_prefix v0.4.0
[INFO] [stderr]     Checking shell-words v1.1.0
[INFO] [stderr]     Checking sync_wrapper v0.1.2
[INFO] [stderr]     Checking zeroize v1.8.1
[INFO] [stderr]     Checking termcolor v1.4.1
[INFO] [stderr]     Checking dirs v5.0.1
[INFO] [stderr]     Checking colored v2.2.0
[INFO] [stderr]     Checking dotenv v0.15.0
[INFO] [stderr]     Checking glob v0.3.2
[INFO] [stderr]     Checking regex-syntax v0.6.29
[INFO] [stderr]     Checking predicates-core v1.0.9
[INFO] [stderr]     Checking overload v0.1.1
[INFO] [stderr]     Checking sharded-slab v0.1.7
[INFO] [stderr]     Checking nu-ansi-term v0.46.0
[INFO] [stderr]     Checking tracing-log v0.2.0
[INFO] [stderr]     Checking thread_local v1.1.8
[INFO] [stderr]     Checking env_filter v0.1.3
[INFO] [stderr]     Checking termtree v0.5.1
[INFO] [stderr]     Checking indicatif v0.17.11
[INFO] [stderr]     Checking predicates v3.1.3
[INFO] [stderr]     Checking downcast v0.11.0
[INFO] [stderr]     Checking env_logger v0.11.7
[INFO] [stderr]     Checking predicates-tree v1.0.12
[INFO] [stderr]     Checking fragile v2.0.0
[INFO] [stderr]     Checking regex-automata v0.4.9
[INFO] [stderr]     Checking ppv-lite86 v0.2.21
[INFO] [stderr]     Checking tempfile v3.18.0
[INFO] [stderr]     Checking rand_chacha v0.3.1
[INFO] [stderr]     Checking rand v0.8.5
[INFO] [stderr]     Checking regex-automata v0.1.10
[INFO] [stderr]     Checking nanoid v0.4.0
[INFO] [stderr]     Checking matchers v0.1.0
[INFO] [stderr]     Checking regex v1.11.1
[INFO] [stderr]     Checking env_logger v0.10.2
[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 displaydoc v0.2.5
[INFO] [stderr]    Compiling serde_derive v1.0.219
[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]    Compiling openssl-macros v0.1.1
[INFO] [stderr]    Compiling thiserror-impl v1.0.69
[INFO] [stderr]    Compiling clap_derive v4.5.32
[INFO] [stderr]    Compiling async-trait v0.1.87
[INFO] [stderr]    Compiling async-stream-impl v0.3.6
[INFO] [stderr]    Compiling test-log-macros v0.2.17
[INFO] [stderr]    Compiling mockall_derive v0.12.1
[INFO] [stderr]     Checking async-stream v0.3.6
[INFO] [stderr]     Checking tokio v1.44.0
[INFO] [stderr]     Checking futures-util v0.3.31
[INFO] [stderr]     Checking zerofrom v0.1.6
[INFO] [stderr]     Checking yoke v0.7.5
[INFO] [stderr]     Checking dialoguer v0.11.0
[INFO] [stderr]     Checking tracing v0.1.41
[INFO] [stderr]    Compiling pest v2.7.15
[INFO] [stderr]     Checking zerovec v0.10.4
[INFO] [stderr]     Checking tracing-subscriber v0.3.19
[INFO] [stderr]     Checking clap v4.5.32
[INFO] [stderr]     Checking mockall v0.12.1
[INFO] [stderr]    Compiling pest_meta v2.7.15
[INFO] [stderr]     Checking tinystr v0.7.6
[INFO] [stderr]     Checking icu_collections v1.5.0
[INFO] [stderr]    Compiling pest_generator v2.7.15
[INFO] [stderr]     Checking icu_locid v1.5.0
[INFO] [stderr]     Checking icu_provider v1.5.0
[INFO] [stderr]     Checking futures-executor v0.3.31
[INFO] [stderr]     Checking test-log v0.2.17
[INFO] [stderr]     Checking icu_locid_transform v1.5.0
[INFO] [stderr]     Checking futures v0.3.31
[INFO] [stderr]    Compiling pest_derive v2.7.15
[INFO] [stderr]     Checking icu_properties v1.5.1
[INFO] [stderr]     Checking serde_spanned v0.6.8
[INFO] [stderr]     Checking toml_datetime 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 toml_edit v0.22.24
[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 icu_normalizer v1.5.0
[INFO] [stderr]     Checking tokio-test v0.4.4
[INFO] [stderr]     Checking h2 v0.3.26
[INFO] [stderr]     Checking handlebars v4.5.0
[INFO] [stderr]     Checking idna_adapter v1.2.0
[INFO] [stderr]     Checking idna v1.0.3
[INFO] [stderr]     Checking url v2.5.4
[INFO] [stderr]     Checking toml v0.8.20
[INFO] [stderr]     Checking hyper v0.14.32
[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)]` 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)]` 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[E0412]: 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] help: consider importing one of these structs
[INFO] [stdout]     |
[INFO] [stdout] 391 +     use std::sync::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[E0412]: 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] help: consider importing one of these structs
[INFO] [stdout]     |
[INFO] [stdout] 391 +     use std::sync::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[E0412]: 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[E0412]: 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] help: consider importing one of these structs
[INFO] [stdout]     |
[INFO] [stdout] 391 +     use std::sync::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[E0412]: 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] help: consider importing one of these structs
[INFO] [stdout]     |
[INFO] [stdout] 391 +     use std::sync::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[E0412]: 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] help: consider importing one of these structs
[INFO] [stdout]     |
[INFO] [stdout] 391 +     use std::sync::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] help: consider importing one of these structs
[INFO] [stdout]     |
[INFO] [stdout] 391 +     use std::sync::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] help: consider importing one of these structs
[INFO] [stdout]     |
[INFO] [stdout] 391 +     use std::sync::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] help: consider importing one of these structs
[INFO] [stdout]     |
[INFO] [stdout] 391 +     use std::sync::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[E0412]: 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)]` 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)]` 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] 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[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 `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] 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)]` 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] 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 type for type parameter `T` is 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 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 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: `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)]` 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: 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)]` 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] [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] [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] [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] [stderr]     Checking rust-ai-toolkit-examples v0.1.0 (/opt/rustwide/workdir/examples)
[INFO] [stdout] warning: unused import: `RequestOptions`
[INFO] [stdout]   --> examples/rate_limit_handling.rs:14:37
[INFO] [stdout]    |
[INFO] [stdout] 14 | use rust_ai_toolkit::ai::{AiClient, RequestOptions};
[INFO] [stdout]    |                                     ^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `error`, `info`, and `warn`
[INFO] [stdout]   --> examples/rate_limit_handling.rs:19:11
[INFO] [stdout]    |
[INFO] [stdout] 19 | use log::{info, warn, error};
[INFO] [stdout]    |           ^^^^  ^^^^  ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0689]: can't call method `powi` on ambiguous numeric type `{float}`
[INFO] [stdout]    --> examples/rate_limit_handling.rs:239:82
[INFO] [stdout]     |
[INFO] [stdout] 239 |                     let backoff_ms = (initial_backoff_ms as f64 * backoff_factor.powi(attempts as i32 - 1)) as u64;
[INFO] [stdout]     |                                                                                  ^^^^
[INFO] [stdout]     |
[INFO] [stdout] help: you must specify a type for this binding, like `f32`
[INFO] [stdout]     |
[INFO] [stdout] 228 |     let backoff_factor: f32 = 2.0;
[INFO] [stdout]     |                       +++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0432]: unresolved imports `rust_ai_toolkit::stages::Stage1InitialPlan`, `rust_ai_toolkit::stages::Context`
[INFO] [stdout]   --> examples/custom_template.rs:16:38
[INFO] [stdout]    |
[INFO] [stdout] 16 | use rust_ai_toolkit::stages::{Stage, Stage1InitialPlan, Context};
[INFO] [stdout]    |                                      ^^^^^^^^^^^^^^^^^  ^^^^^^^ no `Context` in `stages`
[INFO] [stdout]    |                                      |
[INFO] [stdout]    |                                      no `Stage1InitialPlan` in `stages`
[INFO] [stdout]    |
[INFO] [stdout]    = help: consider importing one of these structs instead:
[INFO] [stdout]            std::task::Context
[INFO] [stdout]            futures::task::Context
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `RequestOptions`
[INFO] [stdout]   --> examples/rate_limit_handling.rs:14:37
[INFO] [stdout]    |
[INFO] [stdout] 14 | use rust_ai_toolkit::ai::{AiClient, RequestOptions};
[INFO] [stdout]    |                                     ^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `error`, `info`, and `warn`
[INFO] [stdout]   --> examples/rate_limit_handling.rs:19:11
[INFO] [stdout]    |
[INFO] [stdout] 19 | use log::{info, warn, error};
[INFO] [stdout]    |           ^^^^  ^^^^  ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: the trait bound `Box<dyn AiClient>: AiClient` is not satisfied
[INFO] [stdout]   --> examples/rate_limit_handling.rs:75:43
[INFO] [stdout]    |
[INFO] [stdout] 75 |             match make_request_with_retry(&client, prompt, 3).await {
[INFO] [stdout]    |                                           ^^^^^^^ the trait `AiClient` is not implemented for `Box<dyn AiClient>`
[INFO] [stdout]    |
[INFO] [stdout]    = help: the following other types implement trait `AiClient`:
[INFO] [stdout]              ai::anthropic::AnthropicClient
[INFO] [stdout]              ai::anthropic_enhanced::EnhancedAnthropicClient
[INFO] [stdout]              ai::cache::CachedAiClient
[INFO] [stdout]              ai::openai::OpenAiClient
[INFO] [stdout]    = note: required for the cast from `&Box<dyn AiClient>` to `&dyn AiClient`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0432]: unresolved imports `rust_ai_toolkit::stages::Stage1InitialPlan`, `rust_ai_toolkit::stages::Context`
[INFO] [stdout]   --> examples/custom_template.rs:16:38
[INFO] [stdout]    |
[INFO] [stdout] 16 | use rust_ai_toolkit::stages::{Stage, Stage1InitialPlan, Context};
[INFO] [stdout]    |                                      ^^^^^^^^^^^^^^^^^  ^^^^^^^ no `Context` in `stages`
[INFO] [stdout]    |                                      |
[INFO] [stdout]    |                                      no `Stage1InitialPlan` in `stages`
[INFO] [stdout]    |
[INFO] [stdout]    = help: consider importing one of these items instead:
[INFO] [stdout]            std::task::Context
[INFO] [stdout]            anyhow::Context
[INFO] [stdout]            futures::task::Context
[INFO] [stdout]            handlebars::Context
[INFO] [stdout]            handlebars::ScopedJson::Context
[INFO] [stdout]            tracing_subscriber::layer::Context
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0407]: method `stage_number` is not a member of trait `Stage`
[INFO] [stdout]    --> examples/custom_template.rs:112:9
[INFO] [stdout]     |
[INFO] [stdout] 112 | /         fn stage_number(&self) -> u32 {
[INFO] [stdout] 113 | |             1
[INFO] [stdout] 114 | |         }
[INFO] [stdout]     | |_________^ not a member of trait `Stage`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0407]: method `run` is not a member of trait `Stage`
[INFO] [stdout]    --> examples/custom_template.rs:125:9
[INFO] [stdout]     |
[INFO] [stdout] 125 | /         async fn run(&self, context: &mut Context) -> Result<()> {
[INFO] [stdout] 126 | |             println!("Running custom Stage 1 with custom template");
[INFO] [stdout] ...   |
[INFO] [stdout] 170 | |             Ok(())
[INFO] [stdout] 171 | |         }
[INFO] [stdout]     | |_________^ not a member of trait `Stage`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0407]: method `stage_number` is not a member of trait `Stage`
[INFO] [stdout]    --> examples/custom_template.rs:112:9
[INFO] [stdout]     |
[INFO] [stdout] 112 | /         fn stage_number(&self) -> u32 {
[INFO] [stdout] 113 | |             1
[INFO] [stdout] 114 | |         }
[INFO] [stdout]     | |_________^ not a member of trait `Stage`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0407]: method `run` is not a member of trait `Stage`
[INFO] [stdout]    --> examples/custom_template.rs:125:9
[INFO] [stdout]     |
[INFO] [stdout] 125 | /         async fn run(&self, context: &mut Context) -> Result<()> {
[INFO] [stdout] 126 | |             println!("Running custom Stage 1 with custom template");
[INFO] [stdout] ...   |
[INFO] [stdout] 170 | |             Ok(())
[INFO] [stdout] 171 | |         }
[INFO] [stdout]     | |_________^ not a member of trait `Stage`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0053]: method `dependencies` has an incompatible type for trait
[INFO] [stdout]    --> examples/custom_template.rs:120:35
[INFO] [stdout]     |
[INFO] [stdout] 120 |         fn dependencies(&self) -> Vec<u32> {
[INFO] [stdout]     |                                   ^^^^^^^^ expected `u8`, found `u32`
[INFO] [stdout]     |
[INFO] [stdout]     = note: expected signature `fn(&CustomStage1) -> Vec<u8>`
[INFO] [stdout]                found signature `fn(&CustomStage1) -> Vec<u32>`
[INFO] [stdout] help: change the output type to match the trait
[INFO] [stdout]     |
[INFO] [stdout] 120 -         fn dependencies(&self) -> Vec<u32> {
[INFO] [stdout] 120 +         fn dependencies(&self) -> Vec<u8> {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0046]: not all trait items implemented, missing: `number`, `execute`
[INFO] [stdout]    --> examples/custom_template.rs:107:5
[INFO] [stdout]     |
[INFO] [stdout] 107 |     impl Stage for CustomStage1 {
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^ missing `number`, `execute` in implementation
[INFO] [stdout]     |
[INFO] [stdout]     = help: implement the missing item: `fn number(&self) -> u8 { todo!() }`
[INFO] [stdout]     = help: implement the missing item: `fn execute(&'life0 self, _: &'life1 str, _: StageContext) -> Pin<Box<(dyn Future<Output = Result<StageResult, ToolkitError>> + Send + 'async_trait)>> { todo!() }`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tempfile`
[INFO] [stdout]   --> examples/custom_template.rs:72:20
[INFO] [stdout]    |
[INFO] [stdout] 72 |     let temp_dir = tempfile::tempdir()?;
[INFO] [stdout]    |                    ^^^^^^^^ use of unresolved module or unlinked crate `tempfile`
[INFO] [stdout]    |
[INFO] [stdout]    = help: if you wanted to use a crate named `tempfile`, use `cargo add tempfile` to add it to your `Cargo.toml`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0053]: method `dependencies` has an incompatible type for trait
[INFO] [stdout]    --> examples/custom_template.rs:120:35
[INFO] [stdout]     |
[INFO] [stdout] 120 |         fn dependencies(&self) -> Vec<u32> {
[INFO] [stdout]     |                                   ^^^^^^^^ expected `u8`, found `u32`
[INFO] [stdout]     |
[INFO] [stdout]     = note: expected signature `fn(&CustomStage1) -> Vec<u8>`
[INFO] [stdout]                found signature `fn(&CustomStage1) -> Vec<u32>`
[INFO] [stdout] help: change the output type to match the trait
[INFO] [stdout]     |
[INFO] [stdout] 120 -         fn dependencies(&self) -> Vec<u32> {
[INFO] [stdout] 120 +         fn dependencies(&self) -> Vec<u8> {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0046]: not all trait items implemented, missing: `number`, `execute`
[INFO] [stdout]    --> examples/custom_template.rs:107:5
[INFO] [stdout]     |
[INFO] [stdout] 107 |     impl Stage for CustomStage1 {
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^ missing `number`, `execute` in implementation
[INFO] [stdout]     |
[INFO] [stdout]     = help: implement the missing item: `fn number(&self) -> u8 { todo!() }`
[INFO] [stdout]     = help: implement the missing item: `fn execute(&'life0 self, _: &'life1 str, _: StageContext) -> Pin<Box<(dyn Future<Output = Result<StageResult, ToolkitError>> + Send + 'async_trait)>> { todo!() }`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: the method `clone` exists for struct `Box<dyn AiClient>`, but its trait bounds were not satisfied
[INFO] [stdout]    --> examples/rate_limit_handling.rs:137:35
[INFO] [stdout]     |
[INFO] [stdout] 137 |         let client_clone = client.clone();
[INFO] [stdout]     |                                   ^^^^^ method cannot be called on `Box<dyn AiClient>` due to unsatisfied trait bounds
[INFO] [stdout]     |
[INFO] [stdout]    ::: /opt/rustwide/workdir/src/ai/mod.rs:204:1
[INFO] [stdout]     |
[INFO] [stdout] 204 | pub trait AiClient: Send + Sync {
[INFO] [stdout]     | ------------------------------- doesn't satisfy `dyn AiClient: Clone` or `dyn AiClient: Sized`
[INFO] [stdout]     |
[INFO] [stdout]     = note: the following trait bounds were not satisfied:
[INFO] [stdout]             `dyn AiClient: Sized`
[INFO] [stdout]             which is required by `Box<dyn AiClient>: Clone`
[INFO] [stdout]             `dyn AiClient: Clone`
[INFO] [stdout]             which is required by `Box<dyn AiClient>: Clone`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `next` found for struct `Pin<Box<dyn Stream<Item = Result<std::string::String, ToolkitError>> + std::marker::Send>>` in the current scope
[INFO] [stdout]    --> examples/custom_ai_client.rs:75:43
[INFO] [stdout]     |
[INFO] [stdout] 75  |     while let Some(chunk_result) = stream.next().await {
[INFO] [stdout]     |                                           ^^^^
[INFO] [stdout]     |
[INFO] [stdout]    ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/futures-util-0.3.31/src/stream/stream/mod.rs:273:8
[INFO] [stdout]     |
[INFO] [stdout] 273 |     fn next(&mut self) -> Next<'_, Self>
[INFO] [stdout]     |        ---- the method is available for `Pin<Box<dyn Stream<Item = Result<std::string::String, ToolkitError>> + std::marker::Send>>` here
[INFO] [stdout]     |
[INFO] [stdout]     = help: items from traits can only be used if the trait is in scope
[INFO] [stdout] help: trait `StreamExt` which provides `next` is implemented but not in scope; perhaps you want to import it
[INFO] [stdout]     |
[INFO] [stdout] 11  + use futures::StreamExt;
[INFO] [stdout]     |
[INFO] [stdout] help: there is a method `try_next` with a similar name
[INFO] [stdout]     |
[INFO] [stdout] 75  |     while let Some(chunk_result) = stream.try_next().await {
[INFO] [stdout]     |                                           ++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: the size for values of type `str` cannot be known at compilation time
[INFO] [stdout]   --> examples/custom_ai_client.rs:77:16
[INFO] [stdout]    |
[INFO] [stdout] 77 |             Ok(chunk) => {
[INFO] [stdout]    |                ^^^^^ doesn't have a size known at compile-time
[INFO] [stdout]    |
[INFO] [stdout]    = help: the trait `Sized` is not implemented for `str`
[INFO] [stdout]    = note: all local variables must have a statically known size
[INFO] [stdout]    = help: unsized locals are gated as an unstable feature
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `AiClient`
[INFO] [stdout]   --> examples/streaming_responses.rs:14:27
[INFO] [stdout]    |
[INFO] [stdout] 14 | use rust_ai_toolkit::ai::{AiClient, RequestOptions};
[INFO] [stdout]    |                           ^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: the size for values of type `str` cannot be known at compilation time
[INFO] [stdout]   --> examples/custom_ai_client.rs:77:13
[INFO] [stdout]    |
[INFO] [stdout] 77 |             Ok(chunk) => {
[INFO] [stdout]    |             ^^^^^^^^^ doesn't have a size known at compile-time
[INFO] [stdout]    |
[INFO] [stdout]    = help: the trait `Sized` is not implemented for `str`
[INFO] [stdout] note: required by a bound in `Ok`
[INFO] [stdout]   --> /rustc/46424fb5054f211ec836c5c03159f92e46bb35ac/library/core/src/result.rs:532:5
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: the size for values of type `str` cannot be known at compilation time
[INFO] [stdout]   --> examples/custom_ai_client.rs:82:13
[INFO] [stdout]    |
[INFO] [stdout] 82 |             Err(e) => {
[INFO] [stdout]    |             ^^^^^^ doesn't have a size known at compile-time
[INFO] [stdout]    |
[INFO] [stdout]    = help: the trait `Sized` is not implemented for `str`
[INFO] [stdout] note: required by a bound in `Err`
[INFO] [stdout]   --> /rustc/46424fb5054f211ec836c5c03159f92e46bb35ac/library/core/src/result.rs:537:5
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: the size for values of type `str` cannot be known at compilation time
[INFO] [stdout]   --> examples/custom_ai_client.rs:75:50
[INFO] [stdout]    |
[INFO] [stdout] 75 |     while let Some(chunk_result) = stream.next().await {
[INFO] [stdout]    |                                                  ^^^^^ doesn't have a size known at compile-time
[INFO] [stdout]    |
[INFO] [stdout]    = help: the trait `Sized` is not implemented for `str`
[INFO] [stdout] note: required by an implicit `Sized` bound in `Result`
[INFO] [stdout]   --> /rustc/46424fb5054f211ec836c5c03159f92e46bb35ac/library/core/src/result.rs:528:1
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `non_streaming_response`
[INFO] [stdout]    --> examples/streaming_responses.rs:120:9
[INFO] [stdout]     |
[INFO] [stdout] 120 |     let non_streaming_response = client.generate_with_options(prompt, options).await?;
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_non_streaming_response`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` on by default
[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)]` 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)]` 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] Some errors have detailed explanations: E0277, E0599, E0689.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0277`.
[INFO] [stdout] 
[INFO] [stdout] error[E0689]: can't call method `powi` on ambiguous numeric type `{float}`
[INFO] [stdout]    --> examples/rate_limit_handling.rs:239:82
[INFO] [stdout]     |
[INFO] [stdout] 239 |                     let backoff_ms = (initial_backoff_ms as f64 * backoff_factor.powi(attempts as i32 - 1)) as u64;
[INFO] [stdout]     |                                                                                  ^^^^
[INFO] [stdout]     |
[INFO] [stdout] help: you must specify a type for this binding, like `f32`
[INFO] [stdout]     |
[INFO] [stdout] 228 |     let backoff_factor: f32 = 2.0;
[INFO] [stdout]     |                       +++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `run` found for struct `CustomStage1` in the current scope
[INFO] [stdout]    --> examples/custom_template.rs:184:24
[INFO] [stdout]     |
[INFO] [stdout] 96  |     struct CustomStage1 {
[INFO] [stdout]     |     ------------------- method `run` not found for this struct
[INFO] [stdout] ...
[INFO] [stdout] 184 |     match custom_stage.run(&mut context).await {
[INFO] [stdout]     |                        ^^^ method not found in `CustomStage1`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `run` found for struct `CustomStage1` in the current scope
[INFO] [stdout]    --> examples/custom_template.rs:184:24
[INFO] [stdout]     |
[INFO] [stdout] 96  |     struct CustomStage1 {
[INFO] [stdout]     |     ------------------- method `run` not found for this struct
[INFO] [stdout] ...
[INFO] [stdout] 184 |     match custom_stage.run(&mut context).await {
[INFO] [stdout]     |                        ^^^ method not found in `CustomStage1`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `rust-ai-toolkit-examples` (example "rate_limit_handling") due to 3 previous errors; 2 warnings emitted
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stdout] error[E0599]: no variant or associated item named `Timeout` found for enum `ToolkitError` in the current scope
[INFO] [stdout]    --> examples/custom_ai_client.rs:230:42
[INFO] [stdout]     |
[INFO] [stdout] 230 |                 return Err(ToolkitError::Timeout("Request timed out".to_string()));
[INFO] [stdout]     |                                          ^^^^^^^ variant or associated item not found in `ToolkitError`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `next` found for struct `Pin<Box<dyn Stream<Item = Result<std::string::String, ToolkitError>> + std::marker::Send>>` in the current scope
[INFO] [stdout]    --> examples/custom_ai_client.rs:75:43
[INFO] [stdout]     |
[INFO] [stdout] 75  |     while let Some(chunk_result) = stream.next().await {
[INFO] [stdout]     |                                           ^^^^
[INFO] [stdout]     |
[INFO] [stdout]    ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/futures-util-0.3.31/src/stream/stream/mod.rs:273:8
[INFO] [stdout]     |
[INFO] [stdout] 273 |     fn next(&mut self) -> Next<'_, Self>
[INFO] [stdout]     |        ---- the method is available for `Pin<Box<dyn Stream<Item = Result<std::string::String, ToolkitError>> + std::marker::Send>>` here
[INFO] [stdout]     |
[INFO] [stdout]     = help: items from traits can only be used if the trait is in scope
[INFO] [stdout] help: trait `StreamExt` which provides `next` is implemented but not in scope; perhaps you want to import it
[INFO] [stdout]     |
[INFO] [stdout] 11  + use futures::StreamExt;
[INFO] [stdout]     |
[INFO] [stdout] help: there is a method `try_next` with a similar name
[INFO] [stdout]     |
[INFO] [stdout] 75  |     while let Some(chunk_result) = stream.try_next().await {
[INFO] [stdout]     |                                           ++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `AiClient`
[INFO] [stdout]   --> examples/streaming_responses.rs:14:27
[INFO] [stdout]    |
[INFO] [stdout] 14 | use rust_ai_toolkit::ai::{AiClient, RequestOptions};
[INFO] [stdout]    |                           ^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: the size for values of type `str` cannot be known at compilation time
[INFO] [stdout]   --> examples/custom_ai_client.rs:77:16
[INFO] [stdout]    |
[INFO] [stdout] 77 |             Ok(chunk) => {
[INFO] [stdout]    |                ^^^^^ doesn't have a size known at compile-time
[INFO] [stdout]    |
[INFO] [stdout]    = help: the trait `Sized` is not implemented for `str`
[INFO] [stdout]    = note: all local variables must have a statically known size
[INFO] [stdout]    = help: unsized locals are gated as an unstable feature
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: the size for values of type `str` cannot be known at compilation time
[INFO] [stdout]   --> examples/custom_ai_client.rs:77:13
[INFO] [stdout]    |
[INFO] [stdout] 77 |             Ok(chunk) => {
[INFO] [stdout]    |             ^^^^^^^^^ doesn't have a size known at compile-time
[INFO] [stdout]    |
[INFO] [stdout]    = help: the trait `Sized` is not implemented for `str`
[INFO] [stdout] note: required by a bound in `Ok`
[INFO] [stdout]   --> /rustc/46424fb5054f211ec836c5c03159f92e46bb35ac/library/core/src/result.rs:532:5
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `then` found for struct `futures::stream::Iter` in the current scope
[INFO] [stdout]    --> examples/custom_ai_client.rs:251:14
[INFO] [stdout]     |
[INFO] [stdout] 250 |           let stream = stream::iter(chunks)
[INFO] [stdout]     |  ______________________-
[INFO] [stdout] 251 | |             .then(|chunk| async move {
[INFO] [stdout]     | |             -^^^^ method not found in `Iter<IntoIter<String>>`
[INFO] [stdout]     | |_____________|
[INFO] [stdout]     |
[INFO] [stdout]     |
[INFO] [stdout]    ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/futures-util-0.3.31/src/stream/stream/mod.rs:488:8
[INFO] [stdout]     |
[INFO] [stdout] 488 |       fn then<Fut, F>(self, f: F) -> Then<Self, Fut, F>
[INFO] [stdout]     |          ---- the method is available for `futures::stream::Iter<std::vec::IntoIter<std::string::String>>` here
[INFO] [stdout]     |
[INFO] [stdout]     = help: items from traits can only be used if the trait is in scope
[INFO] [stdout] help: trait `StreamExt` which provides `then` is implemented but not in scope; perhaps you want to import it
[INFO] [stdout]     |
[INFO] [stdout] 11  + use futures::StreamExt;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: the size for values of type `str` cannot be known at compilation time
[INFO] [stdout]   --> examples/custom_ai_client.rs:82:13
[INFO] [stdout]    |
[INFO] [stdout] 82 |             Err(e) => {
[INFO] [stdout]    |             ^^^^^^ doesn't have a size known at compile-time
[INFO] [stdout]    |
[INFO] [stdout]    = help: the trait `Sized` is not implemented for `str`
[INFO] [stdout] note: required by a bound in `Err`
[INFO] [stdout]   --> /rustc/46424fb5054f211ec836c5c03159f92e46bb35ac/library/core/src/result.rs:537:5
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: the size for values of type `str` cannot be known at compilation time
[INFO] [stdout]   --> examples/custom_ai_client.rs:75:50
[INFO] [stdout]    |
[INFO] [stdout] 75 |     while let Some(chunk_result) = stream.next().await {
[INFO] [stdout]    |                                                  ^^^^^ doesn't have a size known at compile-time
[INFO] [stdout]    |
[INFO] [stdout]    = help: the trait `Sized` is not implemented for `str`
[INFO] [stdout] note: required by an implicit `Sized` bound in `Result`
[INFO] [stdout]   --> /rustc/46424fb5054f211ec836c5c03159f92e46bb35ac/library/core/src/result.rs:528:1
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0046, E0053, E0407, E0432, E0599.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0046`.
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `then` found for struct `futures::stream::Iter` in the current scope
[INFO] [stdout]    --> examples/custom_ai_client.rs:275:14
[INFO] [stdout]     |
[INFO] [stdout] 274 |           let stream = stream::iter(chunks)
[INFO] [stdout]     |  ______________________-
[INFO] [stdout] 275 | |             .then(|chunk| async move {
[INFO] [stdout]     | |             -^^^^ method not found in `Iter<IntoIter<String>>`
[INFO] [stdout]     | |_____________|
[INFO] [stdout]     |
[INFO] [stdout]     |
[INFO] [stdout]    ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/futures-util-0.3.31/src/stream/stream/mod.rs:488:8
[INFO] [stdout]     |
[INFO] [stdout] 488 |       fn then<Fut, F>(self, f: F) -> Then<Self, Fut, F>
[INFO] [stdout]     |          ---- the method is available for `futures::stream::Iter<std::vec::IntoIter<std::string::String>>` here
[INFO] [stdout]     |
[INFO] [stdout]     = help: items from traits can only be used if the trait is in scope
[INFO] [stdout] help: trait `StreamExt` which provides `then` is implemented but not in scope; perhaps you want to import it
[INFO] [stdout]     |
[INFO] [stdout] 11  + use futures::StreamExt;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `rust-ai-toolkit` (example "custom_template") due to 6 previous errors
[INFO] [stdout] error[E0382]: use of moved value: `options`
[INFO] [stdout]    --> examples/streaming_responses.rs:120:71
[INFO] [stdout]     |
[INFO] [stdout] 45  |     let options = RequestOptions {
[INFO] [stdout]     |         ------- move occurs because `options` has type `RequestOptions`, which does not implement the `Copy` trait
[INFO] [stdout] ...
[INFO] [stdout] 57  |     let mut stream = client.generate_streaming_with_options(prompt, options).await?;
[INFO] [stdout]     |                                                                     ------- value moved here
[INFO] [stdout] ...
[INFO] [stdout] 120 |     let non_streaming_response = client.generate_with_options(prompt, options).await?;
[INFO] [stdout]     |                                                                       ^^^^^^^ value used here after move
[INFO] [stdout]     |
[INFO] [stdout] help: consider cloning the value if the performance cost is acceptable
[INFO] [stdout]     |
[INFO] [stdout] 57  |     let mut stream = client.generate_streaming_with_options(prompt, options.clone()).await?;
[INFO] [stdout]     |                                                                            ++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no variant or associated item named `Timeout` found for enum `ToolkitError` in the current scope
[INFO] [stdout]    --> examples/custom_ai_client.rs:230:42
[INFO] [stdout]     |
[INFO] [stdout] 230 |                 return Err(ToolkitError::Timeout("Request timed out".to_string()));
[INFO] [stdout]     |                                          ^^^^^^^ variant or associated item not found in `ToolkitError`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0046, E0053, E0407, E0432, E0433, E0599.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0046`.
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `then` found for struct `futures::stream::Iter` in the current scope
[INFO] [stdout]    --> examples/custom_ai_client.rs:251:14
[INFO] [stdout]     |
[INFO] [stdout] 250 |           let stream = stream::iter(chunks)
[INFO] [stdout]     |  ______________________-
[INFO] [stdout] 251 | |             .then(|chunk| async move {
[INFO] [stdout]     | |             -^^^^ method not found in `Iter<IntoIter<String>>`
[INFO] [stdout]     | |_____________|
[INFO] [stdout]     |
[INFO] [stdout]     |
[INFO] [stdout]    ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/futures-util-0.3.31/src/stream/stream/mod.rs:488:8
[INFO] [stdout]     |
[INFO] [stdout] 488 |       fn then<Fut, F>(self, f: F) -> Then<Self, Fut, F>
[INFO] [stdout]     |          ---- the method is available for `futures::stream::Iter<std::vec::IntoIter<std::string::String>>` here
[INFO] [stdout]     |
[INFO] [stdout]     = help: items from traits can only be used if the trait is in scope
[INFO] [stdout] help: trait `StreamExt` which provides `then` is implemented but not in scope; perhaps you want to import it
[INFO] [stdout]     |
[INFO] [stdout] 11  + use futures::StreamExt;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `non_streaming_response`
[INFO] [stdout]    --> examples/streaming_responses.rs:120:9
[INFO] [stdout]     |
[INFO] [stdout] 120 |     let non_streaming_response = client.generate_with_options(prompt, options).await?;
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_non_streaming_response`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `then` found for struct `futures::stream::Iter` in the current scope
[INFO] [stdout]    --> examples/custom_ai_client.rs:275:14
[INFO] [stdout]     |
[INFO] [stdout] 274 |           let stream = stream::iter(chunks)
[INFO] [stdout]     |  ______________________-
[INFO] [stdout] 275 | |             .then(|chunk| async move {
[INFO] [stdout]     | |             -^^^^ method not found in `Iter<IntoIter<String>>`
[INFO] [stdout]     | |_____________|
[INFO] [stdout]     |
[INFO] [stdout]     |
[INFO] [stdout]    ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/futures-util-0.3.31/src/stream/stream/mod.rs:488:8
[INFO] [stdout]     |
[INFO] [stdout] 488 |       fn then<Fut, F>(self, f: F) -> Then<Self, Fut, F>
[INFO] [stdout]     |          ---- the method is available for `futures::stream::Iter<std::vec::IntoIter<std::string::String>>` here
[INFO] [stdout]     |
[INFO] [stdout]     = help: items from traits can only be used if the trait is in scope
[INFO] [stdout] help: trait `StreamExt` which provides `then` is implemented but not in scope; perhaps you want to import it
[INFO] [stdout]     |
[INFO] [stdout] 11  + use futures::StreamExt;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `rust-ai-toolkit-examples` (example "custom_template") due to 7 previous errors
[INFO] [stdout] For more information about this error, try `rustc --explain E0382`.
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0277, E0599.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0277`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `rust-ai-toolkit-examples` (example "custom_ai_client") due to 8 previous errors
[INFO] [stderr] error: could not compile `rust-ai-toolkit` (example "streaming_responses") due to 1 previous error; 2 warnings emitted
[INFO] [stdout] Some errors have detailed explanations: E0277, E0599.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0277`.
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: the trait bound `Box<dyn AiClient>: AiClient` is not satisfied
[INFO] [stdout]   --> examples/rate_limit_handling.rs:75:43
[INFO] [stdout]    |
[INFO] [stdout] 75 |             match make_request_with_retry(&client, prompt, 3).await {
[INFO] [stdout]    |                                           ^^^^^^^ the trait `AiClient` is not implemented for `Box<dyn AiClient>`
[INFO] [stdout]    |
[INFO] [stdout]    = help: the following other types implement trait `AiClient`:
[INFO] [stdout]              ai::anthropic::AnthropicClient
[INFO] [stdout]              ai::anthropic_enhanced::EnhancedAnthropicClient
[INFO] [stdout]              ai::cache::CachedAiClient
[INFO] [stdout]              ai::openai::OpenAiClient
[INFO] [stdout]    = note: required for the cast from `&Box<dyn AiClient>` to `&dyn AiClient`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `rust-ai-toolkit` (example "custom_ai_client") due to 8 previous errors
[INFO] [stdout] error[E0382]: use of moved value: `options`
[INFO] [stdout]    --> examples/streaming_responses.rs:120:71
[INFO] [stdout]     |
[INFO] [stdout] 45  |     let options = RequestOptions {
[INFO] [stdout]     |         ------- move occurs because `options` has type `RequestOptions`, which does not implement the `Copy` trait
[INFO] [stdout] ...
[INFO] [stdout] 57  |     let mut stream = client.generate_streaming_with_options(prompt, options).await?;
[INFO] [stdout]     |                                                                     ------- value moved here
[INFO] [stdout] ...
[INFO] [stdout] 120 |     let non_streaming_response = client.generate_with_options(prompt, options).await?;
[INFO] [stdout]     |                                                                       ^^^^^^^ value used here after move
[INFO] [stdout]     |
[INFO] [stdout] help: consider cloning the value if the performance cost is acceptable
[INFO] [stdout]     |
[INFO] [stdout] 57  |     let mut stream = client.generate_streaming_with_options(prompt, options.clone()).await?;
[INFO] [stdout]     |                                                                            ++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: the method `clone` exists for struct `Box<dyn AiClient>`, but its trait bounds were not satisfied
[INFO] [stdout]    --> examples/rate_limit_handling.rs:137:35
[INFO] [stdout]     |
[INFO] [stdout] 137 |         let client_clone = client.clone();
[INFO] [stdout]     |                                   ^^^^^ method cannot be called on `Box<dyn AiClient>` due to unsatisfied trait bounds
[INFO] [stdout]     |
[INFO] [stdout]    ::: /opt/rustwide/workdir/src/ai/mod.rs:204:1
[INFO] [stdout]     |
[INFO] [stdout] 204 | pub trait AiClient: Send + Sync {
[INFO] [stdout]     | ------------------------------- doesn't satisfy `dyn AiClient: Clone` or `dyn AiClient: Sized`
[INFO] [stdout]     |
[INFO] [stdout]     = note: the following trait bounds were not satisfied:
[INFO] [stdout]             `dyn AiClient: Sized`
[INFO] [stdout]             which is required by `Box<dyn AiClient>: Clone`
[INFO] [stdout]             `dyn AiClient: Clone`
[INFO] [stdout]             which is required by `Box<dyn AiClient>: Clone`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0382`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `rust-ai-toolkit-examples` (example "streaming_responses") due to 1 previous error; 2 warnings emitted
[INFO] [stdout] Some errors have detailed explanations: E0277, E0599, E0689.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0277`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `rust-ai-toolkit` (example "rate_limit_handling") due to 3 previous errors; 2 warnings emitted
[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)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0282, E0412, E0433, E0599.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0282`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `rust-ai-toolkit` (lib test) due to 23 previous errors; 13 warnings emitted
[INFO] [stdout] error[E0412]: 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] help: consider importing one of these structs
[INFO] [stdout]     |
[INFO] [stdout] 391 +     use std::sync::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[E0412]: 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] help: consider importing one of these structs
[INFO] [stdout]     |
[INFO] [stdout] 391 +     use std::sync::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[E0412]: 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 one of these enums
[INFO] [stdout]     |
[INFO] [stdout] 391 +     use crate::ToolkitError;
[INFO] [stdout]     |
[INFO] [stdout] 391 +     use rust_ai_toolkit::ToolkitError;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: 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] help: consider importing one of these structs
[INFO] [stdout]     |
[INFO] [stdout] 391 +     use std::sync::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[E0412]: 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] help: consider importing one of these structs
[INFO] [stdout]     |
[INFO] [stdout] 391 +     use std::sync::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[E0412]: 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 one of these enums
[INFO] [stdout]     |
[INFO] [stdout] 391 +     use crate::ToolkitError;
[INFO] [stdout]     |
[INFO] [stdout] 391 +     use rust_ai_toolkit::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] help: consider importing one of these structs
[INFO] [stdout]     |
[INFO] [stdout] 391 +     use std::sync::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] help: consider importing one of these structs
[INFO] [stdout]     |
[INFO] [stdout] 391 +     use std::sync::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] 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[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] help: consider importing one of these structs
[INFO] [stdout]     |
[INFO] [stdout] 391 +     use std::sync::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] help: consider importing one of these structs
[INFO] [stdout]     |
[INFO] [stdout] 391 +     use std::sync::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 one of these enums
[INFO] [stdout]     |
[INFO] [stdout] 391 +     use crate::ToolkitError;
[INFO] [stdout]     |
[INFO] [stdout] 391 +     use rust_ai_toolkit::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 one of these enums
[INFO] [stdout]     |
[INFO] [stdout] 391 +     use crate::ToolkitError;
[INFO] [stdout]     |
[INFO] [stdout] 391 +     use rust_ai_toolkit::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 one of these enums
[INFO] [stdout]     |
[INFO] [stdout] 391 +     use crate::ToolkitError;
[INFO] [stdout]     |
[INFO] [stdout] 391 +     use rust_ai_toolkit::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 one of these enums
[INFO] [stdout]     |
[INFO] [stdout] 391 +     use crate::ToolkitError;
[INFO] [stdout]     |
[INFO] [stdout] 391 +     use rust_ai_toolkit::ToolkitError;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: 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)]` 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)]` 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] 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)]` 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: `ai_client`
[INFO] [stdout]   --> src/main.rs:73:9
[INFO] [stdout]    |
[INFO] [stdout] 73 |     let ai_client = match &cli.command {
[INFO] [stdout]    |         ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ai_client`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `prompt_manager`
[INFO] [stdout]   --> src/main.rs:84:9
[INFO] [stdout]    |
[INFO] [stdout] 84 |     let prompt_manager = match prompts::PromptManager::new(&templates_dir) {
[INFO] [stdout]    |         ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_prompt_manager`
[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 `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] warning: methods `generate_json` and `call_function` are never used
[INFO] [stdout]    --> src/ai/mod.rs:334:14
[INFO] [stdout]     |
[INFO] [stdout] 204 | pub trait AiClient: Send + Sync {
[INFO] [stdout]     |           -------- methods in this trait
[INFO] [stdout] ...
[INFO] [stdout] 334 |     async fn generate_json(&self, prompt: &str) -> Result<Value> {
[INFO] [stdout]     |              ^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 412 |     async fn call_function(
[INFO] [stdout]     |              ^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(dead_code)]` on by default
[INFO] [stdout] 
[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] 
[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] [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] [stdout] warning: methods `dimmed` and `bold` are never used
[INFO] [stdout]   --> src/config/mod.rs:26:8
[INFO] [stdout]    |
[INFO] [stdout] 20 | pub trait ColorizeExt {
[INFO] [stdout]    |           ----------- methods in this trait
[INFO] [stdout] ...
[INFO] [stdout] 26 |     fn dimmed(&self) -> String;
[INFO] [stdout]    |        ^^^^^^
[INFO] [stdout] 27 |     fn bold(&self) -> String;
[INFO] [stdout]    |        ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[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: method `add_artifact` is never used
[INFO] [stdout]    --> src/models/mod.rs:142:12
[INFO] [stdout]     |
[INFO] [stdout] 42  | impl Project {
[INFO] [stdout]     | ------------ method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 142 |     pub fn add_artifact(&mut self, stage_number: u8, artifact: Artifact) -> bool {
[INFO] [stdout]     |            ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `template_dir` is never read
[INFO] [stdout]   --> src/prompts/mod.rs:94:5
[INFO] [stdout]    |
[INFO] [stdout] 90 | pub struct PromptManager {
[INFO] [stdout]    |            ------------- field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 94 |     template_dir: PathBuf,
[INFO] [stdout]    |     ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `add_template`, `has_template`, and `get_template_names` are never used
[INFO] [stdout]    --> src/prompts/mod.rs:287:12
[INFO] [stdout]     |
[INFO] [stdout] 97  | impl PromptManager {
[INFO] [stdout]     | ------------------ methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 287 |     pub fn add_template(&mut self, name: &str, content: &str) -> Result<()> {
[INFO] [stdout]     |            ^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 327 |     pub fn has_template(&self, name: &str) -> bool {
[INFO] [stdout]     |            ^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 349 |     pub fn get_template_names(&self) -> Vec<String> {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variants `NotStarted`, `InProgress`, and `Failed` are never constructed
[INFO] [stdout]   --> src/stages/mod.rs:23:5
[INFO] [stdout]    |
[INFO] [stdout] 22 | pub enum StageExecutionStatus {
[INFO] [stdout]    |          -------------------- variants in this enum
[INFO] [stdout] 23 |     NotStarted,
[INFO] [stdout]    |     ^^^^^^^^^^
[INFO] [stdout] 24 |     Skipped,
[INFO] [stdout] 25 |     InProgress,
[INFO] [stdout]    |     ^^^^^^^^^^
[INFO] [stdout] 26 |     Completed,
[INFO] [stdout] 27 |     Failed,
[INFO] [stdout]    |     ^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `StageExecutionStatus` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `to_json` is never used
[INFO] [stdout]   --> src/stages/mod.rs:73:12
[INFO] [stdout]    |
[INFO] [stdout] 49 | impl StageContext {
[INFO] [stdout]    | ----------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 73 |     pub fn to_json(&self) -> Value {
[INFO] [stdout]    |            ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `context` is never read
[INFO] [stdout]   --> src/stages/mod.rs:83:9
[INFO] [stdout]    |
[INFO] [stdout] 80 | pub struct StageResult {
[INFO] [stdout]    |            ----------- field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 83 |     pub context: StageContext,
[INFO] [stdout]    |         ^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `StageResult` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `failure`, `in_progress`, and `is_failure` are never used
[INFO] [stdout]    --> src/stages/mod.rs:97:12
[INFO] [stdout]     |
[INFO] [stdout] 86  | impl StageResult {
[INFO] [stdout]     | ---------------- associated items in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 97  |     pub fn failure(message: impl Into<String>, context: StageContext) -> Self {
[INFO] [stdout]     |            ^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 115 |     pub fn in_progress(context: StageContext) -> Self {
[INFO] [stdout]     |            ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 129 |     pub fn is_failure(&self) -> bool {
[INFO] [stdout]     |            ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `name` and `description` are never used
[INFO] [stdout]    --> src/stages/mod.rs:146:8
[INFO] [stdout]     |
[INFO] [stdout] 141 | pub trait Stage: Send + Sync {
[INFO] [stdout]     |           ----- methods in this trait
[INFO] [stdout] ...
[INFO] [stdout] 146 |     fn name(&self) -> &str;
[INFO] [stdout]     |        ^^^^
[INFO] [stdout] ...
[INFO] [stdout] 149 |     fn description(&self) -> &str;
[INFO] [stdout]     |        ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `number`, `name`, and `dependencies` are never used
[INFO] [stdout]    --> src/stages/mod.rs:261:12
[INFO] [stdout]     |
[INFO] [stdout] 259 | impl StageEnum {
[INFO] [stdout]     | -------------- methods in this implementation
[INFO] [stdout] 260 |     /// Get the number of this stage
[INFO] [stdout] 261 |     pub fn number(&self) -> u8 {
[INFO] [stdout]     |            ^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 273 |     pub fn name(&self) -> &str {
[INFO] [stdout]     |            ^^^^
[INFO] [stdout] ...
[INFO] [stdout] 285 |     pub fn dependencies(&self) -> Vec<u8> {
[INFO] [stdout]     |            ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `run_stages` is never used
[INFO] [stdout]    --> src/stages/mod.rs:323:14
[INFO] [stdout]     |
[INFO] [stdout] 323 | pub async fn run_stages(project_id: &str, stages: &[u8]) -> Result<StageContext> {
[INFO] [stdout]     |              ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `run_all_stages` is never used
[INFO] [stdout]    --> src/stages/mod.rs:367:14
[INFO] [stdout]     |
[INFO] [stdout] 367 | pub async fn run_all_stages(project_id: &str) -> Result<StageContext> {
[INFO] [stdout]     |              ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `run_available_stages` is never used
[INFO] [stdout]    --> src/stages/mod.rs:372:14
[INFO] [stdout]     |
[INFO] [stdout] 372 | pub async fn run_available_stages(project_id: &str) -> Result<StageContext> {
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `save_project_async` is never used
[INFO] [stdout]   --> src/utils/project.rs:52:14
[INFO] [stdout]    |
[INFO] [stdout] 52 | pub async fn save_project_async(project: &Project) -> Result<()> {
[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: function `list_projects` is never used
[INFO] [stdout]    --> src/utils/project.rs:362:8
[INFO] [stdout]     |
[INFO] [stdout] 362 | pub fn list_projects() -> Result<()> {
[INFO] [stdout]     |        ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_all_projects` is never used
[INFO] [stdout]    --> src/utils/project.rs:404:8
[INFO] [stdout]     |
[INFO] [stdout] 404 | pub fn get_all_projects() -> Result<Vec<Project>> {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `collect_projects_from_directory` is never used
[INFO] [stdout]    --> src/utils/project.rs:456:4
[INFO] [stdout]     |
[INFO] [stdout] 456 | fn collect_projects_from_directory(dir: &Path) -> Result<Vec<Project>> {
[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] [stdout] warning: associated items `new`, `invalidate_project`, and `invalidate_dir_scans` are never used
[INFO] [stdout]    --> src/utils/cache.rs:181:12
[INFO] [stdout]     |
[INFO] [stdout] 173 | impl ProjectCache {
[INFO] [stdout]     | ----------------- associated items in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 181 |     pub fn new() -> Self {
[INFO] [stdout]     |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 350 |     pub fn invalidate_project(&mut self, project_id: &str) {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 358 |     pub fn invalidate_dir_scans(&mut self) {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `save_cached_project` is never used
[INFO] [stdout]    --> src/utils/cache.rs:458:8
[INFO] [stdout]     |
[INFO] [stdout] 458 | pub fn save_cached_project(project: &Project) -> Result<()> {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `ensure_dir_exists` is never used
[INFO] [stdout]  --> src/utils/file.rs:9:8
[INFO] [stdout]   |
[INFO] [stdout] 9 | pub fn ensure_dir_exists(path: impl AsRef<Path>) -> Result<()> {
[INFO] [stdout]   |        ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `read_to_string` is never used
[INFO] [stdout]   --> src/utils/file.rs:24:8
[INFO] [stdout]    |
[INFO] [stdout] 24 | pub fn read_to_string(path: impl AsRef<Path>) -> Result<String> {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `write_string_to_file` is never used
[INFO] [stdout]   --> src/utils/file.rs:35:8
[INFO] [stdout]    |
[INFO] [stdout] 35 | pub fn write_string_to_file(path: impl AsRef<Path>, content: &str) -> Result<()> {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `append_string_to_file` is never used
[INFO] [stdout]   --> src/utils/file.rs:51:8
[INFO] [stdout]    |
[INFO] [stdout] 51 | pub fn append_string_to_file(path: impl AsRef<Path>, content: &str) -> Result<()> {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `file_exists` is never used
[INFO] [stdout]   --> src/utils/file.rs:80:8
[INFO] [stdout]    |
[INFO] [stdout] 80 | pub fn file_exists(path: impl AsRef<Path>) -> bool {
[INFO] [stdout]    |        ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `dir_exists` is never used
[INFO] [stdout]   --> src/utils/file.rs:85:8
[INFO] [stdout]    |
[INFO] [stdout] 85 | pub fn dir_exists(path: impl AsRef<Path>) -> bool {
[INFO] [stdout]    |        ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `list_files` is never used
[INFO] [stdout]   --> src/utils/file.rs:90:8
[INFO] [stdout]    |
[INFO] [stdout] 90 | pub fn list_files(dir: impl AsRef<Path>) -> Result<Vec<PathBuf>> {
[INFO] [stdout]    |        ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `list_dirs` is never used
[INFO] [stdout]    --> src/utils/file.rs:122:8
[INFO] [stdout]     |
[INFO] [stdout] 122 | pub fn list_dirs(dir: impl AsRef<Path>) -> Result<Vec<PathBuf>> {
[INFO] [stdout]     |        ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `find_files` is never used
[INFO] [stdout]    --> src/utils/file.rs:154:8
[INFO] [stdout]     |
[INFO] [stdout] 154 | pub fn find_files(dir: impl AsRef<Path>, pattern: &str) -> Result<Vec<PathBuf>> {
[INFO] [stdout]     |        ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `delete_file` is never used
[INFO] [stdout]    --> src/utils/file.rs:201:8
[INFO] [stdout]     |
[INFO] [stdout] 201 | pub fn delete_file(path: impl AsRef<Path>) -> Result<()> {
[INFO] [stdout]     |        ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `delete_dir` is never used
[INFO] [stdout]    --> src/utils/file.rs:216:8
[INFO] [stdout]     |
[INFO] [stdout] 216 | pub fn delete_dir(path: impl AsRef<Path>) -> Result<()> {
[INFO] [stdout]     |        ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `copy_file` is never used
[INFO] [stdout]    --> src/utils/file.rs:231:8
[INFO] [stdout]     |
[INFO] [stdout] 231 | pub fn copy_file(from: impl AsRef<Path>, to: impl AsRef<Path>) -> Result<u64> {
[INFO] [stdout]     |        ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `rename` is never used
[INFO] [stdout]    --> src/utils/file.rs:249:8
[INFO] [stdout]     |
[INFO] [stdout] 249 | pub fn rename(from: impl AsRef<Path>, to: impl AsRef<Path>) -> Result<()> {
[INFO] [stdout]     |        ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `read_file_async` is never used
[INFO] [stdout]    --> src/utils/file.rs:278:14
[INFO] [stdout]     |
[INFO] [stdout] 278 | pub async fn read_file_async(path: impl AsRef<Path>) -> Result<String> {
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `write_file_async` is never used
[INFO] [stdout]    --> src/utils/file.rs:300:14
[INFO] [stdout]     |
[INFO] [stdout] 300 | pub async fn write_file_async(path: impl AsRef<Path>, content: &str) -> Result<()> {
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `ensure_dir_async` is never used
[INFO] [stdout]    --> src/utils/file.rs:329:14
[INFO] [stdout]     |
[INFO] [stdout] 329 | pub async fn ensure_dir_async(path: impl AsRef<Path>) -> Result<()> {
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `read_file` is never used
[INFO] [stdout]    --> src/utils/file.rs:342:8
[INFO] [stdout]     |
[INFO] [stdout] 342 | pub fn read_file(path: impl AsRef<Path>) -> Result<String> {
[INFO] [stdout]     |        ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `write_file` is never used
[INFO] [stdout]    --> src/utils/file.rs:351:8
[INFO] [stdout]     |
[INFO] [stdout] 351 | pub fn write_file(path: impl AsRef<Path>, content: &str) -> Result<()> {
[INFO] [stdout]     |        ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `ensure_dir` is never used
[INFO] [stdout]    --> src/utils/file.rs:368:8
[INFO] [stdout]     |
[INFO] [stdout] 368 | pub fn ensure_dir(path: impl AsRef<Path>) -> Result<()> {
[INFO] [stdout]     |        ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `prompt_select` is never used
[INFO] [stdout]   --> src/utils/ui.rs:55:8
[INFO] [stdout]    |
[INFO] [stdout] 55 | pub fn prompt_select<T: AsRef<str>>(message: &str, options: &[T]) -> io::Result<usize> {
[INFO] [stdout]    |        ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `with_spinner` is never used
[INFO] [stdout]   --> src/utils/ui.rs:76:14
[INFO] [stdout]    |
[INFO] [stdout] 76 | pub async fn with_spinner<F, T, E>(message: &str, task: F) -> Result<T, E>
[INFO] [stdout]    |              ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `progress_bar` is never used
[INFO] [stdout]   --> src/utils/ui.rs:99:8
[INFO] [stdout]    |
[INFO] [stdout] 99 | pub fn progress_bar(len: u64, message: &str) -> indicatif::ProgressBar {
[INFO] [stdout]    |        ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `info_user` is never used
[INFO] [stdout]   --> src/utils/mod.rs:13:12
[INFO] [stdout]    |
[INFO] [stdout] 13 |     pub fn info_user(message: &str) {
[INFO] [stdout]    |            ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `success` is never used
[INFO] [stdout]   --> src/utils/mod.rs:19:12
[INFO] [stdout]    |
[INFO] [stdout] 19 |     pub fn success(message: &str) {
[INFO] [stdout]    |            ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `error_user` is never used
[INFO] [stdout]   --> src/utils/mod.rs:31:12
[INFO] [stdout]    |
[INFO] [stdout] 31 |     pub fn error_user(message: &str) {
[INFO] [stdout]    |            ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `debug_user` is never used
[INFO] [stdout]   --> src/utils/mod.rs:37:12
[INFO] [stdout]    |
[INFO] [stdout] 37 |     pub fn debug_user(message: &str) {
[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 type for type parameter `T` is 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)]` 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)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `ai_client`
[INFO] [stdout]   --> src/main.rs:73:9
[INFO] [stdout]    |
[INFO] [stdout] 73 |     let ai_client = match &cli.command {
[INFO] [stdout]    |         ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ai_client`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `prompt_manager`
[INFO] [stdout]   --> src/main.rs:84:9
[INFO] [stdout]    |
[INFO] [stdout] 84 |     let prompt_manager = match prompts::PromptManager::new(&templates_dir) {
[INFO] [stdout]    |         ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_prompt_manager`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0282, E0412, E0433, E0599.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0282`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `rust-ai-toolkit` (bin "rust-ai-toolkit" test) due to 23 previous errors; 15 warnings emitted
[INFO] running `Command { std: "docker" "inspect" "d18df6c6852bff4fda7e50e23b76a334b5d532bffc6bfc738e7ed3da9abdcfc7", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "d18df6c6852bff4fda7e50e23b76a334b5d532bffc6bfc738e7ed3da9abdcfc7", kill_on_drop: false }`
[INFO] [stdout] d18df6c6852bff4fda7e50e23b76a334b5d532bffc6bfc738e7ed3da9abdcfc7
