[INFO] fetching crate sc-offchain 2.0.1... [INFO] checking sc-offchain-2.0.1 against try#9cfe725f0995b018340c519db1b2f3cf8a7e0631 for pr-81174 [INFO] extracting crate sc-offchain 2.0.1 into /workspace/builds/worker-5/source [INFO] validating manifest of crates.io crate sc-offchain 2.0.1 on toolchain 9cfe725f0995b018340c519db1b2f3cf8a7e0631 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+9cfe725f0995b018340c519db1b2f3cf8a7e0631" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking crates.io crate sc-offchain 2.0.1 [INFO] finished tweaking crates.io crate sc-offchain 2.0.1 [INFO] tweaked toml for crates.io crate sc-offchain 2.0.1 written to /workspace/builds/worker-5/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+9cfe725f0995b018340c519db1b2f3cf8a7e0631" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+9cfe725f0995b018340c519db1b2f3cf8a7e0631" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/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" "rustops/crates-build-env@sha256:21f1ed92105a0ef9b0d27ad8bdeb7f36f9f01ac17fffe3a3f3dc5241fc25d8f4" "/opt/rustwide/cargo-home/bin/cargo" "+9cfe725f0995b018340c519db1b2f3cf8a7e0631" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] e1b9a22f0e0386ba8d3710e9dc37aa9bf60c61dbecf541dd3bcea7d4e2a7efba [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" "e1b9a22f0e0386ba8d3710e9dc37aa9bf60c61dbecf541dd3bcea7d4e2a7efba", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e1b9a22f0e0386ba8d3710e9dc37aa9bf60c61dbecf541dd3bcea7d4e2a7efba", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e1b9a22f0e0386ba8d3710e9dc37aa9bf60c61dbecf541dd3bcea7d4e2a7efba", kill_on_drop: false }` [INFO] [stdout] e1b9a22f0e0386ba8d3710e9dc37aa9bf60c61dbecf541dd3bcea7d4e2a7efba [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/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" "rustops/crates-build-env@sha256:21f1ed92105a0ef9b0d27ad8bdeb7f36f9f01ac17fffe3a3f3dc5241fc25d8f4" "/opt/rustwide/cargo-home/bin/cargo" "+9cfe725f0995b018340c519db1b2f3cf8a7e0631" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 276ab1cf460d36fab767194da60837148cdc2fee820d99adbbc16e7ece07d7b9 [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" "276ab1cf460d36fab767194da60837148cdc2fee820d99adbbc16e7ece07d7b9", kill_on_drop: false }` [INFO] [stderr] Checking arrayvec v0.5.2 [INFO] [stderr] Checking subtle v2.4.0 [INFO] [stderr] Checking cpuid-bool v0.2.0 [INFO] [stderr] Checking nohash-hasher v0.2.0 [INFO] [stderr] Checking quick-error v1.2.3 [INFO] [stderr] Checking linked-hash-map v0.5.4 [INFO] [stderr] Checking openssl-probe v0.1.2 [INFO] [stderr] Checking ip_network v0.3.4 [INFO] [stderr] Compiling hashbrown v0.9.1 [INFO] [stderr] Checking lru v0.6.3 [INFO] [stderr] Checking net2 v0.2.37 [INFO] [stderr] Checking iovec v0.1.4 [INFO] [stderr] Checking indexmap v1.6.1 [INFO] [stderr] Checking uint v0.8.5 [INFO] [stderr] Compiling snow v0.7.2 [INFO] [stderr] Checking threadpool v1.8.1 [INFO] [stderr] Checking block-cipher v0.8.0 [INFO] [stderr] Checking aead v0.3.2 [INFO] [stderr] Compiling tracing-attributes v0.1.11 [INFO] [stderr] Compiling pin-project-internal v0.4.27 [INFO] [stderr] Compiling pin-project-internal v1.0.4 [INFO] [stderr] Compiling thiserror-impl v1.0.23 [INFO] [stderr] Compiling asn1_der_derive v0.1.2 [INFO] [stderr] Compiling minicbor-derive v0.4.1 [INFO] [stderr] Compiling async-trait v0.1.42 [INFO] [stderr] Compiling libp2p-core-derive v0.20.2 [INFO] [stderr] Compiling strum_macros v0.16.0 [INFO] [stderr] Compiling slog_derive v0.2.0 [INFO] [stderr] Checking sha2 v0.9.2 [INFO] [stderr] Checking value-bag v1.0.0-alpha.6 [INFO] [stderr] Checking serde v1.0.123 [INFO] [stderr] Compiling prost v0.6.1 [INFO] [stderr] Checking dns-parser v0.8.0 [INFO] [stderr] Checking universal-hash v0.4.0 [INFO] [stderr] Checking crypto-mac v0.8.0 [INFO] [stderr] Checking ref-cast v1.0.6 [INFO] [stderr] Checking dyn-clonable v0.9.0 [INFO] [stderr] Checking aes-soft v0.5.0 [INFO] [stderr] Checking stream-cipher v0.7.1 [INFO] [stderr] Checking linked_hash_set v0.1.4 [INFO] [stderr] Checking log v0.4.14 [INFO] [stderr] Checking zeroize v1.2.0 [INFO] [stderr] Checking failure v0.1.8 [INFO] [stderr] Checking blake2s_simd v0.5.11 [INFO] [stderr] Checking blake2b_simd v0.5.11 [INFO] [stderr] Checking polyval v0.4.5 [INFO] [stderr] Checking poly1305 v0.6.2 [INFO] [stderr] Compiling prost-types v0.6.1 [INFO] [stderr] Checking blake2 v0.9.1 [INFO] [stderr] Checking futures-util v0.3.12 [INFO] [stderr] Checking libsecp256k1 v0.3.5 [INFO] [stderr] Checking aes v0.5.0 [INFO] [stderr] Checking asn1_der v0.6.3 [INFO] [stderr] Checking tracing-log v0.1.1 [INFO] [stderr] Checking trie-db v0.22.2 [INFO] [stderr] Checking sp-panic-handler v2.0.1 [INFO] [stderr] Checking polling v2.0.2 [INFO] [stderr] Checking kv-log-macro v1.0.7 [INFO] [stderr] Checking mio v0.6.23 [INFO] [stderr] Checking want v0.3.0 [INFO] [stderr] Checking curve25519-dalek v3.0.2 [INFO] [stderr] Checking curve25519-dalek v2.1.2 [INFO] [stderr] Checking merlin v2.0.1 [INFO] [stderr] Checking secrecy v0.6.0 [INFO] [stderr] Checking chacha20 v0.5.0 [INFO] [stderr] Compiling wasm-bindgen-backend v0.2.70 [INFO] [stderr] Checking tiny-bip39 v0.7.3 [INFO] [stderr] Compiling petgraph v0.5.1 [INFO] [stderr] Checking ghash v0.3.1 [INFO] [stderr] Checking rustls v0.18.1 [INFO] [stderr] Checking ct-logs v0.7.0 [INFO] [stderr] Checking async-io v1.3.1 [INFO] [stderr] Checking thiserror v1.0.23 [INFO] [stderr] Checking tracing v0.1.22 [INFO] [stderr] Checking x25519-dalek v1.1.0 [INFO] [stderr] Checking strum v0.16.0 [INFO] [stderr] Checking schnorrkel v0.9.1 [INFO] [stderr] Checking x25519-dalek v0.6.0 [INFO] [stderr] Checking tokio v0.2.24 [INFO] [stderr] Checking chacha20poly1305 v0.6.0 [INFO] [stderr] Checking aes-gcm v0.7.0 [INFO] [stderr] Checking prometheus v0.10.0 [INFO] [stderr] Checking ed25519-dalek v1.0.1 [INFO] [stderr] Checking impl-serde v0.3.1 [INFO] [stderr] Checking serde_json v1.0.61 [INFO] [stderr] Checking tracing-serde v0.1.2 [INFO] [stderr] Checking erased-serde v0.3.13 [INFO] [stderr] Checking async-global-executor v2.0.2 [INFO] [stderr] Checking async-process v1.0.1 [INFO] [stderr] Checking pin-project v1.0.4 [INFO] [stderr] Checking minicbor v0.5.1 [INFO] [stderr] Checking async-std v1.9.0 [INFO] [stderr] Checking substrate-bip39 v0.4.2 [INFO] [stderr] Checking pin-project v0.4.27 [INFO] [stderr] Compiling prost-build v0.6.1 [INFO] [stderr] Compiling toml v0.5.8 [INFO] [stderr] Checking tracing-futures v0.2.4 [INFO] [stderr] Compiling wasm-bindgen-macro-support v0.2.70 [INFO] [stderr] Checking slog v2.7.0 [INFO] [stderr] Checking tracing-subscriber v0.2.15 [INFO] [stderr] Checking sp-serializer v2.0.1 [INFO] [stderr] Checking futures-executor v0.3.12 [INFO] [stderr] Checking unsigned-varint v0.5.1 [INFO] [stderr] Checking slog-scope v4.4.0 [INFO] [stderr] Checking slog-json v2.3.0 [INFO] [stderr] Checking rustls-native-certs v0.4.0 [INFO] [stderr] Checking futures v0.3.12 [INFO] [stderr] Checking multihash v0.11.4 [INFO] [stderr] Checking futures_codec v0.4.1 [INFO] [stderr] Checking multistream-select v0.8.5 [INFO] [stderr] Checking rw-stream-sink v0.2.1 [INFO] [stderr] Checking wasm-timer v0.2.5 [INFO] [stderr] Checking soketto v0.4.2 [INFO] [stderr] Checking async-tls v0.8.0 [INFO] [stderr] Checking yamux v0.8.0 [INFO] [stderr] Checking sp-utils v2.0.1 [INFO] [stderr] Compiling libp2p-core v0.22.1 [INFO] [stderr] Compiling libp2p-kad v0.23.0 [INFO] [stderr] Compiling libp2p-identify v0.22.0 [INFO] [stderr] Compiling libp2p-noise v0.24.0 [INFO] [stderr] Compiling sc-network v0.8.1 [INFO] [stderr] Compiling proc-macro-crate v0.1.5 [INFO] [stderr] Checking parity-multiaddr v0.9.7 [INFO] [stderr] Checking unsigned-varint v0.4.0 [INFO] [stderr] Compiling wasm-bindgen-macro v0.2.70 [INFO] [stderr] Checking tokio-util v0.3.1 [INFO] [stderr] Checking tokio-rustls v0.14.1 [INFO] [stderr] Compiling parity-scale-codec-derive v1.2.2 [INFO] [stderr] Compiling sp-runtime-interface-proc-macro v2.0.1 [INFO] [stderr] Compiling sp-api-proc-macro v2.0.1 [INFO] [stderr] Checking h2 v0.2.7 [INFO] [stderr] Checking wasm-bindgen v0.2.70 [INFO] [stderr] Checking js-sys v0.3.47 [INFO] [stderr] Checking parity-scale-codec v1.3.6 [INFO] [stderr] Checking libp2p-swarm v0.22.0 [INFO] [stderr] Checking libp2p-websocket v0.23.0 [INFO] [stderr] Checking libp2p-mplex v0.22.0 [INFO] [stderr] Checking libp2p-dns v0.22.0 [INFO] [stderr] Checking libp2p-yamux v0.25.0 [INFO] [stderr] Checking libp2p-tcp v0.22.0 [INFO] [stderr] Checking libp2p-request-response v0.3.0 [INFO] [stderr] Checking libp2p-ping v0.22.0 [INFO] [stderr] Checking libp2p-mdns v0.22.0 [INFO] [stderr] Checking hyper v0.13.9 [INFO] [stderr] Checking wasm-bindgen-futures v0.4.20 [INFO] [stderr] Checking libp2p-wasm-ext v0.22.0 [INFO] [stderr] Checking libp2p v0.28.1 [INFO] [stderr] Checking impl-codec v0.4.2 [INFO] [stderr] Checking sp-storage v2.0.1 [INFO] [stderr] Checking sp-wasm-interface v2.0.1 [INFO] [stderr] Checking sp-tracing v2.0.1 [INFO] [stderr] Checking sp-arithmetic v2.0.1 [INFO] [stderr] Checking fork-tree v2.0.1 [INFO] [stderr] Checking primitive-types v0.7.3 [INFO] [stderr] Checking sp-externalities v0.8.1 [INFO] [stderr] Checking sc-telemetry v2.0.1 [INFO] [stderr] Checking sc-peerset v2.0.1 [INFO] [stderr] Checking parity-util-mem v0.7.0 [INFO] [stderr] Checking sp-runtime-interface v2.0.1 [INFO] [stderr] Checking substrate-prometheus-endpoint v0.8.1 [INFO] [stderr] Checking hyper-rustls v0.21.0 [INFO] [stderr] Checking memory-db v0.24.1 [INFO] [stderr] Checking kvdb v0.7.0 [INFO] [stderr] Checking sp-database v2.0.1 [INFO] [stderr] Checking sp-core v2.0.1 [INFO] [stderr] Checking sp-trie v2.0.1 [INFO] [stderr] Checking sp-inherents v2.0.1 [INFO] [stderr] Checking sp-allocator v2.0.1 [INFO] [stderr] Checking sc-executor-common v0.8.1 [INFO] [stderr] Checking sp-state-machine v0.8.1 [INFO] [stderr] Checking sc-executor-wasmi v0.8.1 [INFO] [stderr] Checking sp-io v2.0.1 [INFO] [stderr] Checking sp-application-crypto v2.0.1 [INFO] [stderr] Checking sp-runtime v2.0.1 [INFO] [stderr] Checking sc-keystore v2.0.1 [INFO] [stderr] Checking sp-version v2.0.1 [INFO] [stderr] Checking sp-keyring v2.0.1 [INFO] [stderr] Checking sp-api v2.0.1 [INFO] [stderr] Checking sp-consensus v0.8.1 [INFO] [stderr] Checking sp-block-builder v2.0.1 [INFO] [stderr] Checking sc-executor v0.8.1 [INFO] [stderr] Checking sp-offchain v2.0.1 [INFO] [stderr] Checking sp-blockchain v2.0.1 [INFO] [stderr] Checking sp-transaction-pool v2.0.1 [INFO] [stderr] Checking sc-client-api v2.0.1 [INFO] [stderr] Checking sc-block-builder v0.8.1 [INFO] [stderr] Checking sc-offchain v2.0.1 (/opt/rustwide/workdir) [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `sc_client_db` [INFO] [stdout] --> src/api.rs:305:6 [INFO] [stdout] | [INFO] [stdout] 305 | use sc_client_db::offchain::LocalStorage; [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared crate or module `sc_client_db` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `substrate_test_runtime_client` [INFO] [stdout] --> src/lib.rs:239:6 [INFO] [stdout] | [INFO] [stdout] 239 | use substrate_test_runtime_client::{TestClient, runtime::Block}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ use of undeclared crate or module `substrate_test_runtime_client` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `substrate_test_runtime_client` [INFO] [stdout] --> src/lib.rs:239:6 [INFO] [stdout] | [INFO] [stdout] 239 | use substrate_test_runtime_client::{TestClient, runtime::Block}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ use of undeclared crate or module `substrate_test_runtime_client` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `sc_transaction_pool` [INFO] [stdout] --> src/lib.rs:240:6 [INFO] [stdout] | [INFO] [stdout] 240 | use sc_transaction_pool::{BasicPool, FullChainApi}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ use of undeclared crate or module `sc_transaction_pool` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `sp_transaction_pool` [INFO] [stdout] --> src/lib.rs:241:6 [INFO] [stdout] | [INFO] [stdout] 241 | use sp_transaction_pool::{TransactionPool, InPoolTransaction}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ use of undeclared crate or module `sp_transaction_pool` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `lazy_static` [INFO] [stdout] --> src/api/http.rs:704:6 [INFO] [stdout] | [INFO] [stdout] 704 | use lazy_static::lazy_static; [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared crate or module `lazy_static` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the macro `lazy_static` [INFO] [stdout] --> src/api/http.rs:708:2 [INFO] [stdout] | [INFO] [stdout] 708 | lazy_static! { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `tokio` [INFO] [stdout] --> src/api/http.rs:721:18 [INFO] [stdout] | [INFO] [stdout] 721 | let mut rt = tokio::runtime::Runtime::new().unwrap(); [INFO] [stdout] | ^^^^^ use of undeclared crate or module `tokio` [INFO] [stdout] ... [INFO] [stdout] 747 | let (mut api, addr) = build_api_server!(); [INFO] [stdout] | ------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (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] --> src/api/http.rs:721:18 [INFO] [stdout] | [INFO] [stdout] 721 | let mut rt = tokio::runtime::Runtime::new().unwrap(); [INFO] [stdout] | ^^^^^ use of undeclared crate or module `tokio` [INFO] [stdout] ... [INFO] [stdout] 767 | let (mut api, addr) = build_api_server!(); [INFO] [stdout] | ------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (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] --> src/api/http.rs:721:18 [INFO] [stdout] | [INFO] [stdout] 721 | let mut rt = tokio::runtime::Runtime::new().unwrap(); [INFO] [stdout] | ^^^^^ use of undeclared crate or module `tokio` [INFO] [stdout] ... [INFO] [stdout] 782 | let (mut api, addr) = build_api_server!(); [INFO] [stdout] | ------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (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] --> src/api/http.rs:721:18 [INFO] [stdout] | [INFO] [stdout] 721 | let mut rt = tokio::runtime::Runtime::new().unwrap(); [INFO] [stdout] | ^^^^^ use of undeclared crate or module `tokio` [INFO] [stdout] ... [INFO] [stdout] 826 | let (mut api, addr) = build_api_server!(); [INFO] [stdout] | ------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (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] --> src/api/http.rs:721:18 [INFO] [stdout] | [INFO] [stdout] 721 | let mut rt = tokio::runtime::Runtime::new().unwrap(); [INFO] [stdout] | ^^^^^ use of undeclared crate or module `tokio` [INFO] [stdout] ... [INFO] [stdout] 903 | let (mut api, addr) = build_api_server!(); [INFO] [stdout] | ------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (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] --> src/api/http.rs:721:18 [INFO] [stdout] | [INFO] [stdout] 721 | let mut rt = tokio::runtime::Runtime::new().unwrap(); [INFO] [stdout] | ^^^^^ use of undeclared crate or module `tokio` [INFO] [stdout] ... [INFO] [stdout] 927 | let (mut api, addr) = build_api_server!(); [INFO] [stdout] | ------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (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] --> src/api/http.rs:721:18 [INFO] [stdout] | [INFO] [stdout] 721 | let mut rt = tokio::runtime::Runtime::new().unwrap(); [INFO] [stdout] | ^^^^^ use of undeclared crate or module `tokio` [INFO] [stdout] ... [INFO] [stdout] 948 | let (mut api, addr) = build_api_server!(); [INFO] [stdout] | ------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (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] --> src/api/http.rs:721:18 [INFO] [stdout] | [INFO] [stdout] 721 | let mut rt = tokio::runtime::Runtime::new().unwrap(); [INFO] [stdout] | ^^^^^ use of undeclared crate or module `tokio` [INFO] [stdout] ... [INFO] [stdout] 970 | let (mut api, addr) = build_api_server!(); [INFO] [stdout] | ------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (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 `sp_tracing` [INFO] [stdout] --> src/api.rs:331:3 [INFO] [stdout] | [INFO] [stdout] 331 | sp_tracing::try_init_simple(); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared crate or module `sp_tracing` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `LocalStorage` [INFO] [stdout] --> src/api.rs:332:12 [INFO] [stdout] | [INFO] [stdout] 332 | let db = LocalStorage::new_test(); [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `LocalStorage` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `sp_transaction_pool` [INFO] [stdout] --> src/lib.rs:269:7 [INFO] [stdout] | [INFO] [stdout] 269 | impl sp_transaction_pool::OffchainSubmitTransaction for TestPool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ use of undeclared crate or module `sp_transaction_pool` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `sp_transaction_pool` [INFO] [stdout] --> src/lib.rs:275:17 [INFO] [stdout] | [INFO] [stdout] 275 | let source = sp_transaction_pool::TransactionSource::Local; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ use of undeclared crate or module `sp_transaction_pool` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `sp_tracing` [INFO] [stdout] --> src/lib.rs:284:3 [INFO] [stdout] | [INFO] [stdout] 284 | sp_tracing::try_init_simple(); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared crate or module `sp_tracing` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `substrate_test_runtime_client` [INFO] [stdout] --> src/lib.rs:286:25 [INFO] [stdout] | [INFO] [stdout] 286 | let client = Arc::new(substrate_test_runtime_client::new()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ use of undeclared crate or module `substrate_test_runtime_client` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `sc_client_db` [INFO] [stdout] --> src/lib.rs:294:12 [INFO] [stdout] | [INFO] [stdout] 294 | let db = sc_client_db::offchain::LocalStorage::new_test(); [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared crate or module `sc_client_db` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SHARED_CLIENT` in this scope [INFO] [stdout] --> src/api/http.rs:716:23 [INFO] [stdout] | [INFO] [stdout] 716 | let hyper_client = SHARED_CLIENT.clone(); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] ... [INFO] [stdout] 747 | let (mut api, addr) = build_api_server!(); [INFO] [stdout] | ------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SHARED_CLIENT` in this scope [INFO] [stdout] --> src/api/http.rs:716:23 [INFO] [stdout] | [INFO] [stdout] 716 | let hyper_client = SHARED_CLIENT.clone(); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] ... [INFO] [stdout] 767 | let (mut api, addr) = build_api_server!(); [INFO] [stdout] | ------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SHARED_CLIENT` in this scope [INFO] [stdout] --> src/api/http.rs:716:23 [INFO] [stdout] | [INFO] [stdout] 716 | let hyper_client = SHARED_CLIENT.clone(); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] ... [INFO] [stdout] 782 | let (mut api, addr) = build_api_server!(); [INFO] [stdout] | ------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SHARED_CLIENT` in this scope [INFO] [stdout] --> src/api/http.rs:716:23 [INFO] [stdout] | [INFO] [stdout] 716 | let hyper_client = SHARED_CLIENT.clone(); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] ... [INFO] [stdout] 826 | let (mut api, addr) = build_api_server!(); [INFO] [stdout] | ------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SHARED_CLIENT` in this scope [INFO] [stdout] --> src/api/http.rs:716:23 [INFO] [stdout] | [INFO] [stdout] 716 | let hyper_client = SHARED_CLIENT.clone(); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] ... [INFO] [stdout] 903 | let (mut api, addr) = build_api_server!(); [INFO] [stdout] | ------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SHARED_CLIENT` in this scope [INFO] [stdout] --> src/api/http.rs:716:23 [INFO] [stdout] | [INFO] [stdout] 716 | let hyper_client = SHARED_CLIENT.clone(); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] ... [INFO] [stdout] 927 | let (mut api, addr) = build_api_server!(); [INFO] [stdout] | ------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SHARED_CLIENT` in this scope [INFO] [stdout] --> src/api/http.rs:716:23 [INFO] [stdout] | [INFO] [stdout] 716 | let hyper_client = SHARED_CLIENT.clone(); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] ... [INFO] [stdout] 948 | let (mut api, addr) = build_api_server!(); [INFO] [stdout] | ------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SHARED_CLIENT` in this scope [INFO] [stdout] --> src/api/http.rs:716:23 [INFO] [stdout] | [INFO] [stdout] 716 | let hyper_client = SHARED_CLIENT.clone(); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] ... [INFO] [stdout] 970 | let (mut api, addr) = build_api_server!(); [INFO] [stdout] | ------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LocalStorage` in this scope [INFO] [stdout] --> src/api.rs:330:28 [INFO] [stdout] | [INFO] [stdout] 330 | fn offchain_api() -> (Api, AsyncApi) { [INFO] [stdout] | - ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | | [INFO] [stdout] | help: you might be missing a type parameter: `` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Block` in this scope [INFO] [stdout] --> src/lib.rs:266:42 [INFO] [stdout] | [INFO] [stdout] 266 | Arc, Block>> [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 236 | use crate::traits::Block; [INFO] [stdout] | [INFO] [stdout] 236 | use sp_runtime::generic::Block; [INFO] [stdout] | [INFO] [stdout] 236 | use sp_runtime::testing::Block; [INFO] [stdout] | [INFO] [stdout] 236 | use sp_runtime::traits::Block; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Block` in this scope [INFO] [stdout] --> src/lib.rs:266:50 [INFO] [stdout] | [INFO] [stdout] 266 | Arc, Block>> [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 236 | use crate::traits::Block; [INFO] [stdout] | [INFO] [stdout] 236 | use sp_runtime::generic::Block; [INFO] [stdout] | [INFO] [stdout] 236 | use sp_runtime::testing::Block; [INFO] [stdout] | [INFO] [stdout] 236 | use sp_runtime::traits::Block; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Block` in this scope [INFO] [stdout] --> src/lib.rs:269:54 [INFO] [stdout] | [INFO] [stdout] 269 | impl sp_transaction_pool::OffchainSubmitTransaction for TestPool { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 236 | use crate::traits::Block; [INFO] [stdout] | [INFO] [stdout] 236 | use sp_runtime::generic::Block; [INFO] [stdout] | [INFO] [stdout] 236 | use sp_runtime::testing::Block; [INFO] [stdout] | [INFO] [stdout] 236 | use sp_runtime::traits::Block; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Block` in this scope [INFO] [stdout] --> src/lib.rs:272:17 [INFO] [stdout] | [INFO] [stdout] 272 | at: &BlockId, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 236 | use crate::traits::Block; [INFO] [stdout] | [INFO] [stdout] 236 | use sp_runtime::generic::Block; [INFO] [stdout] | [INFO] [stdout] 236 | use sp_runtime::testing::Block; [INFO] [stdout] | [INFO] [stdout] 236 | use sp_runtime::traits::Block; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Block` in this scope [INFO] [stdout] --> src/lib.rs:273:16 [INFO] [stdout] | [INFO] [stdout] 273 | extrinsic: ::Extrinsic, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 236 | use crate::traits::Block; [INFO] [stdout] | [INFO] [stdout] 236 | use sp_runtime::generic::Block; [INFO] [stdout] | [INFO] [stdout] 236 | use sp_runtime::testing::Block; [INFO] [stdout] | [INFO] [stdout] 236 | use sp_runtime::traits::Block; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SharedClient` [INFO] [stdout] --> src/api/http.rs:701:20 [INFO] [stdout] | [INFO] [stdout] 701 | use super::{http, SharedClient}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 36 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0425, E0432, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stderr] error: could not compile `sc-offchain` [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "276ab1cf460d36fab767194da60837148cdc2fee820d99adbbc16e7ece07d7b9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "276ab1cf460d36fab767194da60837148cdc2fee820d99adbbc16e7ece07d7b9", kill_on_drop: false }` [INFO] [stdout] 276ab1cf460d36fab767194da60837148cdc2fee820d99adbbc16e7ece07d7b9