[INFO] fetching crate ethers 0.2.2... [INFO] checking ethers-0.2.2 against try#3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f for pr-87248 [INFO] extracting crate ethers 0.2.2 into /workspace/builds/worker-8/source [INFO] validating manifest of crates.io crate ethers 0.2.2 on toolchain 3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate ethers 0.2.2 [INFO] finished tweaking crates.io crate ethers 0.2.2 [INFO] tweaked toml for crates.io crate ethers 0.2.2 written to /workspace/builds/worker-8/source/Cargo.toml [INFO] crate crates.io crate ethers 0.2.2 already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f" "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] [stderr] Downloading crates ... [INFO] [stderr] Downloaded sct v0.6.0 [INFO] [stderr] Downloaded serde-aux v2.1.1 [INFO] [stderr] Downloaded curl v0.4.34 [INFO] [stderr] Downloaded primitive-types v0.9.0 [INFO] [stderr] Downloaded async-trait v0.1.42 [INFO] [stderr] Downloaded bitvec v0.20.1 [INFO] [stderr] Downloaded k256 v0.7.2 [INFO] [stderr] Downloaded password-hash v0.1.1 [INFO] [stderr] Downloaded ethers-middleware v0.2.2 [INFO] [stderr] Downloaded const-oid v0.4.4 [INFO] [stderr] Downloaded hidapi v1.2.5 [INFO] [stderr] Downloaded scrypt v0.6.3 [INFO] [stderr] Downloaded ethabi-next v13.1.0 [INFO] [stderr] Downloaded idna v0.2.2 [INFO] [stderr] Downloaded wasm-bindgen v0.2.71 [INFO] [stderr] Downloaded pbkdf2 v0.7.3 [INFO] [stderr] Downloaded redox_syscall v0.2.5 [INFO] [stderr] Downloaded wasm-bindgen-futures v0.4.21 [INFO] [stderr] Downloaded eth-keystore v0.2.0 [INFO] [stderr] Downloaded futures-util v0.3.13 [INFO] [stderr] Downloaded web-sys v0.3.48 [INFO] [stderr] Downloaded futures-macro v0.3.13 [INFO] [stderr] Downloaded futures-executor v0.3.13 [INFO] [stderr] Downloaded futures-core v0.3.13 [INFO] [stderr] Downloaded wasm-bindgen-shared v0.2.71 [INFO] [stderr] Downloaded js-sys v0.3.48 [INFO] [stderr] Downloaded rustls v0.19.0 [INFO] [stderr] Downloaded httparse v1.3.5 [INFO] [stderr] Downloaded sha-1 v0.9.4 [INFO] [stderr] Downloaded unicode-normalization v0.1.17 [INFO] [stderr] Downloaded hyper v0.14.4 [INFO] [stderr] Downloaded url v2.2.1 [INFO] [stderr] Downloaded security-framework v2.1.1 [INFO] [stderr] Downloaded security-framework-sys v2.1.1 [INFO] [stderr] Downloaded h2 v0.3.1 [INFO] [stderr] Downloaded bumpalo v3.6.1 [INFO] [stderr] Downloaded tracing v0.1.25 [INFO] [stderr] Downloaded futures v0.3.13 [INFO] [stderr] Downloaded wasm-bindgen-backend v0.2.71 [INFO] [stderr] Downloaded wasm-bindgen-macro-support v0.2.71 [INFO] [stderr] Downloaded webpki-roots v0.21.0 [INFO] [stderr] Downloaded byteorder v1.4.2 [INFO] [stderr] Downloaded libz-sys v1.1.2 [INFO] [stderr] Downloaded futures-task v0.3.13 [INFO] [stderr] Downloaded curl-sys v0.4.40+curl-7.75.0 [INFO] [stderr] Downloaded rustc-demangle v0.1.18 [INFO] [stderr] Downloaded sha2 v0.9.3 [INFO] [stderr] Downloaded wasm-bindgen-macro v0.2.71 [INFO] [stderr] Downloaded futures-io v0.3.13 [INFO] [stderr] Downloaded mio v0.7.9 [INFO] [stderr] Downloaded pin-project-lite v0.2.5 [INFO] [stderr] Downloaded subtle v2.4.0 [INFO] [stderr] Downloaded tokio v1.2.0 [INFO] [stderr] Downloaded futures-channel v0.3.13 [INFO] [stderr] Downloaded synstructure v0.12.4 [INFO] [stderr] Downloaded futures-sink v0.3.13 [INFO] [stderr] Downloaded typenum v1.12.0 [INFO] [stderr] Downloaded thiserror v1.0.24 [INFO] [stderr] Downloaded thiserror-impl v1.0.24 [INFO] [stderr] Downloaded zeroize v1.2.0 [INFO] [stderr] Downloaded gimli v0.23.0 [INFO] [stderr] Downloaded crypto-mac v0.10.0 [INFO] [stderr] Downloaded cpuid-bool v0.1.2 [INFO] [stderr] Downloaded bitvec v0.18.4 [INFO] [stderr] Downloaded parity-scale-codec v2.0.1 [INFO] [stderr] Downloaded p256 v0.7.2 [INFO] [stderr] Downloaded base64ct v0.2.0 [INFO] [stderr] Downloaded elliptic-curve v0.9.4 [INFO] [stderr] Downloaded radium v0.4.1 [INFO] [stderr] Downloaded object v0.23.0 [INFO] [stderr] Downloaded impl-codec v0.5.0 [INFO] [stderr] Downloaded uint v0.9.0 [INFO] [stderr] Downloaded addr2line v0.14.1 [INFO] [stderr] Downloaded backtrace v0.3.56 [INFO] [stderr] Downloaded reqwest v0.11.1 [INFO] [stderr] Downloaded zeroize_derive v1.0.1 [INFO] [stderr] Downloaded once_cell v1.7.2 [INFO] [stderr] Downloaded utf-8 v0.7.5 [INFO] [stderr] Downloaded anyhow v1.0.38 [INFO] [stderr] Downloaded ed25519 v1.0.3 [INFO] [stderr] Downloaded libc v0.2.87 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 28141858a3a96eb7d6005c3556d7d56b9f14abf3a6e013660c2365f038b6073d [INFO] running `Command { std: "docker" "start" "-a" "28141858a3a96eb7d6005c3556d7d56b9f14abf3a6e013660c2365f038b6073d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "28141858a3a96eb7d6005c3556d7d56b9f14abf3a6e013660c2365f038b6073d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "28141858a3a96eb7d6005c3556d7d56b9f14abf3a6e013660c2365f038b6073d", kill_on_drop: false }` [INFO] [stdout] 28141858a3a96eb7d6005c3556d7d56b9f14abf3a6e013660c2365f038b6073d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/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" "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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 37b12f63299d36d4e0b87ffc51061fb06acb8ad6dbae8df42b06c11351f1c14b [INFO] running `Command { std: "docker" "start" "-a" "37b12f63299d36d4e0b87ffc51061fb06acb8ad6dbae8df42b06c11351f1c14b", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.87 [INFO] [stderr] Compiling syn v1.0.60 [INFO] [stderr] Compiling serde v1.0.123 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling radium v0.4.1 [INFO] [stderr] Compiling crunchy v0.2.2 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Checking funty v1.1.0 [INFO] [stderr] Checking wyz v0.2.0 [INFO] [stderr] Checking block-padding v0.2.1 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Checking pin-project-lite v0.2.5 [INFO] [stderr] Compiling serde_json v1.0.64 [INFO] [stderr] Checking subtle v2.4.0 [INFO] [stderr] Checking once_cell v1.7.2 [INFO] [stderr] Compiling ppv-lite86 v0.2.10 [INFO] [stderr] Checking futures-core v0.3.13 [INFO] [stderr] Checking static_assertions v1.1.0 [INFO] [stderr] Compiling rustc-hex v2.1.0 [INFO] [stderr] Checking tap v1.0.1 [INFO] [stderr] Checking matches v0.1.8 [INFO] [stderr] Checking futures-sink v0.3.13 [INFO] [stderr] Checking hex v0.4.3 [INFO] [stderr] Checking futures-task v0.3.13 [INFO] [stderr] Checking untrusted v0.7.1 [INFO] [stderr] Checking arrayvec v0.5.2 [INFO] [stderr] Checking spin v0.5.2 [INFO] [stderr] Checking slab v0.4.2 [INFO] [stderr] Compiling byteorder v1.4.2 [INFO] [stderr] Checking keccak v0.1.0 [INFO] [stderr] Compiling httparse v1.3.5 [INFO] [stderr] Compiling byte-slice-cast v1.0.0 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Compiling openssl v0.10.32 [INFO] [stderr] Checking zeroize v1.2.0 [INFO] [stderr] Checking base64 v0.13.0 [INFO] [stderr] Checking foreign-types-shared v0.1.1 [INFO] [stderr] Checking openssl-probe v0.1.2 [INFO] [stderr] Compiling curl v0.4.34 [INFO] [stderr] Compiling tinyvec_macros v0.1.0 [INFO] [stderr] Compiling percent-encoding v2.1.0 [INFO] [stderr] Checking base64ct v0.2.0 [INFO] [stderr] Compiling encoding_rs v0.8.28 [INFO] [stderr] Checking tower-service v0.3.1 [INFO] [stderr] Checking futures-timer v3.0.2 [INFO] [stderr] Compiling generic-array v0.14.4 [INFO] [stderr] Compiling openssl-sys v0.9.60 [INFO] [stderr] Compiling libz-sys v1.1.2 [INFO] [stderr] Compiling tokio v1.2.0 [INFO] [stderr] Compiling ring v0.16.20 [INFO] [stderr] Compiling curl-sys v0.4.40+curl-7.75.0 [INFO] [stderr] Compiling indexmap v1.6.1 [INFO] [stderr] Checking tinyvec v1.1.1 [INFO] [stderr] Checking unicode-bidi v0.3.4 [INFO] [stderr] Checking form_urlencoded v1.0.1 [INFO] [stderr] Checking futures-channel v0.3.13 [INFO] [stderr] Checking tracing-core v0.1.17 [INFO] [stderr] Checking foreign-types v0.3.2 [INFO] [stderr] Checking thread_local v1.1.3 [INFO] [stderr] Checking proc-macro2 v1.0.24 [INFO] [stderr] Compiling typenum v1.12.0 [INFO] [stderr] Compiling memchr v2.3.4 [INFO] [stderr] Compiling radium v0.6.2 [INFO] [stderr] Compiling ryu v1.0.5 [INFO] [stderr] Compiling quote v1.0.9 [INFO] [stderr] Checking regex v1.4.3 [INFO] [stderr] Checking tiny-keccak v2.0.2 [INFO] [stderr] Checking uint v0.9.0 [INFO] [stderr] Checking bitvec v0.20.1 [INFO] [stderr] Checking want v0.3.0 [INFO] [stderr] Checking bitvec v0.18.4 [INFO] [stderr] Compiling aho-corasick v0.7.15 [INFO] [stderr] Checking tracing v0.1.25 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Checking unicode-normalization v0.1.17 [INFO] [stderr] Checking digest v0.9.0 [INFO] [stderr] Checking block-buffer v0.9.0 [INFO] [stderr] Checking crypto-mac v0.10.0 [INFO] [stderr] Checking cipher v0.2.5 [INFO] [stderr] Compiling getrandom v0.1.16 [INFO] [stderr] Compiling getrandom v0.2.2 [INFO] [stderr] Compiling socket2 v0.3.19 [INFO] [stderr] Checking hmac v0.10.1 [INFO] [stderr] Checking sha3 v0.9.1 [INFO] [stderr] Checking sha-1 v0.9.4 [INFO] [stderr] Checking sha2 v0.9.3 [INFO] [stderr] Compiling rand_core v0.6.2 [INFO] [stderr] Checking salsa20 v0.7.2 [INFO] [stderr] Checking aes-soft v0.6.4 [INFO] [stderr] Checking ctr v0.6.0 [INFO] [stderr] Compiling rand_core v0.5.1 [INFO] [stderr] Compiling native-tls v0.2.7 [INFO] [stderr] Checking aes v0.6.0 [INFO] [stderr] Checking Inflector v0.11.4 [INFO] [stderr] Checking mio v0.7.9 [INFO] [stderr] Compiling rand_chacha v0.3.0 [INFO] [stderr] Compiling rand_chacha v0.2.2 [INFO] [stderr] Compiling elliptic-curve v0.9.4 [INFO] [stderr] Compiling rand v0.7.3 [INFO] [stderr] Checking signature v1.2.2 [INFO] [stderr] Checking password-hash v0.1.1 [INFO] [stderr] Compiling rand v0.8.3 [INFO] [stderr] Checking idna v0.2.2 [INFO] [stderr] Checking pbkdf2 v0.7.3 [INFO] [stderr] Checking scrypt v0.6.3 [INFO] [stderr] Checking fixed-hash v0.7.0 [INFO] [stderr] Compiling ff v0.8.0 [INFO] [stderr] Checking url v2.2.1 [INFO] [stderr] Compiling group v0.8.0 [INFO] [stderr] Compiling elliptic-curve v0.8.5 [INFO] [stderr] Compiling ecdsa v0.10.2 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling k256 v0.7.2 [INFO] [stderr] Checking webpki v0.21.4 [INFO] [stderr] Checking sct v0.6.0 [INFO] [stderr] Checking rustls v0.19.0 [INFO] [stderr] Checking webpki-roots v0.21.0 [INFO] [stderr] Compiling serde_derive v1.0.123 [INFO] [stderr] Compiling thiserror-impl v1.0.24 [INFO] [stderr] Compiling futures-macro v0.3.13 [INFO] [stderr] Compiling pin-project-internal v1.0.5 [INFO] [stderr] Compiling async-trait v0.1.42 [INFO] [stderr] Compiling auto_impl v0.4.1 [INFO] [stderr] Checking futures-util v0.3.13 [INFO] [stderr] Checking thiserror v1.0.24 [INFO] [stderr] Checking pin-project v1.0.5 [INFO] [stderr] Checking tracing-futures v0.2.5 [INFO] [stderr] Checking futures-executor v0.3.13 [INFO] [stderr] Checking bytes v1.0.1 [INFO] [stderr] Checking parity-scale-codec v2.0.1 [INFO] [stderr] Checking impl-serde v0.3.1 [INFO] [stderr] Checking serde_urlencoded v0.7.0 [INFO] [stderr] Checking uuid v0.8.2 [INFO] [stderr] Checking rlp v0.5.0 [INFO] [stderr] Checking http v0.2.3 [INFO] [stderr] Checking input_buffer v0.4.0 [INFO] [stderr] Checking impl-rlp v0.3.0 [INFO] [stderr] Checking ethbloom v0.11.0 [INFO] [stderr] Checking eth-keystore v0.2.0 [INFO] [stderr] Checking serde-aux v2.1.1 [INFO] [stderr] Checking impl-codec v0.5.0 [INFO] [stderr] Checking primitive-types v0.9.0 [INFO] [stderr] Checking http-body v0.4.0 [INFO] [stderr] Checking tungstenite v0.12.0 [INFO] [stderr] Checking tokio-util v0.6.3 [INFO] [stderr] Checking tokio-rustls v0.22.0 [INFO] [stderr] Checking tokio-native-tls v0.3.0 [INFO] [stderr] Checking tokio-tungstenite v0.13.0 [INFO] [stderr] Checking h2 v0.3.1 [INFO] [stderr] Checking ethereum-types v0.11.0 [INFO] [stderr] Checking ethabi-next v13.1.0 [INFO] [stderr] Checking ethers-core v0.2.2 [INFO] [stderr] Checking hyper v0.14.4 [INFO] [stderr] Checking ethers-contract-abigen v0.2.2 [INFO] [stderr] Checking ethers-signers v0.2.2 [INFO] [stderr] Checking hyper-rustls v0.22.1 [INFO] [stderr] Checking reqwest v0.11.1 [INFO] [stderr] Checking ethers-providers v0.2.2 [INFO] [stderr] Compiling ethers-contract-derive v0.2.2 [INFO] [stderr] Checking ethers-contract v0.2.2 [INFO] [stderr] Checking ethers-middleware v0.2.2 [INFO] [stderr] Checking ethers v0.2.2 (/opt/rustwide/workdir) [INFO] [stdout] error[E0432]: unresolved import `anyhow` [INFO] [stdout] --> examples/local_signer.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use anyhow::Result; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `anyhow` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `tokio` [INFO] [stdout] --> examples/local_signer.rs:5:3 [INFO] [stdout] | [INFO] [stdout] 5 | #[tokio::main] [INFO] [stdout] | ^^^^^ use of undeclared crate or module `tokio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `serde_json` [INFO] [stdout] --> examples/local_signer.rs:28:31 [INFO] [stdout] | [INFO] [stdout] 28 | println!("Sent tx: {}\n", serde_json::to_string(&tx)?); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared crate or module `serde_json` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `serde_json` [INFO] [stdout] --> examples/local_signer.rs:29:32 [INFO] [stdout] | [INFO] [stdout] 29 | println!("Tx receipt: {}", serde_json::to_string(&receipt)?); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared crate or module `serde_json` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `anyhow` [INFO] [stdout] --> examples/transfer_eth.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use anyhow::Result; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `anyhow` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `tokio` [INFO] [stdout] --> examples/transfer_eth.rs:5:3 [INFO] [stdout] | [INFO] [stdout] 5 | #[tokio::main] [INFO] [stdout] | ^^^^^ use of undeclared crate or module `tokio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `serde_json` [INFO] [stdout] --> examples/transfer_eth.rs:23:20 [INFO] [stdout] | [INFO] [stdout] 23 | println!("{}", serde_json::to_string(&tx)?); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared crate or module `serde_json` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> examples/local_signer.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | async fn main() -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0433, E0752. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stderr] error: could not compile `ethers` due to 6 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> examples/transfer_eth.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | async fn main() -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0433, E0752. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `tokio` [INFO] [stdout] --> examples/watch_blocks.rs:4:3 [INFO] [stdout] | [INFO] [stdout] 4 | #[tokio::main] [INFO] [stdout] | ^^^^^ use of undeclared crate or module `tokio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `anyhow` [INFO] [stdout] --> examples/watch_blocks.rs:5:20 [INFO] [stdout] | [INFO] [stdout] 5 | async fn main() -> anyhow::Result<()> { [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `anyhow` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `anyhow` [INFO] [stdout] --> examples/ens.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use anyhow::Result; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `anyhow` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `tokio` [INFO] [stdout] --> examples/ens.rs:5:3 [INFO] [stdout] | [INFO] [stdout] 5 | #[tokio::main] [INFO] [stdout] | ^^^^^ use of undeclared crate or module `tokio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `anyhow` [INFO] [stdout] --> examples/sign.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use anyhow::Result; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `anyhow` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `tokio` [INFO] [stdout] --> examples/sign.rs:4:3 [INFO] [stdout] | [INFO] [stdout] 4 | #[tokio::main] [INFO] [stdout] | ^^^^^ use of undeclared crate or module `tokio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `anyhow` [INFO] [stdout] --> examples/abigen.rs:3:14 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() -> anyhow::Result<()> { [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `anyhow` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> examples/watch_blocks.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | Ok(()) [INFO] [stdout] | ^^ cannot infer type for type parameter `E` declared on the enum `Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> examples/watch_blocks.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | async fn main() -> anyhow::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `serde_json` [INFO] [stdout] --> examples/ens.rs:24:20 [INFO] [stdout] | [INFO] [stdout] 24 | println!("{}", serde_json::to_string(&tx)?); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared crate or module `serde_json` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `serde_json` [INFO] [stdout] --> examples/ens.rs:25:20 [INFO] [stdout] | [INFO] [stdout] 25 | println!("{}", serde_json::to_string(&receipt)?); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared crate or module `serde_json` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0282, E0433, E0752. [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 undeclared crate or module `rand` [INFO] [stdout] --> examples/sign.rs:7:40 [INFO] [stdout] | [INFO] [stdout] 7 | let wallet = LocalWallet::new(&mut rand::thread_rng()); [INFO] [stdout] | ^^^^ use of undeclared crate or module `rand` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> examples/sign.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | async fn main() -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0433, E0752. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `anyhow` [INFO] [stdout] --> examples/contract_human_readable.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use anyhow::Result; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `anyhow` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `serde` [INFO] [stdout] --> examples/contract_human_readable.rs:10:1 [INFO] [stdout] | [INFO] [stdout] 10 | / abigen!( [INFO] [stdout] 11 | | SimpleContract, [INFO] [stdout] 12 | | r#"[ [INFO] [stdout] 13 | | function setValue(string) [INFO] [stdout] ... | [INFO] [stdout] 17 | | event_derives(serde::Deserialize, serde::Serialize) [INFO] [stdout] 18 | | ); [INFO] [stdout] | |__^ use of undeclared crate or module `serde` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `abigen` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `tokio` [INFO] [stdout] --> examples/contract_human_readable.rs:20:3 [INFO] [stdout] | [INFO] [stdout] 20 | #[tokio::main] [INFO] [stdout] | ^^^^^ use of undeclared crate or module `tokio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> examples/ens.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | async fn main() -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0433, E0752. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `serde_json` [INFO] [stdout] --> examples/contract_human_readable.rs:72:44 [INFO] [stdout] | [INFO] [stdout] 72 | println!("Value: {}. Logs: {}", value, serde_json::to_string(&logs)?); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared crate or module `serde_json` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: failed to get ABI JSON [INFO] [stdout] [INFO] [stdout] Caused by: [INFO] [stdout] 0: failed to read artifact JSON file with path /opt/rustwide/workdir/ethers/examples/contract_abi.json [INFO] [stdout] 1: No such file or directory (os error 2) [INFO] [stdout] [INFO] [stdout] Stack backtrace: [INFO] [stdout] 0: ::ext_context [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/github.com-1ecc6299db9ec823/anyhow-1.0.38/src/context.rs:27:29 [INFO] [stdout] 1: anyhow::context:: for core::result::Result>::context::{{closure}} [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/github.com-1ecc6299db9ec823/anyhow-1.0.38/src/context.rs:50:30 [INFO] [stdout] 2: core::result::Result::map_err [INFO] [stdout] at /rustc/3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f/library/core/src/result.rs:835:27 [INFO] [stdout] 3: anyhow::context:: for core::result::Result>::context [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/github.com-1ecc6299db9ec823/anyhow-1.0.38/src/context.rs:50:9 [INFO] [stdout] 4: ethers_contract_abigen::source::get_local_contract [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/github.com-1ecc6299db9ec823/ethers-contract-abigen-0.2.2/src/source.rs:174:16 [INFO] [stdout] 5: ethers_contract_abigen::source::Source::get [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/github.com-1ecc6299db9ec823/ethers-contract-abigen-0.2.2/src/source.rs:140:36 [INFO] [stdout] 6: ethers_contract_abigen::contract::Context::from_abigen [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/github.com-1ecc6299db9ec823/ethers-contract-abigen-0.2.2/src/contract.rs:101:23 [INFO] [stdout] 7: ethers_contract_abigen::contract::Context::expand [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/github.com-1ecc6299db9ec823/ethers-contract-abigen-0.2.2/src/contract.rs:43:18 [INFO] [stdout] 8: ethers_contract_abigen::Abigen::generate [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/github.com-1ecc6299db9ec823/ethers-contract-abigen-0.2.2/src/lib.rs:115:22 [INFO] [stdout] 9: ethers_contract_derive::abigen::expand [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/github.com-1ecc6299db9ec823/ethers-contract-derive-0.2.2/src/abigen.rs:17:8 [INFO] [stdout] 10: ethers_contract_derive::abigen [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/github.com-1ecc6299db9ec823/ethers-contract-derive-0.2.2/src/lib.rs:64:5 [INFO] [stdout] 11: core::ops::function::FnOnce::call_once [INFO] [stdout] at /rustc/3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 12: proc_macro::bridge::client::Client proc_macro::TokenStream>::expand1::run::{{closure}} [INFO] [stdout] at /rustc/3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f/library/proc_macro/src/bridge/client.rs:410:40 [INFO] [stdout] 13: proc_macro::bridge::client::run_client::{{closure}}::{{closure}} [INFO] [stdout] at /rustc/3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f/library/proc_macro/src/bridge/client.rs:377:26 [INFO] [stdout] 14: proc_macro::bridge::scoped_cell::ScopedCell::set::{{closure}} [INFO] [stdout] at /rustc/3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f/library/proc_macro/src/bridge/scoped_cell.rs:80:33 [INFO] [stdout] 15: proc_macro::bridge::scoped_cell::ScopedCell::replace [INFO] [stdout] at /rustc/3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f/library/proc_macro/src/bridge/scoped_cell.rs:75:9 [INFO] [stdout] 16: proc_macro::bridge::scoped_cell::ScopedCell::set [INFO] [stdout] at /rustc/3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f/library/proc_macro/src/bridge/scoped_cell.rs:80:9 [INFO] [stdout] 17: proc_macro::bridge::client::::enter::{{closure}} [INFO] [stdout] at /rustc/3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f/library/proc_macro/src/bridge/client.rs:325:35 [INFO] [stdout] 18: std::thread::local::LocalKey::try_with [INFO] [stdout] at /rustc/3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f/library/std/src/thread/local.rs:399:16 [INFO] [stdout] 19: std::thread::local::LocalKey::with [INFO] [stdout] at /rustc/3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f/library/std/src/thread/local.rs:375:9 [INFO] [stdout] 20: proc_macro::bridge::client::::enter [INFO] [stdout] at /rustc/3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f/library/proc_macro/src/bridge/client.rs:325:9 [INFO] [stdout] 21: proc_macro::bridge::client::run_client::{{closure}} [INFO] [stdout] at /rustc/3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f/library/proc_macro/src/bridge/client.rs:370:9 [INFO] [stdout] 22: as core::ops::function::FnOnce<()>>::call_once [INFO] [stdout] at /rustc/3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f/library/std/src/panic.rs:347:9 [INFO] [stdout] 23: std::panicking::try::do_call [INFO] [stdout] at /rustc/3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f/library/std/src/panicking.rs:401:40 [INFO] [stdout] 24: __rust_try [INFO] [stdout] 25: std::panicking::try [INFO] [stdout] at /rustc/3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f/library/std/src/panicking.rs:365:19 [INFO] [stdout] 26: std::panic::catch_unwind [INFO] [stdout] at /rustc/3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f/library/std/src/panic.rs:434:14 [INFO] [stdout] 27: proc_macro::bridge::client::run_client [INFO] [stdout] at /rustc/3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f/library/proc_macro/src/bridge/client.rs:369:5 [INFO] [stdout] 28: proc_macro::bridge::client::Client proc_macro::TokenStream>::expand1::run [INFO] [stdout] at /rustc/3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f/library/proc_macro/src/bridge/client.rs:410:13 [INFO] [stdout] 29: proc_macro::bridge::server::run_server [INFO] [stdout] 30: ::expand [INFO] [stdout] 31: rustc_expand::expand::MacroExpander::fully_expand_fragment [INFO] [stdout] 32: rustc_expand::expand::MacroExpander::expand_crate [INFO] [stdout] 33: rustc_session::utils::::time [INFO] [stdout] 34: rustc_interface::passes::configure_and_expand [INFO] [stdout] 35: rustc_interface::queries::Queries::expansion [INFO] [stdout] 36: rustc_interface::queries::::enter [INFO] [stdout] 37: rustc_span::with_source_map [INFO] [stdout] 38: rustc_interface::interface::create_compiler_and_run [INFO] [stdout] 39: scoped_tls::ScopedKey::set [INFO] [stdout] 40: std::sys_common::backtrace::__rust_begin_short_backtrace [INFO] [stdout] 41: core::ops::function::FnOnce::call_once{{vtable.shim}} [INFO] [stdout] 42: as core::ops::function::FnOnce>::call_once [INFO] [stdout] at /rustc/3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f/library/alloc/src/boxed.rs:1572:9 [INFO] [stdout] 43: as core::ops::function::FnOnce>::call_once [INFO] [stdout] at /rustc/3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f/library/alloc/src/boxed.rs:1572:9 [INFO] [stdout] 44: std::sys::unix::thread::Thread::new::thread_start [INFO] [stdout] at /rustc/3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f/library/std/src/sys/unix/thread.rs:74:17 [INFO] [stdout] 45: start_thread [INFO] [stdout] 46: clone [INFO] [stdout] --> examples/contract_with_abi.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | "./ethers/examples/contract_abi.json", [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `anyhow` [INFO] [stdout] --> examples/contract_with_abi.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use anyhow::Result; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `anyhow` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `tokio` [INFO] [stdout] --> examples/contract_with_abi.rs:16:3 [INFO] [stdout] | [INFO] [stdout] 16 | #[tokio::main] [INFO] [stdout] | ^^^^^ use of undeclared crate or module `tokio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `SimpleContract` [INFO] [stdout] --> examples/contract_with_abi.rs:53:20 [INFO] [stdout] | [INFO] [stdout] 53 | let contract = SimpleContract::new(addr, client.clone()); [INFO] [stdout] | ^^^^^^^^^^^^^^ use of undeclared type `SimpleContract` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `serde_json` [INFO] [stdout] --> examples/contract_with_abi.rs:69:44 [INFO] [stdout] | [INFO] [stdout] 69 | println!("Value: {}. Logs: {}", value, serde_json::to_string(&logs)?); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared crate or module `serde_json` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> examples/contract_human_readable.rs:21:1 [INFO] [stdout] | [INFO] [stdout] 21 | async fn main() -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0433, E0752. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> examples/contract_with_abi.rs:17:1 [INFO] [stdout] | [INFO] [stdout] 17 | async fn main() -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0433, E0752. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "37b12f63299d36d4e0b87ffc51061fb06acb8ad6dbae8df42b06c11351f1c14b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "37b12f63299d36d4e0b87ffc51061fb06acb8ad6dbae8df42b06c11351f1c14b", kill_on_drop: false }` [INFO] [stdout] 37b12f63299d36d4e0b87ffc51061fb06acb8ad6dbae8df42b06c11351f1c14b