[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#ad85bc524b1ad696e42061ad8338d382dffbdbe5 for pr-146237-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMissBlue00%2Fmini-starknet-indexer-rs" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/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-5-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/MissBlue00/mini-starknet-indexer-rs on toolchain ad85bc524b1ad696e42061ad8338d382dffbdbe5 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate 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" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded async-graphql-value v7.0.17 [INFO] [stderr] Downloaded async-graphql-parser v7.0.17 [INFO] [stderr] Downloaded static_assertions_next v1.1.2 [INFO] [stderr] Downloaded async-graphql-derive v7.0.17 [INFO] [stderr] Downloaded tungstenite v0.26.2 [INFO] [stderr] Downloaded tokio-tungstenite v0.26.2 [INFO] [stderr] Downloaded handlebars v5.1.2 [INFO] [stderr] Downloaded async-graphql-axum v7.0.17 [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-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5a7de9f489e461abd71df95c1310853c5dcd93609e807a464a043a2251818e9d [INFO] running `Command { std: "docker" "start" "-a" "5a7de9f489e461abd71df95c1310853c5dcd93609e807a464a043a2251818e9d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5a7de9f489e461abd71df95c1310853c5dcd93609e807a464a043a2251818e9d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5a7de9f489e461abd71df95c1310853c5dcd93609e807a464a043a2251818e9d", kill_on_drop: false }` [INFO] [stdout] 5a7de9f489e461abd71df95c1310853c5dcd93609e807a464a043a2251818e9d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 26d240f6b7f28e8a3a16c6c839f4e83f7fc29a9971eedb505361f6393c001ba0 [INFO] running `Command { std: "docker" "start" "-a" "26d240f6b7f28e8a3a16c6c839f4e83f7fc29a9971eedb505361f6393c001ba0", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.174 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling futures-io v0.3.31 [INFO] [stderr] Compiling slab v0.4.10 [INFO] [stderr] Compiling cc v1.2.30 [INFO] [stderr] Compiling syn v2.0.104 [INFO] [stderr] Compiling hashbrown v0.15.4 [INFO] [stderr] Compiling serde_json v1.0.142 [INFO] [stderr] Compiling bitflags v2.9.1 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling openssl v0.10.73 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Compiling smallvec v1.15.1 [INFO] [stderr] Compiling rustversion v1.0.21 [INFO] [stderr] Compiling getrandom v0.3.3 [INFO] [stderr] Compiling spin v0.9.8 [INFO] [stderr] Compiling crossbeam-utils v0.8.21 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling minimal-lexical v0.2.1 [INFO] [stderr] Compiling futures-sink v0.3.31 [INFO] [stderr] Compiling rustix v1.0.8 [INFO] [stderr] Compiling iana-time-zone v0.1.63 [INFO] [stderr] Compiling linux-raw-sys v0.9.4 [INFO] [stderr] Compiling crc-catalog v2.4.0 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Compiling unicode_categories v0.1.1 [INFO] [stderr] Compiling fastrand v2.3.0 [INFO] [stderr] Compiling crc v3.3.0 [INFO] [stderr] Compiling event-listener v2.5.3 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling form_urlencoded v1.2.1 [INFO] [stderr] Compiling sync_wrapper v1.0.2 [INFO] [stderr] Compiling data-encoding v2.9.0 [INFO] [stderr] Compiling sha2 v0.10.9 [INFO] [stderr] Compiling sha1 v0.10.6 [INFO] [stderr] Compiling utf-8 v0.7.6 [INFO] [stderr] Compiling futures-channel v0.3.31 [INFO] [stderr] Compiling crossbeam-queue v0.3.12 [INFO] [stderr] Compiling byteorder v1.5.0 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling toml_datetime v0.6.11 [INFO] [stderr] Compiling winnow v0.7.12 [INFO] [stderr] Compiling urlencoding v2.1.3 [INFO] [stderr] Compiling mio v1.0.4 [INFO] [stderr] Compiling socket2 v0.6.0 [INFO] [stderr] Compiling parking_lot_core v0.9.11 [INFO] [stderr] Compiling signal-hook-registry v1.4.5 [INFO] [stderr] Compiling parking_lot v0.12.4 [INFO] [stderr] Compiling ahash v0.8.12 [INFO] [stderr] Compiling rand_core v0.9.3 [INFO] [stderr] Compiling chrono v0.4.41 [INFO] [stderr] Compiling hashbrown v0.14.5 [INFO] [stderr] Compiling rand_chacha v0.9.0 [INFO] [stderr] Compiling atoi v2.0.0 [INFO] [stderr] Compiling getrandom v0.2.16 [INFO] [stderr] Compiling openssl-sys v0.9.109 [INFO] [stderr] Compiling libsqlite3-sys v0.27.0 [INFO] [stderr] Compiling sqlformat v0.2.6 [INFO] [stderr] Compiling futures-intrusive v0.5.0 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling rand v0.9.2 [INFO] [stderr] Compiling flume v0.11.1 [INFO] [stderr] Compiling encoding_rs v0.8.35 [INFO] [stderr] Compiling multer v3.1.0 [INFO] [stderr] Compiling lazy_static v1.5.0 [INFO] [stderr] Compiling heck v0.4.1 [INFO] [stderr] Compiling Inflector v0.11.4 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling hashlink v0.8.4 [INFO] [stderr] Compiling tempfile v3.20.0 [INFO] [stderr] Compiling socket2 v0.5.10 [INFO] [stderr] Compiling ascii_utils v0.9.3 [INFO] [stderr] Compiling dotenvy v0.15.7 [INFO] [stderr] Compiling fast_chemail v0.9.6 [INFO] [stderr] Compiling rand v0.8.5 [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 rustls-pemfile v1.0.4 [INFO] [stderr] Compiling matchit v0.7.3 [INFO] [stderr] Compiling sync_wrapper v0.1.2 [INFO] [stderr] Compiling uuid v1.18.0 [INFO] [stderr] Compiling dotenv v0.15.0 [INFO] [stderr] Compiling futures-executor v0.3.31 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling darling_core v0.20.11 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.0 [INFO] [stderr] Compiling zerovec-derive v0.11.1 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling tracing-attributes v0.1.30 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling thiserror-impl v2.0.12 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling strum_macros v0.26.4 [INFO] [stderr] Compiling async-trait v0.1.88 [INFO] [stderr] Compiling async-stream-impl v0.3.6 [INFO] [stderr] Compiling clap_derive v4.5.41 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling yoke v0.8.0 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling thiserror v2.0.12 [INFO] [stderr] Compiling pest v2.8.1 [INFO] [stderr] Compiling async-stream v0.3.6 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling zerovec v0.11.2 [INFO] [stderr] Compiling zerotrie v0.2.2 [INFO] [stderr] Compiling strum v0.26.3 [INFO] [stderr] Compiling darling_macro v0.20.11 [INFO] [stderr] Compiling darling v0.20.11 [INFO] [stderr] Compiling clap v4.5.43 [INFO] [stderr] Compiling pest_meta v2.8.1 [INFO] [stderr] Compiling tinystr v0.8.1 [INFO] [stderr] Compiling potential_utf v0.1.2 [INFO] [stderr] Compiling icu_collections v2.0.0 [INFO] [stderr] Compiling icu_locale_core v2.0.0 [INFO] [stderr] Compiling pest_generator v2.8.1 [INFO] [stderr] Compiling pest_derive v2.8.1 [INFO] [stderr] Compiling icu_provider v2.0.0 [INFO] [stderr] Compiling icu_properties v2.0.1 [INFO] [stderr] Compiling icu_normalizer v2.0.0 [INFO] [stderr] Compiling futures v0.3.31 [INFO] [stderr] Compiling bytes v1.10.1 [INFO] [stderr] Compiling indexmap v2.10.0 [INFO] [stderr] Compiling either v1.15.0 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling serde_path_to_error v0.1.17 [INFO] [stderr] Compiling idna_adapter v1.2.1 [INFO] [stderr] Compiling idna v1.0.3 [INFO] [stderr] Compiling url v2.5.4 [INFO] [stderr] Compiling handlebars v5.1.2 [INFO] [stderr] Compiling tokio v1.47.0 [INFO] [stderr] Compiling http v1.3.1 [INFO] [stderr] Compiling http v0.2.12 [INFO] [stderr] Compiling async-graphql-value v7.0.17 [INFO] [stderr] Compiling toml_edit v0.22.27 [INFO] [stderr] Compiling async-graphql-parser v7.0.17 [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 tungstenite v0.21.0 [INFO] [stderr] Compiling http-body-util v0.1.3 [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 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 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 sqlx-core v0.7.4 [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 async-graphql v7.0.17 [INFO] [stderr] Compiling hyper v0.14.32 [INFO] [stderr] Compiling sqlx-macros-core v0.7.4 [INFO] [stderr] Compiling sqlx-macros v0.7.4 [INFO] [stderr] Compiling sqlx v0.7.4 [INFO] [stderr] Compiling async-graphql-axum v7.0.17 [INFO] [stderr] Compiling hyper-tls v0.5.0 [INFO] [stderr] Compiling reqwest v0.11.27 [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 18s [INFO] running `Command { std: "docker" "inspect" "26d240f6b7f28e8a3a16c6c839f4e83f7fc29a9971eedb505361f6393c001ba0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "26d240f6b7f28e8a3a16c6c839f4e83f7fc29a9971eedb505361f6393c001ba0", kill_on_drop: false }` [INFO] [stdout] 26d240f6b7f28e8a3a16c6c839f4e83f7fc29a9971eedb505361f6393c001ba0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b4a2d75a036a4697bf18cfed3eea440fc64e02b818285ceb6a4cb82351edc4a2 [INFO] running `Command { std: "docker" "start" "-a" "b4a2d75a036a4697bf18cfed3eea440fc64e02b818285ceb6a4cb82351edc4a2", 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 15.05s [INFO] running `Command { std: "docker" "inspect" "b4a2d75a036a4697bf18cfed3eea440fc64e02b818285ceb6a4cb82351edc4a2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b4a2d75a036a4697bf18cfed3eea440fc64e02b818285ceb6a4cb82351edc4a2", kill_on_drop: false }` [INFO] [stdout] b4a2d75a036a4697bf18cfed3eea440fc64e02b818285ceb6a4cb82351edc4a2