[INFO] cloning repository https://github.com/elvisisvan/rust-blockchain [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/elvisisvan/rust-blockchain" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Felvisisvan%2Frust-blockchain", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Felvisisvan%2Frust-blockchain'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 17e539d77b3d20526d3a0bd1ee9393ec474c9ded [INFO] checking elvisisvan/rust-blockchain/17e539d77b3d20526d3a0bd1ee9393ec474c9ded against master#96cfc75584359ae7ad11cc45968059f29e7b44b7 for pr-137728 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Felvisisvan%2Frust-blockchain" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/elvisisvan/rust-blockchain on toolchain 96cfc75584359ae7ad11cc45968059f29e7b44b7 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+96cfc75584359ae7ad11cc45968059f29e7b44b7" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/elvisisvan/rust-blockchain [INFO] finished tweaking git repo https://github.com/elvisisvan/rust-blockchain [INFO] tweaked toml for git repo https://github.com/elvisisvan/rust-blockchain written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/elvisisvan/rust-blockchain 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" "+96cfc75584359ae7ad11cc45968059f29e7b44b7" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 86 packages to latest compatible versions [INFO] [stderr] Adding async-io v2.4.0 [INFO] [stderr] Adding async-lock v3.4.0 [INFO] [stderr] Adding bitflags v2.8.0 [INFO] [stderr] Adding bytes v1.10.0 [INFO] [stderr] Updating concurrent-queue v2.1.0 -> v2.5.0 [INFO] [stderr] Adding core-foundation v0.9.4 [INFO] [stderr] Updating core-foundation-sys v0.8.3 -> v0.8.7 [INFO] [stderr] Adding core2 v0.4.0 [INFO] [stderr] Adding equivalent v1.0.2 [INFO] [stderr] Adding errno v0.3.10 [INFO] [stderr] Adding event-listener v5.4.0 [INFO] [stderr] Adding event-listener-strategy v0.5.3 [INFO] [stderr] Updating fixedbitset v0.2.0 -> v0.4.2 [INFO] [stderr] Updating futures v0.3.25 -> v0.3.31 [INFO] [stderr] Updating futures-channel v0.3.25 -> v0.3.31 [INFO] [stderr] Updating futures-core v0.3.25 -> v0.3.31 [INFO] [stderr] Updating futures-executor v0.3.25 -> v0.3.31 [INFO] [stderr] Updating futures-io v0.3.25 -> v0.3.31 [INFO] [stderr] Adding futures-lite v2.6.0 [INFO] [stderr] Updating futures-macro v0.3.25 -> v0.3.31 [INFO] [stderr] Updating futures-sink v0.3.25 -> v0.3.31 [INFO] [stderr] Updating futures-task v0.3.25 -> v0.3.31 [INFO] [stderr] Updating futures-util v0.3.25 -> v0.3.31 [INFO] [stderr] Adding hashbrown v0.15.2 [INFO] [stderr] Adding hermit-abi v0.4.0 [INFO] [stderr] Updating if-addrs v0.6.7 -> v0.7.0 [INFO] [stderr] Updating if-watch v0.2.2 -> v2.0.0 [INFO] [stderr] Updating indexmap v1.9.2 -> v2.7.1 [INFO] [stderr] Updating libc v0.2.139 -> v0.2.170 [INFO] [stderr] Updating libp2p v0.39.1 -> v0.49.0 (available: v0.55.0) [INFO] [stderr] Updating libp2p-core v0.29.0 -> v0.37.0 [INFO] [stderr] Updating libp2p-mdns v0.31.0 -> v0.41.0 [INFO] [stderr] Updating libp2p-swarm v0.30.0 -> v0.40.1 [INFO] [stderr] Updating libp2p-swarm-derive v0.24.0 -> v0.30.1 [INFO] [stderr] Updating libp2p-tcp v0.29.0 -> v0.37.0 [INFO] [stderr] Adding linux-raw-sys v0.4.15 [INFO] [stderr] Updating multiaddr v0.13.0 -> v0.14.0 [INFO] [stderr] Updating multihash v0.14.0 -> v0.16.3 [INFO] [stderr] Updating multihash-derive v0.7.2 -> v0.8.1 [INFO] [stderr] Updating multistream-select v0.10.4 -> v0.12.1 [INFO] [stderr] Adding netlink-packet-core v0.4.2 [INFO] [stderr] Adding netlink-packet-route v0.12.0 [INFO] [stderr] Adding netlink-packet-utils v0.5.2 [INFO] [stderr] Adding netlink-proto v0.10.0 [INFO] [stderr] Adding netlink-sys v0.8.7 [INFO] [stderr] Adding nix v0.24.3 [INFO] [stderr] Updating parking_lot v0.11.2 -> v0.12.3 [INFO] [stderr] Updating parking_lot_core v0.8.6 -> v0.9.10 [INFO] [stderr] Adding paste v1.0.15 [INFO] [stderr] Updating petgraph v0.5.1 -> v0.6.5 [INFO] [stderr] Adding pin-project-lite v0.2.16 [INFO] [stderr] Adding polling v3.7.4 [INFO] [stderr] Adding prettyplease v0.1.25 [INFO] [stderr] Downgrading proc-macro-crate v1.2.1 -> v1.1.3 (available: v1.3.1) [INFO] [stderr] Updating proc-macro2 v1.0.50 -> v1.0.93 [INFO] [stderr] Updating prost v0.8.0 -> v0.11.9 [INFO] [stderr] Updating prost-build v0.8.0 -> v0.11.9 [INFO] [stderr] Updating prost-derive v0.8.0 -> v0.11.9 [INFO] [stderr] Updating prost-types v0.8.0 -> v0.11.9 [INFO] [stderr] Updating quote v1.0.23 -> v1.0.38 [INFO] [stderr] Adding redox_syscall v0.5.9 [INFO] [stderr] Adding rtnetlink v0.10.1 [INFO] [stderr] Adding rustix v0.38.44 [INFO] [stderr] Updating rw-stream-sink v0.2.1 -> v0.3.0 [INFO] [stderr] Adding syn v2.0.98 [INFO] [stderr] Adding system-configuration v0.5.1 [INFO] [stderr] Adding system-configuration-sys v0.5.0 [INFO] [stderr] Updating tokio-macros v0.3.2 -> v1.8.2 [INFO] [stderr] Adding tracing v0.1.41 [INFO] [stderr] Adding tracing-core v0.1.33 [INFO] [stderr] Adding windows v0.34.0 [INFO] [stderr] Adding windows-sys v0.59.0 [INFO] [stderr] Adding windows-targets v0.52.6 [INFO] [stderr] Adding windows_aarch64_gnullvm v0.52.6 [INFO] [stderr] Adding windows_aarch64_msvc v0.34.0 [INFO] [stderr] Adding windows_aarch64_msvc v0.52.6 [INFO] [stderr] Adding windows_i686_gnu v0.34.0 [INFO] [stderr] Adding windows_i686_gnu v0.52.6 [INFO] [stderr] Adding windows_i686_gnullvm v0.52.6 [INFO] [stderr] Adding windows_i686_msvc v0.34.0 [INFO] [stderr] Adding windows_i686_msvc v0.52.6 [INFO] [stderr] Adding windows_x86_64_gnu v0.34.0 [INFO] [stderr] Adding windows_x86_64_gnu v0.52.6 [INFO] [stderr] Adding windows_x86_64_gnullvm v0.52.6 [INFO] [stderr] Adding windows_x86_64_msvc v0.34.0 [INFO] [stderr] Adding windows_x86_64_msvc v0.52.6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+96cfc75584359ae7ad11cc45968059f29e7b44b7" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 22ec325afc4a4b3ddefc19b74a1da5c288d8987a74660f87906cf50044fc83cd [INFO] running `Command { std: "docker" "start" "-a" "22ec325afc4a4b3ddefc19b74a1da5c288d8987a74660f87906cf50044fc83cd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "22ec325afc4a4b3ddefc19b74a1da5c288d8987a74660f87906cf50044fc83cd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "22ec325afc4a4b3ddefc19b74a1da5c288d8987a74660f87906cf50044fc83cd", kill_on_drop: false }` [INFO] [stdout] 22ec325afc4a4b3ddefc19b74a1da5c288d8987a74660f87906cf50044fc83cd [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+96cfc75584359ae7ad11cc45968059f29e7b44b7" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a0238eb6fe152b2d5eb6ca0a0f351b74ff685e8b0bf4de8f2e367dc67188470f [INFO] running `Command { std: "docker" "start" "-a" "a0238eb6fe152b2d5eb6ca0a0f351b74ff685e8b0bf4de8f2e367dc67188470f", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.93 [INFO] [stderr] Compiling unicode-ident v1.0.6 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling syn v1.0.107 [INFO] [stderr] Compiling libc v0.2.170 [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling memchr v2.5.0 [INFO] [stderr] Checking pin-project-lite v0.2.16 [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Checking futures-core v0.3.31 [INFO] [stderr] Compiling anyhow v1.0.68 [INFO] [stderr] Checking futures-io v0.3.31 [INFO] [stderr] Compiling log v0.4.17 [INFO] [stderr] Compiling typenum v1.16.0 [INFO] [stderr] Compiling crossbeam-utils v0.8.14 [INFO] [stderr] Compiling thiserror v1.0.38 [INFO] [stderr] Checking parking v2.0.0 [INFO] [stderr] Checking futures-sink v0.3.31 [INFO] [stderr] Checking byteorder v1.4.3 [INFO] [stderr] Compiling either v1.8.0 [INFO] [stderr] Checking pin-utils v0.1.0 [INFO] [stderr] Checking futures-task v0.3.31 [INFO] [stderr] Checking futures-channel v0.3.31 [INFO] [stderr] Compiling unicode-xid v0.2.4 [INFO] [stderr] Compiling serde v1.0.152 [INFO] [stderr] Compiling getrandom v0.1.16 [INFO] [stderr] Compiling generic-array v0.14.6 [INFO] [stderr] Compiling itertools v0.10.5 [INFO] [stderr] Compiling slab v0.4.7 [INFO] [stderr] Checking bytes v1.10.0 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling rustix v0.38.44 [INFO] [stderr] Checking waker-fn v1.1.0 [INFO] [stderr] Checking concurrent-queue v2.5.0 [INFO] [stderr] Compiling serde_derive v1.0.152 [INFO] [stderr] Checking event-listener v2.5.3 [INFO] [stderr] Compiling paste v1.0.15 [INFO] [stderr] Checking fastrand v1.8.0 [INFO] [stderr] Checking event-listener v5.4.0 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Checking bitflags v2.8.0 [INFO] [stderr] Checking tracing-core v0.1.33 [INFO] [stderr] Checking futures-lite v1.12.0 [INFO] [stderr] Checking ppv-lite86 v0.2.17 [INFO] [stderr] Compiling hashbrown v0.15.2 [INFO] [stderr] Compiling prettyplease v0.1.25 [INFO] [stderr] Checking tinyvec_macros v0.1.0 [INFO] [stderr] Compiling equivalent v1.0.2 [INFO] [stderr] Checking cpufeatures v0.2.5 [INFO] [stderr] Checking linux-raw-sys v0.4.15 [INFO] [stderr] Checking tinyvec v1.6.0 [INFO] [stderr] Checking event-listener-strategy v0.5.3 [INFO] [stderr] Compiling quote v1.0.38 [INFO] [stderr] Checking tracing v0.1.41 [INFO] [stderr] Compiling polling v2.5.2 [INFO] [stderr] Compiling fixedbitset v0.4.2 [INFO] [stderr] Compiling syn v2.0.98 [INFO] [stderr] Compiling heck v0.4.0 [INFO] [stderr] Compiling regex-syntax v0.6.28 [INFO] [stderr] Compiling indexmap v2.7.1 [INFO] [stderr] Compiling remove_dir_all v0.5.3 [INFO] [stderr] Checking async-lock v2.6.0 [INFO] [stderr] Checking num_cpus v1.15.0 [INFO] [stderr] Checking socket2 v0.4.7 [INFO] [stderr] Compiling which v4.3.0 [INFO] [stderr] Checking getrandom v0.2.8 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Compiling tempfile v3.3.0 [INFO] [stderr] Checking unicode-normalization v0.1.22 [INFO] [stderr] Checking async-lock v3.4.0 [INFO] [stderr] Compiling async-io v1.12.0 [INFO] [stderr] Compiling lock_api v0.4.9 [INFO] [stderr] Compiling tokio v1.24.2 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Checking block-buffer v0.10.3 [INFO] [stderr] Checking digest v0.9.0 [INFO] [stderr] Checking futures-lite v2.6.0 [INFO] [stderr] Compiling multimap v0.8.3 [INFO] [stderr] Checking percent-encoding v2.2.0 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Checking unicode-bidi v0.3.8 [INFO] [stderr] Checking digest v0.10.6 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Checking async-task v4.3.0 [INFO] [stderr] Checking smallvec v1.10.0 [INFO] [stderr] Checking unsigned-varint v0.7.1 [INFO] [stderr] Checking form_urlencoded v1.1.0 [INFO] [stderr] Checking sha2 v0.10.6 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Checking block-buffer v0.9.0 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking mio v0.8.5 [INFO] [stderr] Checking core2 v0.4.0 [INFO] [stderr] Checking async-channel v1.8.0 [INFO] [stderr] Checking bitflags v1.3.2 [INFO] [stderr] Checking static_assertions v1.1.0 [INFO] [stderr] Checking signature v1.6.4 [INFO] [stderr] Checking opaque-debug v0.3.0 [INFO] [stderr] Checking subtle v2.4.1 [INFO] [stderr] Checking atomic-waker v1.1.0 [INFO] [stderr] Checking idna v0.3.0 [INFO] [stderr] Checking scopeguard v1.1.0 [INFO] [stderr] Checking ed25519 v1.5.3 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Compiling petgraph v0.6.5 [INFO] [stderr] Checking blocking v1.3.0 [INFO] [stderr] Checking sha2 v0.9.9 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking async-executor v1.5.0 [INFO] [stderr] Checking once_cell v1.17.0 [INFO] [stderr] Checking fnv v1.0.7 [INFO] [stderr] Checking bs58 v0.4.0 [INFO] [stderr] Checking quick-error v1.2.3 [INFO] [stderr] Checking arrayref v0.3.6 [INFO] [stderr] Checking data-encoding v2.3.3 [INFO] [stderr] Checking parking_lot v0.12.3 [INFO] [stderr] Checking nix v0.24.3 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking instant v0.1.12 [INFO] [stderr] Checking asn1_der v0.7.5 [INFO] [stderr] Checking void v1.0.2 [INFO] [stderr] Checking futures-timer v3.0.2 [INFO] [stderr] Checking async-global-executor v2.3.1 [INFO] [stderr] Checking url v2.3.1 [INFO] [stderr] Compiling num-traits v0.2.15 [INFO] [stderr] Checking ipnet v2.7.1 [INFO] [stderr] Checking aho-corasick v0.7.20 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Compiling regex v1.7.1 [INFO] [stderr] Checking dns-parser v0.8.0 [INFO] [stderr] Checking humantime v1.3.0 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Compiling serde_json v1.0.91 [INFO] [stderr] Checking termcolor v1.2.0 [INFO] [stderr] Checking time v0.1.45 [INFO] [stderr] Checking ryu v1.0.12 [INFO] [stderr] Checking iana-time-zone v0.1.53 [INFO] [stderr] Checking itoa v1.0.5 [INFO] [stderr] Checking hex v0.4.3 [INFO] [stderr] Compiling toml v0.5.10 [INFO] [stderr] Checking chrono v0.4.23 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Compiling synstructure v0.12.6 [INFO] [stderr] Checking env_logger v0.7.1 [INFO] [stderr] Checking pretty_env_logger v0.4.0 [INFO] [stderr] Compiling thiserror-impl v1.0.38 [INFO] [stderr] Compiling prost-derive v0.11.9 [INFO] [stderr] Compiling zeroize_derive v1.3.3 [INFO] [stderr] Compiling pin-project-internal v1.0.12 [INFO] [stderr] Compiling tokio-macros v1.8.2 [INFO] [stderr] Compiling libp2p-swarm-derive v0.30.1 [INFO] [stderr] Checking polling v3.7.4 [INFO] [stderr] Checking async-io v2.4.0 [INFO] [stderr] Checking zeroize v1.3.0 [INFO] [stderr] Checking curve25519-dalek v3.2.1 [INFO] [stderr] Compiling proc-macro-crate v1.1.3 [INFO] [stderr] Checking netlink-packet-utils v0.5.2 [INFO] [stderr] Checking pin-project v1.0.12 [INFO] [stderr] Compiling prost v0.11.9 [INFO] [stderr] Compiling multihash-derive v0.8.1 [INFO] [stderr] Checking netlink-packet-core v0.4.2 [INFO] [stderr] Checking netlink-packet-route v0.12.0 [INFO] [stderr] Compiling prost-types v0.11.9 [INFO] [stderr] Checking multihash v0.16.3 [INFO] [stderr] Checking futures-executor v0.3.31 [INFO] [stderr] Checking futures v0.3.31 [INFO] [stderr] Checking netlink-sys v0.8.7 [INFO] [stderr] Checking multistream-select v0.12.1 [INFO] [stderr] Checking rw-stream-sink v0.3.0 [INFO] [stderr] Compiling prost-build v0.11.9 [INFO] [stderr] Compiling libp2p-core v0.37.0 [INFO] [stderr] Checking netlink-proto v0.10.0 [INFO] [stderr] Checking rtnetlink v0.10.1 [INFO] [stderr] Checking if-watch v2.0.0 [INFO] [stderr] Checking multiaddr v0.14.0 [INFO] [stderr] Checking ed25519-dalek v1.0.1 [INFO] [stderr] Checking libp2p-swarm v0.40.1 [INFO] [stderr] Checking libp2p-tcp v0.37.0 [INFO] [stderr] Checking libp2p-mdns v0.41.0 [INFO] [stderr] Checking libp2p v0.49.0 [INFO] [stderr] Checking rust-blockchain v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error: cannot find derive macro `Serialize` in this scope [INFO] [stdout] --> src/main.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 5 | #[derive(Serialize, Deserialize, Debug, Clone)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this derive macro [INFO] [stdout] | [INFO] [stdout] 1 + use serde::Serialize; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Deserialize` in this scope [INFO] [stdout] --> src/main.rs:5:21 [INFO] [stdout] | [INFO] [stdout] 5 | #[derive(Serialize, Deserialize, Debug, Clone)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this derive macro [INFO] [stdout] | [INFO] [stdout] 1 + use serde::Deserialize; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Serialize` in this scope [INFO] [stdout] --> src/main.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 5 | #[derive(Serialize, Deserialize, Debug, Clone)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this derive macro [INFO] [stdout] | [INFO] [stdout] 1 + use serde::Serialize; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Deserialize` in this scope [INFO] [stdout] --> src/main.rs:5:21 [INFO] [stdout] | [INFO] [stdout] 5 | #[derive(Serialize, Deserialize, Debug, Clone)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this derive macro [INFO] [stdout] | [INFO] [stdout] 1 + use serde::Deserialize; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `error` in this scope [INFO] [stdout] --> src/main.rs:47:13 [INFO] [stdout] | [INFO] [stdout] 47 | error!("could not add block - invalid"); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 1 + use log::error; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `warn` in this scope [INFO] [stdout] --> src/main.rs:53:13 [INFO] [stdout] | [INFO] [stdout] 53 | warn!("block with id: {} has wrong previous hash, block.id"); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `warn` is in scope, but it is an attribute: `#[warn]` [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 1 + use log::warn; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `warn` in this scope [INFO] [stdout] --> src/main.rs:59:13 [INFO] [stdout] | [INFO] [stdout] 59 | warn!("block with id: {} has invalid difficulty", block.id); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `warn` is in scope, but it is an attribute: `#[warn]` [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 1 + use log::warn; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `error` in this scope [INFO] [stdout] --> src/main.rs:47:13 [INFO] [stdout] | [INFO] [stdout] 47 | error!("could not add block - invalid"); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 1 + use log::error; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `warn` in this scope [INFO] [stdout] --> src/main.rs:62:13 [INFO] [stdout] | [INFO] [stdout] 62 | warn!( [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `warn` is in scope, but it is an attribute: `#[warn]` [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 1 + use log::warn; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `warn` in this scope [INFO] [stdout] --> src/main.rs:75:13 [INFO] [stdout] | [INFO] [stdout] 75 | warn !("block with id: {} has invalid hash", block .id); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `warn` is in scope, but it is an attribute: `#[warn]` [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 1 + use log::warn; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `info` in this scope [INFO] [stdout] --> src/main.rs:125:9 [INFO] [stdout] | [INFO] [stdout] 125 | info!("mining block..."); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 1 + use log::info; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `warn` in this scope [INFO] [stdout] --> src/main.rs:53:13 [INFO] [stdout] | [INFO] [stdout] 53 | warn!("block with id: {} has wrong previous hash, block.id"); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `warn` is in scope, but it is an attribute: `#[warn]` [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 1 + use log::warn; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `info` in this scope [INFO] [stdout] --> src/main.rs:130:17 [INFO] [stdout] | [INFO] [stdout] 130 | info!("nonce: {}", nonce); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 1 + use log::info; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `warn` in this scope [INFO] [stdout] --> src/main.rs:59:13 [INFO] [stdout] | [INFO] [stdout] 59 | warn!("block with id: {} has invalid difficulty", block.id); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `warn` is in scope, but it is an attribute: `#[warn]` [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 1 + use log::warn; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `warn` in this scope [INFO] [stdout] --> src/main.rs:62:13 [INFO] [stdout] | [INFO] [stdout] 62 | warn!( [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `warn` is in scope, but it is an attribute: `#[warn]` [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 1 + use log::warn; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `info` in this scope [INFO] [stdout] --> src/main.rs:135:17 [INFO] [stdout] | [INFO] [stdout] 135 | info!( [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 1 + use log::info; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `warn` in this scope [INFO] [stdout] --> src/main.rs:75:13 [INFO] [stdout] | [INFO] [stdout] 75 | warn !("block with id: {} has invalid hash", block .id); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `warn` is in scope, but it is an attribute: `#[warn]` [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 1 + use log::warn; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `info` in this scope [INFO] [stdout] --> src/main.rs:125:9 [INFO] [stdout] | [INFO] [stdout] 125 | info!("mining block..."); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 1 + use log::info; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `info` in this scope [INFO] [stdout] --> src/main.rs:130:17 [INFO] [stdout] | [INFO] [stdout] 130 | info!("nonce: {}", nonce); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 1 + use log::info; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `info` in this scope [INFO] [stdout] --> src/main.rs:135:17 [INFO] [stdout] | [INFO] [stdout] 135 | info!( [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 1 + use log::info; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Utc` [INFO] [stdout] --> src/main.rs:33:24 [INFO] [stdout] | [INFO] [stdout] 33 | timestamp: Utc::now().timestamp(), [INFO] [stdout] | ^^^ use of undeclared type `Utc` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use chrono::Utc; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `DIFFICULT_PREFIX` in this scope [INFO] [stdout] --> src/main.rs:58:21 [INFO] [stdout] | [INFO] [stdout] 15 | const DIFFICULTY_PREFIX: &str = "00"; [INFO] [stdout] | ------------------------------------- similarly named constant `DIFFICULTY_PREFIX` defined here [INFO] [stdout] ... [INFO] [stdout] 58 | .start_with(DIFFICULT_PREFIX){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: a constant with a similar name exists: `DIFFICULTY_PREFIX` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Utc` [INFO] [stdout] --> src/main.rs:117:19 [INFO] [stdout] | [INFO] [stdout] 117 | let now = Utc::now(); [INFO] [stdout] | ^^^ use of undeclared type `Utc` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use chrono::Utc; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Sha256` [INFO] [stdout] --> src/main.rs:155:26 [INFO] [stdout] | [INFO] [stdout] 155 | let mut hasher = Sha256::new(); [INFO] [stdout] | ^^^^^^ use of undeclared type `Sha256` [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 1 + use sha2::Sha256; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0601]: `main` function not found in crate `rust_blockchain` [INFO] [stdout] --> src/main.rs:159:2 [INFO] [stdout] | [INFO] [stdout] 159 | } [INFO] [stdout] | ^ consider adding a `main` function to `src/main.rs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Utc` [INFO] [stdout] --> src/main.rs:33:24 [INFO] [stdout] | [INFO] [stdout] 33 | timestamp: Utc::now().timestamp(), [INFO] [stdout] | ^^^ use of undeclared type `Utc` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use chrono::Utc; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `DIFFICULT_PREFIX` in this scope [INFO] [stdout] --> src/main.rs:58:21 [INFO] [stdout] | [INFO] [stdout] 15 | const DIFFICULTY_PREFIX: &str = "00"; [INFO] [stdout] | ------------------------------------- similarly named constant `DIFFICULTY_PREFIX` defined here [INFO] [stdout] ... [INFO] [stdout] 58 | .start_with(DIFFICULT_PREFIX){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: a constant with a similar name exists: `DIFFICULTY_PREFIX` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Utc` [INFO] [stdout] --> src/main.rs:117:19 [INFO] [stdout] | [INFO] [stdout] 117 | let now = Utc::now(); [INFO] [stdout] | ^^^ use of undeclared type `Utc` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use chrono::Utc; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0107]: missing generics for struct `Vec` [INFO] [stdout] --> src/main.rs:2:17 [INFO] [stdout] | [INFO] [stdout] 2 | pub blocks: Vec, [INFO] [stdout] | ^^^ expected at least 1 generic argument [INFO] [stdout] | [INFO] [stdout] help: add missing generic argument [INFO] [stdout] | [INFO] [stdout] 2 | pub blocks: Vec, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Sha256` [INFO] [stdout] --> src/main.rs:155:26 [INFO] [stdout] | [INFO] [stdout] 155 | let mut hasher = Sha256::new(); [INFO] [stdout] | ^^^^^^ use of undeclared type `Sha256` [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 1 + use sha2::Sha256; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0107]: missing generics for struct `Vec` [INFO] [stdout] --> src/main.rs:2:17 [INFO] [stdout] | [INFO] [stdout] 2 | pub blocks: Vec, [INFO] [stdout] | ^^^ expected at least 1 generic argument [INFO] [stdout] | [INFO] [stdout] help: add missing generic argument [INFO] [stdout] | [INFO] [stdout] 2 | pub blocks: Vec, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0107]: missing generics for struct `Vec` [INFO] [stdout] --> src/main.rs:95:39 [INFO] [stdout] | [INFO] [stdout] 95 | fn choose_chain(&mut self, local: Vec, remote: Vec) -> Vec { [INFO] [stdout] | ^^^ expected at least 1 generic argument [INFO] [stdout] | [INFO] [stdout] help: add missing generic argument [INFO] [stdout] | [INFO] [stdout] 95 | fn choose_chain(&mut self, local: Vec, remote: Vec) -> Vec { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0107]: missing generics for struct `Vec` [INFO] [stdout] --> src/main.rs:95:52 [INFO] [stdout] | [INFO] [stdout] 95 | fn choose_chain(&mut self, local: Vec, remote: Vec) -> Vec { [INFO] [stdout] | ^^^ expected at least 1 generic argument [INFO] [stdout] | [INFO] [stdout] help: add missing generic argument [INFO] [stdout] | [INFO] [stdout] 95 | fn choose_chain(&mut self, local: Vec, remote: Vec) -> Vec { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0107]: missing generics for struct `Vec` [INFO] [stdout] --> src/main.rs:95:60 [INFO] [stdout] | [INFO] [stdout] 95 | fn choose_chain(&mut self, local: Vec, remote: Vec) -> Vec { [INFO] [stdout] | ^^^ expected at least 1 generic argument [INFO] [stdout] | [INFO] [stdout] help: add missing generic argument [INFO] [stdout] | [INFO] [stdout] 95 | fn choose_chain(&mut self, local: Vec, remote: Vec) -> Vec { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0107]: missing generics for struct `Vec` [INFO] [stdout] --> src/main.rs:95:39 [INFO] [stdout] | [INFO] [stdout] 95 | fn choose_chain(&mut self, local: Vec, remote: Vec) -> Vec { [INFO] [stdout] | ^^^ expected at least 1 generic argument [INFO] [stdout] | [INFO] [stdout] help: add missing generic argument [INFO] [stdout] | [INFO] [stdout] 95 | fn choose_chain(&mut self, local: Vec, remote: Vec) -> Vec { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0107]: missing generics for struct `Vec` [INFO] [stdout] --> src/main.rs:95:52 [INFO] [stdout] | [INFO] [stdout] 95 | fn choose_chain(&mut self, local: Vec, remote: Vec) -> Vec { [INFO] [stdout] | ^^^ expected at least 1 generic argument [INFO] [stdout] | [INFO] [stdout] help: add missing generic argument [INFO] [stdout] | [INFO] [stdout] 95 | fn choose_chain(&mut self, local: Vec, remote: Vec) -> Vec { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0107]: missing generics for struct `Vec` [INFO] [stdout] --> src/main.rs:95:60 [INFO] [stdout] | [INFO] [stdout] 95 | fn choose_chain(&mut self, local: Vec, remote: Vec) -> Vec { [INFO] [stdout] | ^^^ expected at least 1 generic argument [INFO] [stdout] | [INFO] [stdout] help: add missing generic argument [INFO] [stdout] | [INFO] [stdout] 95 | fn choose_chain(&mut self, local: Vec, remote: Vec) -> Vec { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `hash_to_binary_presentation` in this scope [INFO] [stdout] --> src/main.rs:55:20 [INFO] [stdout] | [INFO] [stdout] 17 | fn hash_to_binary_representation(hash: &[u8]) -> String { [INFO] [stdout] | ------------------------------------------------------- similarly named function `hash_to_binary_representation` defined here [INFO] [stdout] ... [INFO] [stdout] 55 | } else if !hash_to_binary_presentation( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: a function with a similar name exists: `hash_to_binary_representation` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `calculate_hash` in this scope [INFO] [stdout] --> src/main.rs:67:31 [INFO] [stdout] | [INFO] [stdout] 67 | } else if hex::encode(calculate_hash( [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `mine_block` in this scope [INFO] [stdout] --> src/main.rs:118:28 [INFO] [stdout] | [INFO] [stdout] 118 | let(nonce, hash) = mine_block(id, now.timestamp(), &previous_hash, &data); [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider using the associated function on `Self` [INFO] [stdout] | [INFO] [stdout] 118 | let(nonce, hash) = Self::mine_block(id, now.timestamp(), &previous_hash, &data); [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `hash_to_binary_presentation` in this scope [INFO] [stdout] --> src/main.rs:55:20 [INFO] [stdout] | [INFO] [stdout] 17 | fn hash_to_binary_representation(hash: &[u8]) -> String { [INFO] [stdout] | ------------------------------------------------------- similarly named function `hash_to_binary_representation` defined here [INFO] [stdout] ... [INFO] [stdout] 55 | } else if !hash_to_binary_presentation( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: a function with a similar name exists: `hash_to_binary_representation` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `calculate_hash` in this scope [INFO] [stdout] --> src/main.rs:132:24 [INFO] [stdout] | [INFO] [stdout] 132 | let hash = calculate_hash(id, timestamp, previous_hash, data, nonce); [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider using the associated function on `Self` [INFO] [stdout] | [INFO] [stdout] 132 | let hash = Self::calculate_hash(id, timestamp, previous_hash, data, nonce); [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `calculate_hash` in this scope [INFO] [stdout] --> src/main.rs:67:31 [INFO] [stdout] | [INFO] [stdout] 67 | } else if hex::encode(calculate_hash( [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `mine_block` in this scope [INFO] [stdout] --> src/main.rs:118:28 [INFO] [stdout] | [INFO] [stdout] 118 | let(nonce, hash) = mine_block(id, now.timestamp(), &previous_hash, &data); [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider using the associated function on `Self` [INFO] [stdout] | [INFO] [stdout] 118 | let(nonce, hash) = Self::mine_block(id, now.timestamp(), &previous_hash, &data); [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `calculate_hash` in this scope [INFO] [stdout] --> src/main.rs:132:24 [INFO] [stdout] | [INFO] [stdout] 132 | let hash = calculate_hash(id, timestamp, previous_hash, data, nonce); [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider using the associated function on `Self` [INFO] [stdout] | [INFO] [stdout] 132 | let hash = Self::calculate_hash(id, timestamp, previous_hash, data, nonce); [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_byte` found for struct `std::string::String` in the current scope [INFO] [stdout] --> src/main.rs:156:40 [INFO] [stdout] | [INFO] [stdout] 156 | hasher.update(data.to_string().as_byte()); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: there is a method `as_bytes` with a similar name [INFO] [stdout] | [INFO] [stdout] 156 | hasher.update(data.to_string().as_bytes()); [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_byte` found for struct `std::string::String` in the current scope [INFO] [stdout] --> src/main.rs:156:40 [INFO] [stdout] | [INFO] [stdout] 156 | hasher.update(data.to_string().as_byte()); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: there is a method `as_bytes` with a similar name [INFO] [stdout] | [INFO] [stdout] 156 | hasher.update(data.to_string().as_bytes()); [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0107, E0425, E0433, E0599, E0601. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0107`. [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0107, E0425, E0433, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0107`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rust-blockchain` (bin "rust-blockchain") due to 24 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `rust-blockchain` (bin "rust-blockchain" test) due to 23 previous errors [INFO] running `Command { std: "docker" "inspect" "a0238eb6fe152b2d5eb6ca0a0f351b74ff685e8b0bf4de8f2e367dc67188470f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a0238eb6fe152b2d5eb6ca0a0f351b74ff685e8b0bf4de8f2e367dc67188470f", kill_on_drop: false }` [INFO] [stdout] a0238eb6fe152b2d5eb6ca0a0f351b74ff685e8b0bf4de8f2e367dc67188470f