[INFO] cloning repository https://github.com/dozzturk/csc297 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/dozzturk/csc297" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdozzturk%2Fcsc297", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdozzturk%2Fcsc297'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] ebda8719062dad076957368501b32e446de02c54 [INFO] checking dozzturk/csc297 against try#70daa2c0d8eed7066b07966f3c0b0b8622bff4e4 for pr-151539 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdozzturk%2Fcsc297" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/dozzturk/csc297 [INFO] finished tweaking git repo https://github.com/dozzturk/csc297 [INFO] tweaked toml for git repo https://github.com/dozzturk/csc297 written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/dozzturk/csc297 on toolchain 70daa2c0d8eed7066b07966f3c0b0b8622bff4e4 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+70daa2c0d8eed7066b07966f3c0b0b8622bff4e4" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/dozzturk/csc297 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" "+70daa2c0d8eed7066b07966f3c0b0b8622bff4e4" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:61361fe0aef631f17e9d025a70c5a647956f8c671dd02950a60ad3f5cc5526d7" "/opt/rustwide/cargo-home/bin/cargo" "+70daa2c0d8eed7066b07966f3c0b0b8622bff4e4" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ee342c5ad41d39f999c15db3eb6e300fe5946102ae6ad02c4c77d6448544c555 [INFO] running `Command { std: "docker" "start" "-a" "ee342c5ad41d39f999c15db3eb6e300fe5946102ae6ad02c4c77d6448544c555", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ee342c5ad41d39f999c15db3eb6e300fe5946102ae6ad02c4c77d6448544c555", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ee342c5ad41d39f999c15db3eb6e300fe5946102ae6ad02c4c77d6448544c555", kill_on_drop: false }` [INFO] [stdout] ee342c5ad41d39f999c15db3eb6e300fe5946102ae6ad02c4c77d6448544c555 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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=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:61361fe0aef631f17e9d025a70c5a647956f8c671dd02950a60ad3f5cc5526d7" "/opt/rustwide/cargo-home/bin/cargo" "+70daa2c0d8eed7066b07966f3c0b0b8622bff4e4" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 207279cd23afecda0ca697aac9145c31eb99cac655d3346a16e702317b4ae540 [INFO] running `Command { std: "docker" "start" "-a" "207279cd23afecda0ca697aac9145c31eb99cac655d3346a16e702317b4ae540", kill_on_drop: false }` [INFO] [stderr] Checking csc297 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0583]: file not found for module `miner` [INFO] [stdout] --> src/main.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | pub mod miner; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: to create the module `miner`, create file "src/miner.rs" or "src/miner/mod.rs" [INFO] [stdout] = note: if there is a `mod miner` elsewhere in the crate already, import it with `use crate::...` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0583]: file not found for module `miner` [INFO] [stdout] --> src/main.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | pub mod miner; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: to create the module `miner`, create file "src/miner.rs" or "src/miner/mod.rs" [INFO] [stdout] = note: if there is a `mod miner` elsewhere in the crate already, import it with `use crate::...` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0463]: can't find crate for `hex_literal` [INFO] [stdout] --> src/main.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | extern crate hex_literal; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `ring` [INFO] [stdout] --> src/crypto/key_pair.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use ring::signature::Ed25519KeyPair; [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `ring` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `ring`, use `cargo add ring` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `rand` [INFO] [stdout] --> src/crypto/hash.rs:113:9 [INFO] [stdout] | [INFO] [stdout] 113 | use rand::Rng; [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `rand` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rand`, use `cargo add rand` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `ring` [INFO] [stdout] --> src/crypto/key_pair.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use ring::signature::Ed25519KeyPair; [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `ring` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `ring`, use `cargo add ring` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `ring` [INFO] [stdout] --> src/crypto/key_pair.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use ring::rand; [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `ring` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `ring`, use `cargo add ring` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `ring` [INFO] [stdout] --> src/crypto/key_pair.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use ring::rand; [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `ring` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `ring`, use `cargo add ring` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `clap` [INFO] [stdout] --> src/main.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use clap::clap_app; [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `clap` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `clap`, use `cargo add clap` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `clap` [INFO] [stdout] --> src/main.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use clap::clap_app; [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `clap` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `clap`, use `cargo add clap` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `crossbeam` [INFO] [stdout] --> src/main.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use crossbeam::channel; [INFO] [stdout] | ^^^^^^^^^ use of unresolved module or unlinked crate `crossbeam` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `crossbeam`, use `cargo add crossbeam` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `log` [INFO] [stdout] --> src/main.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use log::{error, info}; [INFO] [stdout] | ^^^ use of unresolved module or unlinked crate `log` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `log`, use `cargo add log` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `crossbeam` [INFO] [stdout] --> src/main.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use crossbeam::channel; [INFO] [stdout] | ^^^^^^^^^ use of unresolved module or unlinked crate `crossbeam` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `crossbeam`, use `cargo add crossbeam` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `log` [INFO] [stdout] --> src/main.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use log::{error, info}; [INFO] [stdout] | ^^^ use of unresolved module or unlinked crate `log` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `log`, use `cargo add log` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `log` [INFO] [stdout] --> src/network/peer.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use log::{trace, warn}; [INFO] [stdout] | ^^^ use of unresolved module or unlinked crate `log` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `log`, use `cargo add log` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `mio` [INFO] [stdout] --> src/network/peer.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use mio; [INFO] [stdout] | ^^^ no external crate `mio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `mio_extras` [INFO] [stdout] --> src/network/peer.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use mio_extras::channel; [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `mio_extras` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `mio_extras`, use `cargo add mio_extras` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `log` [INFO] [stdout] --> src/network/peer.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use log::{trace, warn}; [INFO] [stdout] | ^^^ use of unresolved module or unlinked crate `log` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `log`, use `cargo add log` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `crossbeam` [INFO] [stdout] --> src/network/server.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crossbeam::channel as cbchannel; [INFO] [stdout] | ^^^^^^^^^ use of unresolved module or unlinked crate `crossbeam` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `crossbeam`, use `cargo add crossbeam` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `mio` [INFO] [stdout] --> src/network/peer.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use mio; [INFO] [stdout] | ^^^ no external crate `mio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `mio_extras` [INFO] [stdout] --> src/network/peer.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use mio_extras::channel; [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `mio_extras` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `mio_extras`, use `cargo add mio_extras` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `log` [INFO] [stdout] --> src/network/server.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use log::{debug, error, info, trace, warn}; [INFO] [stdout] | ^^^ use of unresolved module or unlinked crate `log` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `log`, use `cargo add log` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `mio` [INFO] [stdout] --> src/network/server.rs:5:11 [INFO] [stdout] | [INFO] [stdout] 5 | use mio::{self, net}; [INFO] [stdout] | ^^^^ no external crate `mio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `mio_extras` [INFO] [stdout] --> src/network/server.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use mio_extras::channel; [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `mio_extras` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `mio_extras`, use `cargo add mio_extras` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `crossbeam` [INFO] [stdout] --> src/network/worker.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crossbeam::channel; [INFO] [stdout] | ^^^^^^^^^ use of unresolved module or unlinked crate `crossbeam` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `crossbeam`, use `cargo add crossbeam` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `log` [INFO] [stdout] --> src/network/worker.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use log::{debug, warn}; [INFO] [stdout] | ^^^ use of unresolved module or unlinked crate `log` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `log`, use `cargo add log` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `serde` [INFO] [stdout] --> src/api/mod.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use serde::Serialize; [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `serde` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `serde`, use `cargo add serde` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `log` [INFO] [stdout] --> src/api/mod.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use log::info; [INFO] [stdout] | ^^^ use of unresolved module or unlinked crate `log` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `log`, use `cargo add log` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `tiny_http` [INFO] [stdout] --> src/api/mod.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use tiny_http::Header; [INFO] [stdout] | ^^^^^^^^^ use of unresolved module or unlinked crate `tiny_http` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `tiny_http`, use `cargo add tiny_http` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `tiny_http` [INFO] [stdout] --> src/api/mod.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use tiny_http::Response; [INFO] [stdout] | ^^^^^^^^^ use of unresolved module or unlinked crate `tiny_http` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `tiny_http`, use `cargo add tiny_http` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `tiny_http` [INFO] [stdout] --> src/api/mod.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use tiny_http::Server as HTTPServer; [INFO] [stdout] | ^^^^^^^^^ use of unresolved module or unlinked crate `tiny_http` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `tiny_http`, use `cargo add tiny_http` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `url` [INFO] [stdout] --> src/api/mod.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use url::Url; [INFO] [stdout] | ^^^ use of unresolved module or unlinked crate `url` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `url`, use `cargo add url` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `serde` [INFO] [stdout] --> src/block.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use serde::{Serialize, Deserialize}; [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `serde` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `serde`, use `cargo add serde` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `serde` [INFO] [stdout] --> src/crypto/hash.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use serde::{Serialize, Deserialize}; [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `serde` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `serde`, use `cargo add serde` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `serde` [INFO] [stdout] --> src/network/message.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use serde::{Serialize, Deserialize}; [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `serde` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `serde`, use `cargo add serde` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `ring` [INFO] [stdout] --> src/transaction.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use ring::signature::{Ed25519KeyPair, Signature, KeyPair, VerificationAlgorithm, EdDSAParameters}; [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `ring` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `ring`, use `cargo add ring` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `crossbeam` [INFO] [stdout] --> src/network/server.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crossbeam::channel as cbchannel; [INFO] [stdout] | ^^^^^^^^^ use of unresolved module or unlinked crate `crossbeam` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `crossbeam`, use `cargo add crossbeam` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `serde` [INFO] [stdout] --> src/transaction.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use serde::{Serialize,Deserialize}; [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `serde` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `serde`, use `cargo add serde` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `log` [INFO] [stdout] --> src/network/server.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use log::{debug, error, info, trace, warn}; [INFO] [stdout] | ^^^ use of unresolved module or unlinked crate `log` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `log`, use `cargo add log` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `mio` [INFO] [stdout] --> src/network/server.rs:5:11 [INFO] [stdout] | [INFO] [stdout] 5 | use mio::{self, net}; [INFO] [stdout] | ^^^^ no external crate `mio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `mio_extras` [INFO] [stdout] --> src/network/server.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use mio_extras::channel; [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `mio_extras` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `mio_extras`, use `cargo add mio_extras` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `crossbeam` [INFO] [stdout] --> src/network/worker.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crossbeam::channel; [INFO] [stdout] | ^^^^^^^^^ use of unresolved module or unlinked crate `crossbeam` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `crossbeam`, use `cargo add crossbeam` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `log` [INFO] [stdout] --> src/network/worker.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use log::{debug, warn}; [INFO] [stdout] | ^^^ use of unresolved module or unlinked crate `log` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `log`, use `cargo add log` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `serde` [INFO] [stdout] --> src/api/mod.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use serde::Serialize; [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `serde` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `serde`, use `cargo add serde` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `log` [INFO] [stdout] --> src/api/mod.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use log::info; [INFO] [stdout] | ^^^ use of unresolved module or unlinked crate `log` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `log`, use `cargo add log` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `tiny_http` [INFO] [stdout] --> src/api/mod.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use tiny_http::Header; [INFO] [stdout] | ^^^^^^^^^ use of unresolved module or unlinked crate `tiny_http` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `tiny_http`, use `cargo add tiny_http` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `tiny_http` [INFO] [stdout] --> src/api/mod.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use tiny_http::Response; [INFO] [stdout] | ^^^^^^^^^ use of unresolved module or unlinked crate `tiny_http` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `tiny_http`, use `cargo add tiny_http` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `tiny_http` [INFO] [stdout] --> src/api/mod.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use tiny_http::Server as HTTPServer; [INFO] [stdout] | ^^^^^^^^^ use of unresolved module or unlinked crate `tiny_http` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `tiny_http`, use `cargo add tiny_http` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `url` [INFO] [stdout] --> src/api/mod.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use url::Url; [INFO] [stdout] | ^^^ use of unresolved module or unlinked crate `url` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `url`, use `cargo add url` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `serde` [INFO] [stdout] --> src/block.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use serde::{Serialize, Deserialize}; [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `serde` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `serde`, use `cargo add serde` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `serde` [INFO] [stdout] --> src/crypto/hash.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use serde::{Serialize, Deserialize}; [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `serde` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `serde`, use `cargo add serde` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `serde` [INFO] [stdout] --> src/network/message.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use serde::{Serialize, Deserialize}; [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `serde` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `serde`, use `cargo add serde` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `ring` [INFO] [stdout] --> src/transaction.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use ring::signature::{Ed25519KeyPair, Signature, KeyPair, VerificationAlgorithm, EdDSAParameters}; [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `ring` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `ring`, use `cargo add ring` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `serde` [INFO] [stdout] --> src/transaction.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use serde::{Serialize,Deserialize}; [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `serde` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `serde`, use `cargo add serde` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `hex` in this scope [INFO] [stdout] --> src/crypto/merkle.rs:38:18 [INFO] [stdout] | [INFO] [stdout] 38 | (hex!("0101010101010101010101010101010101010101010101010101010101010202")).into(), [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 75 | let input_data: Vec = gen_merkle_tree_data!(); [INFO] [stdout] | ----------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `gen_merkle_tree_data` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `hex` in this scope [INFO] [stdout] --> src/crypto/merkle.rs:37:18 [INFO] [stdout] | [INFO] [stdout] 37 | (hex!("0a0b0c0d0e0f0e0d0a0b0c0d0e0f0e0d0a0b0c0d0e0f0e0d0a0b0c0d0e0f0e0d")).into(), [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 75 | let input_data: Vec = gen_merkle_tree_data!(); [INFO] [stdout] | ----------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `gen_merkle_tree_data` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `hex` in this scope [INFO] [stdout] --> src/crypto/merkle.rs:67:25 [INFO] [stdout] | [INFO] [stdout] 67 | vec![hex!("965b093a75a75895a351786dd7a188515173f6928a8af8c9baa4dcff268a4f0f").into()] [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `hex` in this scope [INFO] [stdout] --> src/crypto/merkle.rs:38:18 [INFO] [stdout] | [INFO] [stdout] 38 | (hex!("0101010101010101010101010101010101010101010101010101010101010202")).into(), [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 63 | let input_data: Vec = gen_merkle_tree_data!(); [INFO] [stdout] | ----------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `gen_merkle_tree_data` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `hex` in this scope [INFO] [stdout] --> src/crypto/merkle.rs:37:18 [INFO] [stdout] | [INFO] [stdout] 37 | (hex!("0a0b0c0d0e0f0e0d0a0b0c0d0e0f0e0d0a0b0c0d0e0f0e0d0a0b0c0d0e0f0e0d")).into(), [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 63 | let input_data: Vec = gen_merkle_tree_data!(); [INFO] [stdout] | ----------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `gen_merkle_tree_data` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `hex` in this scope [INFO] [stdout] --> src/crypto/merkle.rs:50:14 [INFO] [stdout] | [INFO] [stdout] 50 | (hex!("6b787718210e0b3b608814e04e61fde06d0df794319a12162f287412df3ec920")).into() [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `hex` in this scope [INFO] [stdout] --> src/crypto/merkle.rs:38:18 [INFO] [stdout] | [INFO] [stdout] 38 | (hex!("0101010101010101010101010101010101010101010101010101010101010202")).into(), [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 45 | let input_data: Vec = gen_merkle_tree_data!(); [INFO] [stdout] | ----------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `gen_merkle_tree_data` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `hex` in this scope [INFO] [stdout] --> src/crypto/merkle.rs:37:18 [INFO] [stdout] | [INFO] [stdout] 37 | (hex!("0a0b0c0d0e0f0e0d0a0b0c0d0e0f0e0d0a0b0c0d0e0f0e0d0a0b0c0d0e0f0e0d")).into(), [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 45 | let input_data: Vec = gen_merkle_tree_data!(); [INFO] [stdout] | ----------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `gen_merkle_tree_data` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `ring` [INFO] [stdout] --> src/crypto/hash.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | ring::digest::digest(&ring::digest::SHA256, &self.0).into() [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `ring` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `ring`, use `cargo add ring` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `ring` [INFO] [stdout] --> src/crypto/hash.rs:16:31 [INFO] [stdout] | [INFO] [stdout] 16 | ring::digest::digest(&ring::digest::SHA256, &self.0).into() [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `ring` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `ring`, use `cargo add ring` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `ring` [INFO] [stdout] --> src/crypto/hash.rs:82:25 [INFO] [stdout] | [INFO] [stdout] 82 | impl std::convert::From for H256 { [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `ring` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `ring`, use `cargo add ring` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `ring` [INFO] [stdout] --> src/crypto/hash.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | ring::digest::digest(&ring::digest::SHA256, &self.0).into() [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `ring` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `ring`, use `cargo add ring` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `ring` [INFO] [stdout] --> src/crypto/hash.rs:83:20 [INFO] [stdout] | [INFO] [stdout] 83 | fn from(input: ring::digest::Digest) -> H256 { [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `ring` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `ring`, use `cargo add ring` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `ring` [INFO] [stdout] --> src/crypto/hash.rs:16:31 [INFO] [stdout] | [INFO] [stdout] 16 | ring::digest::digest(&ring::digest::SHA256, &self.0).into() [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `ring` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `ring`, use `cargo add ring` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `ring` [INFO] [stdout] --> src/crypto/hash.rs:82:25 [INFO] [stdout] | [INFO] [stdout] 82 | impl std::convert::From for H256 { [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `ring` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `ring`, use `cargo add ring` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `slab` [INFO] [stdout] --> src/network/server.rs:22:16 [INFO] [stdout] | [INFO] [stdout] 22 | peers: slab::Slab::new(), [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `slab` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `slab`, use `cargo add slab` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `ring` [INFO] [stdout] --> src/crypto/hash.rs:83:20 [INFO] [stdout] | [INFO] [stdout] 83 | fn from(input: ring::digest::Digest) -> H256 { [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `ring` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `ring`, use `cargo add ring` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `slab` [INFO] [stdout] --> src/network/server.rs:22:16 [INFO] [stdout] | [INFO] [stdout] 22 | peers: slab::Slab::new(), [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `slab` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `slab`, use `cargo add slab` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `test_utilities` [INFO] [stdout] --> src/block.rs:14:17 [INFO] [stdout] | [INFO] [stdout] 14 | #[cfg(any(test, test_utilities))] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: expected names are: `docsrs`, `feature`, and `test` and 31 more [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(test_utilities)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(test_utilities)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `test_utilities` [INFO] [stdout] --> src/blockchain.rs:30:17 [INFO] [stdout] | [INFO] [stdout] 30 | #[cfg(any(test, test_utilities))] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(test_utilities)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(test_utilities)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `test_utilities` [INFO] [stdout] --> src/blockchain.rs:24:21 [INFO] [stdout] | [INFO] [stdout] 24 | #[cfg(any(test, test_utilities))] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(test_utilities)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(test_utilities)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `test_utilities` [INFO] [stdout] --> src/crypto/hash.rs:110:17 [INFO] [stdout] | [INFO] [stdout] 110 | #[cfg(any(test, test_utilities))] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(test_utilities)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(test_utilities)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `test_utilities` [INFO] [stdout] --> src/transaction.rs:18:17 [INFO] [stdout] | [INFO] [stdout] 18 | #[cfg(any(test, test_utilities))] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(test_utilities)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(test_utilities)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `test_utilities` [INFO] [stdout] --> src/block.rs:14:17 [INFO] [stdout] | [INFO] [stdout] 14 | #[cfg(any(test, test_utilities))] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: expected names are: `docsrs`, `feature`, and `test` and 31 more [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(test_utilities)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(test_utilities)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `test_utilities` [INFO] [stdout] --> src/blockchain.rs:30:17 [INFO] [stdout] | [INFO] [stdout] 30 | #[cfg(any(test, test_utilities))] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(test_utilities)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(test_utilities)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `test_utilities` [INFO] [stdout] --> src/blockchain.rs:24:21 [INFO] [stdout] | [INFO] [stdout] 24 | #[cfg(any(test, test_utilities))] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(test_utilities)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(test_utilities)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `test_utilities` [INFO] [stdout] --> src/crypto/hash.rs:110:17 [INFO] [stdout] | [INFO] [stdout] 110 | #[cfg(any(test, test_utilities))] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(test_utilities)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(test_utilities)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `test_utilities` [INFO] [stdout] --> src/transaction.rs:18:17 [INFO] [stdout] | [INFO] [stdout] 18 | #[cfg(any(test, test_utilities))] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(test_utilities)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(test_utilities)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/api/mod.rs:58:51 [INFO] [stdout] | [INFO] [stdout] 58 | let url = match base_url.join(req.url()) { [INFO] [stdout] | ^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `serde_json` [INFO] [stdout] --> src/api/mod.rs:33:42 [INFO] [stdout] | [INFO] [stdout] 33 | let resp = Response::from_string(serde_json::to_string_pretty(&payload).unwrap()) [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `serde_json` [INFO] [stdout] ... [INFO] [stdout] 61 | respond_result!(req, false, format!("error parsing url: {}", e)); [INFO] [stdout] | ---------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `serde_json`, use `cargo add serde_json` to add it to your `Cargo.toml` [INFO] [stdout] = note: this error originates in the macro `respond_result` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/api/mod.rs:58:25 [INFO] [stdout] | [INFO] [stdout] 58 | let url = match base_url.join(req.url()) { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 65 | match url.path() { [INFO] [stdout] | --- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `url` an explicit type [INFO] [stdout] | [INFO] [stdout] 58 | let url: /* Type */ = match base_url.join(req.url()) { [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `serde_json` [INFO] [stdout] --> src/api/mod.rs:33:42 [INFO] [stdout] | [INFO] [stdout] 33 | let resp = Response::from_string(serde_json::to_string_pretty(&payload).unwrap()) [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `serde_json` [INFO] [stdout] ... [INFO] [stdout] 72 | respond_result!(req, false, "missing lambda"); [INFO] [stdout] | --------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `serde_json`, use `cargo add serde_json` to add it to your `Cargo.toml` [INFO] [stdout] = note: this error originates in the macro `respond_result` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/api/mod.rs:69:33 [INFO] [stdout] | [INFO] [stdout] 69 | ... let lambda = match params.get("lambda") { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 76 | ... let lambda = match lambda.parse::() { [INFO] [stdout] | ------ type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `lambda` an explicit type [INFO] [stdout] | [INFO] [stdout] 69 | let lambda: /* Type */ = match params.get("lambda") { [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `serde_json` [INFO] [stdout] --> src/api/mod.rs:33:42 [INFO] [stdout] | [INFO] [stdout] 33 | let resp = Response::from_string(serde_json::to_string_pretty(&payload).unwrap()) [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `serde_json` [INFO] [stdout] ... [INFO] [stdout] 79 | / respond_result!( [INFO] [stdout] 80 | | req, [INFO] [stdout] 81 | | false, [INFO] [stdout] 82 | | format!("error parsing lambda: {}", e) [INFO] [stdout] 83 | | ); [INFO] [stdout] | |_____________________________________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `serde_json`, use `cargo add serde_json` to add it to your `Cargo.toml` [INFO] [stdout] = note: this error originates in the macro `respond_result` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `serde_json` [INFO] [stdout] --> src/api/mod.rs:33:42 [INFO] [stdout] | [INFO] [stdout] 33 | let resp = Response::from_string(serde_json::to_string_pretty(&payload).unwrap()) [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `serde_json` [INFO] [stdout] ... [INFO] [stdout] 88 | respond_result!(req, true, "ok"); [INFO] [stdout] | -------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `serde_json`, use `cargo add serde_json` to add it to your `Cargo.toml` [INFO] [stdout] = note: this error originates in the macro `respond_result` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `serde_json` [INFO] [stdout] --> src/api/mod.rs:33:42 [INFO] [stdout] | [INFO] [stdout] 33 | let resp = Response::from_string(serde_json::to_string_pretty(&payload).unwrap()) [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `serde_json` [INFO] [stdout] ... [INFO] [stdout] 92 | respond_result!(req, true, "ok"); [INFO] [stdout] | -------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `serde_json`, use `cargo add serde_json` to add it to your `Cargo.toml` [INFO] [stdout] = note: this error originates in the macro `respond_result` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `serde_json` [INFO] [stdout] --> src/api/mod.rs:102:33 [INFO] [stdout] | [INFO] [stdout] 102 | ... serde_json::to_string_pretty(&payload).unwrap(), [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `serde_json` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `serde_json`, use `cargo add serde_json` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/api/mod.rs:58:51 [INFO] [stdout] | [INFO] [stdout] 58 | let url = match base_url.join(req.url()) { [INFO] [stdout] | ^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `serde_json` [INFO] [stdout] --> src/api/mod.rs:33:42 [INFO] [stdout] | [INFO] [stdout] 33 | let resp = Response::from_string(serde_json::to_string_pretty(&payload).unwrap()) [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `serde_json` [INFO] [stdout] ... [INFO] [stdout] 61 | respond_result!(req, false, format!("error parsing url: {}", e)); [INFO] [stdout] | ---------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `serde_json`, use `cargo add serde_json` to add it to your `Cargo.toml` [INFO] [stdout] = note: this error originates in the macro `respond_result` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/api/mod.rs:58:25 [INFO] [stdout] | [INFO] [stdout] 58 | let url = match base_url.join(req.url()) { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 65 | match url.path() { [INFO] [stdout] | --- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `url` an explicit type [INFO] [stdout] | [INFO] [stdout] 58 | let url: /* Type */ = match base_url.join(req.url()) { [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `serde_json` [INFO] [stdout] --> src/api/mod.rs:33:42 [INFO] [stdout] | [INFO] [stdout] 33 | let resp = Response::from_string(serde_json::to_string_pretty(&payload).unwrap()) [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `serde_json` [INFO] [stdout] ... [INFO] [stdout] 72 | respond_result!(req, false, "missing lambda"); [INFO] [stdout] | --------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `serde_json`, use `cargo add serde_json` to add it to your `Cargo.toml` [INFO] [stdout] = note: this error originates in the macro `respond_result` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/api/mod.rs:69:33 [INFO] [stdout] | [INFO] [stdout] 69 | ... let lambda = match params.get("lambda") { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 76 | ... let lambda = match lambda.parse::() { [INFO] [stdout] | ------ type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `lambda` an explicit type [INFO] [stdout] | [INFO] [stdout] 69 | let lambda: /* Type */ = match params.get("lambda") { [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `serde_json` [INFO] [stdout] --> src/api/mod.rs:33:42 [INFO] [stdout] | [INFO] [stdout] 33 | let resp = Response::from_string(serde_json::to_string_pretty(&payload).unwrap()) [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `serde_json` [INFO] [stdout] ... [INFO] [stdout] 79 | / respond_result!( [INFO] [stdout] 80 | | req, [INFO] [stdout] 81 | | false, [INFO] [stdout] 82 | | format!("error parsing lambda: {}", e) [INFO] [stdout] 83 | | ); [INFO] [stdout] | |_____________________________________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `serde_json`, use `cargo add serde_json` to add it to your `Cargo.toml` [INFO] [stdout] = note: this error originates in the macro `respond_result` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `serde_json` [INFO] [stdout] --> src/api/mod.rs:33:42 [INFO] [stdout] | [INFO] [stdout] 33 | let resp = Response::from_string(serde_json::to_string_pretty(&payload).unwrap()) [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `serde_json` [INFO] [stdout] ... [INFO] [stdout] 88 | respond_result!(req, true, "ok"); [INFO] [stdout] | -------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `serde_json`, use `cargo add serde_json` to add it to your `Cargo.toml` [INFO] [stdout] = note: this error originates in the macro `respond_result` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `serde_json` [INFO] [stdout] --> src/api/mod.rs:33:42 [INFO] [stdout] | [INFO] [stdout] 33 | let resp = Response::from_string(serde_json::to_string_pretty(&payload).unwrap()) [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `serde_json` [INFO] [stdout] ... [INFO] [stdout] 92 | respond_result!(req, true, "ok"); [INFO] [stdout] | -------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `serde_json`, use `cargo add serde_json` to add it to your `Cargo.toml` [INFO] [stdout] = note: this error originates in the macro `respond_result` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `serde_json` [INFO] [stdout] --> src/api/mod.rs:102:33 [INFO] [stdout] | [INFO] [stdout] 102 | ... serde_json::to_string_pretty(&payload).unwrap(), [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `serde_json` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `serde_json`, use `cargo add serde_json` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `bincode` [INFO] [stdout] --> src/network/peer.rs:223:22 [INFO] [stdout] | [INFO] [stdout] 223 | let buffer = bincode::serialize(&msg).unwrap(); [INFO] [stdout] | ^^^^^^^ use of unresolved module or unlinked crate `bincode` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `bincode`, use `cargo add bincode` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/network/server.rs:184:24 [INFO] [stdout] | [INFO] [stdout] 184 | if e.kind() == std::io::ErrorKind::WouldBlock { [INFO] [stdout] | ^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `rand` [INFO] [stdout] --> src/crypto/hash.rs:116:23 [INFO] [stdout] | [INFO] [stdout] 116 | let mut rng = rand::thread_rng(); [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `rand` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rand`, use `cargo add rand` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/network/server.rs:244:20 [INFO] [stdout] | [INFO] [stdout] 244 | if e.kind() == std::io::ErrorKind::WouldBlock { [INFO] [stdout] | ^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/network/server.rs:290:23 [INFO] [stdout] | [INFO] [stdout] 290 | match event.token() { [INFO] [stdout] | ^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/network/server.rs:322:40 [INFO] [stdout] | [INFO] [stdout] 322 | ... if e.kind() == std::io::ErrorKind::WouldBlock { [INFO] [stdout] | ^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/network/server.rs:382:9 [INFO] [stdout] | [INFO] [stdout] 382 | receiver.recv().unwrap() [INFO] [stdout] | ^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `bincode` [INFO] [stdout] --> src/network/worker.rs:44:32 [INFO] [stdout] | [INFO] [stdout] 44 | let msg: Message = bincode::deserialize(&msg).unwrap(); [INFO] [stdout] | ^^^^^^^ use of unresolved module or unlinked crate `bincode` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `bincode`, use `cargo add bincode` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/network/worker.rs:48:21 [INFO] [stdout] | [INFO] [stdout] 48 | peer.write(Message::Pong(nonce.to_string())); [INFO] [stdout] | ^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `stderrlog` [INFO] [stdout] --> src/main.rs:38:5 [INFO] [stdout] | [INFO] [stdout] 38 | stderrlog::new().verbosity(verbosity).init().unwrap(); [INFO] [stdout] | ^^^^^^^^^ use of unresolved module or unlinked crate `stderrlog` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `stderrlog`, use `cargo add stderrlog` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/main.rs:87:5 [INFO] [stdout] | [INFO] [stdout] 87 | miner_ctx.start(); [INFO] [stdout] | ^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/main.rs:91:40 [INFO] [stdout] | [INFO] [stdout] 91 | let known_peers: Vec = known_peers.map(|x| x.to_owned()).collect(); [INFO] [stdout] | ^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/main.rs:91:57 [INFO] [stdout] | [INFO] [stdout] 91 | let known_peers: Vec = known_peers.map(|x| x.to_owned()).collect(); [INFO] [stdout] | ^ - type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving this closure parameter an explicit type [INFO] [stdout] | [INFO] [stdout] 91 | let known_peers: Vec = known_peers.map(|x: /* Type */| x.to_owned()).collect(); [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/main.rs:96:38 [INFO] [stdout] | [INFO] [stdout] 96 | let addr = match peer.parse::() { [INFO] [stdout] | ^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `block` [INFO] [stdout] --> src/blockchain.rs:14:30 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn insert(&mut self, block: &Block) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_block` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `data` [INFO] [stdout] --> src/crypto/merkle.rs:9:19 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn new(data: &[T]) -> Self where T: Hashable, { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/crypto/merkle.rs:18:25 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn proof(&self, index: usize) -> Vec { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `root` [INFO] [stdout] --> src/crypto/merkle.rs:25:15 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn verify(root: &H256, datum: &H256, proof: &[H256], index: usize, leaf_size: usize) -> bool { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_root` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `datum` [INFO] [stdout] --> src/crypto/merkle.rs:25:28 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn verify(root: &H256, datum: &H256, proof: &[H256], index: usize, leaf_size: usize) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_datum` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `proof` [INFO] [stdout] --> src/crypto/merkle.rs:25:42 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn verify(root: &H256, datum: &H256, proof: &[H256], index: usize, leaf_size: usize) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_proof` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/crypto/merkle.rs:25:58 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn verify(root: &H256, datum: &H256, proof: &[H256], index: usize, leaf_size: usize) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `leaf_size` [INFO] [stdout] --> src/crypto/merkle.rs:25:72 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn verify(root: &H256, datum: &H256, proof: &[H256], index: usize, leaf_size: usize) -> bool { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_leaf_size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `slab` [INFO] [stdout] --> src/network/server.rs:34:12 [INFO] [stdout] | [INFO] [stdout] 34 | peers: slab::Slab, [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `slab` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `slab`, use `cargo add slab` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0282, E0432, E0433, E0583. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0282`. [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `bincode` [INFO] [stdout] --> src/network/peer.rs:223:22 [INFO] [stdout] | [INFO] [stdout] 223 | let buffer = bincode::serialize(&msg).unwrap(); [INFO] [stdout] | ^^^^^^^ use of unresolved module or unlinked crate `bincode` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `bincode`, use `cargo add bincode` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `csc297` (bin "csc297") due to 54 previous errors; 13 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/network/server.rs:184:24 [INFO] [stdout] | [INFO] [stdout] 184 | if e.kind() == std::io::ErrorKind::WouldBlock { [INFO] [stdout] | ^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/network/server.rs:244:20 [INFO] [stdout] | [INFO] [stdout] 244 | if e.kind() == std::io::ErrorKind::WouldBlock { [INFO] [stdout] | ^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/network/server.rs:290:23 [INFO] [stdout] | [INFO] [stdout] 290 | match event.token() { [INFO] [stdout] | ^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/network/server.rs:322:40 [INFO] [stdout] | [INFO] [stdout] 322 | ... if e.kind() == std::io::ErrorKind::WouldBlock { [INFO] [stdout] | ^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/network/server.rs:382:9 [INFO] [stdout] | [INFO] [stdout] 382 | receiver.recv().unwrap() [INFO] [stdout] | ^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `bincode` [INFO] [stdout] --> src/network/worker.rs:44:32 [INFO] [stdout] | [INFO] [stdout] 44 | let msg: Message = bincode::deserialize(&msg).unwrap(); [INFO] [stdout] | ^^^^^^^ use of unresolved module or unlinked crate `bincode` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `bincode`, use `cargo add bincode` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/network/worker.rs:48:21 [INFO] [stdout] | [INFO] [stdout] 48 | peer.write(Message::Pong(nonce.to_string())); [INFO] [stdout] | ^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `stderrlog` [INFO] [stdout] --> src/main.rs:38:5 [INFO] [stdout] | [INFO] [stdout] 38 | stderrlog::new().verbosity(verbosity).init().unwrap(); [INFO] [stdout] | ^^^^^^^^^ use of unresolved module or unlinked crate `stderrlog` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `stderrlog`, use `cargo add stderrlog` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/main.rs:87:5 [INFO] [stdout] | [INFO] [stdout] 87 | miner_ctx.start(); [INFO] [stdout] | ^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/main.rs:91:40 [INFO] [stdout] | [INFO] [stdout] 91 | let known_peers: Vec = known_peers.map(|x| x.to_owned()).collect(); [INFO] [stdout] | ^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/main.rs:91:57 [INFO] [stdout] | [INFO] [stdout] 91 | let known_peers: Vec = known_peers.map(|x| x.to_owned()).collect(); [INFO] [stdout] | ^ - type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving this closure parameter an explicit type [INFO] [stdout] | [INFO] [stdout] 91 | let known_peers: Vec = known_peers.map(|x: /* Type */| x.to_owned()).collect(); [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/main.rs:96:38 [INFO] [stdout] | [INFO] [stdout] 96 | let addr = match peer.parse::() { [INFO] [stdout] | ^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `parent` [INFO] [stdout] --> src/block.rs:19:34 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn generate_random_block(parent: &H256) -> Block { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_parent` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `block` [INFO] [stdout] --> src/blockchain.rs:14:30 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn insert(&mut self, block: &Block) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_block` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `data` [INFO] [stdout] --> src/crypto/merkle.rs:9:19 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn new(data: &[T]) -> Self where T: Hashable, { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/crypto/merkle.rs:18:25 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn proof(&self, index: usize) -> Vec { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `root` [INFO] [stdout] --> src/crypto/merkle.rs:25:15 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn verify(root: &H256, datum: &H256, proof: &[H256], index: usize, leaf_size: usize) -> bool { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_root` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `datum` [INFO] [stdout] --> src/crypto/merkle.rs:25:28 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn verify(root: &H256, datum: &H256, proof: &[H256], index: usize, leaf_size: usize) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_datum` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `proof` [INFO] [stdout] --> src/crypto/merkle.rs:25:42 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn verify(root: &H256, datum: &H256, proof: &[H256], index: usize, leaf_size: usize) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_proof` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/crypto/merkle.rs:25:58 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn verify(root: &H256, datum: &H256, proof: &[H256], index: usize, leaf_size: usize) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `leaf_size` [INFO] [stdout] --> src/crypto/merkle.rs:25:72 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn verify(root: &H256, datum: &H256, proof: &[H256], index: usize, leaf_size: usize) -> bool { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_leaf_size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `slab` [INFO] [stdout] --> src/network/server.rs:34:12 [INFO] [stdout] | [INFO] [stdout] 34 | peers: slab::Slab, [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `slab` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `slab`, use `cargo add slab` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0282, E0432, E0433, E0463, E0583. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0282`. [INFO] [stdout] [INFO] [stderr] error: could not compile `csc297` (bin "csc297" test) due to 65 previous errors; 14 warnings emitted [INFO] running `Command { std: "docker" "inspect" "207279cd23afecda0ca697aac9145c31eb99cac655d3346a16e702317b4ae540", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "207279cd23afecda0ca697aac9145c31eb99cac655d3346a16e702317b4ae540", kill_on_drop: false }` [INFO] [stdout] 207279cd23afecda0ca697aac9145c31eb99cac655d3346a16e702317b4ae540