[INFO] cloning repository https://github.com/teddy-commits/WEYRA
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/teddy-commits/WEYRA" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fteddy-commits%2FWEYRA", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fteddy-commits%2FWEYRA'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 14642ad5931dbe520741c838f380f3d01dc7a9e5
[INFO] checking teddy-commits/WEYRA against eca445e5ae4a6679cc27d3a09106ce245e13a5a6 for pr-162478
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fteddy-commits%2FWEYRA" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/teddy-commits/WEYRA
[INFO] finished tweaking git repo https://github.com/teddy-commits/WEYRA
[INFO] tweaked toml for git repo https://github.com/teddy-commits/WEYRA written to /workspace/builds/worker-5-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/teddy-commits/WEYRA on toolchain eca445e5ae4a6679cc27d3a09106ce245e13a5a6
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+eca445e5ae4a6679cc27d3a09106ce245e13a5a6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/teddy-commits/WEYRA 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" "+eca445e5ae4a6679cc27d3a09106ce245e13a5a6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Updating crates.io index
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded libp2p v0.53.2
[INFO] [stderr]   Downloaded libp2p-yamux v0.45.2
[INFO] [stderr]   Downloaded libp2p-upnp v0.2.2
[INFO] [stderr]   Downloaded libp2p-core v0.41.3
[INFO] [stderr]   Downloaded libp2p-connection-limits v0.3.1
[INFO] [stderr]   Downloaded libp2p-dns v0.41.1
[INFO] [stderr]   Downloaded libp2p-swarm v0.44.2
[INFO] [stderr]   Downloaded cbor4ii v0.3.3
[INFO] [stderr]   Downloaded libp2p-noise v0.44.0
[INFO] [stderr]   Downloaded libp2p-swarm-derive v0.34.2
[INFO] [stderr]   Downloaded futures-ticker v0.0.3
[INFO] [stderr]   Downloaded libp2p-quic v0.10.3
[INFO] [stderr]   Downloaded libp2p-allow-block-list v0.3.0
[INFO] [stderr]   Downloaded libp2p-mdns v0.45.1
[INFO] [stderr]   Downloaded igd-next v0.14.3
[INFO] [stderr]   Downloaded libp2p-request-response v0.26.3
[INFO] [stderr]   Downloaded handlebars v4.5.0
[INFO] [stderr]   Downloaded libp2p-tls v0.4.1
[INFO] [stderr]   Downloaded rcgen v0.11.3
[INFO] [stderr]   Downloaded libp2p-tcp v0.41.0
[INFO] [stderr]   Downloaded attohttpc v0.24.1
[INFO] [stderr]   Downloaded libp2p-gossipsub v0.46.1
[INFO] [stderr]   Downloaded libp2p-kad v0.45.3
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:8683fc1fc2eb5c9ac98e0d076ab094b2ffac7f99da555d2b6a2e27f346de2ec7" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] fbc13558c41f6da969e1b5a8751de65f427944056b69ce6b09abbf47dab84969
[INFO] running `Command { std: "docker" "start" "fbc13558c41f6da969e1b5a8751de65f427944056b69ce6b09abbf47dab84969", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "fbc13558c41f6da969e1b5a8751de65f427944056b69ce6b09abbf47dab84969", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "fbc13558c41f6da969e1b5a8751de65f427944056b69ce6b09abbf47dab84969" "/opt/rustwide/cargo-home/bin/cargo" "+eca445e5ae4a6679cc27d3a09106ce245e13a5a6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "fbc13558c41f6da969e1b5a8751de65f427944056b69ce6b09abbf47dab84969", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-w" "/opt/rustwide/workdir" "--user" "0:0" "fbc13558c41f6da969e1b5a8751de65f427944056b69ce6b09abbf47dab84969" "/opt/rustwide/cargo-home/bin/cargo" "+eca445e5ae4a6679cc27d3a09106ce245e13a5a6" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stderr]     Checking tokio v1.49.0
[INFO] [stderr]     Checking tracing v0.1.44
[INFO] [stderr]    Compiling curve25519-dalek v4.1.3
[INFO] [stderr]     Checking digest v0.10.7
[INFO] [stderr]     Checking multihash v0.19.3
[INFO] [stderr]     Checking void v1.0.2
[INFO] [stderr]     Checking http v0.2.12
[INFO] [stderr]    Compiling openssl-sys v0.9.111
[INFO] [stderr]     Checking socket2 v0.5.10
[INFO] [stderr]     Checking idna v1.1.0
[INFO] [stderr]    Compiling libp2p-swarm-derive v0.34.2
[INFO] [stderr]    Compiling ring v0.17.14
[INFO] [stderr]     Checking base64ct v1.8.3
[INFO] [stderr]     Checking num-traits v0.2.19
[INFO] [stderr]    Compiling openssl-macros v0.1.1
[INFO] [stderr]    Compiling pest v2.8.6
[INFO] [stderr]    Compiling parking_lot_core v0.8.6
[INFO] [stderr]    Compiling enum-as-inner v0.6.1
[INFO] [stderr]     Checking regex-syntax v0.8.9
[INFO] [stderr]    Compiling mime_guess v2.0.5
[INFO] [stderr]     Checking cbor4ii v0.3.3
[INFO] [stderr]     Checking signature v2.2.0
[INFO] [stderr]     Checking sha2 v0.10.9
[INFO] [stderr]     Checking url v2.5.8
[INFO] [stderr]     Checking hmac v0.12.1
[INFO] [stderr]     Checking ed25519 v2.2.3
[INFO] [stderr]     Checking pem-rfc7468 v0.7.0
[INFO] [stderr]     Checking hkdf v0.12.4
[INFO] [stderr]    Compiling openssl v0.10.75
[INFO] [stderr]    Compiling native-tls v0.2.18
[INFO] [stderr]     Checking sha1 v0.10.6
[INFO] [stderr]     Checking der v0.7.10
[INFO] [stderr]     Checking axum-core v0.5.6
[INFO] [stderr]    Compiling axum-macros v0.5.0
[INFO] [stderr]     Checking parking_lot v0.11.2
[INFO] [stderr]     Checking hickory-proto v0.24.4
[INFO] [stderr]     Checking tungstenite v0.21.0
[INFO] [stderr]     Checking http-body v0.4.6
[INFO] [stderr]     Checking headers-core v0.2.0
[INFO] [stderr]     Checking num-integer v0.1.46
[INFO] [stderr]     Checking multer v2.1.0
[INFO] [stderr]     Checking headers v0.3.9
[INFO] [stderr]     Checking is-terminal v0.4.17
[INFO] [stderr]     Checking fs2 v0.4.3
[INFO] [stderr]     Checking num-iter v0.1.45
[INFO] [stderr]     Checking regex-automata v0.4.14
[INFO] [stderr]     Checking humantime v2.3.0
[INFO] [stderr]    Compiling pest_meta v2.8.6
[INFO] [stderr]     Checking num-bigint-dig v0.8.6
[INFO] [stderr]     Checking chrono v0.4.43
[INFO] [stderr]     Checking sled v0.34.7
[INFO] [stderr]     Checking tower-http v0.5.2
[INFO] [stderr]     Checking spki v0.7.3
[INFO] [stderr]     Checking ed25519-dalek v2.2.0
[INFO] [stderr]     Checking pkcs8 v0.10.2
[INFO] [stderr]     Checking x25519-dalek v2.0.1
[INFO] [stderr]     Checking libp2p-identity v0.2.13
[INFO] [stderr]     Checking pkcs1 v0.7.5
[INFO] [stderr]     Checking multiaddr v0.18.2
[INFO] [stderr]     Checking rsa v0.9.10
[INFO] [stderr]    Compiling pest_generator v2.8.6
[INFO] [stderr]     Checking libp2p-core v0.41.3
[INFO] [stderr]    Compiling pest_derive v2.8.6
[INFO] [stderr]     Checking handlebars v4.5.0
[INFO] [stderr]     Checking libp2p-yamux v0.45.2
[INFO] [stderr]     Checking regex v1.12.3
[INFO] [stderr]     Checking env_logger v0.10.2
[INFO] [stderr]    Compiling snow v0.9.6
[INFO] [stderr]     Checking netlink-sys v0.8.8
[INFO] [stderr]     Checking libp2p-swarm v0.44.2
[INFO] [stderr]     Checking tokio-util v0.7.18
[INFO] [stderr]     Checking hyper v1.8.1
[INFO] [stderr]     Checking tower v0.5.3
[INFO] [stderr]     Checking tokio-tungstenite v0.21.0
[INFO] [stderr]     Checking netlink-proto v0.11.5
[INFO] [stderr]     Checking tokio-native-tls v0.3.1
[INFO] [stderr]     Checking rtnetlink v0.13.1
[INFO] [stderr]     Checking h2 v0.3.27
[INFO] [stderr]     Checking hyper-util v0.1.20
[INFO] [stderr]     Checking if-watch v3.2.1
[INFO] [stderr]     Checking libp2p-tcp v0.41.0
[INFO] [stderr]     Checking axum v0.8.8
[INFO] [stderr]     Checking libp2p-noise v0.44.0
[INFO] [stderr]     Checking libp2p-connection-limits v0.3.1
[INFO] [stderr]     Checking libp2p-allow-block-list v0.3.0
[INFO] [stderr]     Checking libp2p-mdns v0.45.1
[INFO] [stderr]     Checking libp2p-request-response v0.26.3
[INFO] [stderr]     Checking libp2p v0.53.2
[INFO] [stderr]     Checking hyper v0.14.32
[INFO] [stderr]     Checking hyper-tls v0.5.0
[INFO] [stderr]     Checking warp v0.3.7
[INFO] [stderr]     Checking reqwest v0.11.27
[INFO] [stderr]     Checking weyra v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: use of deprecated function `base64::encode`: Use Engine::encode
[INFO] [stdout]   --> src/wallet.rs:82:17
[INFO] [stdout]    |
[INFO] [stdout] 82 |         base64::encode(signature)
[INFO] [stdout]    |                 ^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(deprecated)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated function `base64::decode`: Use Engine::decode
[INFO] [stdout]   --> src/wallet.rs:91:39
[INFO] [stdout]    |
[INFO] [stdout] 91 |         let signature = match base64::decode(signature_str) {
[INFO] [stdout]    |                                       ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated function `base64::encode`: Use Engine::encode
[INFO] [stdout]   --> src/wallet.rs:82:17
[INFO] [stdout]    |
[INFO] [stdout] 82 |         base64::encode(signature)
[INFO] [stdout]    |                 ^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(deprecated)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated function `base64::decode`: Use Engine::decode
[INFO] [stdout]   --> src/wallet.rs:91:39
[INFO] [stdout]    |
[INFO] [stdout] 91 |         let signature = match base64::decode(signature_str) {
[INFO] [stdout]    |                                       ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/main.rs:29:13
[INFO] [stdout]    |
[INFO] [stdout] 29 |         let mut node = BlockchainNode::new(4, 100.0);
[INFO] [stdout]    |             ----^^^^
[INFO] [stdout]    |             |
[INFO] [stdout]    |             help: remove this `mut`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `verify_transaction` is never used
[INFO] [stdout]   --> src/block.rs:74:12
[INFO] [stdout]    |
[INFO] [stdout] 19 | impl Block {
[INFO] [stdout]    | ---------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 74 |     pub fn verify_transaction(&self, tx_id: &str) -> bool {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `is_chain_valid` and `verify_transaction_in_block` are never used
[INFO] [stdout]    --> src/blockchain.rs:283:12
[INFO] [stdout]     |
[INFO] [stdout]  17 | impl Blockchain {
[INFO] [stdout]     | --------------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 283 |     pub fn is_chain_valid(&self) -> bool {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 310 |     pub fn verify_transaction_in_block(&self, block_index: usize, tx_id: &str) -> bool {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `generate_proof`, `find_proof`, and `verify_proof` are never used
[INFO] [stdout]    --> src/merkle_tree.rs:93:12
[INFO] [stdout]     |
[INFO] [stdout]  17 | impl MerkleTree {
[INFO] [stdout]     | --------------- associated items in this implementation
[INFO] [stdout] ...
[INFO] [stdout]  93 |     pub fn generate_proof(&self, leaf_hash: &str) -> Option<Vec<(String, bool)>> {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 106 |     fn find_proof(
[INFO] [stdout]     |        ^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 137 |     pub fn verify_proof(leaf_hash: &str, proof: Vec<(String, bool)>, root_hash: &str) -> bool {
[INFO] [stdout]     |            ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `peer_id` and `event_sender` are never read
[INFO] [stdout]   --> src/network.rs:67:9
[INFO] [stdout]    |
[INFO] [stdout] 65 | pub struct P2PNetwork {
[INFO] [stdout]    |            ---------- fields in this struct
[INFO] [stdout] 66 |     pub swarm: Swarm<BlockchainBehaviour>,
[INFO] [stdout] 67 |     pub peer_id: PeerId,
[INFO] [stdout]    |         ^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 70 |     pub event_sender: mpsc::UnboundedSender<NetworkEvent>,
[INFO] [stdout]    |         ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variants `NewPeer`, `PeerDisconnected`, `NewBlock`, `NewTransaction`, and `SyncRequest` are never constructed
[INFO] [stdout]   --> src/network.rs:75:5
[INFO] [stdout]    |
[INFO] [stdout] 74 | pub enum NetworkEvent {
[INFO] [stdout]    |          ------------ variants in this enum
[INFO] [stdout] 75 |     NewPeer(PeerId),
[INFO] [stdout]    |     ^^^^^^^
[INFO] [stdout] 76 |     PeerDisconnected(PeerId),
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^
[INFO] [stdout] 77 |     NewBlock(Block),
[INFO] [stdout]    |     ^^^^^^^^
[INFO] [stdout] 78 |     NewTransaction(UTXOTransaction),
[INFO] [stdout]    |     ^^^^^^^^^^^^^^
[INFO] [stdout] 79 |     SyncRequest(PeerId, u64, u64),
[INFO] [stdout]    |     ^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `NetworkEvent` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `process_events` is never used
[INFO] [stdout]    --> src/node.rs:145:18
[INFO] [stdout]     |
[INFO] [stdout]  17 | impl BlockchainNode {
[INFO] [stdout]     | ------------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 145 |     pub async fn process_events(&mut self) {
[INFO] [stdout]     |                  ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `source` and `last_update` are never read
[INFO] [stdout]   --> src/oracle.rs:10:9
[INFO] [stdout]    |
[INFO] [stdout]  7 | pub struct PriceOracle {
[INFO] [stdout]    |            ----------- fields in this struct
[INFO] [stdout] ...
[INFO] [stdout] 10 |     pub source: OracleSource,
[INFO] [stdout]    |         ^^^^^^
[INFO] [stdout] 11 |     pub last_update: Arc<Mutex<i64>>,
[INFO] [stdout]    |         ^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `PriceOracle` 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: variants `Chainlink`, `Manual`, and `Aggregated` are never constructed
[INFO] [stdout]   --> src/oracle.rs:17:5
[INFO] [stdout]    |
[INFO] [stdout] 15 | pub enum OracleSource {
[INFO] [stdout]    |          ------------ variants in this enum
[INFO] [stdout] 16 |     CoinGecko,
[INFO] [stdout] 17 |     Chainlink,
[INFO] [stdout]    |     ^^^^^^^^^
[INFO] [stdout] 18 |     Manual(f64),
[INFO] [stdout]    |     ^^^^^^
[INFO] [stdout] 19 |     Aggregated,
[INFO] [stdout]    |     ^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `OracleSource` 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: multiple associated items are never used
[INFO] [stdout]    --> src/oracle.rs:32:12
[INFO] [stdout]     |
[INFO] [stdout]  22 | impl PriceOracle {
[INFO] [stdout]     | ---------------- associated items in this implementation
[INFO] [stdout] ...
[INFO] [stdout]  32 |     pub fn with_source(target_peg: f64, source: OracleSource) -> Self {
[INFO] [stdout]     |            ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout]  46 |     pub async fn start_price_feed(oracle: Arc<PriceOracle>) {
[INFO] [stdout]     |                  ^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout]  73 |     pub async fn fetch_price(&self) -> Result<f64, Box<dyn std::error::Error + Send + Sync>> {
[INFO] [stdout]     |                  ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout]  82 |     async fn fetch_from_coingecko(&self) -> Result<f64, Box<dyn std::error::Error + Send + Sync>> {
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 103 |     async fn fetch_from_chainlink(&self) -> Result<f64, Box<dyn std::error::Error + Send + Sync>> {
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 107 |     async fn fetch_aggregated_price(
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 142 |     pub fn calculate_mint_amount(&self, total_supply: f64) -> f64 {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 152 |     pub fn calculate_burn_amount(&self, total_supply: f64) -> f64 {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `validate_chain` is never used
[INFO] [stdout]   --> src/proof_of_work.rs:18:12
[INFO] [stdout]    |
[INFO] [stdout]  8 | impl ProofOfWork {
[INFO] [stdout]    | ---------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 18 |     pub fn validate_chain(&self, blocks: &[Block]) -> bool {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `calculate_merkle_root` is never used
[INFO] [stdout]  --> src/utils.rs:3:8
[INFO] [stdout]   |
[INFO] [stdout] 3 | pub fn calculate_merkle_root(hashes: Vec<String>) -> String {
[INFO] [stdout]   |        ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `sha256_hash` is never used
[INFO] [stdout]   --> src/utils.rs:31:8
[INFO] [stdout]    |
[INFO] [stdout] 31 | pub fn sha256_hash(data: &str) -> String {
[INFO] [stdout]    |        ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `get_balance` is never used
[INFO] [stdout]    --> src/wallet.rs:206:12
[INFO] [stdout]     |
[INFO] [stdout] 180 | impl UTXOPool {
[INFO] [stdout]     | ------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 206 |     pub fn get_balance(&self, address: &str) -> f64 {
[INFO] [stdout]     |            ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/main.rs:29:13
[INFO] [stdout]    |
[INFO] [stdout] 29 |         let mut node = BlockchainNode::new(4, 100.0);
[INFO] [stdout]    |             ----^^^^
[INFO] [stdout]    |             |
[INFO] [stdout]    |             help: remove this `mut`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `verify_transaction` is never used
[INFO] [stdout]   --> src/block.rs:74:12
[INFO] [stdout]    |
[INFO] [stdout] 19 | impl Block {
[INFO] [stdout]    | ---------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 74 |     pub fn verify_transaction(&self, tx_id: &str) -> bool {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `is_chain_valid` and `verify_transaction_in_block` are never used
[INFO] [stdout]    --> src/blockchain.rs:283:12
[INFO] [stdout]     |
[INFO] [stdout]  17 | impl Blockchain {
[INFO] [stdout]     | --------------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 283 |     pub fn is_chain_valid(&self) -> bool {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 310 |     pub fn verify_transaction_in_block(&self, block_index: usize, tx_id: &str) -> bool {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `generate_proof`, `find_proof`, and `verify_proof` are never used
[INFO] [stdout]    --> src/merkle_tree.rs:93:12
[INFO] [stdout]     |
[INFO] [stdout]  17 | impl MerkleTree {
[INFO] [stdout]     | --------------- associated items in this implementation
[INFO] [stdout] ...
[INFO] [stdout]  93 |     pub fn generate_proof(&self, leaf_hash: &str) -> Option<Vec<(String, bool)>> {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 106 |     fn find_proof(
[INFO] [stdout]     |        ^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 137 |     pub fn verify_proof(leaf_hash: &str, proof: Vec<(String, bool)>, root_hash: &str) -> bool {
[INFO] [stdout]     |            ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `peer_id` and `event_sender` are never read
[INFO] [stdout]   --> src/network.rs:67:9
[INFO] [stdout]    |
[INFO] [stdout] 65 | pub struct P2PNetwork {
[INFO] [stdout]    |            ---------- fields in this struct
[INFO] [stdout] 66 |     pub swarm: Swarm<BlockchainBehaviour>,
[INFO] [stdout] 67 |     pub peer_id: PeerId,
[INFO] [stdout]    |         ^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 70 |     pub event_sender: mpsc::UnboundedSender<NetworkEvent>,
[INFO] [stdout]    |         ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variants `NewPeer`, `PeerDisconnected`, `NewBlock`, `NewTransaction`, and `SyncRequest` are never constructed
[INFO] [stdout]   --> src/network.rs:75:5
[INFO] [stdout]    |
[INFO] [stdout] 74 | pub enum NetworkEvent {
[INFO] [stdout]    |          ------------ variants in this enum
[INFO] [stdout] 75 |     NewPeer(PeerId),
[INFO] [stdout]    |     ^^^^^^^
[INFO] [stdout] 76 |     PeerDisconnected(PeerId),
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^
[INFO] [stdout] 77 |     NewBlock(Block),
[INFO] [stdout]    |     ^^^^^^^^
[INFO] [stdout] 78 |     NewTransaction(UTXOTransaction),
[INFO] [stdout]    |     ^^^^^^^^^^^^^^
[INFO] [stdout] 79 |     SyncRequest(PeerId, u64, u64),
[INFO] [stdout]    |     ^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `NetworkEvent` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `process_events` is never used
[INFO] [stdout]    --> src/node.rs:145:18
[INFO] [stdout]     |
[INFO] [stdout]  17 | impl BlockchainNode {
[INFO] [stdout]     | ------------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 145 |     pub async fn process_events(&mut self) {
[INFO] [stdout]     |                  ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `target_peg`, `source`, and `last_update` are never read
[INFO] [stdout]   --> src/oracle.rs:9:9
[INFO] [stdout]    |
[INFO] [stdout]  7 | pub struct PriceOracle {
[INFO] [stdout]    |            ----------- fields in this struct
[INFO] [stdout]  8 |     pub current_price: Arc<Mutex<f64>>,
[INFO] [stdout]  9 |     pub target_peg: f64,
[INFO] [stdout]    |         ^^^^^^^^^^
[INFO] [stdout] 10 |     pub source: OracleSource,
[INFO] [stdout]    |         ^^^^^^
[INFO] [stdout] 11 |     pub last_update: Arc<Mutex<i64>>,
[INFO] [stdout]    |         ^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `PriceOracle` 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: variants `Chainlink`, `Manual`, and `Aggregated` are never constructed
[INFO] [stdout]   --> src/oracle.rs:17:5
[INFO] [stdout]    |
[INFO] [stdout] 15 | pub enum OracleSource {
[INFO] [stdout]    |          ------------ variants in this enum
[INFO] [stdout] 16 |     CoinGecko,
[INFO] [stdout] 17 |     Chainlink,
[INFO] [stdout]    |     ^^^^^^^^^
[INFO] [stdout] 18 |     Manual(f64),
[INFO] [stdout]    |     ^^^^^^
[INFO] [stdout] 19 |     Aggregated,
[INFO] [stdout]    |     ^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `OracleSource` 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: multiple associated items are never used
[INFO] [stdout]    --> src/oracle.rs:32:12
[INFO] [stdout]     |
[INFO] [stdout]  22 | impl PriceOracle {
[INFO] [stdout]     | ---------------- associated items in this implementation
[INFO] [stdout] ...
[INFO] [stdout]  32 |     pub fn with_source(target_peg: f64, source: OracleSource) -> Self {
[INFO] [stdout]     |            ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout]  46 |     pub async fn start_price_feed(oracle: Arc<PriceOracle>) {
[INFO] [stdout]     |                  ^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout]  73 |     pub async fn fetch_price(&self) -> Result<f64, Box<dyn std::error::Error + Send + Sync>> {
[INFO] [stdout]     |                  ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout]  82 |     async fn fetch_from_coingecko(&self) -> Result<f64, Box<dyn std::error::Error + Send + Sync>> {
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 103 |     async fn fetch_from_chainlink(&self) -> Result<f64, Box<dyn std::error::Error + Send + Sync>> {
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 107 |     async fn fetch_aggregated_price(
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 120 |     pub fn get_price_deviation(&self) -> f64 {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 125 |     pub fn needs_stabilization(&self, threshold: f64) -> bool {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 130 |     pub fn get_stabilization_direction(&self) -> StabilizationDirection {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 142 |     pub fn calculate_mint_amount(&self, total_supply: f64) -> f64 {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 152 |     pub fn calculate_burn_amount(&self, total_supply: f64) -> f64 {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `StabilizationDirection` is never used
[INFO] [stdout]    --> src/oracle.rs:164:10
[INFO] [stdout]     |
[INFO] [stdout] 164 | pub enum StabilizationDirection {
[INFO] [stdout]     |          ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `StabilityPool` is never constructed
[INFO] [stdout]    --> src/oracle.rs:170:12
[INFO] [stdout]     |
[INFO] [stdout] 170 | pub struct StabilityPool {
[INFO] [stdout]     |            ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `new`, `can_mint`, `mint`, and `burn` are never used
[INFO] [stdout]    --> src/oracle.rs:177:12
[INFO] [stdout]     |
[INFO] [stdout] 176 | impl StabilityPool {
[INFO] [stdout]     | ------------------ associated items in this implementation
[INFO] [stdout] 177 |     pub fn new(initial_weyra: f64, initial_collateral: f64) -> Self {
[INFO] [stdout]     |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 185 |     pub fn can_mint(&self, amount: f64, collateral_value: f64) -> bool {
[INFO] [stdout]     |            ^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 191 |     pub fn mint(&mut self, amount: f64, collateral_added: f64) -> Result<(), String> {
[INFO] [stdout]     |            ^^^^
[INFO] [stdout] ...
[INFO] [stdout] 201 |     pub fn burn(&mut self, amount: f64) -> Result<f64, String> {
[INFO] [stdout]     |            ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `validate_chain` is never used
[INFO] [stdout]   --> src/proof_of_work.rs:18:12
[INFO] [stdout]    |
[INFO] [stdout]  8 | impl ProofOfWork {
[INFO] [stdout]    | ---------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 18 |     pub fn validate_chain(&self, blocks: &[Block]) -> bool {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `calculate_merkle_root` is never used
[INFO] [stdout]  --> src/utils.rs:3:8
[INFO] [stdout]   |
[INFO] [stdout] 3 | pub fn calculate_merkle_root(hashes: Vec<String>) -> String {
[INFO] [stdout]   |        ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `sha256_hash` is never used
[INFO] [stdout]   --> src/utils.rs:31:8
[INFO] [stdout]    |
[INFO] [stdout] 31 | pub fn sha256_hash(data: &str) -> String {
[INFO] [stdout]    |        ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `get_balance` is never used
[INFO] [stdout]    --> src/wallet.rs:206:12
[INFO] [stdout]     |
[INFO] [stdout] 180 | impl UTXOPool {
[INFO] [stdout]     | ------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 206 |     pub fn get_balance(&self, address: &str) -> f64 {
[INFO] [stdout]     |            ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] warning: unused dependency `handlebars`
[INFO] [stderr]  --> Cargo.toml:7:1
[INFO] [stderr]   |
[INFO] [stderr] 7 | handlebars = "4.3"
[INFO] [stderr]   | ^^^^^^^^^^^^^^^^^^
[INFO] [stderr]   |
[INFO] [stderr]   = note: `cargo::unused_dependencies` is set to `warn` by default
[INFO] [stderr] help: consider removing the dependency on `handlebars`
[INFO] [stderr] warning: unused dependency `warp`
[INFO] [stderr]   --> Cargo.toml:16:1
[INFO] [stderr]    |
[INFO] [stderr] 16 | warp = "0.3"
[INFO] [stderr]    | ^^^^^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr] help: consider removing the dependency on `warp`
[INFO] [stderr] warning: `weyra` (manifest) generated 2 warnings
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 21.75s
[INFO] running `Command { std: "docker" "inspect" "fbc13558c41f6da969e1b5a8751de65f427944056b69ce6b09abbf47dab84969", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "fbc13558c41f6da969e1b5a8751de65f427944056b69ce6b09abbf47dab84969", kill_on_drop: false }`
[INFO] [stdout] fbc13558c41f6da969e1b5a8751de65f427944056b69ce6b09abbf47dab84969
