[INFO] fetching crate substreams-helper 0.0.2... [INFO] testing substreams-helper-0.0.2 against try#b83b707f97d809763b7861afa7638871f3339a33 for pr-145838-1 [INFO] extracting crate substreams-helper 0.0.2 into /workspace/builds/worker-4-tc2/source [INFO] removed /workspace/builds/worker-4-tc2/source/rust-toolchain.toml [INFO] started tweaking crates.io crate substreams-helper 0.0.2 [INFO] finished tweaking crates.io crate substreams-helper 0.0.2 [INFO] tweaked toml for crates.io crate substreams-helper 0.0.2 written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate substreams-helper 0.0.2 on toolchain b83b707f97d809763b7861afa7638871f3339a33 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 151 packages to latest compatible versions [INFO] [stderr] Adding bigdecimal v0.3.1 (available: v0.4.8) [INFO] [stderr] Adding ethabi v17.2.0 (available: v18.0.0) [INFO] [stderr] Adding getrandom v0.2.16 (available: v0.3.3) [INFO] [stderr] Adding hex-literal v0.3.4 (available: v1.0.0) [INFO] [stderr] Adding prost v0.10.4 (available: v0.14.1) [INFO] [stderr] Adding substreams-ethereum v0.1.9 (available: v0.10.6) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 8eb2e6d7c9947b4d5bea0717d31240313468045c7b013d4f3c9acbca5905d73a [INFO] running `Command { std: "docker" "start" "-a" "8eb2e6d7c9947b4d5bea0717d31240313468045c7b013d4f3c9acbca5905d73a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "8eb2e6d7c9947b4d5bea0717d31240313468045c7b013d4f3c9acbca5905d73a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8eb2e6d7c9947b4d5bea0717d31240313468045c7b013d4f3c9acbca5905d73a", kill_on_drop: false }` [INFO] [stdout] 8eb2e6d7c9947b4d5bea0717d31240313468045c7b013d4f3c9acbca5905d73a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 34d1a2141d5e6d3a356cd01881c04e58ff13d5242512c2e820f99be85c4acf16 [INFO] running `Command { std: "docker" "start" "-a" "34d1a2141d5e6d3a356cd01881c04e58ff13d5242512c2e820f99be85c4acf16", kill_on_drop: false }` [INFO] [stderr] Compiling substreams-helper v0.0.2 (/opt/rustwide/workdir) [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `substreams_ethereum` [INFO] [stdout] --> src/erc20.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use substreams_ethereum::pb::eth as ethpb; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `substreams_ethereum` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `substreams_ethereum`, use `cargo add substreams_ethereum` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `bigdecimal` [INFO] [stdout] --> src/erc20.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use bigdecimal::{BigDecimal}; [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `bigdecimal` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `bigdecimal`, use `cargo add bigdecimal` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `num_bigint` [INFO] [stdout] --> src/erc20.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use num_bigint::{BigInt}; [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `num_bigint` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `num_bigint`, use `cargo add num_bigint` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `bigdecimal` [INFO] [stdout] --> src/math.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use bigdecimal::{BigDecimal, One, Zero}; [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `bigdecimal` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `bigdecimal`, use `cargo add bigdecimal` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `num_bigint` [INFO] [stdout] --> src/math.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use num_bigint::{BigInt, BigUint}; [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `num_bigint` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `num_bigint`, use `cargo add num_bigint` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `pad` [INFO] [stdout] --> src/math.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use pad::PadStr; [INFO] [stdout] | ^^^ use of unresolved module or unlinked crate `pad` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `pad`, use `cargo add pad` 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 `substreams_ethereum` [INFO] [stdout] --> src/erc20.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | substreams_ethereum::rpc::eth_call(&rpc_calls); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `substreams_ethereum` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `substreams_ethereum`, use `cargo add substreams_ethereum` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `math` [INFO] [stdout] --> src/erc20.rs:1:20 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::{utils, math}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::str::FromStr` [INFO] [stdout] --> src/math.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::str::FromStr; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `hex` [INFO] [stdout] --> src/erc20.rs:14:39 [INFO] [stdout] | [INFO] [stdout] 14 | let rpc_calls = create_rpc_calls(&hex::decode(token_address).unwrap()); [INFO] [stdout] | ^^^ use of unresolved module or unlinked crate `hex` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `hex`, use `cargo add hex` 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 `hex` [INFO] [stdout] --> src/erc20.rs:77:20 [INFO] [stdout] | [INFO] [stdout] 77 | let decimals = hex::decode("313ce567").unwrap(); [INFO] [stdout] | ^^^ use of unresolved module or unlinked crate `hex` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `hex`, use `cargo add hex` 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 `hex` [INFO] [stdout] --> src/erc20.rs:78:16 [INFO] [stdout] | [INFO] [stdout] 78 | let name = hex::decode("06fdde03").unwrap(); [INFO] [stdout] | ^^^ use of unresolved module or unlinked crate `hex` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `hex`, use `cargo add hex` 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 `hex` [INFO] [stdout] --> src/erc20.rs:79:18 [INFO] [stdout] | [INFO] [stdout] 79 | let symbol = hex::decode("95d89b41").unwrap(); [INFO] [stdout] | ^^^ use of unresolved module or unlinked crate `hex` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `hex`, use `cargo add hex` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `pad_to_width_with_char` found for reference `&'static str` in the current scope [INFO] [stdout] --> src/math.rs:45:13 [INFO] [stdout] | [INFO] [stdout] 45 | "1".pad_to_width_with_char((decimals + 1) as usize, '0') [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ method not found in `&'static str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `token` [INFO] [stdout] --> src/erc20.rs:150:18 [INFO] [stdout] | [INFO] [stdout] 150 | pub fn log_token(token: &Erc20Token, index: u64) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_token` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/erc20.rs:150:38 [INFO] [stdout] | [INFO] [stdout] 150 | pub fn log_token(token: &Erc20Token, index: u64) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0433, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stderr] error: could not compile `substreams-helper` (lib) due to 12 previous errors; 4 warnings emitted [INFO] running `Command { std: "docker" "inspect" "34d1a2141d5e6d3a356cd01881c04e58ff13d5242512c2e820f99be85c4acf16", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "34d1a2141d5e6d3a356cd01881c04e58ff13d5242512c2e820f99be85c4acf16", kill_on_drop: false }` [INFO] [stdout] 34d1a2141d5e6d3a356cd01881c04e58ff13d5242512c2e820f99be85c4acf16