[INFO] cloning repository https://github.com/Kiana-ZY/UsageMonitor [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Kiana-ZY/UsageMonitor" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FKiana-ZY%2FUsageMonitor", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FKiana-ZY%2FUsageMonitor'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 37a1c0cc5e47f70434726d47df06ebb27b5b11a8 [INFO] testing Kiana-ZY/UsageMonitor against 1.100.0-beta.1+cargoflags=--release for beta-release-1.100-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FKiana-ZY%2FUsageMonitor" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/Kiana-ZY/UsageMonitor [INFO] finished tweaking git repo https://github.com/Kiana-ZY/UsageMonitor [INFO] tweaked toml for git repo https://github.com/Kiana-ZY/UsageMonitor written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/Kiana-ZY/UsageMonitor on toolchain 1.100.0-beta.1 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.100.0-beta.1" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/Kiana-ZY/UsageMonitor 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" "+1.100.0-beta.1" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:77db811e55d90add9212f6832c23229e3de5f1c1f9905e8cb07319ea15df73ac" "sleep" "infinity", kill_on_drop: false }` [INFO] [stdout] cd3adc1785af16a8459cbd9521bec63d5574cbe90b1a728aaa7df832d0679bb8 [INFO] running `Command { std: "docker" "start" "cd3adc1785af16a8459cbd9521bec63d5574cbe90b1a728aaa7df832d0679bb8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "cd3adc1785af16a8459cbd9521bec63d5574cbe90b1a728aaa7df832d0679bb8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "cd3adc1785af16a8459cbd9521bec63d5574cbe90b1a728aaa7df832d0679bb8" "/opt/rustwide/cargo-home/bin/cargo" "+1.100.0-beta.1" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "cd3adc1785af16a8459cbd9521bec63d5574cbe90b1a728aaa7df832d0679bb8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-w" "/opt/rustwide/workdir" "--user" "0:0" "cd3adc1785af16a8459cbd9521bec63d5574cbe90b1a728aaa7df832d0679bb8" "/opt/rustwide/cargo-home/bin/cargo" "+1.100.0-beta.1" "build" "--frozen" "--message-format=json" "--release", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.106 [INFO] [stderr] Compiling quote v1.0.45 [INFO] [stderr] Compiling unicode-ident v1.0.24 [INFO] [stderr] Compiling cfg-if v1.0.4 [INFO] [stderr] Compiling libc v0.2.186 [INFO] [stderr] Compiling smallvec v1.15.1 [INFO] [stderr] Compiling once_cell v1.21.4 [INFO] [stderr] Compiling itoa v1.0.18 [INFO] [stderr] Compiling serde_core v1.0.228 [INFO] [stderr] Compiling log v0.4.29 [INFO] [stderr] Compiling shlex v1.3.0 [INFO] [stderr] Compiling find-msvc-tools v0.1.9 [INFO] [stderr] Compiling stable_deref_trait v1.2.1 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Compiling parking_lot_core v0.9.12 [INFO] [stderr] Compiling pin-project-lite v0.2.17 [INFO] [stderr] Compiling lock_api v0.4.14 [INFO] [stderr] Compiling bytes v1.11.1 [INFO] [stderr] Compiling version_check v0.9.5 [INFO] [stderr] Compiling zerocopy v0.8.48 [INFO] [stderr] Compiling cc v1.2.61 [INFO] [stderr] Compiling zmij v1.0.21 [INFO] [stderr] Compiling litemap v0.8.2 [INFO] [stderr] Compiling ahash v0.8.12 [INFO] [stderr] Compiling writeable v0.6.3 [INFO] [stderr] Compiling futures-core v0.3.32 [INFO] [stderr] Compiling bitflags v2.11.1 [INFO] [stderr] Compiling rustversion v1.0.22 [INFO] [stderr] Compiling autocfg v1.5.0 [INFO] [stderr] Compiling serde_json v1.0.149 [INFO] [stderr] Compiling syn v2.0.117 [INFO] [stderr] Compiling errno v0.3.14 [INFO] [stderr] Compiling mio v1.2.0 [INFO] [stderr] Compiling signal-hook-registry v1.4.8 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling pkg-config v0.3.33 [INFO] [stderr] Compiling parking_lot v0.12.5 [INFO] [stderr] Compiling icu_normalizer_data v2.2.0 [INFO] [stderr] Compiling memchr v2.8.0 [INFO] [stderr] Compiling icu_properties_data v2.2.0 [INFO] [stderr] Compiling utf8_iter v1.0.4 [INFO] [stderr] Compiling vcpkg v0.2.15 [INFO] [stderr] Compiling zeroize v1.8.2 [INFO] [stderr] Compiling ring v0.17.14 [INFO] [stderr] Compiling libsqlite3-sys v0.28.0 [INFO] [stderr] Compiling percent-encoding v2.3.2 [INFO] [stderr] Compiling thiserror v2.0.18 [INFO] [stderr] Compiling rustls-pki-types v1.14.1 [INFO] [stderr] Compiling socket2 v0.6.3 [INFO] [stderr] Compiling http v1.4.0 [INFO] [stderr] Compiling same-file v1.0.6 [INFO] [stderr] Compiling iana-time-zone v0.1.65 [INFO] [stderr] Compiling chrono v0.4.44 [INFO] [stderr] Compiling http-body v1.0.1 [INFO] [stderr] Compiling walkdir v2.5.0 [INFO] [stderr] Compiling form_urlencoded v1.2.2 [INFO] [stderr] Compiling getrandom v0.2.17 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling hashbrown v0.14.5 [INFO] [stderr] Compiling tracing-core v0.1.36 [INFO] [stderr] Compiling crc32fast v1.5.0 [INFO] [stderr] Compiling tower-service v0.3.3 [INFO] [stderr] Compiling equivalent v1.0.2 [INFO] [stderr] Compiling fallible-iterator v0.3.0 [INFO] [stderr] Compiling hashlink v0.9.1 [INFO] [stderr] Compiling fallible-streaming-iterator v0.1.9 [INFO] [stderr] Compiling tracing v0.1.44 [INFO] [stderr] Compiling ident_case v1.0.1 [INFO] [stderr] Compiling ryu v1.0.23 [INFO] [stderr] Compiling signal-hook v0.3.18 [INFO] [stderr] Compiling httparse v1.10.1 [INFO] [stderr] Compiling tower-layer v0.3.3 [INFO] [stderr] Compiling rustls v0.23.40 [INFO] [stderr] Compiling adler2 v2.0.1 [INFO] [stderr] Compiling futures-task v0.3.32 [INFO] [stderr] Compiling simd-adler32 v0.3.9 [INFO] [stderr] Compiling slab v0.4.12 [INFO] [stderr] Compiling strsim v0.11.1 [INFO] [stderr] Compiling heck v0.5.0 [INFO] [stderr] Compiling miniz_oxide v0.8.9 [INFO] [stderr] Compiling futures-util v0.3.32 [INFO] [stderr] Compiling zerofrom-derive v0.1.7 [INFO] [stderr] Compiling yoke-derive v0.8.2 [INFO] [stderr] Compiling zerovec-derive v0.11.3 [INFO] [stderr] Compiling zerofrom v0.1.7 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling yoke v0.8.2 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling tokio-macros v2.7.0 [INFO] [stderr] Compiling zerotrie v0.2.4 [INFO] [stderr] Compiling thiserror-impl v2.0.18 [INFO] [stderr] Compiling zerovec v0.11.6 [INFO] [stderr] Compiling tokio v1.52.2 [INFO] [stderr] Compiling darling_core v0.23.0 [INFO] [stderr] Compiling tinystr v0.8.3 [INFO] [stderr] Compiling potential_utf v0.1.5 [INFO] [stderr] Compiling icu_collections v2.2.0 [INFO] [stderr] Compiling icu_locale_core v2.2.0 [INFO] [stderr] Compiling webpki-roots v1.0.7 [INFO] [stderr] Compiling unicase v2.9.0 [INFO] [stderr] Compiling rustix v0.38.44 [INFO] [stderr] Compiling mime_guess v2.0.5 [INFO] [stderr] Compiling webpki-roots v0.26.11 [INFO] [stderr] Compiling flate2 v1.1.9 [INFO] [stderr] Compiling icu_provider v2.2.0 [INFO] [stderr] Compiling icu_normalizer v2.2.0 [INFO] [stderr] Compiling icu_properties v2.2.0 [INFO] [stderr] Compiling usage-monitor-core v0.1.0 (/opt/rustwide/workdir/crates/usage-monitor-core) [INFO] [stderr] Compiling darling_macro v0.23.0 [INFO] [stderr] Compiling http-body-util v0.1.3 [INFO] [stderr] Compiling futures-channel v0.3.32 [INFO] [stderr] Compiling atomic-waker v1.1.2 [INFO] [stderr] Compiling linux-raw-sys v0.4.15 [INFO] [stderr] Compiling utf8parse v0.2.2 [INFO] [stderr] Compiling paste v1.0.15 [INFO] [stderr] Compiling allocator-api2 v0.2.21 [INFO] [stderr] Compiling idna_adapter v1.2.2 [INFO] [stderr] Compiling idna v1.1.0 [INFO] [stderr] Compiling base64 v0.22.1 [INFO] [stderr] Compiling sync_wrapper v1.0.2 [INFO] [stderr] Compiling foldhash v0.1.5 [INFO] [stderr] Compiling url v2.5.8 [INFO] [stderr] Compiling anyhow v1.0.102 [INFO] [stderr] Compiling either v1.15.0 [INFO] [stderr] Compiling instability v0.3.12 [INFO] [stderr] Compiling itertools v0.13.0 [INFO] [stderr] Compiling hashbrown v0.15.5 [INFO] [stderr] Compiling hyper v1.9.0 [INFO] [stderr] Compiling rustls-webpki v0.103.13 [INFO] [stderr] Compiling anstyle-parse v1.0.0 [INFO] [stderr] Compiling darling v0.23.0 [INFO] [stderr] Compiling signal-hook-mio v0.2.5 [INFO] [stderr] Compiling strum_macros v0.26.4 [INFO] [stderr] Compiling async-trait v0.1.89 [INFO] [stderr] Compiling castaway v0.2.4 [INFO] [stderr] Compiling is-docker v0.2.0 [INFO] [stderr] Compiling anstyle-query v1.1.5 [INFO] [stderr] Compiling futures-sink v0.3.32 [INFO] [stderr] Compiling static_assertions v1.1.0 [INFO] [stderr] Compiling unicode-width v0.1.14 [INFO] [stderr] Compiling unicode-segmentation v1.13.2 [INFO] [stderr] Compiling colorchoice v1.0.5 [INFO] [stderr] Compiling indoc v2.0.7 [INFO] [stderr] Compiling is_terminal_polyfill v1.70.2 [INFO] [stderr] Compiling hashbrown v0.17.0 [INFO] [stderr] Compiling anstyle v1.0.14 [INFO] [stderr] Compiling strum v0.26.3 [INFO] [stderr] Compiling anstream v1.0.0 [INFO] [stderr] Compiling unicode-truncate v1.1.0 [INFO] [stderr] Compiling compact_str v0.8.1 [INFO] [stderr] Compiling tokio-util v0.7.18 [INFO] [stderr] Compiling is-wsl v0.4.0 [INFO] [stderr] Compiling axum-core v0.4.5 [INFO] [stderr] Compiling indexmap v2.14.0 [INFO] [stderr] Compiling crossterm v0.28.1 [INFO] [stderr] Compiling hyper-util v0.1.20 [INFO] [stderr] Compiling lru v0.12.5 [INFO] [stderr] Compiling tower v0.5.3 [INFO] [stderr] Compiling toml_datetime v0.6.11 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling serde_spanned v0.6.9 [INFO] [stderr] Compiling serde_path_to_error v0.1.20 [INFO] [stderr] Compiling pathdiff v0.2.3 [INFO] [stderr] Compiling winnow v0.7.15 [INFO] [stderr] Compiling toml_write v0.1.2 [INFO] [stderr] Compiling ureq v2.12.1 [INFO] [stderr] Compiling clap_lex v1.1.0 [INFO] [stderr] Compiling cassowary v0.3.0 [INFO] [stderr] Compiling matchit v0.7.3 [INFO] [stderr] Compiling http-range-header v0.4.2 [INFO] [stderr] Compiling tower-http v0.5.2 [INFO] [stderr] Compiling toml_edit v0.22.27 [INFO] [stderr] Compiling axum v0.7.9 [INFO] [stderr] Compiling clap_builder v4.6.0 [INFO] [stderr] Compiling ratatui v0.28.1 [INFO] [stderr] Compiling open v5.3.4 [INFO] [stderr] Compiling clap_derive v4.6.1 [INFO] [stderr] Compiling tower v0.4.13 [INFO] [stderr] Compiling clap v4.6.1 [INFO] [stderr] Compiling toml v0.8.23 [INFO] [stderr] Compiling rusqlite v0.31.0 [INFO] [stderr] Compiling usage-monitor-storage v0.1.0 (/opt/rustwide/workdir/crates/usage-monitor-storage) [INFO] [stderr] Compiling usage-monitor-pricing v0.1.0 (/opt/rustwide/workdir/crates/usage-monitor-pricing) [INFO] [stderr] Compiling usage-monitor-parsers v0.1.0 (/opt/rustwide/workdir/crates/usage-monitor-parsers) [INFO] [stderr] Compiling usage-monitor-cc-switch v0.1.0 (/opt/rustwide/workdir/crates/usage-monitor-cc-switch) [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> crates/usage-monitor-pricing/src/lib.rs:33:13 [INFO] [stdout] | [INFO] [stdout] 33 | let mut engine = Self { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling usage-monitor-tui v0.1.0 (/opt/rustwide/workdir/crates/usage-monitor-tui) [INFO] [stdout] warning: unused import: `Direction` [INFO] [stdout] --> crates/usage-monitor-tui/src/lib.rs:18:37 [INFO] [stdout] | [INFO] [stdout] 18 | layout::{Alignment, Constraint, Direction, Layout, Margin, Rect}, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `color` [INFO] [stdout] --> crates/usage-monitor-tui/src/lib.rs:73:18 [INFO] [stdout] | [INFO] [stdout] 73 | let (color,_)=self.model_shade.get(&x.model_id).copied().unwrap_or((Color::Gray,0)); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_color` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `list_h` [INFO] [stdout] --> crates/usage-monitor-tui/src/lib.rs:193:9 [INFO] [stdout] | [INFO] [stdout] 193 | let list_h=area.height.saturating_sub(kpi_h+chart_h+legend_h+2); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_list_h` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `end` [INFO] [stdout] --> crates/usage-monitor-tui/src/lib.rs:288:9 [INFO] [stdout] | [INFO] [stdout] 288 | let end=(app.scroll+22).min(app.daily.len()); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_end` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `provider` and `requests` are never read [INFO] [stdout] --> crates/usage-monitor-tui/src/lib.rs:38:37 [INFO] [stdout] | [INFO] [stdout] 38 | ...ct ModelRow { model_id: String, provider: String, input: i64, output: i64, cache_read: i64, cache_write: i64, sessions: usize, requests: u... [INFO] [stdout] | -------- ^^^^^^^^ ^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this struct [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> crates/usage-monitor-tui/src/lib.rs:40:18 [INFO] [stdout] | [INFO] [stdout] 40 | struct SessRow { session_id: String, client: String, model_id: String, tokens: i64, cache_read: i64, messages: usize, cost: f64 } [INFO] [stdout] | ------- ^^^^^^^^^^ ^^^^^^ ^^^^^^^^ ^^^^^^ ^^^^^^^^^^ ^^^^^^^^ ^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this struct [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `format_cache_hit_rate` is never used [INFO] [stdout] --> crates/usage-monitor-tui/src/widgets.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn format_cache_hit_rate(cache_read: u64, input: u64, cache_write: u64) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_model_color` is never used [INFO] [stdout] --> crates/usage-monitor-tui/src/widgets.rs:44:8 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn get_model_color(model: &str) -> Color { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling usage-monitor-web v0.1.0 (/opt/rustwide/workdir/crates/usage-monitor-web) [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> crates/usage-monitor-web/src/lib.rs:135:9 [INFO] [stdout] | [INFO] [stdout] 135 | let mut total_cost = 0.0; [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `db_path` is never read [INFO] [stdout] --> crates/usage-monitor-web/src/lib.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 23 | struct AppState { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 26 | db_path: PathBuf, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AppState` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SummaryResponse` is never constructed [INFO] [stdout] --> crates/usage-monitor-web/src/lib.rs:31:8 [INFO] [stdout] | [INFO] [stdout] 31 | struct SummaryResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling usage-monitor v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished `release` profile [optimized] target(s) in 5m 49s [INFO] running `Command { std: "docker" "inspect" "cd3adc1785af16a8459cbd9521bec63d5574cbe90b1a728aaa7df832d0679bb8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-w" "/opt/rustwide/workdir" "--user" "0:0" "cd3adc1785af16a8459cbd9521bec63d5574cbe90b1a728aaa7df832d0679bb8" "/opt/rustwide/cargo-home/bin/cargo" "+1.100.0-beta.1" "test" "--frozen" "--no-run" "--message-format=json" "--release", kill_on_drop: false }` [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> crates/usage-monitor-pricing/src/lib.rs:33:13 [INFO] [stdout] | [INFO] [stdout] 33 | let mut engine = Self { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling usage-monitor v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Direction` [INFO] [stdout] --> crates/usage-monitor-tui/src/lib.rs:18:37 [INFO] [stdout] | [INFO] [stdout] 18 | layout::{Alignment, Constraint, Direction, Layout, Margin, Rect}, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `color` [INFO] [stdout] --> crates/usage-monitor-tui/src/lib.rs:73:18 [INFO] [stdout] | [INFO] [stdout] 73 | let (color,_)=self.model_shade.get(&x.model_id).copied().unwrap_or((Color::Gray,0)); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_color` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `list_h` [INFO] [stdout] --> crates/usage-monitor-tui/src/lib.rs:193:9 [INFO] [stdout] | [INFO] [stdout] 193 | let list_h=area.height.saturating_sub(kpi_h+chart_h+legend_h+2); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_list_h` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `end` [INFO] [stdout] --> crates/usage-monitor-tui/src/lib.rs:288:9 [INFO] [stdout] | [INFO] [stdout] 288 | let end=(app.scroll+22).min(app.daily.len()); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_end` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `provider` and `requests` are never read [INFO] [stdout] --> crates/usage-monitor-tui/src/lib.rs:38:37 [INFO] [stdout] | [INFO] [stdout] 38 | ...ct ModelRow { model_id: String, provider: String, input: i64, output: i64, cache_read: i64, cache_write: i64, sessions: usize, requests: u... [INFO] [stdout] | -------- ^^^^^^^^ ^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this struct [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> crates/usage-monitor-tui/src/lib.rs:40:18 [INFO] [stdout] | [INFO] [stdout] 40 | struct SessRow { session_id: String, client: String, model_id: String, tokens: i64, cache_read: i64, messages: usize, cost: f64 } [INFO] [stdout] | ------- ^^^^^^^^^^ ^^^^^^ ^^^^^^^^ ^^^^^^ ^^^^^^^^^^ ^^^^^^^^ ^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this struct [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `format_cache_hit_rate` is never used [INFO] [stdout] --> crates/usage-monitor-tui/src/widgets.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn format_cache_hit_rate(cache_read: u64, input: u64, cache_write: u64) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_model_color` is never used [INFO] [stdout] --> crates/usage-monitor-tui/src/widgets.rs:44:8 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn get_model_color(model: &str) -> Color { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> crates/usage-monitor-web/src/lib.rs:135:9 [INFO] [stdout] | [INFO] [stdout] 135 | let mut total_cost = 0.0; [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `db_path` is never read [INFO] [stdout] --> crates/usage-monitor-web/src/lib.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 23 | struct AppState { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 26 | db_path: PathBuf, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AppState` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SummaryResponse` is never constructed [INFO] [stdout] --> crates/usage-monitor-web/src/lib.rs:31:8 [INFO] [stdout] | [INFO] [stdout] 31 | struct SummaryResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `release` profile [optimized] target(s) in 2.53s [INFO] running `Command { std: "docker" "inspect" "cd3adc1785af16a8459cbd9521bec63d5574cbe90b1a728aaa7df832d0679bb8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-w" "/opt/rustwide/workdir" "--user" "0:0" "cd3adc1785af16a8459cbd9521bec63d5574cbe90b1a728aaa7df832d0679bb8" "/opt/rustwide/cargo-home/bin/cargo" "+1.100.0-beta.1" "test" "--frozen" "--release", kill_on_drop: false }` [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> crates/usage-monitor-pricing/src/lib.rs:33:13 [INFO] [stderr] | [INFO] [stderr] 33 | let mut engine = Self { [INFO] [stderr] | ----^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: `usage-monitor-pricing` (lib) generated 1 warning (run `cargo fix --lib -p usage-monitor-pricing` to apply 1 suggestion) [INFO] [stderr] warning: unused import: `Direction` [INFO] [stderr] --> crates/usage-monitor-tui/src/lib.rs:18:37 [INFO] [stderr] | [INFO] [stderr] 18 | layout::{Alignment, Constraint, Direction, Layout, Margin, Rect}, [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `color` [INFO] [stderr] --> crates/usage-monitor-tui/src/lib.rs:73:18 [INFO] [stderr] | [INFO] [stderr] 73 | let (color,_)=self.model_shade.get(&x.model_id).copied().unwrap_or((Color::Gray,0)); [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_color` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `list_h` [INFO] [stderr] --> crates/usage-monitor-tui/src/lib.rs:193:9 [INFO] [stderr] | [INFO] [stderr] 193 | let list_h=area.height.saturating_sub(kpi_h+chart_h+legend_h+2); [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_list_h` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `end` [INFO] [stderr] --> crates/usage-monitor-tui/src/lib.rs:288:9 [INFO] [stderr] | [INFO] [stderr] 288 | let end=(app.scroll+22).min(app.daily.len()); [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_end` [INFO] [stderr] [INFO] [stderr] warning: fields `provider` and `requests` are never read [INFO] [stderr] --> crates/usage-monitor-tui/src/lib.rs:38:37 [INFO] [stderr] | [INFO] [stderr] 38 | ...ct ModelRow { model_id: String, provider: String, input: i64, output: i64, cache_read: i64, cache_write: i64, sessions: usize, requests: u... [INFO] [stderr] | -------- ^^^^^^^^ ^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | fields in this struct [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: multiple fields are never read [INFO] [stderr] --> crates/usage-monitor-tui/src/lib.rs:40:18 [INFO] [stderr] | [INFO] [stderr] 40 | struct SessRow { session_id: String, client: String, model_id: String, tokens: i64, cache_read: i64, messages: usize, cost: f64 } [INFO] [stderr] | ------- ^^^^^^^^^^ ^^^^^^ ^^^^^^^^ ^^^^^^ ^^^^^^^^^^ ^^^^^^^^ ^^^^ [INFO] [stderr] | | [INFO] [stderr] | fields in this struct [INFO] [stderr] [INFO] [stderr] warning: function `format_cache_hit_rate` is never used [INFO] [stderr] --> crates/usage-monitor-tui/src/widgets.rs:19:8 [INFO] [stderr] | [INFO] [stderr] 19 | pub fn format_cache_hit_rate(cache_read: u64, input: u64, cache_write: u64) -> String { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `get_model_color` is never used [INFO] [stderr] --> crates/usage-monitor-tui/src/widgets.rs:44:8 [INFO] [stderr] | [INFO] [stderr] 44 | pub fn get_model_color(model: &str) -> Color { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `usage-monitor-tui` (lib) generated 8 warnings (run `cargo fix --lib -p usage-monitor-tui` to apply 4 suggestions) [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> crates/usage-monitor-web/src/lib.rs:135:9 [INFO] [stderr] | [INFO] [stderr] 135 | let mut total_cost = 0.0; [INFO] [stderr] | ----^^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: field `db_path` is never read [INFO] [stderr] --> crates/usage-monitor-web/src/lib.rs:26:5 [INFO] [stderr] | [INFO] [stderr] 23 | struct AppState { [INFO] [stderr] | -------- field in this struct [INFO] [stderr] ... [INFO] [stderr] 26 | db_path: PathBuf, [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `AppState` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: struct `SummaryResponse` is never constructed [INFO] [stderr] --> crates/usage-monitor-web/src/lib.rs:31:8 [INFO] [stderr] | [INFO] [stderr] 31 | struct SummaryResponse { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `usage-monitor-web` (lib) generated 3 warnings (run `cargo fix --lib -p usage-monitor-web` to apply 1 suggestion) [INFO] [stderr] Finished `release` profile [optimized] target(s) in 0.26s [INFO] [stdout] [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/release/build/usage-monitor/337123026258192f/out/usage_monitor-337123026258192f) [INFO] [stdout] running 4 tests [INFO] [stdout] test tests::config_default_all_none ... ok [INFO] [stdout] test tests::config_deserialize_from_toml ... ok [INFO] [stdout] test tests::config_from_empty_is_default ... ok [INFO] [stdout] test tests::config_partial_toml ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 4 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "cd3adc1785af16a8459cbd9521bec63d5574cbe90b1a728aaa7df832d0679bb8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cd3adc1785af16a8459cbd9521bec63d5574cbe90b1a728aaa7df832d0679bb8", kill_on_drop: false }` [INFO] [stdout] cd3adc1785af16a8459cbd9521bec63d5574cbe90b1a728aaa7df832d0679bb8