[INFO] fetching crate rumqttc-async-std 0.5.0... [INFO] checking rumqttc-async-std-0.5.0 against try#8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 for pr-82565 [INFO] extracting crate rumqttc-async-std 0.5.0 into /workspace/builds/worker-7/source [INFO] validating manifest of crates.io crate rumqttc-async-std 0.5.0 on toolchain 8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate rumqttc-async-std 0.5.0 [INFO] finished tweaking crates.io crate rumqttc-async-std 0.5.0 [INFO] tweaked toml for crates.io crate rumqttc-async-std 0.5.0 written to /workspace/builds/worker-7/source/Cargo.toml [INFO] crate crates.io crate rumqttc-async-std 0.5.0 already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded pem v0.8.2 [INFO] [stderr] Downloaded tungstenite v0.11.1 [INFO] [stderr] Downloaded envy v0.4.2 [INFO] [stderr] Downloaded async_io_stream v0.2.0 [INFO] [stderr] Downloaded input_buffer v0.3.1 [INFO] [stderr] Downloaded async-tls v0.11.0 [INFO] [stderr] Downloaded color-backtrace v0.4.2 [INFO] [stderr] Downloaded ws_stream_tungstenite v0.4.0 [INFO] [stderr] Downloaded async-tungstenite v0.11.0 [INFO] [stderr] Downloaded pharos v0.4.2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 4c6d7c8dde55bbcf4c999a7d11b9afa62407f0ccb5d7759b8a27e47c18ff4f5a [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" "4c6d7c8dde55bbcf4c999a7d11b9afa62407f0ccb5d7759b8a27e47c18ff4f5a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "4c6d7c8dde55bbcf4c999a7d11b9afa62407f0ccb5d7759b8a27e47c18ff4f5a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4c6d7c8dde55bbcf4c999a7d11b9afa62407f0ccb5d7759b8a27e47c18ff4f5a", kill_on_drop: false }` [INFO] [stdout] 4c6d7c8dde55bbcf4c999a7d11b9afa62407f0ccb5d7759b8a27e47c18ff4f5a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b9a76c19cec311cb8e75e215f3f23876515e8f1e353ce120d732e30a6fa0e85d [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" "b9a76c19cec311cb8e75e215f3f23876515e8f1e353ce120d732e30a6fa0e85d", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.24 [INFO] [stderr] Compiling unicode-xid v0.2.1 [INFO] [stderr] Compiling libc v0.2.85 [INFO] [stderr] Checking once_cell v1.5.2 [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling memchr v2.3.4 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling value-bag v1.0.0-alpha.6 [INFO] [stderr] Checking futures-core v0.3.12 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Checking pin-project-lite v0.2.4 [INFO] [stderr] Checking untrusted v0.7.1 [INFO] [stderr] Checking spin v0.5.2 [INFO] [stderr] Checking cache-padded v1.1.1 [INFO] [stderr] Checking fastrand v1.4.0 [INFO] [stderr] Checking parking v2.0.0 [INFO] [stderr] Checking event-listener v2.5.1 [INFO] [stderr] Checking waker-fn v1.1.0 [INFO] [stderr] Compiling proc-macro-hack v0.5.19 [INFO] [stderr] Checking base64 v0.13.0 [INFO] [stderr] Compiling proc-macro-nested v0.1.7 [INFO] [stderr] Compiling serde_derive v1.0.123 [INFO] [stderr] Checking slab v0.4.2 [INFO] [stderr] Checking async-task v4.0.3 [INFO] [stderr] Checking cfg-if v0.1.10 [INFO] [stderr] Compiling serde v1.0.123 [INFO] [stderr] Checking regex-syntax v0.6.22 [INFO] [stderr] Checking pin-utils v0.1.0 [INFO] [stderr] Checking vec-arena v1.0.0 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Checking atomic-waker v1.0.0 [INFO] [stderr] Checking itoa v0.4.7 [INFO] [stderr] Compiling ryu v1.0.5 [INFO] [stderr] Checking adler v0.2.3 [INFO] [stderr] Checking termcolor v1.1.2 [INFO] [stderr] Checking gimli v0.23.0 [INFO] [stderr] Compiling serde_json v1.0.62 [INFO] [stderr] Checking bytes v1.0.1 [INFO] [stderr] Checking quick-error v1.2.3 [INFO] [stderr] Checking object v0.23.0 [INFO] [stderr] Checking rustc-demangle v0.1.18 [INFO] [stderr] Checking fnv v1.0.7 [INFO] [stderr] Checking base64 v0.12.3 [INFO] [stderr] Checking openssl-probe v0.1.2 [INFO] [stderr] Checking pollster v0.2.1 [INFO] [stderr] Checking matches v0.1.8 [INFO] [stderr] Compiling ring v0.16.20 [INFO] [stderr] Checking concurrent-queue v1.2.2 [INFO] [stderr] Checking thread_local v1.1.3 [INFO] [stderr] Checking futures-task v0.3.12 [INFO] [stderr] Checking futures-channel v0.3.12 [INFO] [stderr] Checking async-mutex v1.4.0 [INFO] [stderr] Checking async-lock v2.3.0 [INFO] [stderr] Checking humantime v1.3.0 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling crossbeam-utils v0.8.1 [INFO] [stderr] Compiling num-bigint v0.2.6 [INFO] [stderr] Compiling miniz_oxide v0.4.3 [INFO] [stderr] Checking async-channel v1.5.1 [INFO] [stderr] Checking http v0.2.3 [INFO] [stderr] Checking mqttbytes v0.2.1 [INFO] [stderr] Checking futures-lite v1.11.3 [INFO] [stderr] Checking aho-corasick v0.7.15 [INFO] [stderr] Compiling quote v1.0.8 [INFO] [stderr] Checking nb-connect v1.0.2 [INFO] [stderr] Checking num_cpus v1.13.0 [INFO] [stderr] Checking time v0.1.44 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking crossbeam-channel v0.5.0 [INFO] [stderr] Compiling syn v1.0.60 [INFO] [stderr] Checking blocking v1.0.2 [INFO] [stderr] Checking async-executor v1.4.0 [INFO] [stderr] Checking chrono v0.4.19 [INFO] [stderr] Checking regex v1.4.3 [INFO] [stderr] Checking addr2line v0.14.1 [INFO] [stderr] Checking backtrace v0.3.56 [INFO] [stderr] Checking simple_asn1 v0.4.1 [INFO] [stderr] Checking pem v0.8.2 [INFO] [stderr] Checking color-backtrace v0.4.2 [INFO] [stderr] Checking webpki v0.21.4 [INFO] [stderr] Checking sct v0.6.0 [INFO] [stderr] Checking webpki-roots v0.21.0 [INFO] [stderr] Compiling ctor v0.1.19 [INFO] [stderr] Compiling futures-macro v0.3.12 [INFO] [stderr] Compiling thiserror-impl v1.0.23 [INFO] [stderr] Compiling pin-project-internal v1.0.5 [INFO] [stderr] Checking futures-util v0.3.12 [INFO] [stderr] Checking thiserror v1.0.23 [INFO] [stderr] Checking polling v2.0.2 [INFO] [stderr] Checking rustls v0.19.0 [INFO] [stderr] Checking kv-log-macro v1.0.7 [INFO] [stderr] Checking env_logger v0.7.1 [INFO] [stderr] Checking async-io v1.3.1 [INFO] [stderr] Checking pretty_env_logger v0.4.0 [INFO] [stderr] Checking pin-project v1.0.5 [INFO] [stderr] Checking async-global-executor v2.0.2 [INFO] [stderr] Checking async-std v1.9.0 [INFO] [stderr] Checking async-tls v0.11.0 [INFO] [stderr] Checking rustls-native-certs v0.5.0 [INFO] [stderr] Checking futures-executor v0.3.12 [INFO] [stderr] Checking futures v0.3.12 [INFO] [stderr] Checking rumqttc-async-std v0.5.0 (/opt/rustwide/workdir) [INFO] [stderr] Checking envy v0.4.2 [INFO] [stderr] Checking jsonwebtoken v7.2.0 [INFO] [stdout] error[E0432]: unresolved import `rumqttc` [INFO] [stdout] --> examples/syncpubsub.rs:1:15 [INFO] [stdout] | [INFO] [stdout] 1 | use rumqttc::{self, Client, LastWill, MqttOptions, QoS}; [INFO] [stdout] | ^^^^ no external crate `rumqttc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `tokio` [INFO] [stdout] --> tests/broker.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use tokio::net::TcpListener; [INFO] [stdout] | ^^^^^ use of undeclared crate or module `tokio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `rumqttc` [INFO] [stdout] --> examples/tls.rs:3:15 [INFO] [stdout] | [INFO] [stdout] 3 | use rumqttc::{self, AsyncClient, Event, Incoming, MqttOptions, Transport}; [INFO] [stdout] | ^^^^ no external crate `rumqttc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `tokio` [INFO] [stdout] --> examples/tls.rs:7:3 [INFO] [stdout] | [INFO] [stdout] 7 | #[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 `tokio` [INFO] [stdout] --> tests/broker.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use tokio::net::TcpListener; [INFO] [stdout] | ^^^^^ use of undeclared crate or module `tokio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `tokio` [INFO] [stdout] --> tests/broker.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use tokio::select; [INFO] [stdout] | ^^^^^ use of undeclared crate or module `tokio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `tokio` [INFO] [stdout] --> tests/broker.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use tokio::{task, time}; [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 `tokio` [INFO] [stdout] --> tests/broker.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use tokio::io::{AsyncRead, AsyncReadExt, AsyncWrite, AsyncWriteExt}; [INFO] [stdout] | ^^^^^ use of undeclared crate or module `tokio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `rumqttc` [INFO] [stdout] --> tests/broker.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use rumqttc::{Event, Incoming, Outgoing, Packet}; [INFO] [stdout] | ^^^^^^^ use of undeclared crate or module `rumqttc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the macro `select` [INFO] [stdout] --> tests/broker.rs:148:9 [INFO] [stdout] | [INFO] [stdout] 148 | select! { [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 type `Event` [INFO] [stdout] --> examples/tls.rs:27:16 [INFO] [stdout] | [INFO] [stdout] 27 | Ok(Event::Incoming(Incoming::Publish(p))) => { [INFO] [stdout] | ^^^^^ use of undeclared type `Event` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Incoming` [INFO] [stdout] --> examples/tls.rs:27:32 [INFO] [stdout] | [INFO] [stdout] 27 | Ok(Event::Incoming(Incoming::Publish(p))) => { [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Incoming` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Event` [INFO] [stdout] --> examples/tls.rs:30:16 [INFO] [stdout] | [INFO] [stdout] 30 | Ok(Event::Incoming(i)) => { [INFO] [stdout] | ^^^^^ use of undeclared type `Event` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Event` [INFO] [stdout] --> examples/tls.rs:33:16 [INFO] [stdout] | [INFO] [stdout] 33 | Ok(Event::Outgoing(o)) => println!("Outgoing = {:?}", o), [INFO] [stdout] | ^^^^^ use of undeclared type `Event` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `MqttOptions` [INFO] [stdout] --> examples/tls.rs:12:28 [INFO] [stdout] | [INFO] [stdout] 12 | let mut mqtt_options = MqttOptions::new("test-1", "mqtt.example.server", 8883); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 3 | use rumqttc_async_std::MqttOptions; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Transport` [INFO] [stdout] --> examples/tls.rs:21:32 [INFO] [stdout] | [INFO] [stdout] 21 | mqtt_options.set_transport(Transport::tls_with_config(client_config.into())); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 3 | use rumqttc_async_std::Transport; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `AsyncClient` [INFO] [stdout] --> examples/tls.rs:23:36 [INFO] [stdout] | [INFO] [stdout] 23 | let (_client, mut eventloop) = AsyncClient::new(mqtt_options, 10); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 3 | use rumqttc_async_std::AsyncClient; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `tokio` [INFO] [stdout] --> tests/broker.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use tokio::select; [INFO] [stdout] | ^^^^^ use of undeclared crate or module `tokio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `tokio` [INFO] [stdout] --> tests/broker.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use tokio::{task, time}; [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 `tokio` [INFO] [stdout] --> tests/broker.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use tokio::io::{AsyncRead, AsyncReadExt, AsyncWrite, AsyncWriteExt}; [INFO] [stdout] | ^^^^^ use of undeclared crate or module `tokio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `rumqttc` [INFO] [stdout] --> tests/broker.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use rumqttc::{Event, Incoming, Outgoing, Packet}; [INFO] [stdout] | ^^^^^^^ use of undeclared crate or module `rumqttc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `rumqttc` [INFO] [stdout] --> tests/reliability.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use rumqttc::*; [INFO] [stdout] | ^^^^^^^ use of undeclared crate or module `rumqttc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `tokio` [INFO] [stdout] --> tests/reliability.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use tokio::{task, time}; [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 `tokio` [INFO] [stdout] --> tests/reliability.rs:58:3 [INFO] [stdout] | [INFO] [stdout] 58 | #[tokio::test] [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 `tokio` [INFO] [stdout] --> tests/reliability.rs:81:3 [INFO] [stdout] | [INFO] [stdout] 81 | #[tokio::test] [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 `tokio` [INFO] [stdout] --> tests/reliability.rs:117:3 [INFO] [stdout] | [INFO] [stdout] 117 | #[tokio::test] [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 `tokio` [INFO] [stdout] --> tests/reliability.rs:162:3 [INFO] [stdout] | [INFO] [stdout] 162 | #[tokio::test] [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 `tokio` [INFO] [stdout] --> tests/reliability.rs:201:3 [INFO] [stdout] | [INFO] [stdout] 201 | #[tokio::test] [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 `tokio` [INFO] [stdout] --> tests/reliability.rs:231:3 [INFO] [stdout] | [INFO] [stdout] 231 | #[tokio::test] [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 `tokio` [INFO] [stdout] --> tests/reliability.rs:260:3 [INFO] [stdout] | [INFO] [stdout] 260 | #[tokio::test] [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 `tokio` [INFO] [stdout] --> tests/reliability.rs:299:3 [INFO] [stdout] | [INFO] [stdout] 299 | #[tokio::test] [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 `tokio` [INFO] [stdout] --> tests/reliability.rs:370:3 [INFO] [stdout] | [INFO] [stdout] 370 | #[tokio::test] [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 `tokio` [INFO] [stdout] --> tests/reliability.rs:417:3 [INFO] [stdout] | [INFO] [stdout] 417 | #[tokio::test] [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 `tokio` [INFO] [stdout] --> tests/reliability.rs:442:3 [INFO] [stdout] | [INFO] [stdout] 442 | #[tokio::test] [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 `tokio` [INFO] [stdout] --> tests/reliability.rs:483:3 [INFO] [stdout] | [INFO] [stdout] 483 | #[tokio::test] [INFO] [stdout] | ^^^^^ use of undeclared crate or module `tokio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the macro `select` [INFO] [stdout] --> tests/broker.rs:148:9 [INFO] [stdout] | [INFO] [stdout] 148 | select! { [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 type `TcpListener` [INFO] [stdout] --> tests/broker.rs:26:24 [INFO] [stdout] | [INFO] [stdout] 26 | let listener = TcpListener::bind(&addr).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 | use async_std::net::TcpListener; [INFO] [stdout] | [INFO] [stdout] 1 | use crate::io::sys::ext::net::raw_fd::net::TcpListener; [INFO] [stdout] | [INFO] [stdout] 1 | use crate::io::sys::ext::net::raw_fd::net::udp::net_imp::TcpListener; [INFO] [stdout] | [INFO] [stdout] 1 | use std::net::TcpListener; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0405]: cannot find trait `AsyncRead` in this scope [INFO] [stdout] --> tests/broker.rs:303:14 [INFO] [stdout] | [INFO] [stdout] 303 | pub trait N: AsyncRead + AsyncWrite + Send + Sync + Unpin {} [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this trait [INFO] [stdout] | [INFO] [stdout] 1 | use futures::AsyncRead; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0405]: cannot find trait `AsyncWrite` in this scope [INFO] [stdout] --> tests/broker.rs:303:26 [INFO] [stdout] | [INFO] [stdout] 303 | pub trait N: AsyncRead + AsyncWrite + Send + Sync + Unpin {} [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this trait [INFO] [stdout] | [INFO] [stdout] 1 | use futures::AsyncWrite; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0405]: cannot find trait `AsyncRead` in this scope [INFO] [stdout] --> tests/broker.rs:304:26 [INFO] [stdout] | [INFO] [stdout] 304 | impl N for T where T: AsyncRead + AsyncWrite + Unpin + Send + Sync {} [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this trait [INFO] [stdout] | [INFO] [stdout] 1 | use futures::AsyncRead; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0405]: cannot find trait `AsyncWrite` in this scope [INFO] [stdout] --> tests/broker.rs:304:38 [INFO] [stdout] | [INFO] [stdout] 304 | impl N for T where T: AsyncRead + AsyncWrite + Unpin + Send + Sync {} [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this trait [INFO] [stdout] | [INFO] [stdout] 1 | use futures::AsyncWrite; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 11 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0405, E0432, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0405`. [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `tokio` [INFO] [stdout] --> examples/asyncpubsub.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use tokio::{task, time}; [INFO] [stdout] | ^^^^^ use of undeclared crate or module `tokio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `rumqttc` [INFO] [stdout] --> examples/asyncpubsub.rs:3:15 [INFO] [stdout] | [INFO] [stdout] 3 | use rumqttc::{self, AsyncClient, Event, Incoming, MqttOptions, QoS}; [INFO] [stdout] | ^^^^ no external crate `rumqttc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `tokio` [INFO] [stdout] --> examples/asyncpubsub.rs:7:3 [INFO] [stdout] | [INFO] [stdout] 7 | #[tokio::main(worker_threads = 1)] [INFO] [stdout] | ^^^^^ use of undeclared crate or module `tokio` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rumqttc-async-std` [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] [stdout] error[E0433]: failed to resolve: use of undeclared type `QoS` [INFO] [stdout] --> examples/syncpubsub.rs:9:57 [INFO] [stdout] | [INFO] [stdout] 9 | let will = LastWill::new("hello/world", "good bye", QoS::AtMostOnce, false); [INFO] [stdout] | ^^^ use of undeclared type `QoS` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Event` [INFO] [stdout] --> examples/asyncpubsub.rs:23:16 [INFO] [stdout] | [INFO] [stdout] 23 | Ok(Event::Incoming(Incoming::Publish(p))) => { [INFO] [stdout] | ^^^^^ use of undeclared type `Event` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `QoS` [INFO] [stdout] --> examples/syncpubsub.rs:27:39 [INFO] [stdout] | [INFO] [stdout] 27 | client.subscribe("hello/+/world", QoS::AtMostOnce).unwrap(); [INFO] [stdout] | ^^^ use of undeclared type `QoS` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `QoS` [INFO] [stdout] --> examples/syncpubsub.rs:31:19 [INFO] [stdout] | [INFO] [stdout] 31 | let qos = QoS::AtLeastOnce; [INFO] [stdout] | ^^^ use of undeclared type `QoS` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `MqttOptions` [INFO] [stdout] --> examples/syncpubsub.rs:8:27 [INFO] [stdout] | [INFO] [stdout] 8 | let mut mqttoptions = MqttOptions::new("test-1", "localhost", 1883); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use rumqttc_async_std::MqttOptions; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `LastWill` [INFO] [stdout] --> examples/syncpubsub.rs:9:16 [INFO] [stdout] | [INFO] [stdout] 9 | let will = LastWill::new("hello/world", "good bye", QoS::AtMostOnce, false); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 | use mqttbytes::v4::LastWill; [INFO] [stdout] | [INFO] [stdout] 1 | use mqttbytes::v5::LastWill; [INFO] [stdout] | [INFO] [stdout] 1 | use rumqttc_async_std::LastWill; [INFO] [stdout] | [INFO] [stdout] 1 | use rumqttc_async_std::v5::LastWill; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Client` [INFO] [stdout] --> examples/syncpubsub.rs:12:36 [INFO] [stdout] | [INFO] [stdout] 12 | let (client, mut connection) = Client::new(mqttoptions, 10); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use rumqttc_async_std::Client; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Client` in this scope [INFO] [stdout] --> examples/syncpubsub.rs:26:24 [INFO] [stdout] | [INFO] [stdout] 26 | fn publish(mut client: Client) { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use rumqttc_async_std::Client; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Incoming` [INFO] [stdout] --> examples/asyncpubsub.rs:23:32 [INFO] [stdout] | [INFO] [stdout] 23 | Ok(Event::Incoming(Incoming::Publish(p))) => { [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Incoming` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Event` [INFO] [stdout] --> examples/asyncpubsub.rs:26:16 [INFO] [stdout] | [INFO] [stdout] 26 | Ok(Event::Incoming(i)) => { [INFO] [stdout] | ^^^^^ use of undeclared type `Event` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Event` [INFO] [stdout] --> examples/asyncpubsub.rs:29:16 [INFO] [stdout] | [INFO] [stdout] 29 | Ok(Event::Outgoing(o)) => println!("Outgoing = {:?}", o), [INFO] [stdout] | ^^^^^ use of undeclared type `Event` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `QoS` [INFO] [stdout] --> examples/asyncpubsub.rs:40:35 [INFO] [stdout] | [INFO] [stdout] 40 | .subscribe("hello/world", QoS::AtMostOnce) [INFO] [stdout] | ^^^ use of undeclared type `QoS` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `QoS` [INFO] [stdout] --> examples/asyncpubsub.rs:46:37 [INFO] [stdout] | [INFO] [stdout] 46 | .publish("hello/world", QoS::ExactlyOnce, false, vec![i; 1000 * 1024]) [INFO] [stdout] | ^^^ use of undeclared type `QoS` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `MqttOptions` [INFO] [stdout] --> examples/asyncpubsub.rs:12:27 [INFO] [stdout] | [INFO] [stdout] 12 | let mut mqttoptions = MqttOptions::new("test-1", "localhost", 1883); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use rumqttc_async_std::MqttOptions; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `AsyncClient` [INFO] [stdout] --> examples/asyncpubsub.rs:15:35 [INFO] [stdout] | [INFO] [stdout] 15 | let (client, mut eventloop) = AsyncClient::new(mqttoptions, 10); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use rumqttc_async_std::AsyncClient; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `AsyncClient` in this scope [INFO] [stdout] --> examples/asyncpubsub.rs:38:27 [INFO] [stdout] | [INFO] [stdout] 38 | async fn requests(client: AsyncClient) { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use rumqttc_async_std::AsyncClient; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ConnectionError` [INFO] [stdout] --> tests/reliability.rs:73:28 [INFO] [stdout] | [INFO] [stdout] 73 | assert_matches!(o, Err(ConnectionError::Timeout(_))); [INFO] [stdout] | ^^^^^^^^^^^^^^^ use of undeclared type `ConnectionError` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Packet` [INFO] [stdout] --> tests/reliability.rs:101:13 [INFO] [stdout] | [INFO] [stdout] 101 | Packet::PingReq => { [INFO] [stdout] | ^^^^^^ use of undeclared type `Packet` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `QoS` [INFO] [stdout] --> tests/reliability.rs:131:28 [INFO] [stdout] | [INFO] [stdout] 131 | start_requests(10, QoS::AtMostOnce, 1, requests_tx).await; [INFO] [stdout] | ^^^ use of undeclared type `QoS` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Event` [INFO] [stdout] --> tests/reliability.rs:146:16 [INFO] [stdout] | [INFO] [stdout] 146 | if let Event::Incoming(Incoming::PingReq) = event { [INFO] [stdout] | ^^^^^ use of undeclared type `Event` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Incoming` [INFO] [stdout] --> tests/reliability.rs:146:32 [INFO] [stdout] | [INFO] [stdout] 146 | if let Event::Incoming(Incoming::PingReq) = event { [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Incoming` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `QoS` [INFO] [stdout] --> tests/reliability.rs:179:32 [INFO] [stdout] | [INFO] [stdout] 179 | broker.spawn_publishes(10, QoS::AtMostOnce, 1).await; [INFO] [stdout] | ^^^ use of undeclared type `QoS` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Event` [INFO] [stdout] --> tests/reliability.rs:185:16 [INFO] [stdout] | [INFO] [stdout] 185 | if let Event::Incoming(Incoming::PingReq) = event { [INFO] [stdout] | ^^^^^ use of undeclared type `Event` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Incoming` [INFO] [stdout] --> tests/reliability.rs:185:32 [INFO] [stdout] | [INFO] [stdout] 185 | if let Event::Incoming(Incoming::PingReq) = event { [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Incoming` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ConnectionError` [INFO] [stdout] --> tests/reliability.rs:218:17 [INFO] [stdout] | [INFO] [stdout] 218 | ConnectionError::MqttState(StateError::AwaitPingResp) => break, [INFO] [stdout] | ^^^^^^^^^^^^^^^ use of undeclared type `ConnectionError` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `StateError` [INFO] [stdout] --> tests/reliability.rs:218:44 [INFO] [stdout] | [INFO] [stdout] 218 | ConnectionError::MqttState(StateError::AwaitPingResp) => break, [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `StateError` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `QoS` [INFO] [stdout] --> tests/reliability.rs:242:28 [INFO] [stdout] | [INFO] [stdout] 242 | start_requests(10, QoS::AtLeastOnce, 1, requests_tx).await; [INFO] [stdout] | ^^^ use of undeclared type `QoS` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `QoS` [INFO] [stdout] --> tests/reliability.rs:269:27 [INFO] [stdout] | [INFO] [stdout] 269 | start_requests(5, QoS::AtLeastOnce, 1, requests_tx).await; [INFO] [stdout] | ^^^ use of undeclared type `QoS` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0698]: type inside `async fn` body must be known in this context [INFO] [stdout] --> examples/asyncpubsub.rs:44:14 [INFO] [stdout] | [INFO] [stdout] 44 | for i in 1..=10 { [INFO] [stdout] | ^ cannot infer type for type `{integer}` [INFO] [stdout] | [INFO] [stdout] note: the type is part of the `async fn` body because of this `await` [INFO] [stdout] --> examples/asyncpubsub.rs:50:9 [INFO] [stdout] | [INFO] [stdout] 50 | time::sleep(Duration::from_secs(1)).await; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0698]: type inside `async fn` body must be known in this context [INFO] [stdout] --> examples/asyncpubsub.rs:44:18 [INFO] [stdout] | [INFO] [stdout] 44 | for i in 1..=10 { [INFO] [stdout] | ^^ cannot infer type for type `{integer}` [INFO] [stdout] | [INFO] [stdout] note: the type is part of the `async fn` body because of this `await` [INFO] [stdout] --> examples/asyncpubsub.rs:50:9 [INFO] [stdout] | [INFO] [stdout] 50 | time::sleep(Duration::from_secs(1)).await; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0698]: type inside `async fn` body must be known in this context [INFO] [stdout] --> examples/asyncpubsub.rs:44:14 [INFO] [stdout] | [INFO] [stdout] 44 | for i in 1..=10 { [INFO] [stdout] | ^^^^^^ cannot infer type for type `{integer}` [INFO] [stdout] | [INFO] [stdout] note: the type is part of the `async fn` body because of this `await` [INFO] [stdout] --> examples/asyncpubsub.rs:50:9 [INFO] [stdout] | [INFO] [stdout] 50 | time::sleep(Duration::from_secs(1)).await; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0698]: type inside `async fn` body must be known in this context [INFO] [stdout] --> examples/asyncpubsub.rs:44:14 [INFO] [stdout] | [INFO] [stdout] 44 | for i in 1..=10 { [INFO] [stdout] | ^^^^^^ cannot infer type for type `{integer}` [INFO] [stdout] | [INFO] [stdout] note: the type is part of the `async fn` body because of this `await` [INFO] [stdout] --> examples/asyncpubsub.rs:50:9 [INFO] [stdout] | [INFO] [stdout] 50 | time::sleep(Duration::from_secs(1)).await; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0698]: type inside `async fn` body must be known in this context [INFO] [stdout] --> examples/asyncpubsub.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 44 | for i in 1..=10 { [INFO] [stdout] | ^ cannot infer type for type `{integer}` [INFO] [stdout] | [INFO] [stdout] note: the type is part of the `async fn` body because of this `await` [INFO] [stdout] --> examples/asyncpubsub.rs:50:9 [INFO] [stdout] | [INFO] [stdout] 50 | time::sleep(Duration::from_secs(1)).await; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0698]: type inside `async fn` body must be known in this context [INFO] [stdout] --> examples/asyncpubsub.rs:46:67 [INFO] [stdout] | [INFO] [stdout] 46 | .publish("hello/world", QoS::ExactlyOnce, false, vec![i; 1000 * 1024]) [INFO] [stdout] | ^ cannot infer type for type `{integer}` [INFO] [stdout] | [INFO] [stdout] note: the type is part of the `async fn` body because of this `await` [INFO] [stdout] --> examples/asyncpubsub.rs:45:9 [INFO] [stdout] | [INFO] [stdout] 45 | / client [INFO] [stdout] 46 | | .publish("hello/world", QoS::ExactlyOnce, false, vec![i; 1000 * 1024]) [INFO] [stdout] 47 | | .await [INFO] [stdout] | |__________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0698]: type inside `async fn` body must be known in this context [INFO] [stdout] --> examples/asyncpubsub.rs:46:62 [INFO] [stdout] | [INFO] [stdout] 46 | .publish("hello/world", QoS::ExactlyOnce, false, vec![i; 1000 * 1024]) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ cannot infer type for type `{integer}` [INFO] [stdout] | [INFO] [stdout] note: the type is part of the `async fn` body because of this `await` [INFO] [stdout] --> examples/asyncpubsub.rs:45:9 [INFO] [stdout] | [INFO] [stdout] 45 | / client [INFO] [stdout] 46 | | .publish("hello/world", QoS::ExactlyOnce, false, vec![i; 1000 * 1024]) [INFO] [stdout] 47 | | .await [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 type `QoS` [INFO] [stdout] --> tests/reliability.rs:308:27 [INFO] [stdout] | [INFO] [stdout] 308 | start_requests(8, QoS::AtLeastOnce, 0, requests_tx).await; [INFO] [stdout] | ^^^ use of undeclared type `QoS` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ConnectionError` [INFO] [stdout] --> tests/reliability.rs:345:17 [INFO] [stdout] | [INFO] [stdout] 345 | Err(ConnectionError::MqttState(StateError::Collision(1))) => break, [INFO] [stdout] | ^^^^^^^^^^^^^^^ use of undeclared type `ConnectionError` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `StateError` [INFO] [stdout] --> tests/reliability.rs:345:44 [INFO] [stdout] | [INFO] [stdout] 345 | Err(ConnectionError::MqttState(StateError::Collision(1))) => break, [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `StateError` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Event` [INFO] [stdout] --> tests/reliability.rs:359:16 [INFO] [stdout] | [INFO] [stdout] 359 | Ok(Event::Outgoing(Outgoing::Publish(ack))) => { [INFO] [stdout] | ^^^^^ use of undeclared type `Event` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Outgoing` [INFO] [stdout] --> tests/reliability.rs:359:32 [INFO] [stdout] | [INFO] [stdout] 359 | Ok(Event::Outgoing(Outgoing::Publish(ack))) => { [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Outgoing` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `QoS` [INFO] [stdout] --> tests/reliability.rs:382:28 [INFO] [stdout] | [INFO] [stdout] 382 | start_requests(10, QoS::AtLeastOnce, 0, requests_tx).await; [INFO] [stdout] | ^^^ use of undeclared type `QoS` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ConnectionError` [INFO] [stdout] --> tests/reliability.rs:404:13 [INFO] [stdout] | [INFO] [stdout] 404 | Err(ConnectionError::MqttState(StateError::Collision(1))) => (), [INFO] [stdout] | ^^^^^^^^^^^^^^^ use of undeclared type `ConnectionError` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `StateError` [INFO] [stdout] --> tests/reliability.rs:404:40 [INFO] [stdout] | [INFO] [stdout] 404 | Err(ConnectionError::MqttState(StateError::Collision(1))) => (), [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `StateError` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ConnectionError` [INFO] [stdout] --> tests/reliability.rs:409:13 [INFO] [stdout] | [INFO] [stdout] 409 | Err(ConnectionError::MqttState(StateError::CollisionTimeout)) => (), [INFO] [stdout] | ^^^^^^^^^^^^^^^ use of undeclared type `ConnectionError` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `StateError` [INFO] [stdout] --> tests/reliability.rs:409:40 [INFO] [stdout] | [INFO] [stdout] 409 | Err(ConnectionError::MqttState(StateError::CollisionTimeout)) => (), [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `StateError` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ConnectionError` [INFO] [stdout] --> tests/reliability.rs:433:13 [INFO] [stdout] | [INFO] [stdout] 433 | Err(ConnectionError::Io(e)) => assert_eq!(e.to_string(), error), [INFO] [stdout] | ^^^^^^^^^^^^^^^ use of undeclared type `ConnectionError` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ConnectReturnCode` [INFO] [stdout] --> tests/reliability.rs:438:32 [INFO] [stdout] | [INFO] [stdout] 438 | let connack = ConnAck::new(ConnectReturnCode::Success, false); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ use of undeclared type `ConnectReturnCode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `QoS` [INFO] [stdout] --> tests/reliability.rs:451:28 [INFO] [stdout] | [INFO] [stdout] 451 | start_requests(10, QoS::AtLeastOnce, 1, requests_tx).await; [INFO] [stdout] | ^^^ use of undeclared type `QoS` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `QoS` [INFO] [stdout] --> tests/reliability.rs:493:28 [INFO] [stdout] | [INFO] [stdout] 493 | start_requests(10, QoS::AtLeastOnce, 1, requests_tx).await; [INFO] [stdout] | ^^^ use of undeclared type `QoS` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TcpListener` [INFO] [stdout] --> tests/broker.rs:26:24 [INFO] [stdout] | [INFO] [stdout] 26 | let listener = TcpListener::bind(&addr).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 | use async_std::net::TcpListener; [INFO] [stdout] | [INFO] [stdout] 1 | use crate::broker::io::sys::ext::net::raw_fd::net::TcpListener; [INFO] [stdout] | [INFO] [stdout] 1 | use crate::broker::io::sys::ext::net::raw_fd::net::udp::net_imp::TcpListener; [INFO] [stdout] | [INFO] [stdout] 1 | use std::net::TcpListener; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0405]: cannot find trait `AsyncRead` in this scope [INFO] [stdout] --> tests/broker.rs:303:14 [INFO] [stdout] | [INFO] [stdout] 303 | pub trait N: AsyncRead + AsyncWrite + Send + Sync + Unpin {} [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this trait [INFO] [stdout] | [INFO] [stdout] 1 | use futures::AsyncRead; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0405]: cannot find trait `AsyncWrite` in this scope [INFO] [stdout] --> tests/broker.rs:303:26 [INFO] [stdout] | [INFO] [stdout] 303 | pub trait N: AsyncRead + AsyncWrite + Send + Sync + Unpin {} [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this trait [INFO] [stdout] | [INFO] [stdout] 1 | use futures::AsyncWrite; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0405]: cannot find trait `AsyncRead` in this scope [INFO] [stdout] --> tests/broker.rs:304:26 [INFO] [stdout] | [INFO] [stdout] 304 | impl N for T where T: AsyncRead + AsyncWrite + Unpin + Send + Sync {} [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this trait [INFO] [stdout] | [INFO] [stdout] 1 | use futures::AsyncRead; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0405]: cannot find trait `AsyncWrite` in this scope [INFO] [stdout] --> tests/broker.rs:304:38 [INFO] [stdout] | [INFO] [stdout] 304 | impl N for T where T: AsyncRead + AsyncWrite + Unpin + Send + Sync {} [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this trait [INFO] [stdout] | [INFO] [stdout] 1 | use futures::AsyncWrite; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `QoS` in this scope [INFO] [stdout] --> tests/reliability.rs:10:41 [INFO] [stdout] | [INFO] [stdout] 10 | async fn start_requests(count: u8, qos: QoS, delay: u64, requests_tx: Sender) { [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 | use crate::broker::QoS; [INFO] [stdout] | [INFO] [stdout] 1 | use mqttbytes::QoS; [INFO] [stdout] | [INFO] [stdout] 1 | use rumqttc_async_std::QoS; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Sender` in this scope [INFO] [stdout] --> tests/reliability.rs:10:71 [INFO] [stdout] | [INFO] [stdout] 10 | async fn start_requests(count: u8, qos: QoS, delay: u64, requests_tx: Sender) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: a trait with a similar name exists [INFO] [stdout] | [INFO] [stdout] 10 | async fn start_requests(count: u8, qos: QoS, delay: u64, requests_tx: Send) { [INFO] [stdout] | ^^^^ [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 | use async_channel::Sender; [INFO] [stdout] | [INFO] [stdout] 1 | use async_std::channel::Sender; [INFO] [stdout] | [INFO] [stdout] 1 | use crate::broker::Sender; [INFO] [stdout] | [INFO] [stdout] 1 | use crate::broker::io::sys::ext::net::raw_fd::sys_common::backtrace::backtrace_rs::symbolize::gimli::mystd::sync::mpsc::Sender; [INFO] [stdout] | [INFO] [stdout] and 3 other candidates [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Request` in this scope [INFO] [stdout] --> tests/reliability.rs:10:78 [INFO] [stdout] | [INFO] [stdout] 10 | async fn start_requests(count: u8, qos: QoS, delay: u64, requests_tx: Sender) { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 | use http::Request; [INFO] [stdout] | [INFO] [stdout] 1 | use rumqttc_async_std::Request; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Publish` [INFO] [stdout] --> tests/reliability.rs:15:23 [INFO] [stdout] | [INFO] [stdout] 15 | let publish = Publish::new(topic, qos, payload); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 | use crate::broker::Publish; [INFO] [stdout] | [INFO] [stdout] 1 | use crate::broker::v5::Publish; [INFO] [stdout] | [INFO] [stdout] 1 | use mqttbytes::v4::Publish; [INFO] [stdout] | [INFO] [stdout] 1 | use mqttbytes::v5::Publish; [INFO] [stdout] | [INFO] [stdout] and 2 other candidates [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Request` [INFO] [stdout] --> tests/reliability.rs:16:23 [INFO] [stdout] | [INFO] [stdout] 16 | let request = Request::Publish(publish); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 | use http::Request; [INFO] [stdout] | [INFO] [stdout] 1 | use rumqttc_async_std::Request; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `EventLoop` in this scope [INFO] [stdout] --> tests/reliability.rs:22:30 [INFO] [stdout] | [INFO] [stdout] 22 | async fn run(eventloop: &mut EventLoop, reconnect: bool) -> Result<(), ConnectionError> { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use rumqttc_async_std::EventLoop; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `ConnectionError` in this scope [INFO] [stdout] --> tests/reliability.rs:22:72 [INFO] [stdout] | [INFO] [stdout] 22 | async fn run(eventloop: &mut EventLoop, reconnect: bool) -> Result<(), ConnectionError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1 | use rumqttc_async_std::ConnectionError; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 8 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0432, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `EventLoop` in this scope [INFO] [stdout] --> tests/reliability.rs:37:21 [INFO] [stdout] | [INFO] [stdout] 37 | eventloop: &mut EventLoop, [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use rumqttc_async_std::EventLoop; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `ConnectionError` in this scope [INFO] [stdout] --> tests/reliability.rs:40:17 [INFO] [stdout] | [INFO] [stdout] 40 | ) -> Result<(), ConnectionError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1 | use rumqttc_async_std::ConnectionError; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `MqttOptions` [INFO] [stdout] --> tests/reliability.rs:66:19 [INFO] [stdout] | [INFO] [stdout] 66 | let options = MqttOptions::new("dummy", "127.0.0.1", 1880); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use rumqttc_async_std::MqttOptions; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `EventLoop` [INFO] [stdout] --> tests/reliability.rs:67:25 [INFO] [stdout] | [INFO] [stdout] 67 | let mut eventloop = EventLoop::new(options, 5); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use rumqttc_async_std::EventLoop; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `MqttOptions` [INFO] [stdout] --> tests/reliability.rs:85:23 [INFO] [stdout] | [INFO] [stdout] 85 | let mut options = MqttOptions::new("dummy", "127.0.0.1", 1885); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use rumqttc_async_std::MqttOptions; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `EventLoop` [INFO] [stdout] --> tests/reliability.rs:90:29 [INFO] [stdout] | [INFO] [stdout] 90 | let mut eventloop = EventLoop::new(options, 5); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use rumqttc_async_std::EventLoop; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `MqttOptions` [INFO] [stdout] --> tests/reliability.rs:120:23 [INFO] [stdout] | [INFO] [stdout] 120 | let mut options = MqttOptions::new("dummy", "127.0.0.1", 1886); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use rumqttc_async_std::MqttOptions; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `EventLoop` [INFO] [stdout] --> tests/reliability.rs:126:25 [INFO] [stdout] | [INFO] [stdout] 126 | let mut eventloop = EventLoop::new(options, 5); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use rumqttc_async_std::EventLoop; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `MqttOptions` [INFO] [stdout] --> tests/reliability.rs:165:23 [INFO] [stdout] | [INFO] [stdout] 165 | let mut options = MqttOptions::new("dummy", "127.0.0.1", 2000); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use rumqttc_async_std::MqttOptions; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `EventLoop` [INFO] [stdout] --> tests/reliability.rs:170:29 [INFO] [stdout] | [INFO] [stdout] 170 | let mut eventloop = EventLoop::new(options, 5); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use rumqttc_async_std::EventLoop; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `MqttOptions` [INFO] [stdout] --> tests/reliability.rs:203:23 [INFO] [stdout] | [INFO] [stdout] 203 | let mut options = MqttOptions::new("dummy", "127.0.0.1", 2001); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use rumqttc_async_std::MqttOptions; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `EventLoop` [INFO] [stdout] --> tests/reliability.rs:214:25 [INFO] [stdout] | [INFO] [stdout] 214 | let mut eventloop = EventLoop::new(options, 5); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use rumqttc_async_std::EventLoop; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `MqttOptions` [INFO] [stdout] --> tests/reliability.rs:233:23 [INFO] [stdout] | [INFO] [stdout] 233 | let mut options = MqttOptions::new("dummy", "127.0.0.1", 1887); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use rumqttc_async_std::MqttOptions; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `EventLoop` [INFO] [stdout] --> tests/reliability.rs:239:25 [INFO] [stdout] | [INFO] [stdout] 239 | let mut eventloop = EventLoop::new(options, 5); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use rumqttc_async_std::EventLoop; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `MqttOptions` [INFO] [stdout] --> tests/reliability.rs:262:23 [INFO] [stdout] | [INFO] [stdout] 262 | let mut options = MqttOptions::new("dummy", "127.0.0.1", 1888); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use rumqttc_async_std::MqttOptions; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `EventLoop` [INFO] [stdout] --> tests/reliability.rs:265:25 [INFO] [stdout] | [INFO] [stdout] 265 | let mut eventloop = EventLoop::new(options, 5); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use rumqttc_async_std::EventLoop; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `MqttOptions` [INFO] [stdout] --> tests/reliability.rs:301:23 [INFO] [stdout] | [INFO] [stdout] 301 | let mut options = MqttOptions::new("dummy", "127.0.0.1", 1891); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use rumqttc_async_std::MqttOptions; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `EventLoop` [INFO] [stdout] --> tests/reliability.rs:304:25 [INFO] [stdout] | [INFO] [stdout] 304 | let mut eventloop = EventLoop::new(options, 5); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use rumqttc_async_std::EventLoop; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `MqttOptions` [INFO] [stdout] --> tests/reliability.rs:372:23 [INFO] [stdout] | [INFO] [stdout] 372 | let mut options = MqttOptions::new("dummy", "127.0.0.1", 1892); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use rumqttc_async_std::MqttOptions; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `EventLoop` [INFO] [stdout] --> tests/reliability.rs:378:25 [INFO] [stdout] | [INFO] [stdout] 378 | let mut eventloop = EventLoop::new(options, 5); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use rumqttc_async_std::EventLoop; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `MqttOptions` [INFO] [stdout] --> tests/reliability.rs:419:19 [INFO] [stdout] | [INFO] [stdout] 419 | let options = MqttOptions::new("dummy", "127.0.0.1", 3000); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use rumqttc_async_std::MqttOptions; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `EventLoop` [INFO] [stdout] --> tests/reliability.rs:428:25 [INFO] [stdout] | [INFO] [stdout] 428 | let mut eventloop = EventLoop::new(options, 5); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use rumqttc_async_std::EventLoop; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ConnAck` [INFO] [stdout] --> tests/reliability.rs:438:19 [INFO] [stdout] | [INFO] [stdout] 438 | let connack = ConnAck::new(ConnectReturnCode::Success, false); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 | use crate::broker::ConnAck; [INFO] [stdout] | [INFO] [stdout] 1 | use crate::broker::v5::ConnAck; [INFO] [stdout] | [INFO] [stdout] 1 | use mqttbytes::v4::ConnAck; [INFO] [stdout] | [INFO] [stdout] 1 | use mqttbytes::v5::ConnAck; [INFO] [stdout] | [INFO] [stdout] and 2 other candidates [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Event` [INFO] [stdout] --> tests/reliability.rs:439:23 [INFO] [stdout] | [INFO] [stdout] 439 | assert_eq!(event, Event::Incoming(Packet::ConnAck(connack))); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1 | use rumqttc_async_std::Event; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Packet` [INFO] [stdout] --> tests/reliability.rs:439:39 [INFO] [stdout] | [INFO] [stdout] 439 | assert_eq!(event, Event::Incoming(Packet::ConnAck(connack))); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 | use crate::broker::Packet; [INFO] [stdout] | [INFO] [stdout] 1 | use crate::broker::io::sys::ext::net::raw_fd::sys_common::backtrace::backtrace_rs::symbolize::gimli::mystd::sync::mpsc::oneshot::Packet; [INFO] [stdout] | [INFO] [stdout] 1 | use crate::broker::io::sys::ext::net::raw_fd::sys_common::backtrace::backtrace_rs::symbolize::gimli::mystd::sync::mpsc::shared::Packet; [INFO] [stdout] | [INFO] [stdout] 1 | use crate::broker::io::sys::ext::net::raw_fd::sys_common::backtrace::backtrace_rs::symbolize::gimli::mystd::sync::mpsc::stream::Packet; [INFO] [stdout] | [INFO] [stdout] and 7 other candidates [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `MqttOptions` [INFO] [stdout] --> tests/reliability.rs:444:23 [INFO] [stdout] | [INFO] [stdout] 444 | let mut options = MqttOptions::new("dummy", "127.0.0.1", 3001); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use rumqttc_async_std::MqttOptions; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `EventLoop` [INFO] [stdout] --> tests/reliability.rs:448:25 [INFO] [stdout] | [INFO] [stdout] 448 | let mut eventloop = EventLoop::new(options, 5); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use rumqttc_async_std::EventLoop; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `MqttOptions` [INFO] [stdout] --> tests/reliability.rs:485:23 [INFO] [stdout] | [INFO] [stdout] 485 | let mut options = MqttOptions::new("dummy", "127.0.0.1", 3002); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use rumqttc_async_std::MqttOptions; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `EventLoop` [INFO] [stdout] --> tests/reliability.rs:490:25 [INFO] [stdout] | [INFO] [stdout] 490 | let mut eventloop = EventLoop::new(options, 5); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use rumqttc_async_std::EventLoop; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 87 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0405, E0412, E0432, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0405`. [INFO] [stdout] [INFO] [stdout] error[E0277]: `main` has invalid return type `impl Future` [INFO] [stdout] --> examples/tls.rs:8:20 [INFO] [stdout] | [INFO] [stdout] 8 | async fn main() -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` can only return types that implement `Termination` [INFO] [stdout] | [INFO] [stdout] = help: consider using `()`, or a `Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> examples/tls.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | async fn main() -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 11 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0432, E0433, E0752. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stdout] error[E0277]: `main` has invalid return type `impl Future` [INFO] [stdout] --> examples/asyncpubsub.rs:8:20 [INFO] [stdout] | [INFO] [stdout] 8 | async fn main() -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` can only return types that implement `Termination` [INFO] [stdout] | [INFO] [stdout] = help: consider using `()`, or a `Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> examples/asyncpubsub.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | async fn main() -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 21 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0412, E0432, E0433, E0698, E0752. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "b9a76c19cec311cb8e75e215f3f23876515e8f1e353ce120d732e30a6fa0e85d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b9a76c19cec311cb8e75e215f3f23876515e8f1e353ce120d732e30a6fa0e85d", kill_on_drop: false }` [INFO] [stdout] b9a76c19cec311cb8e75e215f3f23876515e8f1e353ce120d732e30a6fa0e85d