[INFO] cloning repository https://github.com/HuntSweet/eth_trading_mcp
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/HuntSweet/eth_trading_mcp" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FHuntSweet%2Feth_trading_mcp", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FHuntSweet%2Feth_trading_mcp'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] c52e60faeb5799dd48e66a8681251e7b59738125
[INFO] testing HuntSweet/eth_trading_mcp against beta-2026-01-20 for beta-1.94-1
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FHuntSweet%2Feth_trading_mcp" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/HuntSweet/eth_trading_mcp
[INFO] finished tweaking git repo https://github.com/HuntSweet/eth_trading_mcp
[INFO] tweaked toml for git repo https://github.com/HuntSweet/eth_trading_mcp written to /workspace/builds/worker-2-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/HuntSweet/eth_trading_mcp on toolchain beta-2026-01-20
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+beta-2026-01-20" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/HuntSweet/eth_trading_mcp 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" "+beta-2026-01-20" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:98afbf2d16093dec2546ff8915fddc74e65664aa03fc460b3712b1c2c54a33e4" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2026-01-20" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 78bfa6d77a7cd0623d9fca2feb52e6c44cd1ecf734f91973cdf6708a14de4b84
[INFO] running `Command { std: "docker" "start" "-a" "78bfa6d77a7cd0623d9fca2feb52e6c44cd1ecf734f91973cdf6708a14de4b84", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "78bfa6d77a7cd0623d9fca2feb52e6c44cd1ecf734f91973cdf6708a14de4b84", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "78bfa6d77a7cd0623d9fca2feb52e6c44cd1ecf734f91973cdf6708a14de4b84", kill_on_drop: false }`
[INFO] [stdout] 78bfa6d77a7cd0623d9fca2feb52e6c44cd1ecf734f91973cdf6708a14de4b84
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:98afbf2d16093dec2546ff8915fddc74e65664aa03fc460b3712b1c2c54a33e4" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2026-01-20" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] bea0f8249fa7dbf0f545175b3416e95d5edc123194afd5f1e2fd8a86450ccd7c
[INFO] running `Command { std: "docker" "start" "-a" "bea0f8249fa7dbf0f545175b3416e95d5edc123194afd5f1e2fd8a86450ccd7c", kill_on_drop: false }`
[INFO] [stderr]    Compiling serde_core v1.0.228
[INFO] [stderr]    Compiling libc v0.2.177
[INFO] [stderr]    Compiling serde v1.0.228
[INFO] [stderr]    Compiling find-msvc-tools v0.1.5
[INFO] [stderr]    Compiling ruint-macro v1.2.1
[INFO] [stderr]    Compiling crunchy v0.2.4
[INFO] [stderr]    Compiling tiny-keccak v2.0.2
[INFO] [stderr]    Compiling base16ct v0.2.0
[INFO] [stderr]    Compiling syn v2.0.111
[INFO] [stderr]    Compiling serde_json v1.0.145
[INFO] [stderr]    Compiling lock_api v0.4.14
[INFO] [stderr]    Compiling const-hex v1.17.0
[INFO] [stderr]    Compiling memchr v2.7.6
[INFO] [stderr]    Compiling winnow v0.7.13
[INFO] [stderr]    Compiling proc-macro-error-attr2 v2.0.0
[INFO] [stderr]    Compiling dunce v1.0.5
[INFO] [stderr]    Compiling hashbrown v0.16.1
[INFO] [stderr]    Compiling stable_deref_trait v1.2.1
[INFO] [stderr]    Compiling litemap v0.8.1
[INFO] [stderr]    Compiling cc v1.2.47
[INFO] [stderr]    Compiling ruint v1.17.0
[INFO] [stderr]    Compiling writeable v0.6.2
[INFO] [stderr]    Compiling icu_normalizer_data v2.1.1
[INFO] [stderr]    Compiling icu_properties_data v2.1.1
[INFO] [stderr]    Compiling zerocopy v0.8.30
[INFO] [stderr]    Compiling rustls v0.23.35
[INFO] [stderr]    Compiling getrandom v0.3.4
[INFO] [stderr]    Compiling bitflags v2.10.0
[INFO] [stderr]    Compiling futures-utils-wasm v0.1.0
[INFO] [stderr]    Compiling rustversion v1.0.22
[INFO] [stderr]    Compiling iri-string v0.7.9
[INFO] [stderr]    Compiling bimap v0.6.3
[INFO] [stderr]    Compiling encoding_rs v0.8.35
[INFO] [stderr]    Compiling doctest-file v1.0.0
[INFO] [stderr]    Compiling indexmap v2.12.1
[INFO] [stderr]    Compiling hashbrown v0.15.5
[INFO] [stderr]    Compiling hashbrown v0.14.5
[INFO] [stderr]    Compiling num-traits v0.2.19
[INFO] [stderr]    Compiling regex-syntax v0.8.8
[INFO] [stderr]    Compiling rust_decimal v1.39.0
[INFO] [stderr]    Compiling lru v0.13.0
[INFO] [stderr]    Compiling anyhow v1.0.100
[INFO] [stderr]    Compiling tracing-log v0.2.0
[INFO] [stderr]    Compiling thread_local v1.1.9
[INFO] [stderr]    Compiling nu-ansi-term v0.50.3
[INFO] [stderr]    Compiling dotenv v0.15.0
[INFO] [stderr]    Compiling blst v0.3.16
[INFO] [stderr]    Compiling c-kzg v2.1.5
[INFO] [stderr]    Compiling ring v0.17.14
[INFO] [stderr]    Compiling openssl-sys v0.9.109
[INFO] [stderr]    Compiling regex-automata v0.4.13
[INFO] [stderr]    Compiling openssl v0.10.73
[INFO] [stderr]    Compiling native-tls v0.2.14
[INFO] [stderr]    Compiling getrandom v0.2.16
[INFO] [stderr]    Compiling signal-hook-registry v1.4.7
[INFO] [stderr]    Compiling socket2 v0.6.1
[INFO] [stderr]    Compiling mio v1.1.0
[INFO] [stderr]    Compiling num_cpus v1.17.0
[INFO] [stderr]    Compiling rand_core v0.6.4
[INFO] [stderr]    Compiling ppv-lite86 v0.2.21
[INFO] [stderr]    Compiling threadpool v1.8.1
[INFO] [stderr]    Compiling ff v0.13.1
[INFO] [stderr]    Compiling rand_core v0.9.3
[INFO] [stderr]    Compiling group v0.13.0
[INFO] [stderr]    Compiling rand_chacha v0.9.0
[INFO] [stderr]    Compiling rand_chacha v0.3.1
[INFO] [stderr]    Compiling rand v0.9.2
[INFO] [stderr]    Compiling rand v0.8.5
[INFO] [stderr]    Compiling synstructure v0.13.2
[INFO] [stderr]    Compiling syn-solidity v1.4.1
[INFO] [stderr]    Compiling macro-string v0.1.4
[INFO] [stderr]    Compiling proc-macro-error2 v2.0.1
[INFO] [stderr]    Compiling matchers v0.2.0
[INFO] [stderr]    Compiling serde_derive v1.0.228
[INFO] [stderr]    Compiling zeroize_derive v1.4.2
[INFO] [stderr]    Compiling derive_more-impl v2.0.1
[INFO] [stderr]    Compiling alloy-rlp-derive v0.3.12
[INFO] [stderr]    Compiling tracing-attributes v0.1.30
[INFO] [stderr]    Compiling thiserror-impl v2.0.17
[INFO] [stderr]    Compiling tokio-macros v2.6.0
[INFO] [stderr]    Compiling zerofrom-derive v0.1.6
[INFO] [stderr]    Compiling yoke-derive v0.8.1
[INFO] [stderr]    Compiling auto_impl v1.3.0
[INFO] [stderr]    Compiling zerovec-derive v0.11.2
[INFO] [stderr]    Compiling displaydoc v0.2.5
[INFO] [stderr]    Compiling futures-macro v0.3.31
[INFO] [stderr]    Compiling openssl-macros v0.1.1
[INFO] [stderr]    Compiling async-trait v0.1.89
[INFO] [stderr]    Compiling zeroize v1.8.2
[INFO] [stderr]    Compiling pin-project-internal v1.1.10
[INFO] [stderr]    Compiling num_enum_derive v0.7.5
[INFO] [stderr]    Compiling generic-array v0.14.9
[INFO] [stderr]    Compiling der v0.7.10
[INFO] [stderr]    Compiling futures-util v0.3.31
[INFO] [stderr]    Compiling rustls-pki-types v1.13.0
[INFO] [stderr]    Compiling strum_macros v0.27.2
[INFO] [stderr]    Compiling num_enum v0.7.5
[INFO] [stderr]    Compiling async-stream-impl v0.3.6
[INFO] [stderr]    Compiling block-buffer v0.10.4
[INFO] [stderr]    Compiling crypto-common v0.1.6
[INFO] [stderr]    Compiling crypto-bigint v0.5.5
[INFO] [stderr]    Compiling tracing v0.1.41
[INFO] [stderr]    Compiling digest v0.10.7
[INFO] [stderr]    Compiling zerofrom v0.1.6
[INFO] [stderr]    Compiling yoke v0.8.1
[INFO] [stderr]    Compiling hmac v0.12.1
[INFO] [stderr]    Compiling signature v2.2.0
[INFO] [stderr]    Compiling sha2 v0.10.9
[INFO] [stderr]    Compiling rfc6979 v0.4.0
[INFO] [stderr]    Compiling thiserror v2.0.17
[INFO] [stderr]    Compiling zerovec v0.11.5
[INFO] [stderr]    Compiling zerotrie v0.2.3
[INFO] [stderr]    Compiling webpki-roots v1.0.4
[INFO] [stderr]    Compiling rustls-webpki v0.103.8
[INFO] [stderr]    Compiling sha1 v0.10.6
[INFO] [stderr]    Compiling webpki-roots v0.26.11
[INFO] [stderr]    Compiling pin-project v1.1.10
[INFO] [stderr]    Compiling async-stream v0.3.6
[INFO] [stderr]    Compiling tinystr v0.8.2
[INFO] [stderr]    Compiling potential_utf v0.1.4
[INFO] [stderr]    Compiling thiserror-impl v1.0.69
[INFO] [stderr]    Compiling spki v0.7.3
[INFO] [stderr]    Compiling icu_locale_core v2.1.1
[INFO] [stderr]    Compiling icu_collections v2.1.1
[INFO] [stderr]    Compiling pkcs8 v0.10.2
[INFO] [stderr]    Compiling strum v0.27.2
[INFO] [stderr]    Compiling icu_provider v2.1.1
[INFO] [stderr]    Compiling icu_properties v2.1.1
[INFO] [stderr]    Compiling thiserror v1.0.69
[INFO] [stderr]    Compiling derive_more v2.0.1
[INFO] [stderr]    Compiling futures-executor v0.3.31
[INFO] [stderr]    Compiling futures v0.3.31
[INFO] [stderr]    Compiling bytes v1.11.0
[INFO] [stderr]    Compiling smallvec v1.15.1
[INFO] [stderr]    Compiling arrayvec v0.7.6
[INFO] [stderr]    Compiling serdect v0.2.0
[INFO] [stderr]    Compiling alloy-sol-type-parser v1.4.1
[INFO] [stderr]    Compiling either v1.15.0
[INFO] [stderr]    Compiling serde_urlencoded v0.7.1
[INFO] [stderr]    Compiling darling_core v0.21.3
[INFO] [stderr]    Compiling sec1 v0.7.3
[INFO] [stderr]    Compiling parking_lot_core v0.9.12
[INFO] [stderr]    Compiling icu_normalizer v2.1.1
[INFO] [stderr]    Compiling tracing-subscriber v0.3.20
[INFO] [stderr]    Compiling parking_lot v0.12.5
[INFO] [stderr]    Compiling alloy-rlp v0.3.12
[INFO] [stderr]    Compiling http v1.4.0
[INFO] [stderr]    Compiling itertools v0.14.0
[INFO] [stderr]    Compiling dashmap v6.1.0
[INFO] [stderr]    Compiling elliptic-curve v0.13.8
[INFO] [stderr]    Compiling alloy-primitives v1.4.1
[INFO] [stderr]    Compiling tokio v1.48.0
[INFO] [stderr]    Compiling idna_adapter v1.2.1
[INFO] [stderr]    Compiling idna v1.1.0
[INFO] [stderr]    Compiling ecdsa v0.16.9
[INFO] [stderr]    Compiling http-body v1.0.1
[INFO] [stderr]    Compiling url v2.5.7
[INFO] [stderr]    Compiling http-body-util v0.1.3
[INFO] [stderr]    Compiling nybbles v0.4.6
[INFO] [stderr]    Compiling k256 v0.13.4
[INFO] [stderr]    Compiling tungstenite v0.26.2
[INFO] [stderr]    Compiling alloy-json-abi v1.4.1
[INFO] [stderr]    Compiling alloy-eip2930 v0.2.3
[INFO] [stderr]    Compiling alloy-serde v1.1.2
[INFO] [stderr]    Compiling alloy-eip2124 v0.2.0
[INFO] [stderr]    Compiling alloy-eip7702 v0.6.3
[INFO] [stderr]    Compiling alloy-trie v0.9.1
[INFO] [stderr]    Compiling alloy-signer v1.1.2
[INFO] [stderr]    Compiling alloy-chains v0.2.20
[INFO] [stderr]    Compiling alloy-sol-macro-input v1.4.1
[INFO] [stderr]    Compiling darling_macro v0.21.3
[INFO] [stderr]    Compiling alloy-sol-macro-expander v1.4.1
[INFO] [stderr]    Compiling darling v0.21.3
[INFO] [stderr]    Compiling serde_with_macros v3.16.0
[INFO] [stderr]    Compiling alloy-tx-macros v1.1.2
[INFO] [stderr]    Compiling serde_with v3.16.0
[INFO] [stderr]    Compiling alloy-sol-macro v1.4.1
[INFO] [stderr]    Compiling tokio-util v0.7.17
[INFO] [stderr]    Compiling tower v0.5.2
[INFO] [stderr]    Compiling tokio-rustls v0.26.4
[INFO] [stderr]    Compiling tokio-native-tls v0.3.1
[INFO] [stderr]    Compiling interprocess v2.2.3
[INFO] [stderr]    Compiling tokio-tungstenite v0.26.2
[INFO] [stderr]    Compiling alloy-eips v1.1.2
[INFO] [stderr]    Compiling alloy-rpc-types-debug v1.1.2
[INFO] [stderr]    Compiling alloy-sol-types v1.4.1
[INFO] [stderr]    Compiling h2 v0.4.12
[INFO] [stderr]    Compiling tokio-stream v0.1.17
[INFO] [stderr]    Compiling tower-http v0.6.7
[INFO] [stderr]    Compiling alloy-consensus v1.1.2
[INFO] [stderr]    Compiling alloy-json-rpc v1.1.2
[INFO] [stderr]    Compiling alloy-dyn-abi v1.4.1
[INFO] [stderr]    Compiling alloy-transport v1.1.2
[INFO] [stderr]    Compiling alloy-core v1.4.1
[INFO] [stderr]    Compiling hyper v1.8.1
[INFO] [stderr]    Compiling alloy-pubsub v1.1.2
[INFO] [stderr]    Compiling alloy-consensus-any v1.1.2
[INFO] [stderr]    Compiling alloy-network-primitives v1.1.2
[INFO] [stderr]    Compiling hyper-util v0.1.18
[INFO] [stderr]    Compiling alloy-transport-ipc v1.1.2
[INFO] [stderr]    Compiling alloy-transport-ws v1.1.2
[INFO] [stderr]    Compiling alloy-rpc-types-eth v1.1.2
[INFO] [stderr]    Compiling hyper-tls v0.6.0
[INFO] [stderr]    Compiling hyper-rustls v0.27.7
[INFO] [stderr]    Compiling reqwest v0.12.24
[INFO] [stderr]    Compiling alloy-rpc-types-any v1.1.2
[INFO] [stderr]    Compiling alloy-rpc-types-txpool v1.1.2
[INFO] [stderr]    Compiling alloy-rpc-types-anvil v1.1.2
[INFO] [stderr]    Compiling alloy-rpc-types-trace v1.1.2
[INFO] [stderr]    Compiling alloy-network v1.1.2
[INFO] [stderr]    Compiling alloy-transport-http v1.1.2
[INFO] [stderr]    Compiling alloy-rpc-client v1.1.2
[INFO] [stderr]    Compiling alloy-signer-local v1.1.2
[INFO] [stderr]    Compiling alloy-provider v1.1.2
[INFO] [stderr]    Compiling alloy-rpc-types v1.1.2
[INFO] [stderr]    Compiling alloy-contract v1.1.2
[INFO] [stderr]    Compiling alloy v1.1.2
[INFO] [stderr]    Compiling eth_mcp_trading v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `U256`
[INFO] [stdout]  --> src/config/settings.rs:1:34
[INFO] [stdout]   |
[INFO] [stdout] 1 | use alloy::primitives::{Address, U256};
[INFO] [stdout]   |                                  ^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `ProviderBuilder`
[INFO] [stdout]  --> src/ethereum/client.rs:2:34
[INFO] [stdout]   |
[INFO] [stdout] 2 | use alloy::providers::{Provider, ProviderBuilder};
[INFO] [stdout]   |                                  ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `alloy::providers::ext::AnvilApi`
[INFO] [stdout]   --> src/ethereum/client.rs:28:13
[INFO] [stdout]    |
[INFO] [stdout] 28 |         use alloy::providers::ext::AnvilApi;
[INFO] [stdout]    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Bytes`
[INFO] [stdout]  --> src/ethereum/swap.rs:1:34
[INFO] [stdout]   |
[INFO] [stdout] 1 | use alloy::primitives::{Address, Bytes, U256};
[INFO] [stdout]   |                                  ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::collections::HashMap`
[INFO] [stdout]  --> src/mcp/protocol.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use std::collections::HashMap;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `json`
[INFO] [stdout]  --> src/mcp/server.rs:3:18
[INFO] [stdout]   |
[INFO] [stdout] 3 | use serde_json::{json, Value};
[INFO] [stdout]   |                  ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `U256`
[INFO] [stdout]  --> src/config/settings.rs:1:34
[INFO] [stdout]   |
[INFO] [stdout] 1 | use alloy::primitives::{Address, U256};
[INFO] [stdout]   |                                  ^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `ProviderBuilder`
[INFO] [stdout]  --> src/ethereum/client.rs:2:34
[INFO] [stdout]   |
[INFO] [stdout] 2 | use alloy::providers::{Provider, ProviderBuilder};
[INFO] [stdout]   |                                  ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `alloy::providers::ext::AnvilApi`
[INFO] [stdout]   --> src/ethereum/client.rs:28:13
[INFO] [stdout]    |
[INFO] [stdout] 28 |         use alloy::providers::ext::AnvilApi;
[INFO] [stdout]    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Bytes`
[INFO] [stdout]  --> src/ethereum/swap.rs:1:34
[INFO] [stdout]   |
[INFO] [stdout] 1 | use alloy::primitives::{Address, Bytes, U256};
[INFO] [stdout]   |                                  ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `DebugTraceResult` and `DebugTraceTransactionResult`
[INFO] [stdout]  --> src/ethereum/mod.rs:7:18
[INFO] [stdout]   |
[INFO] [stdout] 7 | pub use client::{DebugTraceResult, DebugTraceTransactionResult};
[INFO] [stdout]   |                  ^^^^^^^^^^^^^^^^  ^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `TokenPrice`, `UniswapV2`, `get_token_address_by_symbol`, and `get_token_decimals_by_symbol`
[INFO] [stdout]  --> src/ethereum/mod.rs:9:19
[INFO] [stdout]   |
[INFO] [stdout] 9 | pub use uniswap::{UniswapV2, TokenPrice, get_token_address_by_symbol, get_token_decimals_by_symbol};
[INFO] [stdout]   |                   ^^^^^^^^^  ^^^^^^^^^^  ^^^^^^^^^^^^^^^^^^^^^^^^^^^  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `SwapSimulationResult`, `SwapSimulator`, and `SwapType`
[INFO] [stdout]   --> src/ethereum/mod.rs:10:16
[INFO] [stdout]    |
[INFO] [stdout] 10 | pub use swap::{SwapSimulator, SwapSimulationResult, SwapType};
[INFO] [stdout]    |                ^^^^^^^^^^^^^  ^^^^^^^^^^^^^^^^^^^^  ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::collections::HashMap`
[INFO] [stdout]  --> src/mcp/protocol.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use std::collections::HashMap;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `json`
[INFO] [stdout]  --> src/mcp/server.rs:3:18
[INFO] [stdout]   |
[INFO] [stdout] 3 | use serde_json::{json, Value};
[INFO] [stdout]   |                  ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `create_get_balance_tool` and `handle_get_balance`
[INFO] [stdout]  --> src/mcp/tools/mod.rs:5:19
[INFO] [stdout]   |
[INFO] [stdout] 5 | pub use balance::{create_get_balance_tool, handle_get_balance};
[INFO] [stdout]   |                   ^^^^^^^^^^^^^^^^^^^^^^^  ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `create_get_token_price_tool` and `handle_get_token_price`
[INFO] [stdout]  --> src/mcp/tools/mod.rs:6:17
[INFO] [stdout]   |
[INFO] [stdout] 6 | pub use price::{create_get_token_price_tool, handle_get_token_price};
[INFO] [stdout]   |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^  ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `create_swap_tokens_tool` and `handle_swap_tokens`
[INFO] [stdout]  --> src/mcp/tools/mod.rs:7:16
[INFO] [stdout]   |
[INFO] [stdout] 7 | pub use swap::{create_swap_tokens_tool, handle_swap_tokens};
[INFO] [stdout]   |                ^^^^^^^^^^^^^^^^^^^^^^^  ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `protocol::*`
[INFO] [stdout]  --> src/mcp/mod.rs:5:9
[INFO] [stdout]   |
[INFO] [stdout] 5 | pub use protocol::*;
[INFO] [stdout]   |         ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `error`
[INFO] [stdout]   --> src/main.rs:15:21
[INFO] [stdout]    |
[INFO] [stdout] 15 | use tracing::{info, error};
[INFO] [stdout]    |                     ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `wallet_private_key`, `uniswap_v2_router`, `uniswap_v3_router`, and `log_level` are never read
[INFO] [stdout]   --> src/config/settings.rs:14:9
[INFO] [stdout]    |
[INFO] [stdout]  8 | pub struct Config {
[INFO] [stdout]    |            ------ fields in this struct
[INFO] [stdout] ...
[INFO] [stdout] 14 |     pub wallet_private_key: Option<String>,
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 15 |     /// Uniswap V2 Router 地址
[INFO] [stdout] 16 |     pub uniswap_v2_router: Address,
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 17 |     /// Uniswap V3 Router 地址
[INFO] [stdout] 18 |     pub uniswap_v3_router: Address,
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 19 |     /// 日志级别
[INFO] [stdout] 20 |     pub log_level: String,
[INFO] [stdout]    |         ^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `Config` has derived impls for the traits `Clone` and `Debug`, but these are 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: method `validate` is never used
[INFO] [stdout]   --> src/config/settings.rs:69:12
[INFO] [stdout]    |
[INFO] [stdout] 23 | impl Config {
[INFO] [stdout]    | ----------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 69 |     pub fn validate(&self) -> crate::error::Result<()> {
[INFO] [stdout]    |            ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `JsonRpc` is never constructed
[INFO] [stdout]   --> src/error.rs:13:5
[INFO] [stdout]    |
[INFO] [stdout]  5 | pub enum AppError {
[INFO] [stdout]    |          -------- variant in this enum
[INFO] [stdout] ...
[INFO] [stdout] 13 |     JsonRpc(String),
[INFO] [stdout]    |     ^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `AppError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `get_chain_id`, `estimate_gas`, `debug_trace_transaction`, and `config` are never used
[INFO] [stdout]    --> src/ethereum/client.rs:86:18
[INFO] [stdout]     |
[INFO] [stdout]  25 | impl EthereumClient {
[INFO] [stdout]     | ------------------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout]  86 |     pub async fn get_chain_id(&self) -> Result<u64> {
[INFO] [stdout]     |                  ^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout]  97 |     pub async fn estimate_gas(&self, tx: alloy::rpc::types::TransactionRequest) -> Result<U256> {
[INFO] [stdout]     |                  ^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 236 |     pub async fn debug_trace_transaction(
[INFO] [stdout]     |                  ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 366 |     pub fn config(&self) -> &Config {
[INFO] [stdout]     |            ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `call_type` is never read
[INFO] [stdout]    --> src/ethereum/client.rs:383:9
[INFO] [stdout]     |
[INFO] [stdout] 373 | pub struct DebugTraceResult {
[INFO] [stdout]     |            ---------------- field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 383 |     pub call_type: String,
[INFO] [stdout]     |         ^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `DebugTraceResult` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `DebugTraceTransactionResult` is never constructed
[INFO] [stdout]    --> src/ethereum/client.rs:388:12
[INFO] [stdout]     |
[INFO] [stdout] 388 | pub struct DebugTraceTransactionResult {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `format_balance` and `address` are never used
[INFO] [stdout]    --> src/ethereum/erc20.rs:111:18
[INFO] [stdout]     |
[INFO] [stdout]  27 | impl Erc20Token {
[INFO] [stdout]     | --------------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 111 |     pub async fn format_balance(&self, balance: U256) -> Result<Decimal> {
[INFO] [stdout]     |                  ^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 144 |     pub fn address(&self) -> Address {
[INFO] [stdout]     |            ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `get_token1` is never used
[INFO] [stdout]    --> src/ethereum/uniswap.rs:159:18
[INFO] [stdout]     |
[INFO] [stdout]  88 | impl UniswapV2 {
[INFO] [stdout]     | -------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 159 |     pub async fn get_token1(&self, pair_address: Address) -> Result<Address> {
[INFO] [stdout]     |                  ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `amount_in` and `amount_out` are never read
[INFO] [stdout]   --> src/ethereum/swap.rs:94:9
[INFO] [stdout]    |
[INFO] [stdout] 88 | pub struct SwapSimulationResult {
[INFO] [stdout]    |            -------------------- fields in this struct
[INFO] [stdout] ...
[INFO] [stdout] 94 |     pub amount_in: U256,
[INFO] [stdout]    |         ^^^^^^^^^
[INFO] [stdout] 95 |     /// 预估输出数量（原始值）
[INFO] [stdout] 96 |     pub amount_out: U256,
[INFO] [stdout]    |         ^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `SwapSimulationResult` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `new` is never used
[INFO] [stdout]    --> src/ethereum/swap.rs:156:12
[INFO] [stdout]     |
[INFO] [stdout] 145 | impl SwapSimulator {
[INFO] [stdout]     | ------------------ associated function in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 156 |     pub fn new(client: Arc<EthereumClient>, router_address: Address, wrapped_native: Address) -> Self {
[INFO] [stdout]     |            ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated functions `method_not_found` and `invalid_params` are never used
[INFO] [stdout]   --> src/mcp/protocol.rs:76:12
[INFO] [stdout]    |
[INFO] [stdout] 34 | impl JsonRpcResponse {
[INFO] [stdout]    | -------------------- associated functions in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 76 |     pub fn method_not_found(id: Option<Value>) -> Self {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 86 |     pub fn invalid_params(id: Option<Value>, message: Option<String>) -> Self {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `ToolCall` is never constructed
[INFO] [stdout]    --> src/mcp/protocol.rs:117:12
[INFO] [stdout]     |
[INFO] [stdout] 117 | pub struct ToolCall {
[INFO] [stdout]     |            ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 47s
[INFO] running `Command { std: "docker" "inspect" "bea0f8249fa7dbf0f545175b3416e95d5edc123194afd5f1e2fd8a86450ccd7c", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "bea0f8249fa7dbf0f545175b3416e95d5edc123194afd5f1e2fd8a86450ccd7c", kill_on_drop: false }`
[INFO] [stdout] bea0f8249fa7dbf0f545175b3416e95d5edc123194afd5f1e2fd8a86450ccd7c
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:98afbf2d16093dec2546ff8915fddc74e65664aa03fc460b3712b1c2c54a33e4" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2026-01-20" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 4fa3d48ef9096f7c2dd32a99f964ffe68a459f769c5f558c0f32c39586f98a3a
[INFO] running `Command { std: "docker" "start" "-a" "4fa3d48ef9096f7c2dd32a99f964ffe68a459f769c5f558c0f32c39586f98a3a", kill_on_drop: false }`
[INFO] [stderr]    Compiling tokio v1.48.0
[INFO] [stderr]    Compiling tokio-util v0.7.17
[INFO] [stderr]    Compiling tower v0.5.2
[INFO] [stderr]    Compiling tokio-rustls v0.26.4
[INFO] [stderr]    Compiling tokio-native-tls v0.3.1
[INFO] [stderr]    Compiling interprocess v2.2.3
[INFO] [stderr]    Compiling tokio-tungstenite v0.26.2
[INFO] [stderr]    Compiling h2 v0.4.12
[INFO] [stderr]    Compiling tokio-stream v0.1.17
[INFO] [stderr]    Compiling alloy-transport v1.1.2
[INFO] [stderr]    Compiling tower-http v0.6.7
[INFO] [stderr]    Compiling alloy-pubsub v1.1.2
[INFO] [stderr]    Compiling tokio-test v0.4.4
[INFO] [stderr]    Compiling alloy-transport-ipc v1.1.2
[INFO] [stderr]    Compiling alloy-transport-ws v1.1.2
[INFO] [stderr]    Compiling hyper v1.8.1
[INFO] [stderr]    Compiling hyper-util v0.1.18
[INFO] [stderr]    Compiling hyper-tls v0.6.0
[INFO] [stderr]    Compiling hyper-rustls v0.27.7
[INFO] [stderr]    Compiling reqwest v0.12.24
[INFO] [stderr]    Compiling alloy-transport-http v1.1.2
[INFO] [stderr]    Compiling alloy-rpc-client v1.1.2
[INFO] [stderr]    Compiling alloy-provider v1.1.2
[INFO] [stderr]    Compiling alloy-contract v1.1.2
[INFO] [stderr]    Compiling alloy v1.1.2
[INFO] [stderr]    Compiling eth_mcp_trading v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `U256`
[INFO] [stdout]  --> src/config/settings.rs:1:34
[INFO] [stdout]   |
[INFO] [stdout] 1 | use alloy::primitives::{Address, U256};
[INFO] [stdout]   |                                  ^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `ProviderBuilder`
[INFO] [stdout]  --> src/ethereum/client.rs:2:34
[INFO] [stdout]   |
[INFO] [stdout] 2 | use alloy::providers::{Provider, ProviderBuilder};
[INFO] [stdout]   |                                  ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `alloy::providers::ext::AnvilApi`
[INFO] [stdout]   --> src/ethereum/client.rs:28:13
[INFO] [stdout]    |
[INFO] [stdout] 28 |         use alloy::providers::ext::AnvilApi;
[INFO] [stdout]    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Bytes`
[INFO] [stdout]  --> src/ethereum/swap.rs:1:34
[INFO] [stdout]   |
[INFO] [stdout] 1 | use alloy::primitives::{Address, Bytes, U256};
[INFO] [stdout]   |                                  ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::collections::HashMap`
[INFO] [stdout]  --> src/mcp/protocol.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use std::collections::HashMap;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `json`
[INFO] [stdout]  --> src/mcp/server.rs:3:18
[INFO] [stdout]   |
[INFO] [stdout] 3 | use serde_json::{json, Value};
[INFO] [stdout]   |                  ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `U256`
[INFO] [stdout]  --> src/config/settings.rs:1:34
[INFO] [stdout]   |
[INFO] [stdout] 1 | use alloy::primitives::{Address, U256};
[INFO] [stdout]   |                                  ^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `ProviderBuilder`
[INFO] [stdout]  --> src/ethereum/client.rs:2:34
[INFO] [stdout]   |
[INFO] [stdout] 2 | use alloy::providers::{Provider, ProviderBuilder};
[INFO] [stdout]   |                                  ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `alloy::providers::ext::AnvilApi`
[INFO] [stdout]   --> src/ethereum/client.rs:28:13
[INFO] [stdout]    |
[INFO] [stdout] 28 |         use alloy::providers::ext::AnvilApi;
[INFO] [stdout]    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Bytes`
[INFO] [stdout]  --> src/ethereum/swap.rs:1:34
[INFO] [stdout]   |
[INFO] [stdout] 1 | use alloy::primitives::{Address, Bytes, U256};
[INFO] [stdout]   |                                  ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::collections::HashMap`
[INFO] [stdout]  --> src/mcp/protocol.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use std::collections::HashMap;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `json`
[INFO] [stdout]  --> src/mcp/server.rs:3:18
[INFO] [stdout]   |
[INFO] [stdout] 3 | use serde_json::{json, Value};
[INFO] [stdout]   |                  ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `U256`
[INFO] [stdout]  --> tests/erc20_tests.rs:1:34
[INFO] [stdout]   |
[INFO] [stdout] 1 | use alloy::primitives::{Address, U256};
[INFO] [stdout]   |                                  ^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `U256`
[INFO] [stdout]  --> src/config/settings.rs:1:34
[INFO] [stdout]   |
[INFO] [stdout] 1 | use alloy::primitives::{Address, U256};
[INFO] [stdout]   |                                  ^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `ProviderBuilder`
[INFO] [stdout]  --> src/ethereum/client.rs:2:34
[INFO] [stdout]   |
[INFO] [stdout] 2 | use alloy::providers::{Provider, ProviderBuilder};
[INFO] [stdout]   |                                  ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `alloy::providers::ext::AnvilApi`
[INFO] [stdout]   --> src/ethereum/client.rs:28:13
[INFO] [stdout]    |
[INFO] [stdout] 28 |         use alloy::providers::ext::AnvilApi;
[INFO] [stdout]    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Bytes`
[INFO] [stdout]  --> src/ethereum/swap.rs:1:34
[INFO] [stdout]   |
[INFO] [stdout] 1 | use alloy::primitives::{Address, Bytes, U256};
[INFO] [stdout]   |                                  ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `DebugTraceResult` and `DebugTraceTransactionResult`
[INFO] [stdout]  --> src/ethereum/mod.rs:7:18
[INFO] [stdout]   |
[INFO] [stdout] 7 | pub use client::{DebugTraceResult, DebugTraceTransactionResult};
[INFO] [stdout]   |                  ^^^^^^^^^^^^^^^^  ^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `TokenPrice`, `UniswapV2`, `get_token_address_by_symbol`, and `get_token_decimals_by_symbol`
[INFO] [stdout]  --> src/ethereum/mod.rs:9:19
[INFO] [stdout]   |
[INFO] [stdout] 9 | pub use uniswap::{UniswapV2, TokenPrice, get_token_address_by_symbol, get_token_decimals_by_symbol};
[INFO] [stdout]   |                   ^^^^^^^^^  ^^^^^^^^^^  ^^^^^^^^^^^^^^^^^^^^^^^^^^^  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `SwapSimulationResult`, `SwapSimulator`, and `SwapType`
[INFO] [stdout]   --> src/ethereum/mod.rs:10:16
[INFO] [stdout]    |
[INFO] [stdout] 10 | pub use swap::{SwapSimulator, SwapSimulationResult, SwapType};
[INFO] [stdout]    |                ^^^^^^^^^^^^^  ^^^^^^^^^^^^^^^^^^^^  ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::collections::HashMap`
[INFO] [stdout]  --> src/mcp/protocol.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use std::collections::HashMap;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `json`
[INFO] [stdout]  --> src/mcp/server.rs:3:18
[INFO] [stdout]   |
[INFO] [stdout] 3 | use serde_json::{json, Value};
[INFO] [stdout]   |                  ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `create_get_balance_tool` and `handle_get_balance`
[INFO] [stdout]  --> src/mcp/tools/mod.rs:5:19
[INFO] [stdout]   |
[INFO] [stdout] 5 | pub use balance::{create_get_balance_tool, handle_get_balance};
[INFO] [stdout]   |                   ^^^^^^^^^^^^^^^^^^^^^^^  ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `create_get_token_price_tool` and `handle_get_token_price`
[INFO] [stdout]  --> src/mcp/tools/mod.rs:6:17
[INFO] [stdout]   |
[INFO] [stdout] 6 | pub use price::{create_get_token_price_tool, handle_get_token_price};
[INFO] [stdout]   |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^  ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `create_swap_tokens_tool` and `handle_swap_tokens`
[INFO] [stdout]  --> src/mcp/tools/mod.rs:7:16
[INFO] [stdout]   |
[INFO] [stdout] 7 | pub use swap::{create_swap_tokens_tool, handle_swap_tokens};
[INFO] [stdout]   |                ^^^^^^^^^^^^^^^^^^^^^^^  ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `protocol::*`
[INFO] [stdout]  --> src/mcp/mod.rs:5:9
[INFO] [stdout]   |
[INFO] [stdout] 5 | pub use protocol::*;
[INFO] [stdout]   |         ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `error`
[INFO] [stdout]   --> src/main.rs:15:21
[INFO] [stdout]    |
[INFO] [stdout] 15 | use tracing::{info, error};
[INFO] [stdout]    |                     ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `U256`
[INFO] [stdout]  --> src/config/settings.rs:1:34
[INFO] [stdout]   |
[INFO] [stdout] 1 | use alloy::primitives::{Address, U256};
[INFO] [stdout]   |                                  ^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `ProviderBuilder`
[INFO] [stdout]  --> src/ethereum/client.rs:2:34
[INFO] [stdout]   |
[INFO] [stdout] 2 | use alloy::providers::{Provider, ProviderBuilder};
[INFO] [stdout]   |                                  ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `alloy::providers::ext::AnvilApi`
[INFO] [stdout]   --> src/ethereum/client.rs:28:13
[INFO] [stdout]    |
[INFO] [stdout] 28 |         use alloy::providers::ext::AnvilApi;
[INFO] [stdout]    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Bytes`
[INFO] [stdout]  --> src/ethereum/swap.rs:1:34
[INFO] [stdout]   |
[INFO] [stdout] 1 | use alloy::primitives::{Address, Bytes, U256};
[INFO] [stdout]   |                                  ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `DebugTraceResult` and `DebugTraceTransactionResult`
[INFO] [stdout]  --> src/ethereum/mod.rs:7:18
[INFO] [stdout]   |
[INFO] [stdout] 7 | pub use client::{DebugTraceResult, DebugTraceTransactionResult};
[INFO] [stdout]   |                  ^^^^^^^^^^^^^^^^  ^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `TokenPrice`, `UniswapV2`, `get_token_address_by_symbol`, and `get_token_decimals_by_symbol`
[INFO] [stdout]  --> src/ethereum/mod.rs:9:19
[INFO] [stdout]   |
[INFO] [stdout] 9 | pub use uniswap::{UniswapV2, TokenPrice, get_token_address_by_symbol, get_token_decimals_by_symbol};
[INFO] [stdout]   |                   ^^^^^^^^^  ^^^^^^^^^^  ^^^^^^^^^^^^^^^^^^^^^^^^^^^  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `SwapSimulationResult`, `SwapSimulator`, and `SwapType`
[INFO] [stdout]   --> src/ethereum/mod.rs:10:16
[INFO] [stdout]    |
[INFO] [stdout] 10 | pub use swap::{SwapSimulator, SwapSimulationResult, SwapType};
[INFO] [stdout]    |                ^^^^^^^^^^^^^  ^^^^^^^^^^^^^^^^^^^^  ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::collections::HashMap`
[INFO] [stdout]  --> src/mcp/protocol.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use std::collections::HashMap;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `json`
[INFO] [stdout]  --> src/mcp/server.rs:3:18
[INFO] [stdout]   |
[INFO] [stdout] 3 | use serde_json::{json, Value};
[INFO] [stdout]   |                  ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `create_get_balance_tool` and `handle_get_balance`
[INFO] [stdout]  --> src/mcp/tools/mod.rs:5:19
[INFO] [stdout]   |
[INFO] [stdout] 5 | pub use balance::{create_get_balance_tool, handle_get_balance};
[INFO] [stdout]   |                   ^^^^^^^^^^^^^^^^^^^^^^^  ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `create_get_token_price_tool` and `handle_get_token_price`
[INFO] [stdout]  --> src/mcp/tools/mod.rs:6:17
[INFO] [stdout]   |
[INFO] [stdout] 6 | pub use price::{create_get_token_price_tool, handle_get_token_price};
[INFO] [stdout]   |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^  ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `create_swap_tokens_tool` and `handle_swap_tokens`
[INFO] [stdout]  --> src/mcp/tools/mod.rs:7:16
[INFO] [stdout]   |
[INFO] [stdout] 7 | pub use swap::{create_swap_tokens_tool, handle_swap_tokens};
[INFO] [stdout]   |                ^^^^^^^^^^^^^^^^^^^^^^^  ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `protocol::*`
[INFO] [stdout]  --> src/mcp/mod.rs:5:9
[INFO] [stdout]   |
[INFO] [stdout] 5 | pub use protocol::*;
[INFO] [stdout]   |         ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `error`
[INFO] [stdout]   --> src/main.rs:15:21
[INFO] [stdout]    |
[INFO] [stdout] 15 | use tracing::{info, error};
[INFO] [stdout]    |                     ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `wallet_private_key`, `uniswap_v2_router`, `uniswap_v3_router`, and `log_level` are never read
[INFO] [stdout]   --> src/config/settings.rs:14:9
[INFO] [stdout]    |
[INFO] [stdout]  8 | pub struct Config {
[INFO] [stdout]    |            ------ fields in this struct
[INFO] [stdout] ...
[INFO] [stdout] 14 |     pub wallet_private_key: Option<String>,
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 15 |     /// Uniswap V2 Router 地址
[INFO] [stdout] 16 |     pub uniswap_v2_router: Address,
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 17 |     /// Uniswap V3 Router 地址
[INFO] [stdout] 18 |     pub uniswap_v3_router: Address,
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 19 |     /// 日志级别
[INFO] [stdout] 20 |     pub log_level: String,
[INFO] [stdout]    |         ^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `Config` has derived impls for the traits `Clone` and `Debug`, but these are 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: method `validate` is never used
[INFO] [stdout]   --> src/config/settings.rs:69:12
[INFO] [stdout]    |
[INFO] [stdout] 23 | impl Config {
[INFO] [stdout]    | ----------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 69 |     pub fn validate(&self) -> crate::error::Result<()> {
[INFO] [stdout]    |            ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `JsonRpc` is never constructed
[INFO] [stdout]   --> src/error.rs:13:5
[INFO] [stdout]    |
[INFO] [stdout]  5 | pub enum AppError {
[INFO] [stdout]    |          -------- variant in this enum
[INFO] [stdout] ...
[INFO] [stdout] 13 |     JsonRpc(String),
[INFO] [stdout]    |     ^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `AppError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `get_chain_id`, `estimate_gas`, `debug_trace_transaction`, and `config` are never used
[INFO] [stdout]    --> src/ethereum/client.rs:86:18
[INFO] [stdout]     |
[INFO] [stdout]  25 | impl EthereumClient {
[INFO] [stdout]     | ------------------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout]  86 |     pub async fn get_chain_id(&self) -> Result<u64> {
[INFO] [stdout]     |                  ^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout]  97 |     pub async fn estimate_gas(&self, tx: alloy::rpc::types::TransactionRequest) -> Result<U256> {
[INFO] [stdout]     |                  ^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 236 |     pub async fn debug_trace_transaction(
[INFO] [stdout]     |                  ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 366 |     pub fn config(&self) -> &Config {
[INFO] [stdout]     |            ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `wallet_private_key`, `uniswap_v2_router`, `uniswap_v3_router`, and `log_level` are never read
[INFO] [stdout]   --> src/config/settings.rs:14:9
[INFO] [stdout]    |
[INFO] [stdout]  8 | pub struct Config {
[INFO] [stdout]    |            ------ fields in this struct
[INFO] [stdout] ...
[INFO] [stdout] 14 |     pub wallet_private_key: Option<String>,
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 15 |     /// Uniswap V2 Router 地址
[INFO] [stdout] 16 |     pub uniswap_v2_router: Address,
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 17 |     /// Uniswap V3 Router 地址
[INFO] [stdout] 18 |     pub uniswap_v3_router: Address,
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 19 |     /// 日志级别
[INFO] [stdout] 20 |     pub log_level: String,
[INFO] [stdout]    |         ^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `Config` has derived impls for the traits `Clone` and `Debug`, but these are 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: method `validate` is never used
[INFO] [stdout]   --> src/config/settings.rs:69:12
[INFO] [stdout]    |
[INFO] [stdout] 23 | impl Config {
[INFO] [stdout]    | ----------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 69 |     pub fn validate(&self) -> crate::error::Result<()> {
[INFO] [stdout]    |            ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `JsonRpc` is never constructed
[INFO] [stdout]   --> src/error.rs:13:5
[INFO] [stdout]    |
[INFO] [stdout]  5 | pub enum AppError {
[INFO] [stdout]    |          -------- variant in this enum
[INFO] [stdout] ...
[INFO] [stdout] 13 |     JsonRpc(String),
[INFO] [stdout]    |     ^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `AppError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `call_type` is never read
[INFO] [stdout]    --> src/ethereum/client.rs:383:9
[INFO] [stdout]     |
[INFO] [stdout] 373 | pub struct DebugTraceResult {
[INFO] [stdout]     |            ---------------- field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 383 |     pub call_type: String,
[INFO] [stdout]     |         ^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `DebugTraceResult` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `get_chain_id`, `estimate_gas`, `debug_trace_transaction`, and `config` are never used
[INFO] [stdout]    --> src/ethereum/client.rs:86:18
[INFO] [stdout]     |
[INFO] [stdout]  25 | impl EthereumClient {
[INFO] [stdout]     | ------------------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout]  86 |     pub async fn get_chain_id(&self) -> Result<u64> {
[INFO] [stdout]     |                  ^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout]  97 |     pub async fn estimate_gas(&self, tx: alloy::rpc::types::TransactionRequest) -> Result<U256> {
[INFO] [stdout]     |                  ^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 236 |     pub async fn debug_trace_transaction(
[INFO] [stdout]     |                  ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 366 |     pub fn config(&self) -> &Config {
[INFO] [stdout]     |            ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `call_type` is never read
[INFO] [stdout]    --> src/ethereum/client.rs:383:9
[INFO] [stdout]     |
[INFO] [stdout] 373 | pub struct DebugTraceResult {
[INFO] [stdout]     |            ---------------- field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 383 |     pub call_type: String,
[INFO] [stdout]     |         ^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `DebugTraceResult` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `DebugTraceTransactionResult` is never constructed
[INFO] [stdout]    --> src/ethereum/client.rs:388:12
[INFO] [stdout]     |
[INFO] [stdout] 388 | pub struct DebugTraceTransactionResult {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `format_balance` and `address` are never used
[INFO] [stdout]    --> src/ethereum/erc20.rs:111:18
[INFO] [stdout]     |
[INFO] [stdout]  27 | impl Erc20Token {
[INFO] [stdout]     | --------------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 111 |     pub async fn format_balance(&self, balance: U256) -> Result<Decimal> {
[INFO] [stdout]     |                  ^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 144 |     pub fn address(&self) -> Address {
[INFO] [stdout]     |            ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `get_token1` is never used
[INFO] [stdout]    --> src/ethereum/uniswap.rs:159:18
[INFO] [stdout]     |
[INFO] [stdout]  88 | impl UniswapV2 {
[INFO] [stdout]     | -------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 159 |     pub async fn get_token1(&self, pair_address: Address) -> Result<Address> {
[INFO] [stdout]     |                  ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `amount_in` and `amount_out` are never read
[INFO] [stdout]   --> src/ethereum/swap.rs:94:9
[INFO] [stdout]    |
[INFO] [stdout] 88 | pub struct SwapSimulationResult {
[INFO] [stdout]    |            -------------------- fields in this struct
[INFO] [stdout] ...
[INFO] [stdout] 94 |     pub amount_in: U256,
[INFO] [stdout]    |         ^^^^^^^^^
[INFO] [stdout] 95 |     /// 预估输出数量（原始值）
[INFO] [stdout] 96 |     pub amount_out: U256,
[INFO] [stdout]    |         ^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `SwapSimulationResult` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `new` is never used
[INFO] [stdout]    --> src/ethereum/swap.rs:156:12
[INFO] [stdout]     |
[INFO] [stdout] 145 | impl SwapSimulator {
[INFO] [stdout]     | ------------------ associated function in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 156 |     pub fn new(client: Arc<EthereumClient>, router_address: Address, wrapped_native: Address) -> Self {
[INFO] [stdout]     |            ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated functions `method_not_found` and `invalid_params` are never used
[INFO] [stdout]   --> src/mcp/protocol.rs:76:12
[INFO] [stdout]    |
[INFO] [stdout] 34 | impl JsonRpcResponse {
[INFO] [stdout]    | -------------------- associated functions in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 76 |     pub fn method_not_found(id: Option<Value>) -> Self {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 86 |     pub fn invalid_params(id: Option<Value>, message: Option<String>) -> Self {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `ToolCall` is never constructed
[INFO] [stdout]    --> src/mcp/protocol.rs:117:12
[INFO] [stdout]     |
[INFO] [stdout] 117 | pub struct ToolCall {
[INFO] [stdout]     |            ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `DebugTraceTransactionResult` is never constructed
[INFO] [stdout]    --> src/ethereum/client.rs:388:12
[INFO] [stdout]     |
[INFO] [stdout] 388 | pub struct DebugTraceTransactionResult {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `format_balance` and `address` are never used
[INFO] [stdout]    --> src/ethereum/erc20.rs:111:18
[INFO] [stdout]     |
[INFO] [stdout]  27 | impl Erc20Token {
[INFO] [stdout]     | --------------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 111 |     pub async fn format_balance(&self, balance: U256) -> Result<Decimal> {
[INFO] [stdout]     |                  ^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 144 |     pub fn address(&self) -> Address {
[INFO] [stdout]     |            ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `get_token1` is never used
[INFO] [stdout]    --> src/ethereum/uniswap.rs:159:18
[INFO] [stdout]     |
[INFO] [stdout]  88 | impl UniswapV2 {
[INFO] [stdout]     | -------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 159 |     pub async fn get_token1(&self, pair_address: Address) -> Result<Address> {
[INFO] [stdout]     |                  ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `amount_in` and `amount_out` are never read
[INFO] [stdout]   --> src/ethereum/swap.rs:94:9
[INFO] [stdout]    |
[INFO] [stdout] 88 | pub struct SwapSimulationResult {
[INFO] [stdout]    |            -------------------- fields in this struct
[INFO] [stdout] ...
[INFO] [stdout] 94 |     pub amount_in: U256,
[INFO] [stdout]    |         ^^^^^^^^^
[INFO] [stdout] 95 |     /// 预估输出数量（原始值）
[INFO] [stdout] 96 |     pub amount_out: U256,
[INFO] [stdout]    |         ^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `SwapSimulationResult` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `new` is never used
[INFO] [stdout]    --> src/ethereum/swap.rs:156:12
[INFO] [stdout]     |
[INFO] [stdout] 145 | impl SwapSimulator {
[INFO] [stdout]     | ------------------ associated function in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 156 |     pub fn new(client: Arc<EthereumClient>, router_address: Address, wrapped_native: Address) -> Self {
[INFO] [stdout]     |            ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated functions `method_not_found` and `invalid_params` are never used
[INFO] [stdout]   --> src/mcp/protocol.rs:76:12
[INFO] [stdout]    |
[INFO] [stdout] 34 | impl JsonRpcResponse {
[INFO] [stdout]    | -------------------- associated functions in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 76 |     pub fn method_not_found(id: Option<Value>) -> Self {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 86 |     pub fn invalid_params(id: Option<Value>, message: Option<String>) -> Self {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `ToolCall` is never constructed
[INFO] [stdout]    --> src/mcp/protocol.rs:117:12
[INFO] [stdout]     |
[INFO] [stdout] 117 | pub struct ToolCall {
[INFO] [stdout]     |            ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 41.48s
[INFO] running `Command { std: "docker" "inspect" "4fa3d48ef9096f7c2dd32a99f964ffe68a459f769c5f558c0f32c39586f98a3a", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "4fa3d48ef9096f7c2dd32a99f964ffe68a459f769c5f558c0f32c39586f98a3a", kill_on_drop: false }`
[INFO] [stdout] 4fa3d48ef9096f7c2dd32a99f964ffe68a459f769c5f558c0f32c39586f98a3a
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:98afbf2d16093dec2546ff8915fddc74e65664aa03fc460b3712b1c2c54a33e4" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2026-01-20" "test" "--frozen", kill_on_drop: false }`
[INFO] [stdout] 7f75dd32bcf273a98998ca73972fdd224f97409492af09970f4b7b9363795aab
[INFO] running `Command { std: "docker" "start" "-a" "7f75dd32bcf273a98998ca73972fdd224f97409492af09970f4b7b9363795aab", kill_on_drop: false }`
[INFO] [stderr] warning: unused import: `U256`
[INFO] [stderr]  --> src/config/settings.rs:1:34
[INFO] [stderr]   |
[INFO] [stderr] 1 | use alloy::primitives::{Address, U256};
[INFO] [stderr]   |                                  ^^^^
[INFO] [stderr]   |
[INFO] [stderr]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `ProviderBuilder`
[INFO] [stderr]  --> src/ethereum/client.rs:2:34
[INFO] [stderr]   |
[INFO] [stderr] 2 | use alloy::providers::{Provider, ProviderBuilder};
[INFO] [stderr]   |                                  ^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `alloy::providers::ext::AnvilApi`
[INFO] [stderr]   --> src/ethereum/client.rs:28:13
[INFO] [stderr]    |
[INFO] [stderr] 28 |         use alloy::providers::ext::AnvilApi;
[INFO] [stderr]    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `Bytes`
[INFO] [stderr]  --> src/ethereum/swap.rs:1:34
[INFO] [stderr]   |
[INFO] [stderr] 1 | use alloy::primitives::{Address, Bytes, U256};
[INFO] [stderr]   |                                  ^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `std::collections::HashMap`
[INFO] [stderr]  --> src/mcp/protocol.rs:3:5
[INFO] [stderr]   |
[INFO] [stderr] 3 | use std::collections::HashMap;
[INFO] [stderr]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `json`
[INFO] [stderr]  --> src/mcp/server.rs:3:18
[INFO] [stderr]   |
[INFO] [stderr] 3 | use serde_json::{json, Value};
[INFO] [stderr]   |                  ^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: `eth_mcp_trading` (lib) generated 6 warnings (run `cargo fix --lib -p eth_mcp_trading` to apply 6 suggestions)
[INFO] [stderr] warning: `eth_mcp_trading` (lib test) generated 6 warnings (6 duplicates)
[INFO] [stderr] warning: unused imports: `DebugTraceResult` and `DebugTraceTransactionResult`
[INFO] [stderr]  --> src/ethereum/mod.rs:7:18
[INFO] [stderr]   |
[INFO] [stderr] 7 | pub use client::{DebugTraceResult, DebugTraceTransactionResult};
[INFO] [stderr]   |                  ^^^^^^^^^^^^^^^^  ^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused imports: `TokenPrice`, `UniswapV2`, `get_token_address_by_symbol`, and `get_token_decimals_by_symbol`
[INFO] [stderr]  --> src/ethereum/mod.rs:9:19
[INFO] [stderr]   |
[INFO] [stderr] 9 | pub use uniswap::{UniswapV2, TokenPrice, get_token_address_by_symbol, get_token_decimals_by_symbol};
[INFO] [stderr]   |                   ^^^^^^^^^  ^^^^^^^^^^  ^^^^^^^^^^^^^^^^^^^^^^^^^^^  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused imports: `SwapSimulationResult`, `SwapSimulator`, and `SwapType`
[INFO] [stderr]   --> src/ethereum/mod.rs:10:16
[INFO] [stderr]    |
[INFO] [stderr] 10 | pub use swap::{SwapSimulator, SwapSimulationResult, SwapType};
[INFO] [stderr]    |                ^^^^^^^^^^^^^  ^^^^^^^^^^^^^^^^^^^^  ^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused imports: `create_get_balance_tool` and `handle_get_balance`
[INFO] [stderr]  --> src/mcp/tools/mod.rs:5:19
[INFO] [stderr]   |
[INFO] [stderr] 5 | pub use balance::{create_get_balance_tool, handle_get_balance};
[INFO] [stderr]   |                   ^^^^^^^^^^^^^^^^^^^^^^^  ^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused imports: `create_get_token_price_tool` and `handle_get_token_price`
[INFO] [stderr]  --> src/mcp/tools/mod.rs:6:17
[INFO] [stderr]   |
[INFO] [stderr] 6 | pub use price::{create_get_token_price_tool, handle_get_token_price};
[INFO] [stderr]   |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^  ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused imports: `create_swap_tokens_tool` and `handle_swap_tokens`
[INFO] [stderr]  --> src/mcp/tools/mod.rs:7:16
[INFO] [stderr]   |
[INFO] [stderr] 7 | pub use swap::{create_swap_tokens_tool, handle_swap_tokens};
[INFO] [stderr]   |                ^^^^^^^^^^^^^^^^^^^^^^^  ^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `protocol::*`
[INFO] [stderr]  --> src/mcp/mod.rs:5:9
[INFO] [stderr]   |
[INFO] [stderr] 5 | pub use protocol::*;
[INFO] [stderr]   |         ^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `error`
[INFO] [stderr]   --> src/main.rs:15:21
[INFO] [stderr]    |
[INFO] [stderr] 15 | use tracing::{info, error};
[INFO] [stderr]    |                     ^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: fields `wallet_private_key`, `uniswap_v2_router`, `uniswap_v3_router`, and `log_level` are never read
[INFO] [stderr]   --> src/config/settings.rs:14:9
[INFO] [stderr]    |
[INFO] [stderr]  8 | pub struct Config {
[INFO] [stderr]    |            ------ fields in this struct
[INFO] [stderr] ...
[INFO] [stderr] 14 |     pub wallet_private_key: Option<String>,
[INFO] [stderr]    |         ^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 15 |     /// Uniswap V2 Router 地址
[INFO] [stderr] 16 |     pub uniswap_v2_router: Address,
[INFO] [stderr]    |         ^^^^^^^^^^^^^^^^^
[INFO] [stderr] 17 |     /// Uniswap V3 Router 地址
[INFO] [stderr] 18 |     pub uniswap_v3_router: Address,
[INFO] [stderr]    |         ^^^^^^^^^^^^^^^^^
[INFO] [stderr] 19 |     /// 日志级别
[INFO] [stderr] 20 |     pub log_level: String,
[INFO] [stderr]    |         ^^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `Config` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis
[INFO] [stderr]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: method `validate` is never used
[INFO] [stderr]   --> src/config/settings.rs:69:12
[INFO] [stderr]    |
[INFO] [stderr] 23 | impl Config {
[INFO] [stderr]    | ----------- method in this implementation
[INFO] [stderr] ...
[INFO] [stderr] 69 |     pub fn validate(&self) -> crate::error::Result<()> {
[INFO] [stderr]    |            ^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: variant `JsonRpc` is never constructed
[INFO] [stderr]   --> src/error.rs:13:5
[INFO] [stderr]    |
[INFO] [stderr]  5 | pub enum AppError {
[INFO] [stderr]    |          -------- variant in this enum
[INFO] [stderr] ...
[INFO] [stderr] 13 |     JsonRpc(String),
[INFO] [stderr]    |     ^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `AppError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stderr] 
[INFO] [stderr] warning: methods `get_chain_id`, `estimate_gas`, `debug_trace_transaction`, and `config` are never used
[INFO] [stderr]    --> src/ethereum/client.rs:86:18
[INFO] [stderr]     |
[INFO] [stderr]  25 | impl EthereumClient {
[INFO] [stderr]     | ------------------- methods in this implementation
[INFO] [stderr] ...
[INFO] [stderr]  86 |     pub async fn get_chain_id(&self) -> Result<u64> {
[INFO] [stderr]     |                  ^^^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr]  97 |     pub async fn estimate_gas(&self, tx: alloy::rpc::types::TransactionRequest) -> Result<U256> {
[INFO] [stderr]     |                  ^^^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 236 |     pub async fn debug_trace_transaction(
[INFO] [stderr]     |                  ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 366 |     pub fn config(&self) -> &Config {
[INFO] [stderr]     |            ^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: field `call_type` is never read
[INFO] [stderr]    --> src/ethereum/client.rs:383:9
[INFO] [stderr]     |
[INFO] [stderr] 373 | pub struct DebugTraceResult {
[INFO] [stderr]     |            ---------------- field in this struct
[INFO] [stderr] ...
[INFO] [stderr] 383 |     pub call_type: String,
[INFO] [stderr]     |         ^^^^^^^^^
[INFO] [stderr]     |
[INFO] [stderr]     = note: `DebugTraceResult` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis
[INFO] [stderr] 
[INFO] [stderr] warning: struct `DebugTraceTransactionResult` is never constructed
[INFO] [stderr]    --> src/ethereum/client.rs:388:12
[INFO] [stderr]     |
[INFO] [stderr] 388 | pub struct DebugTraceTransactionResult {
[INFO] [stderr]     |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: methods `format_balance` and `address` are never used
[INFO] [stderr]    --> src/ethereum/erc20.rs:111:18
[INFO] [stderr]     |
[INFO] [stderr]  27 | impl Erc20Token {
[INFO] [stderr]     | --------------- methods in this implementation
[INFO] [stderr] ...
[INFO] [stderr] 111 |     pub async fn format_balance(&self, balance: U256) -> Result<Decimal> {
[INFO] [stderr]     |                  ^^^^^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 144 |     pub fn address(&self) -> Address {
[INFO] [stderr]     |            ^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: method `get_token1` is never used
[INFO] [stderr]    --> src/ethereum/uniswap.rs:159:18
[INFO] [stderr]     |
[INFO] [stderr]  88 | impl UniswapV2 {
[INFO] [stderr]     | -------------- method in this implementation
[INFO] [stderr] ...
[INFO] [stderr] 159 |     pub async fn get_token1(&self, pair_address: Address) -> Result<Address> {
[INFO] [stderr]     |                  ^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: fields `amount_in` and `amount_out` are never read
[INFO] [stderr]   --> src/ethereum/swap.rs:94:9
[INFO] [stderr]    |
[INFO] [stderr] 88 | pub struct SwapSimulationResult {
[INFO] [stderr]    |            -------------------- fields in this struct
[INFO] [stderr] ...
[INFO] [stderr] 94 |     pub amount_in: U256,
[INFO] [stderr]    |         ^^^^^^^^^
[INFO] [stderr] 95 |     /// 预估输出数量（原始值）
[INFO] [stderr] 96 |     pub amount_out: U256,
[INFO] [stderr]    |         ^^^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `SwapSimulationResult` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis
[INFO] [stderr] 
[INFO] [stderr] warning: associated function `new` is never used
[INFO] [stderr]    --> src/ethereum/swap.rs:156:12
[INFO] [stderr]     |
[INFO] [stderr] 145 | impl SwapSimulator {
[INFO] [stderr]     | ------------------ associated function in this implementation
[INFO] [stderr] ...
[INFO] [stderr] 156 |     pub fn new(client: Arc<EthereumClient>, router_address: Address, wrapped_native: Address) -> Self {
[INFO] [stderr]     |            ^^^
[INFO] [stderr] 
[INFO] [stderr] warning: associated functions `method_not_found` and `invalid_params` are never used
[INFO] [stderr]   --> src/mcp/protocol.rs:76:12
[INFO] [stderr]    |
[INFO] [stderr] 34 | impl JsonRpcResponse {
[INFO] [stderr]    | -------------------- associated functions in this implementation
[INFO] [stderr] ...
[INFO] [stderr] 76 |     pub fn method_not_found(id: Option<Value>) -> Self {
[INFO] [stderr]    |            ^^^^^^^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 86 |     pub fn invalid_params(id: Option<Value>, message: Option<String>) -> Self {
[INFO] [stderr]    |            ^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: struct `ToolCall` is never constructed
[INFO] [stderr]    --> src/mcp/protocol.rs:117:12
[INFO] [stderr]     |
[INFO] [stderr] 117 | pub struct ToolCall {
[INFO] [stderr]     |            ^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `U256`
[INFO] [stderr]  --> tests/erc20_tests.rs:1:34
[INFO] [stderr]   |
[INFO] [stderr] 1 | use alloy::primitives::{Address, U256};
[INFO] [stderr]   |                                  ^^^^
[INFO] [stderr]   |
[INFO] [stderr]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: `eth_mcp_trading` (bin "eth_mcp_trading") generated 26 warnings (6 duplicates) (run `cargo fix --bin "eth_mcp_trading" -p eth_mcp_trading` to apply 8 suggestions)
[INFO] [stderr] warning: `eth_mcp_trading` (bin "eth_mcp_trading" test) generated 26 warnings (26 duplicates)
[INFO] [stderr] warning: `eth_mcp_trading` (test "erc20_tests") generated 1 warning (run `cargo fix --test "erc20_tests" -p eth_mcp_trading` to apply 1 suggestion)
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 0.80s
[INFO] [stderr]      Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/eth_mcp_trading-bb9fd60d7202feb3)
[INFO] [stdout] 
[INFO] [stdout] running 14 tests
[INFO] [stdout] test ethereum::erc20::tests::test_format_balance_with_decimals_6_decimals ... ok
[INFO] [stdout] test ethereum::erc20::tests::test_format_balance_with_decimals_8_decimals ... ok
[INFO] [stdout] test ethereum::erc20::tests::test_format_balance_with_decimals_large_value ... ok
[INFO] [stdout] test ethereum::erc20::tests::test_format_balance_with_decimals_exact_power_of_10 ... ok
[INFO] [stdout] test mcp::tools::price::tests::test_format_price_small ... ok
[INFO] [stdout] test ethereum::erc20::tests::test_format_balance_with_decimals_one ... ok
[INFO] [stdout] test mcp::tools::swap::tests::test_format_u256_with_decimals ... ok
[INFO] [stdout] test ethereum::erc20::tests::test_format_balance_with_decimals_very_small ... ok
[INFO] [stdout] test mcp::tools::price::tests::test_format_price_large ... ok
[INFO] [stdout] test mcp::tools::price::tests::test_format_price_medium ... ok
[INFO] [stdout] test mcp::tools::price::tests::test_format_price_very_small ... ok
[INFO] [stdout] test ethereum::erc20::tests::test_format_balance_with_decimals_small_value ... ok
[INFO] [stdout] test mcp::tools::swap::tests::test_decimal_to_raw ... ok
[INFO] [stderr]      Running unittests src/main.rs (/opt/rustwide/target/debug/deps/eth_mcp_trading-d3b19c49fe4a2ace)
[INFO] [stdout] test ethereum::erc20::tests::test_format_balance_with_decimals_zero ... ok
[INFO] [stdout] 
[INFO] [stdout] test result: ok. 14 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.03s
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] running 14 tests
[INFO] [stdout] test ethereum::erc20::tests::test_format_balance_with_decimals_8_decimals ... ok
[INFO] [stdout] test ethereum::erc20::tests::test_format_balance_with_decimals_large_value ... ok
[INFO] [stdout] test ethereum::erc20::tests::test_format_balance_with_decimals_6_decimals ... ok
[INFO] [stdout] test ethereum::erc20::tests::test_format_balance_with_decimals_small_value ... ok
[INFO] [stdout] test ethereum::erc20::tests::test_format_balance_with_decimals_very_small ... ok
[INFO] [stdout] test ethereum::erc20::tests::test_format_balance_with_decimals_one ... ok
[INFO] [stdout] test ethereum::erc20::tests::test_format_balance_with_decimals_exact_power_of_10 ... ok
[INFO] [stdout] test mcp::tools::price::tests::test_format_price_medium ... ok
[INFO] [stdout] test mcp::tools::price::tests::test_format_price_small ... ok
[INFO] [stdout] test mcp::tools::price::tests::test_format_price_very_small ... ok
[INFO] [stdout] test mcp::tools::price::tests::test_format_price_large ... ok
[INFO] [stdout] test mcp::tools::swap::tests::test_decimal_to_raw ... ok
[INFO] [stdout] test mcp::tools::swap::tests::test_format_u256_with_decimals ... ok
[INFO] [stdout] test ethereum::erc20::tests::test_format_balance_with_decimals_zero ... ok
[INFO] [stdout] 
[INFO] [stdout] test result: ok. 14 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
[INFO] [stdout] 
[INFO] [stderr]      Running tests/erc20_tests.rs (/opt/rustwide/target/debug/deps/erc20_tests-e1f82fa53bca0bbf)
[INFO] [stdout] 
[INFO] [stdout] running 1 test
[INFO] [stdout] test test_erc20_format_balance_integration ... FAILED
[INFO] [stdout] 
[INFO] [stdout] failures:
[INFO] [stdout] 
[INFO] [stdout] ---- test_erc20_format_balance_integration stdout ----
[INFO] [stdout] 
[INFO] [stdout] thread 'test_erc20_format_balance_integration' (55) panicked at tests/erc20_tests.rs:31:43:
[INFO] [stdout] 获取 Token 精度失败，请检查网络或代币地址: Contract("合约调用失败: error sending request for url (https://eth.llamarpc.com/)")
[INFO] [stdout] stack backtrace:
[INFO] [stdout]    0:     0x634447eea1e2 - std::backtrace_rs::backtrace::libunwind::trace::hf0bd46b30bc61685
[INFO] [stdout]                                at /rustc/9b1f8ff42d110b0ca138116745be921df5dc97e7/library/std/src/../../backtrace/src/backtrace/libunwind.rs:117:9
[INFO] [stdout]    1:     0x634447eea1e2 - std::backtrace_rs::backtrace::trace_unsynchronized::h1d1fbb72ad89d7b7
[INFO] [stdout]                                at /rustc/9b1f8ff42d110b0ca138116745be921df5dc97e7/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14
[INFO] [stdout]    2:     0x634447eea1e2 - std::sys::backtrace::_print_fmt::he38b6f68ca847f47
[INFO] [stdout]                                at /rustc/9b1f8ff42d110b0ca138116745be921df5dc97e7/library/std/src/sys/backtrace.rs:74:9
[INFO] [stdout]    3:     0x634447eea1e2 - <std::sys::backtrace::BacktraceLock::print::DisplayBacktrace as core::fmt::Display>::fmt::hb7e843cde1bc81a3
[INFO] [stdout]                                at /rustc/9b1f8ff42d110b0ca138116745be921df5dc97e7/library/std/src/sys/backtrace.rs:44:26
[INFO] [stdout]    4:     0x634447efbd3a - core::fmt::rt::Argument::fmt::hc1dd77ac64f2688c
[INFO] [stdout]                                at /rustc/9b1f8ff42d110b0ca138116745be921df5dc97e7/library/core/src/fmt/rt.rs:152:76
[INFO] [stdout]    5:     0x634447efbd3a - core::fmt::write::h952c506e2dbe9cff
[INFO] [stdout]    6:     0x634447eb7916 - std::io::default_write_fmt::hd23bd8145c03a23a
[INFO] [stdout]                                at /rustc/9b1f8ff42d110b0ca138116745be921df5dc97e7/library/std/src/io/mod.rs:639:11
[INFO] [stdout]    7:     0x634447eb7916 - std::io::Write::write_fmt::hdd3314a2bd8a34bd
[INFO] [stdout]                                at /rustc/9b1f8ff42d110b0ca138116745be921df5dc97e7/library/std/src/io/mod.rs:1994:13
[INFO] [stdout]    8:     0x634447ec90d9 - std::sys::backtrace::BacktraceLock::print::h1079b82381c2c252
[INFO] [stdout]                                at /rustc/9b1f8ff42d110b0ca138116745be921df5dc97e7/library/std/src/sys/backtrace.rs:47:9
[INFO] [stdout]    9:     0x634447ec90d9 - std::panicking::default_hook::{{closure}}::h85cb76b8462c00f2
[INFO] [stdout]                                at /rustc/9b1f8ff42d110b0ca138116745be921df5dc97e7/library/std/src/panicking.rs:292:27
[INFO] [stdout]   10:     0x634447ec8f71 - std::panicking::default_hook::h0134d220cc034c02
[INFO] [stdout]                                at /rustc/9b1f8ff42d110b0ca138116745be921df5dc97e7/library/std/src/panicking.rs:316:9
[INFO] [stdout]   11:     0x6344477dd4be - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::hb2e68dca3970e3ca
[INFO] [stdout]                                at /rustc/9b1f8ff42d110b0ca138116745be921df5dc97e7/library/alloc/src/boxed.rs:2220:9
[INFO] [stdout]   12:     0x6344477dd4be - test::test_main_with_exit_callback::{{closure}}::ha7ec2063a2565ec3
[INFO] [stdout]                                at /rustc/9b1f8ff42d110b0ca138116745be921df5dc97e7/library/test/src/lib.rs:145:21
[INFO] [stdout]   13:     0x634447ec9402 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::haebee478d0f56cf4
[INFO] [stdout]                                at /rustc/9b1f8ff42d110b0ca138116745be921df5dc97e7/library/alloc/src/boxed.rs:2220:9
[INFO] [stdout]   14:     0x634447ec9402 - std::panicking::panic_with_hook::h8119b6db1fef734f
[INFO] [stdout]                                at /rustc/9b1f8ff42d110b0ca138116745be921df5dc97e7/library/std/src/panicking.rs:833:13
[INFO] [stdout]   15:     0x634447ec9198 - std::panicking::panic_handler::{{closure}}::h24f5360b91482c0e
[INFO] [stdout]                                at /rustc/9b1f8ff42d110b0ca138116745be921df5dc97e7/library/std/src/panicking.rs:698:13
[INFO] [stdout]   16:     0x634447ec4239 - std::sys::backtrace::__rust_end_short_backtrace::h4e60c5cbd1bd0108
[INFO] [stdout]                                at /rustc/9b1f8ff42d110b0ca138116745be921df5dc97e7/library/std/src/sys/backtrace.rs:182:18
[INFO] [stdout]   17:     0x634447eac43d - __rustc[e4c6931bd8050421]::rust_begin_unwind
[INFO] [stdout]                                at /rustc/9b1f8ff42d110b0ca138116745be921df5dc97e7/library/std/src/panicking.rs:689:5
[INFO] [stdout]   18:     0x634447f047bc - core::panicking::panic_fmt::hb1614a3ff6840071
[INFO] [stdout]                                at /rustc/9b1f8ff42d110b0ca138116745be921df5dc97e7/library/core/src/panicking.rs:80:14
[INFO] [stdout]   19:     0x634447f03f32 - core::result::unwrap_failed::h7d4c34940aded59c
[INFO] [stdout]                                at /rustc/9b1f8ff42d110b0ca138116745be921df5dc97e7/library/core/src/result.rs:1867:5
[INFO] [stdout]   20:     0x6344477b6891 - core::result::Result<T,E>::expect::h1e1e5d87c978a70d
[INFO] [stdout]                                at /rustc/9b1f8ff42d110b0ca138116745be921df5dc97e7/library/core/src/result.rs:1185:23
[INFO] [stdout]   21:     0x6344477b4a65 - erc20_tests::test_erc20_format_balance_integration::{{closure}}::h5054a0f90bf32757
[INFO] [stdout]                                at /opt/rustwide/workdir/tests/erc20_tests.rs:31:43
[INFO] [stdout]   22:     0x6344477be502 - <core::pin::Pin<P> as core::future::future::Future>::poll::h5629877be9b7a802
[INFO] [stdout]                                at /rustc/9b1f8ff42d110b0ca138116745be921df5dc97e7/library/core/src/future/future.rs:133:9
[INFO] [stdout]   23:     0x6344477be57d - <core::pin::Pin<P> as core::future::future::Future>::poll::hab2376e7b94acdd4
[INFO] [stdout]                                at /rustc/9b1f8ff42d110b0ca138116745be921df5dc97e7/library/core/src/future/future.rs:133:9
[INFO] [stdout]   24:     0x6344477bdfed - tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}::{{closure}}::h3cf5543d2df04de0
[INFO] [stdout]                                at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.48.0/src/runtime/scheduler/current_thread/mod.rs:742:70
[INFO] [stdout]   25:     0x6344477bdefb - tokio::task::coop::with_budget::h077e546f79d72085
[INFO] [stdout]                                at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.48.0/src/task/coop/mod.rs:167:5
[INFO] [stdout]   26:     0x6344477bdefb - tokio::task::coop::budget::h94e89a55afc41caf
[INFO] [stdout]                                at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.48.0/src/task/coop/mod.rs:133:5
[INFO] [stdout]   27:     0x6344477bdefb - tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}::hf0610f52cbfe194d
[INFO] [stdout]                                at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.48.0/src/runtime/scheduler/current_thread/mod.rs:742:25
[INFO] [stdout]   28:     0x6344477bad40 - tokio::runtime::scheduler::current_thread::Context::enter::h4d0ec7bc8ff12549
[INFO] [stdout]                                at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.48.0/src/runtime/scheduler/current_thread/mod.rs:432:19
[INFO] [stdout]   29:     0x6344477bc98d - tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::hbfbdd2c2ce208ea5
[INFO] [stdout]                                at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.48.0/src/runtime/scheduler/current_thread/mod.rs:741:44
[INFO] [stdout]   30:     0x6344477bc614 - tokio::runtime::scheduler::current_thread::CoreGuard::enter::{{closure}}::h558ce809c77563ef
[INFO] [stdout]                                at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.48.0/src/runtime/scheduler/current_thread/mod.rs:829:68
[INFO] [stdout]   31:     0x6344477b8dab - tokio::runtime::context::scoped::Scoped<T>::set::hb8e01ff7be7583c3
[INFO] [stdout]                                at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.48.0/src/runtime/context/scoped.rs:40:9
[INFO] [stdout]   32:     0x6344477b8959 - tokio::runtime::context::set_scheduler::{{closure}}::h37a16da0112cbab4
[INFO] [stdout]                                at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.48.0/src/runtime/context.rs:176:38
[INFO] [stdout]   33:     0x6344477b5282 - std::thread::local::LocalKey<T>::try_with::h153fc3f81c40aeeb
[INFO] [stdout]                                at /rustc/9b1f8ff42d110b0ca138116745be921df5dc97e7/library/std/src/thread/local.rs:513:12
[INFO] [stdout]   34:     0x6344477b4fce - std::thread::local::LocalKey<T>::with::h89caf9b2f701e98c
[INFO] [stdout]                                at /rustc/9b1f8ff42d110b0ca138116745be921df5dc97e7/library/std/src/thread/local.rs:477:20
[INFO] [stdout]   35:     0x6344477b88cd - tokio::runtime::context::set_scheduler::h0eb4b1b71dcf0d8e
[INFO] [stdout]                                at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.48.0/src/runtime/context.rs:176:17
[INFO] [stdout]   36:     0x6344477bc3a0 - tokio::runtime::scheduler::current_thread::CoreGuard::enter::he7246f3e67160f5a
[INFO] [stdout]                                at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.48.0/src/runtime/scheduler/current_thread/mod.rs:829:27
[INFO] [stdout]   37:     0x6344477bc6d6 - tokio::runtime::scheduler::current_thread::CoreGuard::block_on::hfa82fa1dabed6bf7
[INFO] [stdout]                                at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.48.0/src/runtime/scheduler/current_thread/mod.rs:729:24
[INFO] [stdout]   38:     0x6344477ba920 - tokio::runtime::scheduler::current_thread::CurrentThread::block_on::{{closure}}::h6974234ed10179e8
[INFO] [stdout]                                at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.48.0/src/runtime/scheduler/current_thread/mod.rs:200:33
[INFO] [stdout]   39:     0x6344477b9073 - tokio::runtime::context::runtime::enter_runtime::h5071c4db250a92a2
[INFO] [stdout]                                at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.48.0/src/runtime/context/runtime.rs:65:16
[INFO] [stdout]   40:     0x6344477ba2e1 - tokio::runtime::scheduler::current_thread::CurrentThread::block_on::hb5037d0ea3403fa6
[INFO] [stdout]                                at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.48.0/src/runtime/scheduler/current_thread/mod.rs:188:9
[INFO] [stdout]   41:     0x6344477b9ec4 - tokio::runtime::runtime::Runtime::block_on_inner::hff371526647a3a75
[INFO] [stdout]                                at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.48.0/src/runtime/runtime.rs:368:52
[INFO] [stdout]   42:     0x6344477ba08c - tokio::runtime::runtime::Runtime::block_on::h2c879a2b153d42a0
[INFO] [stdout]                                at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.48.0/src/runtime/runtime.rs:342:18
[INFO] [stdout]   43:     0x6344477b41f0 - erc20_tests::test_erc20_format_balance_integration::h111f2021d373306c
[INFO] [stdout]                                at /opt/rustwide/workdir/tests/erc20_tests.rs:36:43
[INFO] [stdout]   44:     0x6344477b4287 - erc20_tests::test_erc20_format_balance_integration::{{closure}}::h0b2900e3de073fa3
[INFO] [stdout]                                at /opt/rustwide/workdir/tests/erc20_tests.rs:8:49
[INFO] [stdout]   45:     0x6344477b6236 - core::ops::function::FnOnce::call_once::hf1fd7df41707d569
[INFO] [stdout]                                at /rustc/9b1f8ff42d110b0ca138116745be921df5dc97e7/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   46:     0x6344477dd2bb - core::ops::function::FnOnce::call_once::hefaf63600cd43d2a
[INFO] [stdout]                                at /rustc/9b1f8ff42d110b0ca138116745be921df5dc97e7/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   47:     0x6344477dd2bb - test::__rust_begin_short_backtrace::he30322a73a0e9ea6
[INFO] [stdout]                                at /rustc/9b1f8ff42d110b0ca138116745be921df5dc97e7/library/test/src/lib.rs:663:18
[INFO] [stdout]   48:     0x6344477f0c8a - test::run_test_in_process::{{closure}}::hdea3ab8d0243ef36
[INFO] [stdout]                                at /rustc/9b1f8ff42d110b0ca138116745be921df5dc97e7/library/test/src/lib.rs:686:74
[INFO] [stdout]   49:     0x6344477f0c8a - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::h66d192f42498ffce
[INFO] [stdout]                                at /rustc/9b1f8ff42d110b0ca138116745be921df5dc97e7/library/core/src/panic/unwind_safe.rs:274:9
[INFO] [stdout]   50:     0x6344477f0c8a - std::panicking::catch_unwind::do_call::h822e18e8d3a6bb65
[INFO] [stdout]                                at /rustc/9b1f8ff42d110b0ca138116745be921df5dc97e7/library/std/src/panicking.rs:581:40
[INFO] [stdout]   51:     0x6344477f0c8a - std::panicking::catch_unwind::h54b1de7ceab578bf
[INFO] [stdout]                                at /rustc/9b1f8ff42d110b0ca138116745be921df5dc97e7/library/std/src/panicking.rs:544:19
[INFO] [stdout]   52:     0x6344477f0c8a - std::panic::catch_unwind::h60c29b7a9d0246b1
[INFO] [stdout]                                at /rustc/9b1f8ff42d110b0ca138116745be921df5dc97e7/library/std/src/panic.rs:359:14
[INFO] [stdout]   53:     0x6344477f0c8a - test::run_test_in_process::h6099b5f871379b13
[INFO] [stdout]                                at /rustc/9b1f8ff42d110b0ca138116745be921df5dc97e7/library/test/src/lib.rs:686:27
[INFO] [stdout]   54:     0x6344477f0c8a - test::run_test::{{closure}}::h926ce0a38281a4c8
[INFO] [stdout]                                at /rustc/9b1f8ff42d110b0ca138116745be921df5dc97e7/library/test/src/lib.rs:607:43
[INFO] [stdout]   55:     0x6344477cb0e4 - test::run_test::{{closure}}::h508de21a9afc7140
[INFO] [stdout]                                at /rustc/9b1f8ff42d110b0ca138116745be921df5dc97e7/library/test/src/lib.rs:637:41
[INFO] [stdout]   56:     0x6344477cb0e4 - std::sys::backtrace::__rust_begin_short_backtrace::h6e2f5c39ca00735a
[INFO] [stdout]                                at /rustc/9b1f8ff42d110b0ca138116745be921df5dc97e7/library/std/src/sys/backtrace.rs:166:18
[INFO] [stdout]   57:     0x6344477ce9a2 - std::thread::lifecycle::spawn_unchecked::{{closure}}::{{closure}}::h133e44f0e5802c14
[INFO] [stdout]                                at /rustc/9b1f8ff42d110b0ca138116745be921df5dc97e7/library/std/src/thread/lifecycle.rs:91:13
[INFO] [stdout]   58:     0x6344477ce9a2 - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::h4718c1285283955c
[INFO] [stdout]                                at /rustc/9b1f8ff42d110b0ca138116745be921df5dc97e7/library/core/src/panic/unwind_safe.rs:274:9
[INFO] [stdout]   59:     0x6344477ce9a2 - std::panicking::catch_unwind::do_call::h0bba3937b4892238
[INFO] [stdout]                                at /rustc/9b1f8ff42d110b0ca138116745be921df5dc97e7/library/std/src/panicking.rs:581:40
[INFO] [stdout]   60:     0x6344477ce9a2 - std::panicking::catch_unwind::h5b31cab5fb8c5d7f
[INFO] [stdout]                                at /rustc/9b1f8ff42d110b0ca138116745be921df5dc97e7/library/std/src/panicking.rs:544:19
[INFO] [stdout]   61:     0x6344477ce9a2 - std::panic::catch_unwind::hb2fa05d52ed0124e
[INFO] [stdout]                                at /rustc/9b1f8ff42d110b0ca138116745be921df5dc97e7/library/std/src/panic.rs:359:14
[INFO] [stdout]   62:     0x6344477ce9a2 - std::thread::lifecycle::spawn_unchecked::{{closure}}::hf401cf5ff501bd29
[INFO] [stdout]                                at /rustc/9b1f8ff42d110b0ca138116745be921df5dc97e7/library/std/src/thread/lifecycle.rs:89:26
[INFO] [stdout]   63:     0x6344477ce9a2 - core::ops::function::FnOnce::call_once{{vtable.shim}}::h160022e94ce3b0bb
[INFO] [stdout]                                at /rustc/9b1f8ff42d110b0ca138116745be921df5dc97e7/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   64:     0x634447ebf41f - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::hf234e0d1d1d272ba
[INFO] [stdout]                                at /rustc/9b1f8ff42d110b0ca138116745be921df5dc97e7/library/alloc/src/boxed.rs:2206:9
[INFO] [stdout]   65:     0x634447ebf41f - std::sys::thread::unix::Thread::new::thread_start::h106a295241840d3b
[INFO] [stdout]                                at /rustc/9b1f8ff42d110b0ca138116745be921df5dc97e7/library/std/src/sys/thread/unix.rs:127:17
[INFO] [stdout]   66:     0x72282cdc6aa4 - <unknown>
[INFO] [stdout]   67:     0x72282ce53a64 - clone
[INFO] [stdout]   68:                0x0 - <unknown>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] failures:
[INFO] [stdout]     test_erc20_format_balance_integration
[INFO] [stdout] 
[INFO] [stdout] test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.25s
[INFO] [stdout] 
[INFO] [stderr] error: test failed, to rerun pass `--test erc20_tests`
[INFO] running `Command { std: "docker" "inspect" "7f75dd32bcf273a98998ca73972fdd224f97409492af09970f4b7b9363795aab", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "7f75dd32bcf273a98998ca73972fdd224f97409492af09970f4b7b9363795aab", kill_on_drop: false }`
[INFO] [stdout] 7f75dd32bcf273a98998ca73972fdd224f97409492af09970f4b7b9363795aab
