[INFO] cloning repository https://github.com/MissBlue00/mini-starknet-indexer-rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/MissBlue00/mini-starknet-indexer-rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMissBlue00%2Fmini-starknet-indexer-rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMissBlue00%2Fmini-starknet-indexer-rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] dcd817f96381c9abb5778be42c254a51918c316b [INFO] building MissBlue00/mini-starknet-indexer-rs against master#c7f6aa2869acdbf014d094c6e427e554e160b6db for pr-146237-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMissBlue00%2Fmini-starknet-indexer-rs" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/MissBlue00/mini-starknet-indexer-rs [INFO] finished tweaking git repo https://github.com/MissBlue00/mini-starknet-indexer-rs [INFO] tweaked toml for git repo https://github.com/MissBlue00/mini-starknet-indexer-rs written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/MissBlue00/mini-starknet-indexer-rs on toolchain c7f6aa2869acdbf014d094c6e427e554e160b6db [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/MissBlue00/mini-starknet-indexer-rs 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" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded pest_meta v2.8.1 [INFO] [stderr] Downloaded ascii_utils v0.9.3 [INFO] [stderr] Downloaded static_assertions_next v1.1.2 [INFO] [stderr] Downloaded async-graphql-value v7.0.17 [INFO] [stderr] Downloaded pest_derive v2.8.1 [INFO] [stderr] Downloaded async-graphql-derive v7.0.17 [INFO] [stderr] Downloaded async-graphql-parser v7.0.17 [INFO] [stderr] Downloaded fast_chemail v0.9.6 [INFO] [stderr] Downloaded handlebars v5.1.2 [INFO] [stderr] Downloaded pest_generator v2.8.1 [INFO] [stderr] Downloaded async-graphql-axum v7.0.17 [INFO] [stderr] Downloaded pest v2.8.1 [INFO] [stderr] Downloaded axum v0.8.4 [INFO] [stderr] Downloaded async-graphql v7.0.17 [INFO] [stderr] Downloaded tokio v1.47.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 6b6657f8909ef9d5f4e6b54cdbe73930b52cd6829421bcaac11c7e48e60deaac [INFO] running `Command { std: "docker" "start" "-a" "6b6657f8909ef9d5f4e6b54cdbe73930b52cd6829421bcaac11c7e48e60deaac", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "6b6657f8909ef9d5f4e6b54cdbe73930b52cd6829421bcaac11c7e48e60deaac", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6b6657f8909ef9d5f4e6b54cdbe73930b52cd6829421bcaac11c7e48e60deaac", kill_on_drop: false }` [INFO] [stdout] 6b6657f8909ef9d5f4e6b54cdbe73930b52cd6829421bcaac11c7e48e60deaac [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 30a2077b55913d89a2f6536828f0df1b0e1182c42d2250e067bbd8e1b3c9f362 [INFO] running `Command { std: "docker" "start" "-a" "30a2077b55913d89a2f6536828f0df1b0e1182c42d2250e067bbd8e1b3c9f362", kill_on_drop: false }` [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling smallvec v1.15.1 [INFO] [stderr] Compiling signal-hook-registry v1.4.5 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling cc v1.2.30 [INFO] [stderr] Compiling serde_json v1.0.142 [INFO] [stderr] Compiling bitflags v2.9.1 [INFO] [stderr] Compiling getrandom v0.3.3 [INFO] [stderr] Compiling ahash v0.8.12 [INFO] [stderr] Compiling thiserror v2.0.12 [INFO] [stderr] Compiling thiserror-impl v2.0.12 [INFO] [stderr] Compiling rustversion v1.0.21 [INFO] [stderr] Compiling spin v0.9.8 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling ucd-trie v0.1.7 [INFO] [stderr] Compiling rustix v1.0.8 [INFO] [stderr] Compiling icu_normalizer v2.0.0 [INFO] [stderr] Compiling parking_lot_core v0.9.11 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Compiling linux-raw-sys v0.9.4 [INFO] [stderr] Compiling crc v3.3.0 [INFO] [stderr] Compiling parking_lot v0.12.4 [INFO] [stderr] Compiling sha2 v0.10.9 [INFO] [stderr] Compiling rand_core v0.9.3 [INFO] [stderr] Compiling idna_adapter v1.2.1 [INFO] [stderr] Compiling idna v1.0.3 [INFO] [stderr] Compiling hashbrown v0.14.5 [INFO] [stderr] Compiling sync_wrapper v1.0.2 [INFO] [stderr] Compiling darling_core v0.20.11 [INFO] [stderr] Compiling rand_chacha v0.9.0 [INFO] [stderr] Compiling url v2.5.4 [INFO] [stderr] Compiling atoi v2.0.0 [INFO] [stderr] Compiling chrono v0.4.41 [INFO] [stderr] Compiling futures-intrusive v0.5.0 [INFO] [stderr] Compiling openssl-sys v0.9.109 [INFO] [stderr] Compiling libsqlite3-sys v0.27.0 [INFO] [stderr] Compiling hashlink v0.8.4 [INFO] [stderr] Compiling pest v2.8.1 [INFO] [stderr] Compiling winnow v0.7.12 [INFO] [stderr] Compiling byteorder v1.5.0 [INFO] [stderr] Compiling toml_datetime v0.6.11 [INFO] [stderr] Compiling urlencoding v2.1.3 [INFO] [stderr] Compiling rand v0.9.2 [INFO] [stderr] Compiling strum_macros v0.26.4 [INFO] [stderr] Compiling openssl v0.10.73 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Compiling sqlformat v0.2.6 [INFO] [stderr] Compiling flume v0.11.1 [INFO] [stderr] Compiling multer v3.1.0 [INFO] [stderr] Compiling lazy_static v1.5.0 [INFO] [stderr] Compiling Inflector v0.11.4 [INFO] [stderr] Compiling futures-executor v0.3.31 [INFO] [stderr] Compiling tempfile v3.20.0 [INFO] [stderr] Compiling async-stream-impl v0.3.6 [INFO] [stderr] Compiling dotenvy v0.15.7 [INFO] [stderr] Compiling ascii_utils v0.9.3 [INFO] [stderr] Compiling fast_chemail v0.9.6 [INFO] [stderr] Compiling async-stream v0.3.6 [INFO] [stderr] Compiling bytes v1.10.1 [INFO] [stderr] Compiling indexmap v2.10.0 [INFO] [stderr] Compiling either v1.15.0 [INFO] [stderr] Compiling pest_meta v2.8.1 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling serde_path_to_error v0.1.17 [INFO] [stderr] Compiling matchit v0.8.4 [INFO] [stderr] Compiling static_assertions_next v1.1.2 [INFO] [stderr] Compiling futures-timer v3.0.3 [INFO] [stderr] Compiling futures v0.3.31 [INFO] [stderr] Compiling uuid v1.18.0 [INFO] [stderr] Compiling tokio v1.47.0 [INFO] [stderr] Compiling http v1.3.1 [INFO] [stderr] Compiling http v0.2.12 [INFO] [stderr] Compiling darling_macro v0.20.11 [INFO] [stderr] Compiling darling v0.20.11 [INFO] [stderr] Compiling strum v0.26.3 [INFO] [stderr] Compiling async-graphql-value v7.0.17 [INFO] [stderr] Compiling pest_generator v2.8.1 [INFO] [stderr] Compiling toml_edit v0.22.27 [INFO] [stderr] Compiling http-body v0.4.6 [INFO] [stderr] Compiling http-body v1.0.1 [INFO] [stderr] Compiling tungstenite v0.26.2 [INFO] [stderr] Compiling http-body-util v0.1.3 [INFO] [stderr] Compiling tungstenite v0.21.0 [INFO] [stderr] Compiling async-graphql-parser v7.0.17 [INFO] [stderr] Compiling axum-core v0.5.2 [INFO] [stderr] Compiling axum-core v0.4.5 [INFO] [stderr] Compiling tower-http v0.5.2 [INFO] [stderr] Compiling pest_derive v2.8.1 [INFO] [stderr] Compiling handlebars v5.1.2 [INFO] [stderr] Compiling proc-macro-crate v3.3.0 [INFO] [stderr] Compiling async-graphql-derive v7.0.17 [INFO] [stderr] Compiling tokio-stream v0.1.17 [INFO] [stderr] Compiling sqlx-core v0.7.4 [INFO] [stderr] Compiling tokio-util v0.7.15 [INFO] [stderr] Compiling hyper v1.6.0 [INFO] [stderr] Compiling tower v0.5.2 [INFO] [stderr] Compiling tokio-tungstenite v0.26.2 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling tokio-tungstenite v0.21.0 [INFO] [stderr] Compiling h2 v0.3.27 [INFO] [stderr] Compiling hyper-util v0.1.16 [INFO] [stderr] Compiling axum v0.8.4 [INFO] [stderr] Compiling axum v0.7.9 [INFO] [stderr] Compiling sqlx-sqlite v0.7.4 [INFO] [stderr] Compiling sqlx-macros-core v0.7.4 [INFO] [stderr] Compiling hyper v0.14.32 [INFO] [stderr] Compiling async-graphql v7.0.17 [INFO] [stderr] Compiling sqlx-macros v0.7.4 [INFO] [stderr] Compiling sqlx v0.7.4 [INFO] [stderr] Compiling hyper-tls v0.5.0 [INFO] [stderr] Compiling reqwest v0.11.27 [INFO] [stderr] Compiling async-graphql-axum v7.0.17 [INFO] [stderr] Compiling mini-starknet-indexer-rs v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `Duration` and `Instant` [INFO] [stdout] --> src/billing.rs:4:17 [INFO] [stdout] | [INFO] [stdout] 4 | use std::time::{Duration, Instant}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `StarknetRpcRequest` is never constructed [INFO] [stdout] --> src/main.rs:137:8 [INFO] [stdout] | [INFO] [stdout] 137 | struct StarknetRpcRequest { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `StarknetEvent` is never constructed [INFO] [stdout] --> src/main.rs:146:8 [INFO] [stdout] | [INFO] [stdout] 146 | struct StarknetEvent { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `StarknetEventsResult` is never constructed [INFO] [stdout] --> src/main.rs:160:8 [INFO] [stdout] | [INFO] [stdout] 160 | struct StarknetEventsResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `StarknetRpcResponse` is never constructed [INFO] [stdout] --> src/main.rs:169:8 [INFO] [stdout] | [INFO] [stdout] 169 | struct StarknetRpcResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `StarknetRpcError` is never constructed [INFO] [stdout] --> src/main.rs:176:8 [INFO] [stdout] | [INFO] [stdout] 176 | struct StarknetRpcError { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ContractAbi` is never constructed [INFO] [stdout] --> src/main.rs:184:8 [INFO] [stdout] | [INFO] [stdout] 184 | struct ContractAbi { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AbiInput` is never constructed [INFO] [stdout] --> src/main.rs:192:8 [INFO] [stdout] | [INFO] [stdout] 192 | struct AbiInput { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ContractClass` is never constructed [INFO] [stdout] --> src/main.rs:199:8 [INFO] [stdout] | [INFO] [stdout] 199 | struct ContractClass { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DecodedEvent` is never constructed [INFO] [stdout] --> src/main.rs:209:8 [INFO] [stdout] | [INFO] [stdout] 209 | struct DecodedEvent { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `calculate_cpu_units`, `calculate_cpu_cost`, and `track_cpu_usage` are never used [INFO] [stdout] --> src/billing.rs:194:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl BillingService { [INFO] [stdout] | ------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 194 | pub fn calculate_cpu_units(&self, cpu_time_ms: i32, memory_usage_mb: f64, complexity_factor: f64) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 211 | pub async fn calculate_cpu_cost(&self, cpu_units: i32) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 227 | pub async fn track_cpu_usage( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `deployment_id` and `user_id` are never read [INFO] [stdout] --> src/billing_context.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct BillingContext { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 8 | pub api_call_id: String, [INFO] [stdout] 9 | pub deployment_id: Option, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 10 | pub user_id: Option, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `track_cpu_usage`, `complete_api_call`, and `get_api_call_id` are never used [INFO] [stdout] --> src/billing_context.rs:65:18 [INFO] [stdout] | [INFO] [stdout] 15 | impl BillingContext { [INFO] [stdout] | ------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 65 | pub async fn track_cpu_usage( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 93 | pub async fn complete_api_call(&self, status_code: i32) -> Result<(), sqlx::Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 102 | pub fn get_api_call_id(&self) -> &str { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SubscriptionEvent` is never constructed [INFO] [stdout] --> src/graphql/types.rs:55:12 [INFO] [stdout] | [INFO] [stdout] 55 | pub struct SubscriptionEvent { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Block` is never constructed [INFO] [stdout] --> src/graphql/types.rs:66:12 [INFO] [stdout] | [INFO] [stdout] 66 | pub struct Block { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Transaction` is never constructed [INFO] [stdout] --> src/graphql/types.rs:74:12 [INFO] [stdout] | [INFO] [stdout] 74 | pub struct Transaction { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CpuUsageRecord` is never constructed [INFO] [stdout] --> src/database.rs:107:12 [INFO] [stdout] | [INFO] [stdout] 107 | pub struct CpuUsageRecord { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_contracts_by_deployment`, `count_deployment_contracts`, `get_cpu_pricing_tier_by_cpu_units`, and `insert_cpu_usage_record` are never used [INFO] [stdout] --> src/database.rs:1464:18 [INFO] [stdout] | [INFO] [stdout] 121 | impl Database { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 1464 | pub async fn get_contracts_by_deployment(&self, deployment_id: &str) -> Result, sqlx::Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1468 | pub async fn count_deployment_contracts(&self, deployment_id: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1649 | pub async fn get_cpu_pricing_tier_by_cpu_units(&self, cpu_units: i32) -> Result, sqlx::Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1681 | pub async fn insert_cpu_usage_record(&self, usage: &CpuUsageRecord) -> Result<(), sqlx::Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `start_syncing_deployment` is never used [INFO] [stdout] --> src/indexer.rs:115:18 [INFO] [stdout] | [INFO] [stdout] 61 | impl MultiContractIndexer { [INFO] [stdout] | ------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 115 | pub async fn start_syncing_deployment(&self, deployment_id: &str) -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `parse_permissions` and `has_permission` are never used [INFO] [stdout] --> src/api_key_service.rs:142:12 [INFO] [stdout] | [INFO] [stdout] 14 | impl ApiKeyService { [INFO] [stdout] | ------------------ associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 142 | pub fn parse_permissions(permissions_json: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 147 | pub fn has_permission( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AuthContext` is never constructed [INFO] [stdout] --> src/auth_middleware.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct AuthContext { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `auth_middleware` is never used [INFO] [stdout] --> src/auth_middleware.rs:19:14 [INFO] [stdout] | [INFO] [stdout] 19 | pub async fn auth_middleware( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_auth_context` is never used [INFO] [stdout] --> src/auth_middleware.rs:99:8 [INFO] [stdout] | [INFO] [stdout] 99 | pub fn get_auth_context(request: &Request) -> Option<&AuthContext> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_authorized` is never used [INFO] [stdout] --> src/auth_middleware.rs:104:8 [INFO] [stdout] | [INFO] [stdout] 104 | pub fn is_authorized(request: &Request) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_deployment_id` is never used [INFO] [stdout] --> src/auth_middleware.rs:109:8 [INFO] [stdout] | [INFO] [stdout] 109 | pub fn get_deployment_id(request: &Request) -> Option<&str> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_api_key_id` is never used [INFO] [stdout] --> src/auth_middleware.rs:114:8 [INFO] [stdout] | [INFO] [stdout] 114 | pub fn get_api_key_id(request: &Request) -> Option<&str> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2m 02s [INFO] running `Command { std: "docker" "inspect" "30a2077b55913d89a2f6536828f0df1b0e1182c42d2250e067bbd8e1b3c9f362", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "30a2077b55913d89a2f6536828f0df1b0e1182c42d2250e067bbd8e1b3c9f362", kill_on_drop: false }` [INFO] [stdout] 30a2077b55913d89a2f6536828f0df1b0e1182c42d2250e067bbd8e1b3c9f362 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] faf8f8a94a2e91e59e38861e3d274bb546ccb53d1e47b95704e74d56da69660d [INFO] running `Command { std: "docker" "start" "-a" "faf8f8a94a2e91e59e38861e3d274bb546ccb53d1e47b95704e74d56da69660d", kill_on_drop: false }` [INFO] [stderr] Compiling mini-starknet-indexer-rs v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `Duration` and `Instant` [INFO] [stdout] --> src/billing.rs:4:17 [INFO] [stdout] | [INFO] [stdout] 4 | use std::time::{Duration, Instant}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `StarknetRpcRequest` is never constructed [INFO] [stdout] --> src/main.rs:137:8 [INFO] [stdout] | [INFO] [stdout] 137 | struct StarknetRpcRequest { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `StarknetEvent` is never constructed [INFO] [stdout] --> src/main.rs:146:8 [INFO] [stdout] | [INFO] [stdout] 146 | struct StarknetEvent { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `StarknetEventsResult` is never constructed [INFO] [stdout] --> src/main.rs:160:8 [INFO] [stdout] | [INFO] [stdout] 160 | struct StarknetEventsResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `StarknetRpcResponse` is never constructed [INFO] [stdout] --> src/main.rs:169:8 [INFO] [stdout] | [INFO] [stdout] 169 | struct StarknetRpcResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `StarknetRpcError` is never constructed [INFO] [stdout] --> src/main.rs:176:8 [INFO] [stdout] | [INFO] [stdout] 176 | struct StarknetRpcError { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ContractAbi` is never constructed [INFO] [stdout] --> src/main.rs:184:8 [INFO] [stdout] | [INFO] [stdout] 184 | struct ContractAbi { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AbiInput` is never constructed [INFO] [stdout] --> src/main.rs:192:8 [INFO] [stdout] | [INFO] [stdout] 192 | struct AbiInput { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ContractClass` is never constructed [INFO] [stdout] --> src/main.rs:199:8 [INFO] [stdout] | [INFO] [stdout] 199 | struct ContractClass { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DecodedEvent` is never constructed [INFO] [stdout] --> src/main.rs:209:8 [INFO] [stdout] | [INFO] [stdout] 209 | struct DecodedEvent { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `calculate_cpu_units`, `calculate_cpu_cost`, and `track_cpu_usage` are never used [INFO] [stdout] --> src/billing.rs:194:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl BillingService { [INFO] [stdout] | ------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 194 | pub fn calculate_cpu_units(&self, cpu_time_ms: i32, memory_usage_mb: f64, complexity_factor: f64) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 211 | pub async fn calculate_cpu_cost(&self, cpu_units: i32) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 227 | pub async fn track_cpu_usage( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `deployment_id` and `user_id` are never read [INFO] [stdout] --> src/billing_context.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct BillingContext { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 8 | pub api_call_id: String, [INFO] [stdout] 9 | pub deployment_id: Option, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 10 | pub user_id: Option, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `track_cpu_usage`, `complete_api_call`, and `get_api_call_id` are never used [INFO] [stdout] --> src/billing_context.rs:65:18 [INFO] [stdout] | [INFO] [stdout] 15 | impl BillingContext { [INFO] [stdout] | ------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 65 | pub async fn track_cpu_usage( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 93 | pub async fn complete_api_call(&self, status_code: i32) -> Result<(), sqlx::Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 102 | pub fn get_api_call_id(&self) -> &str { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SubscriptionEvent` is never constructed [INFO] [stdout] --> src/graphql/types.rs:55:12 [INFO] [stdout] | [INFO] [stdout] 55 | pub struct SubscriptionEvent { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Block` is never constructed [INFO] [stdout] --> src/graphql/types.rs:66:12 [INFO] [stdout] | [INFO] [stdout] 66 | pub struct Block { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Transaction` is never constructed [INFO] [stdout] --> src/graphql/types.rs:74:12 [INFO] [stdout] | [INFO] [stdout] 74 | pub struct Transaction { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CpuUsageRecord` is never constructed [INFO] [stdout] --> src/database.rs:107:12 [INFO] [stdout] | [INFO] [stdout] 107 | pub struct CpuUsageRecord { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_contracts_by_deployment`, `count_deployment_contracts`, `get_cpu_pricing_tier_by_cpu_units`, and `insert_cpu_usage_record` are never used [INFO] [stdout] --> src/database.rs:1464:18 [INFO] [stdout] | [INFO] [stdout] 121 | impl Database { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 1464 | pub async fn get_contracts_by_deployment(&self, deployment_id: &str) -> Result, sqlx::Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1468 | pub async fn count_deployment_contracts(&self, deployment_id: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1649 | pub async fn get_cpu_pricing_tier_by_cpu_units(&self, cpu_units: i32) -> Result, sqlx::Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1681 | pub async fn insert_cpu_usage_record(&self, usage: &CpuUsageRecord) -> Result<(), sqlx::Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `start_syncing_deployment` is never used [INFO] [stdout] --> src/indexer.rs:115:18 [INFO] [stdout] | [INFO] [stdout] 61 | impl MultiContractIndexer { [INFO] [stdout] | ------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 115 | pub async fn start_syncing_deployment(&self, deployment_id: &str) -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AuthContext` is never constructed [INFO] [stdout] --> src/auth_middleware.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct AuthContext { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `auth_middleware` is never used [INFO] [stdout] --> src/auth_middleware.rs:19:14 [INFO] [stdout] | [INFO] [stdout] 19 | pub async fn auth_middleware( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_auth_context` is never used [INFO] [stdout] --> src/auth_middleware.rs:99:8 [INFO] [stdout] | [INFO] [stdout] 99 | pub fn get_auth_context(request: &Request) -> Option<&AuthContext> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_authorized` is never used [INFO] [stdout] --> src/auth_middleware.rs:104:8 [INFO] [stdout] | [INFO] [stdout] 104 | pub fn is_authorized(request: &Request) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_deployment_id` is never used [INFO] [stdout] --> src/auth_middleware.rs:109:8 [INFO] [stdout] | [INFO] [stdout] 109 | pub fn get_deployment_id(request: &Request) -> Option<&str> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_api_key_id` is never used [INFO] [stdout] --> src/auth_middleware.rs:114:8 [INFO] [stdout] | [INFO] [stdout] 114 | pub fn get_api_key_id(request: &Request) -> Option<&str> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 17.69s [INFO] running `Command { std: "docker" "inspect" "faf8f8a94a2e91e59e38861e3d274bb546ccb53d1e47b95704e74d56da69660d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "faf8f8a94a2e91e59e38861e3d274bb546ccb53d1e47b95704e74d56da69660d", kill_on_drop: false }` [INFO] [stdout] faf8f8a94a2e91e59e38861e3d274bb546ccb53d1e47b95704e74d56da69660d