[INFO] fetching crate ethers 0.2.2... [INFO] testing ethers-0.2.2 against try#ce59db7a1b1b012fb2793c4641c1bdecad7a128b for pr-85530 [INFO] extracting crate ethers 0.2.2 into /workspace/builds/worker-9/source [INFO] validating manifest of crates.io crate ethers 0.2.2 on toolchain ce59db7a1b1b012fb2793c4641c1bdecad7a128b [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+ce59db7a1b1b012fb2793c4641c1bdecad7a128b" "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-9/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" "+ce59db7a1b1b012fb2793c4641c1bdecad7a128b" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded wasm-bindgen-macro-support v0.2.71 [INFO] [stderr] Downloaded scrypt v0.6.3 [INFO] [stderr] Downloaded p256 v0.7.2 [INFO] [stderr] Downloaded wasm-bindgen-macro v0.2.71 [INFO] [stderr] Downloaded wasm-bindgen-futures v0.4.21 [INFO] [stderr] Downloaded pin-project-lite v0.2.5 [INFO] [stderr] Downloaded libc v0.2.87 [INFO] [stderr] Downloaded bitvec v0.18.4 [INFO] [stderr] Downloaded curl v0.4.34 [INFO] [stderr] Downloaded wasm-bindgen-shared v0.2.71 [INFO] [stderr] Downloaded web-sys v0.3.48 [INFO] [stderr] Downloaded elliptic-curve v0.9.4 [INFO] [stderr] Downloaded const-oid v0.4.4 [INFO] [stderr] Downloaded ethers-middleware v0.2.2 [INFO] [stderr] Downloaded base64ct v0.2.0 [INFO] [stderr] Downloaded bitvec v0.20.1 [INFO] [stderr] Downloaded serde-aux v2.1.1 [INFO] [stderr] Downloaded eth-keystore v0.2.0 [INFO] [stderr] Downloaded parity-scale-codec v2.0.1 [INFO] [stderr] Downloaded radium v0.4.1 [INFO] [stderr] Downloaded curl-sys v0.4.40+curl-7.75.0 [INFO] [stderr] Downloaded wasm-bindgen-backend v0.2.71 [INFO] [stderr] Downloaded password-hash v0.1.1 [INFO] [stderr] Downloaded js-sys v0.3.48 [INFO] [stderr] Downloaded wasm-bindgen v0.2.71 [INFO] [stderr] Downloaded ethabi-next v13.1.0 [INFO] [stderr] Downloaded pbkdf2 v0.7.3 [INFO] [stderr] Downloaded k256 v0.7.2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/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:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+ce59db7a1b1b012fb2793c4641c1bdecad7a128b" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 9c2514f885241010bcbb02df2d103d30c68d98fe6ba2081d608e136792401a16 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "9c2514f885241010bcbb02df2d103d30c68d98fe6ba2081d608e136792401a16", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9c2514f885241010bcbb02df2d103d30c68d98fe6ba2081d608e136792401a16", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9c2514f885241010bcbb02df2d103d30c68d98fe6ba2081d608e136792401a16", kill_on_drop: false }` [INFO] [stdout] 9c2514f885241010bcbb02df2d103d30c68d98fe6ba2081d608e136792401a16 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/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:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+ce59db7a1b1b012fb2793c4641c1bdecad7a128b" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8877eb0047a3b74a82a47628231fe2a6a81be15d9fb4d1d0640027524bfcd32a [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "8877eb0047a3b74a82a47628231fe2a6a81be15d9fb4d1d0640027524bfcd32a", 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 cc v1.0.67 [INFO] [stderr] Compiling typenum v1.12.0 [INFO] [stderr] Compiling getrandom v0.2.2 [INFO] [stderr] Compiling itoa v0.4.7 [INFO] [stderr] Compiling memchr v2.3.4 [INFO] [stderr] Compiling pin-project-lite v0.2.5 [INFO] [stderr] Compiling once_cell v1.7.2 [INFO] [stderr] Compiling radium v0.4.1 [INFO] [stderr] Compiling futures-core v0.3.13 [INFO] [stderr] Compiling futures-sink v0.3.13 [INFO] [stderr] Compiling arrayvec v0.5.2 [INFO] [stderr] Compiling cpuid-bool v0.1.2 [INFO] [stderr] Compiling slab v0.4.2 [INFO] [stderr] Compiling anyhow v1.0.38 [INFO] [stderr] Compiling httparse v1.3.5 [INFO] [stderr] Compiling zeroize v1.2.0 [INFO] [stderr] Compiling openssl v0.10.32 [INFO] [stderr] Compiling regex-syntax v0.6.22 [INFO] [stderr] Compiling httpdate v0.3.2 [INFO] [stderr] Compiling base64ct v0.2.0 [INFO] [stderr] Compiling curl v0.4.34 [INFO] [stderr] Compiling utf-8 v0.7.5 [INFO] [stderr] Compiling futures-timer v3.0.2 [INFO] [stderr] Compiling generic-array v0.14.4 [INFO] [stderr] Compiling tokio v1.2.0 [INFO] [stderr] Compiling tracing-core v0.1.17 [INFO] [stderr] Compiling indexmap v1.6.1 [INFO] [stderr] Compiling tinyvec v1.1.1 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling encoding_rs v0.8.28 [INFO] [stderr] Compiling quote v1.0.9 [INFO] [stderr] Compiling uint v0.9.0 [INFO] [stderr] Compiling bitvec v0.20.1 [INFO] [stderr] Compiling futures-channel v0.3.13 [INFO] [stderr] Compiling thread_local v1.1.3 [INFO] [stderr] Compiling tracing v0.1.25 [INFO] [stderr] Compiling want v0.3.0 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling bitvec v0.18.4 [INFO] [stderr] Compiling aho-corasick v0.7.15 [INFO] [stderr] Compiling unicode-normalization v0.1.17 [INFO] [stderr] Compiling openssl-sys v0.9.60 [INFO] [stderr] Compiling ring v0.16.20 [INFO] [stderr] Compiling libz-sys v1.1.2 [INFO] [stderr] Compiling curl-sys v0.4.40+curl-7.75.0 [INFO] [stderr] Compiling getrandom v0.1.16 [INFO] [stderr] Compiling mio v0.7.9 [INFO] [stderr] Compiling socket2 v0.3.19 [INFO] [stderr] Compiling rand_core v0.6.2 [INFO] [stderr] Compiling rand_core v0.5.1 [INFO] [stderr] Compiling rand_chacha v0.3.0 [INFO] [stderr] Compiling password-hash v0.1.1 [INFO] [stderr] Compiling rand v0.8.3 [INFO] [stderr] Compiling idna v0.2.2 [INFO] [stderr] Compiling native-tls v0.2.7 [INFO] [stderr] Compiling rand_chacha v0.2.2 [INFO] [stderr] Compiling ff v0.8.0 [INFO] [stderr] Compiling group v0.8.0 [INFO] [stderr] Compiling regex v1.4.3 [INFO] [stderr] Compiling rand v0.7.3 [INFO] [stderr] Compiling digest v0.9.0 [INFO] [stderr] Compiling block-buffer v0.9.0 [INFO] [stderr] Compiling crypto-mac v0.10.0 [INFO] [stderr] Compiling cipher v0.2.5 [INFO] [stderr] Compiling elliptic-curve v0.9.4 [INFO] [stderr] Compiling hmac v0.10.1 [INFO] [stderr] Compiling signature v1.2.2 [INFO] [stderr] Compiling elliptic-curve v0.8.5 [INFO] [stderr] Compiling sha3 v0.9.1 [INFO] [stderr] Compiling sha2 v0.9.3 [INFO] [stderr] Compiling sha-1 v0.9.4 [INFO] [stderr] Compiling salsa20 v0.7.2 [INFO] [stderr] Compiling aes-soft v0.6.4 [INFO] [stderr] Compiling ctr v0.6.0 [INFO] [stderr] Compiling url v2.2.1 [INFO] [stderr] Compiling fixed-hash v0.7.0 [INFO] [stderr] Compiling ecdsa v0.10.2 [INFO] [stderr] Compiling aes v0.6.0 [INFO] [stderr] Compiling pbkdf2 v0.7.3 [INFO] [stderr] Compiling Inflector v0.11.4 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling scrypt v0.6.3 [INFO] [stderr] Compiling k256 v0.7.2 [INFO] [stderr] Compiling webpki v0.21.4 [INFO] [stderr] Compiling sct v0.6.0 [INFO] [stderr] Compiling rustls v0.19.0 [INFO] [stderr] Compiling webpki-roots v0.21.0 [INFO] [stderr] Compiling serde_derive v1.0.123 [INFO] [stderr] Compiling futures-macro v0.3.13 [INFO] [stderr] Compiling thiserror-impl v1.0.24 [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] Compiling futures-util v0.3.13 [INFO] [stderr] Compiling thiserror v1.0.24 [INFO] [stderr] Compiling pin-project v1.0.5 [INFO] [stderr] Compiling tracing-futures v0.2.5 [INFO] [stderr] Compiling futures-executor v0.3.13 [INFO] [stderr] Compiling bytes v1.0.1 [INFO] [stderr] Compiling impl-serde v0.3.1 [INFO] [stderr] Compiling serde_json v1.0.64 [INFO] [stderr] Compiling parity-scale-codec v2.0.1 [INFO] [stderr] Compiling serde_urlencoded v0.7.0 [INFO] [stderr] Compiling uuid v0.8.2 [INFO] [stderr] Compiling rlp v0.5.0 [INFO] [stderr] Compiling http v0.2.3 [INFO] [stderr] Compiling input_buffer v0.4.0 [INFO] [stderr] Compiling impl-rlp v0.3.0 [INFO] [stderr] Compiling ethbloom v0.11.0 [INFO] [stderr] Compiling eth-keystore v0.2.0 [INFO] [stderr] Compiling serde-aux v2.1.1 [INFO] [stderr] Compiling impl-codec v0.5.0 [INFO] [stderr] Compiling primitive-types v0.9.0 [INFO] [stderr] Compiling http-body v0.4.0 [INFO] [stderr] Compiling tungstenite v0.12.0 [INFO] [stderr] Compiling tokio-util v0.6.3 [INFO] [stderr] Compiling tokio-rustls v0.22.0 [INFO] [stderr] Compiling tokio-native-tls v0.3.0 [INFO] [stderr] Compiling ethereum-types v0.11.0 [INFO] [stderr] Compiling tokio-tungstenite v0.13.0 [INFO] [stderr] Compiling h2 v0.3.1 [INFO] [stderr] Compiling ethabi-next v13.1.0 [INFO] [stderr] Compiling ethers-core v0.2.2 [INFO] [stderr] Compiling hyper v0.14.4 [INFO] [stderr] Compiling ethers-contract-abigen v0.2.2 [INFO] [stderr] Compiling ethers-signers v0.2.2 [INFO] [stderr] Compiling ethers-contract-derive v0.2.2 [INFO] [stderr] Compiling hyper-rustls v0.22.1 [INFO] [stderr] Compiling reqwest v0.11.1 [INFO] [stderr] Compiling ethers-providers v0.2.2 [INFO] [stderr] Compiling ethers-contract v0.2.2 [INFO] [stderr] Compiling ethers-middleware v0.2.2 [INFO] [stderr] Compiling ethers v0.2.2 (/opt/rustwide/workdir) [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 1m 07s [INFO] running `Command { std: "docker" "inspect" "8877eb0047a3b74a82a47628231fe2a6a81be15d9fb4d1d0640027524bfcd32a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8877eb0047a3b74a82a47628231fe2a6a81be15d9fb4d1d0640027524bfcd32a", kill_on_drop: false }` [INFO] [stdout] 8877eb0047a3b74a82a47628231fe2a6a81be15d9fb4d1d0640027524bfcd32a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/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:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+ce59db7a1b1b012fb2793c4641c1bdecad7a128b" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 7f861649223bf6dfd875f82af9c64d6dadfe9a08e66a5dcebc0bca8bae66041e [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "7f861649223bf6dfd875f82af9c64d6dadfe9a08e66a5dcebc0bca8bae66041e", kill_on_drop: false }` [INFO] [stderr] Compiling ethers v0.2.2 (/opt/rustwide/workdir) [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: aborting due to previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] [INFO] [stderr] error: could not compile `ethers` [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] [stderr] [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] [stderr] To learn more, run the command again with --verbose. [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] [stderr] warning: build failed, waiting for other jobs to finish... [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/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[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/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[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 `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[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: 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: as anyhow::Context>::context::::{closure#0} [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/github.com-1ecc6299db9ec823/anyhow-1.0.38/src/context.rs:50:30 [INFO] [stdout] 2: >::map_err:: as anyhow::Context>::context::{closure#0}> [INFO] [stdout] at /rustc/ce59db7a1b1b012fb2793c4641c1bdecad7a128b/library/core/src/result.rs:591:27 [INFO] [stdout] 3: as anyhow::Context>::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: ::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: ::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: ::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: ::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: proc_macro::TokenStream as core::ops::function::FnOnce<(proc_macro::TokenStream,)>>::call_once [INFO] [stdout] at /rustc/ce59db7a1b1b012fb2793c4641c1bdecad7a128b/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 12: proc_macro::TokenStream>>::expand1::run:: proc_macro::TokenStream>::{closure#0} [INFO] [stdout] at /rustc/ce59db7a1b1b012fb2793c4641c1bdecad7a128b/library/proc_macro/src/bridge/client.rs:410:40 [INFO] [stdout] 13: proc_macro::bridge::client::run_client:: proc_macro::TokenStream>>::expand1::run proc_macro::TokenStream>::{closure#0}>::{closure#0}::{closure#0} [INFO] [stdout] at /rustc/ce59db7a1b1b012fb2793c4641c1bdecad7a128b/library/proc_macro/src/bridge/client.rs:377:26 [INFO] [stdout] 14: >::set::<(), proc_macro::bridge::client::run_client proc_macro::TokenStream>>::expand1::run proc_macro::TokenStream>::{closure#0}>::{closure#0}::{closure#0}>::{closure#0} [INFO] [stdout] at /rustc/ce59db7a1b1b012fb2793c4641c1bdecad7a128b/library/proc_macro/src/bridge/scoped_cell.rs:80:33 [INFO] [stdout] 15: >::replace::<(), >::set<(), proc_macro::bridge::client::run_client proc_macro::TokenStream>>::expand1::run proc_macro::TokenStream>::{closure#0}>::{closure#0}::{closure#0}>::{closure#0}> [INFO] [stdout] at /rustc/ce59db7a1b1b012fb2793c4641c1bdecad7a128b/library/proc_macro/src/bridge/scoped_cell.rs:75:9 [INFO] [stdout] 16: >::set::<(), proc_macro::bridge::client::run_client proc_macro::TokenStream>>::expand1::run proc_macro::TokenStream>::{closure#0}>::{closure#0}::{closure#0}> [INFO] [stdout] at /rustc/ce59db7a1b1b012fb2793c4641c1bdecad7a128b/library/proc_macro/src/bridge/scoped_cell.rs:80:9 [INFO] [stdout] 17: ::enter::<(), proc_macro::bridge::client::run_client proc_macro::TokenStream>>::expand1::run proc_macro::TokenStream>::{closure#0}>::{closure#0}::{closure#0}>::{closure#1} [INFO] [stdout] at /rustc/ce59db7a1b1b012fb2793c4641c1bdecad7a128b/library/proc_macro/src/bridge/client.rs:325:35 [INFO] [stdout] 18: >>::try_with::<::enter<(), proc_macro::bridge::client::run_client proc_macro::TokenStream>>::expand1::run proc_macro::TokenStream>::{closure#0}>::{closure#0}::{closure#0}>::{closure#1}, ()> [INFO] [stdout] at /rustc/ce59db7a1b1b012fb2793c4641c1bdecad7a128b/library/std/src/thread/local.rs:400:16 [INFO] [stdout] 19: >>::with::<::enter<(), proc_macro::bridge::client::run_client proc_macro::TokenStream>>::expand1::run proc_macro::TokenStream>::{closure#0}>::{closure#0}::{closure#0}>::{closure#1}, ()> [INFO] [stdout] at /rustc/ce59db7a1b1b012fb2793c4641c1bdecad7a128b/library/std/src/thread/local.rs:376:9 [INFO] [stdout] 20: ::enter::<(), proc_macro::bridge::client::run_client proc_macro::TokenStream>>::expand1::run proc_macro::TokenStream>::{closure#0}>::{closure#0}::{closure#0}> [INFO] [stdout] at /rustc/ce59db7a1b1b012fb2793c4641c1bdecad7a128b/library/proc_macro/src/bridge/client.rs:325:9 [INFO] [stdout] 21: proc_macro::bridge::client::run_client:: proc_macro::TokenStream>>::expand1::run proc_macro::TokenStream>::{closure#0}>::{closure#0} [INFO] [stdout] at /rustc/ce59db7a1b1b012fb2793c4641c1bdecad7a128b/library/proc_macro/src/bridge/client.rs:370:9 [INFO] [stdout] 22: proc_macro::TokenStream>>::expand1::run proc_macro::TokenStream>::{closure#0}>::{closure#0}> as core::ops::function::FnOnce<()>>::call_once [INFO] [stdout] at /rustc/ce59db7a1b1b012fb2793c4641c1bdecad7a128b/library/std/src/panic.rs:346:9 [INFO] [stdout] 23: std::panicking::try::do_call:: proc_macro::TokenStream>>::expand1::run proc_macro::TokenStream>::{closure#0}>::{closure#0}>, ()> [INFO] [stdout] at /rustc/ce59db7a1b1b012fb2793c4641c1bdecad7a128b/library/std/src/panicking.rs:401:40 [INFO] [stdout] 24: __rust_try [INFO] [stdout] 25: std::panicking::try::<(), std::panic::AssertUnwindSafe proc_macro::TokenStream>>::expand1::run proc_macro::TokenStream>::{closure#0}>::{closure#0}>> [INFO] [stdout] at /rustc/ce59db7a1b1b012fb2793c4641c1bdecad7a128b/library/std/src/panicking.rs:365:19 [INFO] [stdout] 26: std::panic::catch_unwind:: proc_macro::TokenStream>>::expand1::run proc_macro::TokenStream>::{closure#0}>::{closure#0}>, ()> [INFO] [stdout] at /rustc/ce59db7a1b1b012fb2793c4641c1bdecad7a128b/library/std/src/panic.rs:433:14 [INFO] [stdout] 27: proc_macro::bridge::client::run_client:: proc_macro::TokenStream>>::expand1::run proc_macro::TokenStream>::{closure#0}> [INFO] [stdout] at /rustc/ce59db7a1b1b012fb2793c4641c1bdecad7a128b/library/proc_macro/src/bridge/client.rs:369:5 [INFO] [stdout] 28: proc_macro::TokenStream>>::expand1::run:: proc_macro::TokenStream> [INFO] [stdout] at /rustc/ce59db7a1b1b012fb2793c4641c1bdecad7a128b/library/proc_macro/src/bridge/client.rs:410:13 [INFO] [stdout] 29: proc_macro::bridge::server::run_server::, proc_macro::bridge::Marked, fn(proc_macro::TokenStream) -> proc_macro::TokenStream, proc_macro::bridge::server::SameThread> [INFO] [stdout] 30: ::expand [INFO] [stdout] 31: ::fully_expand_fragment [INFO] [stdout] 32: ::expand_crate [INFO] [stdout] 33: ::time::, rustc_interface::passes::configure_and_expand_inner::{closure#1}> [INFO] [stdout] 34: rustc_interface::passes::configure_and_expand_inner [INFO] [stdout] 35: rustc_interface::passes::configure_and_expand::{closure#0} [INFO] [stdout] 36: , for<'a, 'b> fn((&'a mut rustc_resolve::Resolver<'b>,)), rustc_middle::ty::ResolverOutputs>>::new:: [INFO] [stdout] 37: rustc_interface::passes::configure_and_expand [INFO] [stdout] 38: ::expansion [INFO] [stdout] 39: ::enter::, rustc_errors::ErrorReported>> [INFO] [stdout] 40: rustc_span::with_source_map::, rustc_interface::interface::create_compiler_and_run, rustc_driver::run_compiler::{closure#1}>::{closure#0}> [INFO] [stdout] 41: >::set::, rustc_driver::run_compiler::{closure#1}>::{closure#0}, core::result::Result<(), rustc_errors::ErrorReported>>::{closure#0}::{closure#0}, core::result::Result<(), rustc_errors::ErrorReported>> [INFO] [stdout] 42: std::sys_common::backtrace::__rust_begin_short_backtrace::, rustc_driver::run_compiler::{closure#1}>::{closure#0}, core::result::Result<(), rustc_errors::ErrorReported>>::{closure#0}, core::result::Result<(), rustc_errors::ErrorReported>>::{closure#0}, ()> [INFO] [stdout] 43: <::spawn_unchecked, rustc_driver::run_compiler::{closure#1}>::{closure#0}, core::result::Result<(), rustc_errors::ErrorReported>>::{closure#0}, core::result::Result<(), rustc_errors::ErrorReported>>::{closure#0}, ()>::{closure#0} as core::ops::function::FnOnce<()>>::call_once::{shim:vtable#0} [INFO] [stdout] 44: > as core::ops::function::FnOnce<()>>::call_once [INFO] [stdout] at /rustc/ce59db7a1b1b012fb2793c4641c1bdecad7a128b/library/alloc/src/boxed.rs:1575:9 [INFO] [stdout] >> as core::ops::function::FnOnce<()>>::call_once [INFO] [stdout] at /rustc/ce59db7a1b1b012fb2793c4641c1bdecad7a128b/library/alloc/src/boxed.rs:1575:9 [INFO] [stdout] ::new::thread_start [INFO] [stdout] at /rustc/ce59db7a1b1b012fb2793c4641c1bdecad7a128b/library/std/src/sys/unix/thread.rs:71: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[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[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[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: 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 `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/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[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: 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[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[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: 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[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[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: 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[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 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] [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] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "7f861649223bf6dfd875f82af9c64d6dadfe9a08e66a5dcebc0bca8bae66041e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7f861649223bf6dfd875f82af9c64d6dadfe9a08e66a5dcebc0bca8bae66041e", kill_on_drop: false }` [INFO] [stdout] 7f861649223bf6dfd875f82af9c64d6dadfe9a08e66a5dcebc0bca8bae66041e