[INFO] fetching crate async-nats 0.45.0... [INFO] testing async-nats-0.45.0 against try#c2e32f1c9652b13ed99608599c1e855462f421f3 for pr-146098-7 [INFO] extracting crate async-nats 0.45.0 into /workspace/builds/worker-2-tc2/source [INFO] started tweaking crates.io crate async-nats 0.45.0 [INFO] removed 0 missing examples [INFO] removed 0 missing tests [INFO] finished tweaking crates.io crate async-nats 0.45.0 [INFO] tweaked toml for crates.io crate async-nats 0.45.0 written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate async-nats 0.45.0 on toolchain c2e32f1c9652b13ed99608599c1e855462f421f3 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate async-nats 0.45.0 already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] bc80190ab5bf24839b5efc72562566aa753fa8efcc211b963d7613081083f035 [INFO] running `Command { std: "docker" "start" "-a" "bc80190ab5bf24839b5efc72562566aa753fa8efcc211b963d7613081083f035", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "bc80190ab5bf24839b5efc72562566aa753fa8efcc211b963d7613081083f035", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bc80190ab5bf24839b5efc72562566aa753fa8efcc211b963d7613081083f035", kill_on_drop: false }` [INFO] [stdout] bc80190ab5bf24839b5efc72562566aa753fa8efcc211b963d7613081083f035 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a255fc828a8331356df15a0453b972df5b9e51b5d202c32ac1f0a438a7e55c59 [INFO] running `Command { std: "docker" "start" "-a" "a255fc828a8331356df15a0453b972df5b9e51b5d202c32ac1f0a438a7e55c59", kill_on_drop: false }` [INFO] [stderr] Compiling unicode-ident v1.0.19 [INFO] [stderr] Compiling libc v0.2.176 [INFO] [stderr] Compiling zeroize v1.8.2 [INFO] [stderr] Compiling find-msvc-tools v0.1.3 [INFO] [stderr] Compiling base64ct v1.8.0 [INFO] [stderr] Compiling smallvec v1.15.1 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling curve25519-dalek v4.1.3 [INFO] [stderr] Compiling rustls v0.23.32 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling portable-atomic v1.11.1 [INFO] [stderr] Compiling regex-syntax v0.8.6 [INFO] [stderr] Compiling percent-encoding v2.3.2 [INFO] [stderr] Compiling deranged v0.5.4 [INFO] [stderr] Compiling data-encoding v2.9.0 [INFO] [stderr] Compiling time-core v0.1.6 [INFO] [stderr] Compiling rustls-pki-types v1.12.0 [INFO] [stderr] Compiling cc v1.2.40 [INFO] [stderr] Compiling form_urlencoded v1.2.2 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling proc-macro2 v1.0.101 [INFO] [stderr] Compiling rustls-pemfile v2.2.0 [INFO] [stderr] Compiling pem-rfc7468 v0.7.0 [INFO] [stderr] Compiling rustls-webpki v0.102.8 [INFO] [stderr] Compiling der v0.7.10 [INFO] [stderr] Compiling rustls-native-certs v0.7.3 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling quote v1.0.41 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling syn v2.0.106 [INFO] [stderr] Compiling signature v2.2.0 [INFO] [stderr] Compiling sha2 v0.10.9 [INFO] [stderr] Compiling getrandom v0.2.16 [INFO] [stderr] Compiling mio v1.0.4 [INFO] [stderr] Compiling socket2 v0.6.0 [INFO] [stderr] Compiling ed25519 v2.2.3 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling spki v0.7.3 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling pkcs8 v0.10.2 [INFO] [stderr] Compiling ring v0.17.14 [INFO] [stderr] Compiling regex-automata v0.4.11 [INFO] [stderr] Compiling signatory v0.27.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling nuid v0.5.0 [INFO] [stderr] Compiling regex v1.11.3 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.0 [INFO] [stderr] Compiling zerovec-derive v0.11.1 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling curve25519-dalek-derive v0.1.1 [INFO] [stderr] Compiling pin-project-internal v1.1.10 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling tracing-attributes v0.1.30 [INFO] [stderr] Compiling serde_repr v0.1.20 [INFO] [stderr] Compiling rustls-webpki v0.103.7 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling pin-project v1.1.10 [INFO] [stderr] Compiling yoke v0.8.0 [INFO] [stderr] Compiling zerotrie v0.2.2 [INFO] [stderr] Compiling zerovec v0.11.4 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling ed25519-dalek v2.2.0 [INFO] [stderr] Compiling nkeys v0.4.5 [INFO] [stderr] Compiling tinystr v0.8.1 [INFO] [stderr] Compiling potential_utf v0.1.3 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Compiling icu_collections v2.0.0 [INFO] [stderr] Compiling icu_locale_core v2.0.0 [INFO] [stderr] Compiling bytes v1.10.1 [INFO] [stderr] Compiling time v0.3.44 [INFO] [stderr] Compiling serde_nanos v0.1.4 [INFO] [stderr] Compiling icu_provider v2.0.0 [INFO] [stderr] Compiling tokio v1.47.1 [INFO] [stderr] Compiling icu_normalizer v2.0.0 [INFO] [stderr] Compiling icu_properties v2.0.1 [INFO] [stderr] Compiling idna_adapter v1.2.1 [INFO] [stderr] Compiling idna v1.1.0 [INFO] [stderr] Compiling url v2.5.7 [INFO] [stderr] Compiling tokio-util v0.7.16 [INFO] [stderr] Compiling tokio-stream v0.1.17 [INFO] [stderr] Compiling tryhard v0.5.2 [INFO] [stderr] Compiling tokio-rustls v0.26.4 [INFO] [stderr] Compiling async-nats v0.45.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 50.86s [INFO] running `Command { std: "docker" "inspect" "a255fc828a8331356df15a0453b972df5b9e51b5d202c32ac1f0a438a7e55c59", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a255fc828a8331356df15a0453b972df5b9e51b5d202c32ac1f0a438a7e55c59", kill_on_drop: false }` [INFO] [stdout] a255fc828a8331356df15a0453b972df5b9e51b5d202c32ac1f0a438a7e55c59 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b3f078eb4a8a163758ba33ff5e50b2d2f6e89c673dfccab839dd35fd94826f5a [INFO] running `Command { std: "docker" "start" "-a" "b3f078eb4a8a163758ba33ff5e50b2d2f6e89c673dfccab839dd35fd94826f5a", kill_on_drop: false }` [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling openssl-sys v0.9.109 [INFO] [stderr] Compiling tracing-core v0.1.34 [INFO] [stderr] Compiling log v0.4.28 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling openssl v0.10.73 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling tokio v1.47.1 [INFO] [stderr] Compiling http v0.2.12 [INFO] [stderr] Compiling percent-encoding v2.3.2 [INFO] [stderr] Compiling bitflags v2.9.4 [INFO] [stderr] Compiling anstyle-parse v0.2.7 [INFO] [stderr] Compiling anstyle-query v1.1.4 [INFO] [stderr] Compiling colorchoice v1.0.4 [INFO] [stderr] Compiling socket2 v0.5.10 [INFO] [stderr] Compiling clap_lex v0.7.5 [INFO] [stderr] Compiling getrandom v0.3.3 [INFO] [stderr] Compiling time-macros v0.2.24 [INFO] [stderr] Compiling clap_derive v4.5.47 [INFO] [stderr] Compiling half v2.6.0 [INFO] [stderr] Compiling form_urlencoded v1.2.2 [INFO] [stderr] Compiling ahash v0.8.12 [INFO] [stderr] Compiling anstream v0.6.21 [INFO] [stderr] Compiling bit-vec v0.6.3 [INFO] [stderr] Compiling anyhow v1.0.100 [INFO] [stderr] Compiling url v2.5.7 [INFO] [stderr] Compiling rustls-pemfile v1.0.4 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling bit-set v0.5.3 [INFO] [stderr] Compiling parking_lot_core v0.9.12 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling clap_builder v4.5.48 [INFO] [stderr] Compiling ciborium-ll v0.2.2 [INFO] [stderr] Compiling encoding_rs v0.8.35 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Compiling nom v8.0.0 [INFO] [stderr] Compiling nkeys v0.4.5 [INFO] [stderr] Compiling ciborium v0.2.2 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling parking_lot v0.12.5 [INFO] [stderr] Compiling fancy-regex v0.11.0 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Compiling num-complex v0.4.6 [INFO] [stderr] Compiling plotters v0.3.7 [INFO] [stderr] Compiling tracing-log v0.2.0 [INFO] [stderr] Compiling tinytemplate v1.2.1 [INFO] [stderr] Compiling http-body v0.4.6 [INFO] [stderr] Compiling num-bigint v0.4.6 [INFO] [stderr] Compiling num-iter v0.1.45 [INFO] [stderr] Compiling time v0.3.44 [INFO] [stderr] Compiling is-terminal v0.4.16 [INFO] [stderr] Compiling thread_local v1.1.9 [INFO] [stderr] Compiling nu-ansi-term v0.50.1 [INFO] [stderr] Compiling bytecount v0.6.9 [INFO] [stderr] Compiling num-cmp v0.1.0 [INFO] [stderr] Compiling tracing-subscriber v0.3.20 [INFO] [stderr] Compiling num-rational v0.4.2 [INFO] [stderr] Compiling num v0.4.3 [INFO] [stderr] Compiling fraction v0.13.1 [INFO] [stderr] Compiling clap v4.5.48 [INFO] [stderr] Compiling futures v0.3.31 [INFO] [stderr] Compiling iso8601 v0.6.3 [INFO] [stderr] Compiling tokio-util v0.7.16 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling tryhard v0.5.2 [INFO] [stderr] Compiling tokio-stream v0.1.17 [INFO] [stderr] Compiling tokio-rustls v0.26.4 [INFO] [stderr] Compiling criterion v0.5.1 [INFO] [stderr] Compiling h2 v0.3.27 [INFO] [stderr] Compiling async-nats v0.45.0 (/opt/rustwide/workdir) [INFO] [stderr] Compiling hyper v0.14.32 [INFO] [stderr] Compiling hyper-tls v0.5.0 [INFO] [stderr] Compiling reqwest v0.11.27 [INFO] [stderr] Compiling jsonschema v0.17.1 [INFO] [stdout] warning: unused import: `ServerAddr` [INFO] [stdout] --> examples/reconnect_callback_example.rs:25:34 [INFO] [stdout] | [INFO] [stdout] 25 | use async_nats::{ConnectOptions, ServerAddr}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] --> tests/tls_tests.rs:21:22 [INFO] [stdout] | [INFO] [stdout] 21 | let server = nats_server::run_server("tests/configs/tls.conf"); [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `nats_server`, use `cargo add nats_server` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/tls_tests.rs:24:17 [INFO] [stdout] | [INFO] [stdout] 24 | assert!(async_nats::connect(&server.client_url()).await.is_err()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/tls_tests.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 35 | / async_nats::ConnectOptions::with_user_and_password("derek".into(), "porkchop".into()) [INFO] [stdout] 36 | | .add_root_certificates(path.join("tests/configs/certs/rootCA.pem")) [INFO] [stdout] 37 | | .add_client_certificate( [INFO] [stdout] 38 | | path.join("tests/configs/certs/client-cert.pem"), [INFO] [stdout] ... | [INFO] [stdout] 42 | | .connect(server.client_url()) [INFO] [stdout] 43 | | .await [INFO] [stdout] | |__________________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] --> tests/tls_tests.rs:49:22 [INFO] [stdout] | [INFO] [stdout] 49 | let server = nats_server::run_server("tests/configs/ip-tls.conf"); [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `nats_server`, use `cargo add nats_server` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `reconnect_server_callback` found for struct `ConnectOptions` in the current scope [INFO] [stdout] --> examples/reconnect_callback_example.rs:33:10 [INFO] [stdout] | [INFO] [stdout] 32 | let client = ConnectOptions::new() [INFO] [stdout] | __________________- [INFO] [stdout] 33 | | .reconnect_server_callback(|(servers, server_info, attempt)| async move { [INFO] [stdout] | |_________-^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: there is a method `reconnect_delay_callback` with a similar name [INFO] [stdout] | [INFO] [stdout] 33 - .reconnect_server_callback(|(servers, server_info, attempt)| async move { [INFO] [stdout] 33 + .reconnect_delay_callback(|(servers, server_info, attempt)| async move { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] --> tests/tls_tests.rs:62:22 [INFO] [stdout] | [INFO] [stdout] 62 | let server = nats_server::run_server("tests/configs/tls.conf"); [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `nats_server`, use `cargo add nats_server` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/tls_tests.rs:63:17 [INFO] [stdout] | [INFO] [stdout] 63 | assert!(async_nats::connect(&server.client_url()).await.is_err()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/tls_tests.rs:65:9 [INFO] [stdout] | [INFO] [stdout] 65 | / async_nats::ConnectOptions::with_user_and_password("derek".into(), "porkchop".into()) [INFO] [stdout] 66 | | .require_tls(true) [INFO] [stdout] 67 | | .connect(server.client_url()) [INFO] [stdout] 68 | | .await [INFO] [stdout] | |__________________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] --> tests/tls_tests.rs:74:17 [INFO] [stdout] | [INFO] [stdout] 74 | let s = nats_server::run_server("tests/configs/tls.conf"); [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `nats_server`, use `cargo add nats_server` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] --> tests/nkey_tests.rs:21:17 [INFO] [stdout] | [INFO] [stdout] 21 | let s = nats_server::run_server("tests/configs/nkey.conf"); [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `nats_server`, use `cargo add nats_server` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/tls_tests.rs:78:9 [INFO] [stdout] | [INFO] [stdout] 78 | / tokio::time::timeout( [INFO] [stdout] 79 | | tokio::time::Duration::from_secs(10), [INFO] [stdout] 80 | | async_nats::ConnectOptions::with_user_and_password("derek".into(), "porkchop".into()) [INFO] [stdout] 81 | | .add_root_certificates(path.join("tests/configs/certs/client-all.pem")) [INFO] [stdout] ... | [INFO] [stdout] 89 | | .await [INFO] [stdout] | |______________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed for `(_, {type error}, _)` [INFO] [stdout] --> examples/reconnect_callback_example.rs:33:37 [INFO] [stdout] | [INFO] [stdout] 33 | .reconnect_server_callback(|(servers, server_info, attempt)| async move { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 41 | vec![servers [INFO] [stdout] | ------- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving this closure parameter an explicit type, where the placeholders `_` are specified [INFO] [stdout] | [INFO] [stdout] 33 | .reconnect_server_callback(|(servers, server_info, attempt): (_, _, _)| async move { [INFO] [stdout] | +++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> examples/reconnect_callback_example.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 32 | let client = ConnectOptions::new() [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 59 | client [INFO] [stdout] | ------ type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `client` an explicit type [INFO] [stdout] | [INFO] [stdout] 32 | let client: /* Type */ = ConnectOptions::new() [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] --> tests/tls_tests.rs:134:13 [INFO] [stdout] | [INFO] [stdout] 134 | nats_server::run_server_with_port("tests/configs/tls_first.conf", Some("9090")); [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `nats_server`, use `cargo add nats_server` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] --> tests/tls_tests.rs:171:22 [INFO] [stdout] | [INFO] [stdout] 171 | let server = nats_server::run_server("tests/configs/tls_first_auto.conf"); [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `nats_server`, use `cargo add nats_server` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/tls_tests.rs:175:9 [INFO] [stdout] | [INFO] [stdout] 175 | / async_nats::ConnectOptions::with_user_and_password("derek".into(), "porkchop".into()) [INFO] [stdout] 176 | | .add_root_certificates(path.join("tests/configs/certs/rootCA.pem")) [INFO] [stdout] 177 | | .add_client_certificate( [INFO] [stdout] 178 | | path.join("tests/configs/certs/client-cert.pem"), [INFO] [stdout] ... | [INFO] [stdout] 182 | | .connect(server.client_url()) [INFO] [stdout] 183 | | .await [INFO] [stdout] | |__________________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/tls_tests.rs:187:13 [INFO] [stdout] | [INFO] [stdout] 187 | / async_nats::ConnectOptions::with_user_and_password("derek".into(), "porkchop".into()) [INFO] [stdout] 188 | | .add_root_certificates(path.join("tests/configs/certs/rootCA.pem")) [INFO] [stdout] 189 | | .add_client_certificate( [INFO] [stdout] 190 | | path.join("tests/configs/certs/client-cert.pem"), [INFO] [stdout] ... | [INFO] [stdout] 195 | | .connect(server.client_url()) [INFO] [stdout] 196 | | .await [INFO] [stdout] | |______________________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/nkey_tests.rs:23:18 [INFO] [stdout] | [INFO] [stdout] 23 | let nc = async_nats::ConnectOptions::with_nkey(SECRET_SEED.into()) [INFO] [stdout] | __________________^ [INFO] [stdout] 24 | | .connect(s.client_url()) [INFO] [stdout] 25 | | .await [INFO] [stdout] | |__________________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/nkey_tests.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 29 | / nc.publish("hello", "world".into()) [INFO] [stdout] 30 | | .await [INFO] [stdout] | |__________________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] --> tests/nkey_tests.rs:36:17 [INFO] [stdout] | [INFO] [stdout] 36 | let s = nats_server::run_server("tests/configs/nkey.conf"); [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `nats_server`, use `cargo add nats_server` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/nkey_tests.rs:38:18 [INFO] [stdout] | [INFO] [stdout] 38 | let nc = async_nats::ConnectOptions::new() [INFO] [stdout] | __________________^ [INFO] [stdout] 39 | | .nkey(SECRET_SEED.into()) [INFO] [stdout] 40 | | .connect(s.client_url()) [INFO] [stdout] 41 | | .await [INFO] [stdout] | |__________________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/nkey_tests.rs:45:9 [INFO] [stdout] | [INFO] [stdout] 45 | / nc.publish("hello", "world".into()) [INFO] [stdout] 46 | | .await [INFO] [stdout] | |__________________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] --> tests/nkey_tests.rs:55:13 [INFO] [stdout] | [INFO] [stdout] 55 | nats_server::run_server("tests/configs/nkey.conf"), [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `nats_server`, use `cargo add nats_server` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] --> tests/nkey_tests.rs:56:13 [INFO] [stdout] | [INFO] [stdout] 56 | nats_server::run_server("tests/configs/nkey.conf"), [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `nats_server`, use `cargo add nats_server` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0282, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0282`. [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] --> tests/nkey_tests.rs:57:13 [INFO] [stdout] | [INFO] [stdout] 57 | nats_server::run_server("tests/configs/nkey.conf"), [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `nats_server`, use `cargo add nats_server` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/nkey_tests.rs:64:27 [INFO] [stdout] | [INFO] [stdout] 64 | .map(|server| server.client_url().parse::().unwrap()) [INFO] [stdout] | ^^^^^^ ------ type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving this closure parameter an explicit type [INFO] [stdout] | [INFO] [stdout] 64 | .map(|server: /* Type */| server.client_url().parse::().unwrap()) [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/nkey_tests.rs:60:22 [INFO] [stdout] | [INFO] [stdout] 60 | let client = async_nats::ConnectOptions::with_nkey(SECRET_SEED.into()) [INFO] [stdout] | ______________________^ [INFO] [stdout] 61 | | .connect( [INFO] [stdout] 62 | | servers [INFO] [stdout] 63 | | .iter() [INFO] [stdout] ... | [INFO] [stdout] 68 | | .await [INFO] [stdout] | |__________________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/nkey_tests.rs:71:30 [INFO] [stdout] | [INFO] [stdout] 71 | let mut subscriber = client.subscribe("test").await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/nkey_tests.rs:73:13 [INFO] [stdout] | [INFO] [stdout] 73 | client.publish("test", "data".into()).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/nkey_tests.rs:74:13 [INFO] [stdout] | [INFO] [stdout] 74 | client.flush().await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/nkey_tests.rs:75:21 [INFO] [stdout] | [INFO] [stdout] 75 | assert!(subscriber.next().await.is_some()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0282, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0282`. [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0282, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0282`. [INFO] [stdout] [INFO] [stderr] error: could not compile `async-nats` (example "reconnect_callback_example") due to 3 previous errors; 1 warning emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `async-nats` (test "nkey_tests") due to 15 previous errors [INFO] [stderr] error: could not compile `async-nats` (test "tls_tests") due to 13 previous errors [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] --> tests/service_tests.rs:25:22 [INFO] [stdout] | [INFO] [stdout] 25 | let server = nats_server::run_basic_server(); [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `nats_server`, use `cargo add nats_server` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] --> examples/pull_heartbeat_test.rs:9:18 [INFO] [stdout] | [INFO] [stdout] 9 | let server = nats_server::run_server("tests/configs/jetstream.conf"); [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `nats_server`, use `cargo add nats_server` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] --> tests/jwt_tests.rs:20:17 [INFO] [stdout] | [INFO] [stdout] 20 | let s = nats_server::run_server("tests/configs/jwt.conf"); [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `nats_server`, use `cargo add nats_server` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/jwt_tests.rs:23:18 [INFO] [stdout] | [INFO] [stdout] 23 | let nc = async_nats::ConnectOptions::with_credentials_file( [INFO] [stdout] | __________________^ [INFO] [stdout] 24 | | path.join("tests/configs/TestUser.creds"), [INFO] [stdout] 25 | | ) [INFO] [stdout] 26 | | .await [INFO] [stdout] 27 | | .expect("loaded user creds file") [INFO] [stdout] 28 | | .connect(s.client_url()) [INFO] [stdout] 29 | | .await [INFO] [stdout] | |______________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/service_tests.rs:26:22 [INFO] [stdout] | [INFO] [stdout] 26 | let client = async_nats::connect(server.client_url()).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/service_tests.rs:28:24 [INFO] [stdout] | [INFO] [stdout] 28 | let err_kind = client [INFO] [stdout] | ________________________^ [INFO] [stdout] 29 | | .service_builder() [INFO] [stdout] 30 | | .start("serviceA", "1.0.0.1") [INFO] [stdout] 31 | | .await [INFO] [stdout] | |__________________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/jwt_tests.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 33 | / nc.publish("hello", "world".into()) [INFO] [stdout] 34 | | .await [INFO] [stdout] | |__________________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/service_tests.rs:39:24 [INFO] [stdout] | [INFO] [stdout] 39 | let err_kind = client [INFO] [stdout] | ________________________^ [INFO] [stdout] 40 | | .service_builder() [INFO] [stdout] 41 | | .start("serviceB", "beta-1.0.0") [INFO] [stdout] 42 | | .await [INFO] [stdout] | |__________________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> examples/pull_heartbeat_test.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | let client = async_nats::connect(&server_url).await?; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 14 | let jetstream = async_nats::jetstream::new(client.clone()); [INFO] [stdout] | ------ type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `client` an explicit type [INFO] [stdout] | [INFO] [stdout] 13 | let client: /* Type */ = async_nats::connect(&server_url).await?; [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/service_tests.rs:50:24 [INFO] [stdout] | [INFO] [stdout] 50 | let err_kind = client [INFO] [stdout] | ________________________^ [INFO] [stdout] 51 | | .add_service(async_nats::service::Config { [INFO] [stdout] 52 | | name: "service.B".into(), [INFO] [stdout] 53 | | description: None, [INFO] [stdout] ... | [INFO] [stdout] 58 | | }) [INFO] [stdout] 59 | | .await [INFO] [stdout] | |__________________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] --> tests/jwt_tests.rs:40:17 [INFO] [stdout] | [INFO] [stdout] 40 | let s = nats_server::run_server("tests/configs/jwt.conf"); [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `nats_server`, use `cargo add nats_server` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/jwt_tests.rs:43:18 [INFO] [stdout] | [INFO] [stdout] 43 | let nc = async_nats::ConnectOptions::new() [INFO] [stdout] | __________________^ [INFO] [stdout] 44 | | .credentials_file(path.join("tests/configs/TestUser.creds")) [INFO] [stdout] 45 | | .await [INFO] [stdout] 46 | | .expect("loaded user creds file") [INFO] [stdout] 47 | | .connect(s.client_url()) [INFO] [stdout] 48 | | .await [INFO] [stdout] | |__________________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/jwt_tests.rs:52:9 [INFO] [stdout] | [INFO] [stdout] 52 | / nc.publish("hello", "world".into()) [INFO] [stdout] 53 | | .await [INFO] [stdout] | |__________________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] --> tests/jwt_tests.rs:63:13 [INFO] [stdout] | [INFO] [stdout] 63 | nats_server::run_server("tests/configs/jwt.conf"), [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `nats_server`, use `cargo add nats_server` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] --> tests/jwt_tests.rs:64:13 [INFO] [stdout] | [INFO] [stdout] 64 | nats_server::run_server("tests/configs/jwt.conf"), [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `nats_server`, use `cargo add nats_server` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] --> tests/jwt_tests.rs:65:13 [INFO] [stdout] | [INFO] [stdout] 65 | nats_server::run_server("tests/configs/jwt.conf"), [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `nats_server`, use `cargo add nats_server` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/jwt_tests.rs:76:23 [INFO] [stdout] | [INFO] [stdout] 76 | .map(|server| server.client_url().parse::().unwrap()) [INFO] [stdout] | ^^^^^^ ------ type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving this closure parameter an explicit type [INFO] [stdout] | [INFO] [stdout] 76 | .map(|server: /* Type */| server.client_url().parse::().unwrap()) [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/service_tests.rs:67:24 [INFO] [stdout] | [INFO] [stdout] 67 | let err_kind = client [INFO] [stdout] | ________________________^ [INFO] [stdout] 68 | | .add_service(async_nats::service::Config { [INFO] [stdout] 69 | | name: "service B".into(), [INFO] [stdout] 70 | | description: None, [INFO] [stdout] ... | [INFO] [stdout] 75 | | }) [INFO] [stdout] 76 | | .await [INFO] [stdout] | |__________________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/jwt_tests.rs:68:22 [INFO] [stdout] | [INFO] [stdout] 68 | let client = async_nats::ConnectOptions::with_credentials_file( [INFO] [stdout] | ______________________^ [INFO] [stdout] 69 | | path.join("tests/configs/TestUser.creds"), [INFO] [stdout] 70 | | ) [INFO] [stdout] 71 | | .await [INFO] [stdout] ... | [INFO] [stdout] 80 | | .await [INFO] [stdout] | |______________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/jwt_tests.rs:83:30 [INFO] [stdout] | [INFO] [stdout] 83 | let mut subscriber = client.subscribe("test").await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/jwt_tests.rs:85:13 [INFO] [stdout] | [INFO] [stdout] 85 | client.publish("test", "data".into()).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/jwt_tests.rs:86:13 [INFO] [stdout] | [INFO] [stdout] 86 | client.flush().await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/jwt_tests.rs:87:21 [INFO] [stdout] | [INFO] [stdout] 87 | assert!(subscriber.next().await.is_some()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] --> tests/kv_tests.rs:30:22 [INFO] [stdout] | [INFO] [stdout] 30 | let server = nats_server::run_server("tests/configs/jetstream.conf"); [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `nats_server`, use `cargo add nats_server` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] --> tests/service_tests.rs:86:22 [INFO] [stdout] | [INFO] [stdout] 86 | let server = nats_server::run_basic_server(); [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `nats_server`, use `cargo add nats_server` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/service_tests.rs:87:22 [INFO] [stdout] | [INFO] [stdout] 87 | let client = async_nats::connect(server.client_url()).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0282, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0282`. [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/kv_tests.rs:31:22 [INFO] [stdout] | [INFO] [stdout] 31 | let client = ConnectOptions::new() [INFO] [stdout] | ______________________^ [INFO] [stdout] 32 | | .event_callback(|event| async move { println!("event: {event:?}") }) [INFO] [stdout] 33 | | .connect(server.client_url()) [INFO] [stdout] 34 | | .await [INFO] [stdout] | |__________________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/service_tests.rs:94:9 [INFO] [stdout] | [INFO] [stdout] 94 | / client [INFO] [stdout] 95 | | .service_builder() [INFO] [stdout] 96 | | .metadata(metadata.clone()) [INFO] [stdout] 97 | | .start("serviceA", "1.0.0") [INFO] [stdout] 98 | | .await [INFO] [stdout] | |__________________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/service_tests.rs:94:9 [INFO] [stdout] | [INFO] [stdout] 94 | / client [INFO] [stdout] 95 | | .service_builder() [INFO] [stdout] 96 | | .metadata(metadata.clone()) [INFO] [stdout] 97 | | .start("serviceA", "1.0.0") [INFO] [stdout] ... | [INFO] [stdout] 103 | | .add("products") [INFO] [stdout] 104 | | .await [INFO] [stdout] | |__________________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/service_tests.rs:108:25 [INFO] [stdout] | [INFO] [stdout] 108 | let mut infos = client.subscribe(info_reply.to_owned()).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/service_tests.rs:109:9 [INFO] [stdout] | [INFO] [stdout] 109 | / client [INFO] [stdout] 110 | | .publish_with_reply("$SRV.INFO", info_reply, "".into()) [INFO] [stdout] 111 | | .await [INFO] [stdout] | |__________________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/service_tests.rs:113:24 [INFO] [stdout] | [INFO] [stdout] 113 | let mut info = infos [INFO] [stdout] | ________________________^ [INFO] [stdout] 114 | | .next() [INFO] [stdout] 115 | | .await [INFO] [stdout] | |__________________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `async-nats` (test "jwt_tests") due to 15 previous errors [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] --> tests/service_tests.rs:126:22 [INFO] [stdout] | [INFO] [stdout] 126 | let server = nats_server::run_basic_server(); [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `nats_server`, use `cargo add nats_server` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/service_tests.rs:127:22 [INFO] [stdout] | [INFO] [stdout] 127 | let client = async_nats::connect(server.client_url()).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/service_tests.rs:128:9 [INFO] [stdout] | [INFO] [stdout] 128 | / client [INFO] [stdout] 129 | | .add_service(async_nats::service::Config { [INFO] [stdout] 130 | | name: "serviceA".into(), [INFO] [stdout] 131 | | description: None, [INFO] [stdout] ... | [INFO] [stdout] 136 | | }) [INFO] [stdout] 137 | | .await [INFO] [stdout] | |__________________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/service_tests.rs:140:9 [INFO] [stdout] | [INFO] [stdout] 140 | / client [INFO] [stdout] 141 | | .add_service(async_nats::service::Config { [INFO] [stdout] 142 | | name: "serviceB".into(), [INFO] [stdout] 143 | | description: None, [INFO] [stdout] ... | [INFO] [stdout] 148 | | }) [INFO] [stdout] 149 | | .await [INFO] [stdout] | |__________________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/service_tests.rs:153:29 [INFO] [stdout] | [INFO] [stdout] 153 | let mut responses = client.subscribe(reply.to_owned()).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] --> tests/kv_tests.rs:58:22 [INFO] [stdout] | [INFO] [stdout] 58 | let server = nats_server::run_server("tests/configs/jetstream.conf"); [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `nats_server`, use `cargo add nats_server` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/kv_tests.rs:59:22 [INFO] [stdout] | [INFO] [stdout] 59 | let client = ConnectOptions::new() [INFO] [stdout] | ______________________^ [INFO] [stdout] 60 | | .event_callback(|event| async move { println!("event: {event:?}") }) [INFO] [stdout] 61 | | .connect(server.client_url()) [INFO] [stdout] 62 | | .await [INFO] [stdout] | |__________________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/service_tests.rs:154:9 [INFO] [stdout] | [INFO] [stdout] 154 | / client [INFO] [stdout] 155 | | .publish_with_reply("$SRV.PING", reply, "".into()) [INFO] [stdout] 156 | | .await [INFO] [stdout] | |__________________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/service_tests.rs:158:9 [INFO] [stdout] | [INFO] [stdout] 158 | responses.next().await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/service_tests.rs:159:9 [INFO] [stdout] | [INFO] [stdout] 159 | responses.next().await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] --> tests/service_tests.rs:164:22 [INFO] [stdout] | [INFO] [stdout] 164 | let server = nats_server::run_basic_server(); [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `nats_server`, use `cargo add nats_server` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/service_tests.rs:165:22 [INFO] [stdout] | [INFO] [stdout] 165 | let client = async_nats::connect(server.client_url()).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/service_tests.rs:167:23 [INFO] [stdout] | [INFO] [stdout] 167 | let service = client [INFO] [stdout] | _______________________^ [INFO] [stdout] 168 | | .add_service(async_nats::service::Config { [INFO] [stdout] 169 | | name: "serviceA".to_string(), [INFO] [stdout] 170 | | version: "1.0.0".to_string(), [INFO] [stdout] ... | [INFO] [stdout] 175 | | }) [INFO] [stdout] 176 | | .await [INFO] [stdout] | |__________________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] --> tests/kv_tests.rs:97:22 [INFO] [stdout] | [INFO] [stdout] 97 | let server = nats_server::run_server("tests/configs/jetstream.conf"); [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `nats_server`, use `cargo add nats_server` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/kv_tests.rs:98:22 [INFO] [stdout] | [INFO] [stdout] 98 | let client = ConnectOptions::new() [INFO] [stdout] | ______________________^ [INFO] [stdout] 99 | | .event_callback(|event| async move { println!("event: {event:?}") }) [INFO] [stdout] 100 | | .connect(server.client_url()) [INFO] [stdout] 101 | | .await [INFO] [stdout] | |__________________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] --> tests/kv_tests.rs:129:22 [INFO] [stdout] | [INFO] [stdout] 129 | let server = nats_server::run_server("tests/configs/jetstream.conf"); [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `nats_server`, use `cargo add nats_server` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/service_tests.rs:179:28 [INFO] [stdout] | [INFO] [stdout] 179 | let mut products = service.endpoint("products").await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/kv_tests.rs:130:22 [INFO] [stdout] | [INFO] [stdout] 130 | let client = ConnectOptions::new() [INFO] [stdout] | ______________________^ [INFO] [stdout] 131 | | .event_callback(|event| async move { println!("event: {event:?}") }) [INFO] [stdout] 132 | | .connect(server.client_url()) [INFO] [stdout] 133 | | .await [INFO] [stdout] | |__________________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/service_tests.rs:181:29 [INFO] [stdout] | [INFO] [stdout] 181 | let mut responses = client.subscribe(reply.to_owned()).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/service_tests.rs:182:9 [INFO] [stdout] | [INFO] [stdout] 182 | / client [INFO] [stdout] 183 | | .publish_with_reply("products", reply.to_owned(), "data".into()) [INFO] [stdout] 184 | | .await [INFO] [stdout] | |__________________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/service_tests.rs:186:23 [INFO] [stdout] | [INFO] [stdout] 186 | let request = products.next().await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/service_tests.rs:187:9 [INFO] [stdout] | [INFO] [stdout] 187 | request.respond(Ok("response".into())).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/service_tests.rs:188:9 [INFO] [stdout] | [INFO] [stdout] 188 | responses.next().await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/service_tests.rs:191:29 [INFO] [stdout] | [INFO] [stdout] 191 | let mut v2product = v2.endpoint("products").await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/service_tests.rs:192:9 [INFO] [stdout] | [INFO] [stdout] 192 | / client [INFO] [stdout] 193 | | .publish_with_reply("v2.products", reply, "data".into()) [INFO] [stdout] 194 | | .await [INFO] [stdout] | |__________________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/service_tests.rs:196:23 [INFO] [stdout] | [INFO] [stdout] 196 | let request = v2product.next().await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/service_tests.rs:197:9 [INFO] [stdout] | [INFO] [stdout] 197 | request.respond(Ok("v2".into())).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/service_tests.rs:198:23 [INFO] [stdout] | [INFO] [stdout] 198 | let message = responses.next().await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] --> tests/kv_tests.rs:163:22 [INFO] [stdout] | [INFO] [stdout] 163 | let server = nats_server::run_server("tests/configs/jetstream.conf"); [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `nats_server`, use `cargo add nats_server` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/kv_tests.rs:164:22 [INFO] [stdout] | [INFO] [stdout] 164 | let client = ConnectOptions::new() [INFO] [stdout] | ______________________^ [INFO] [stdout] 165 | | .event_callback(|event| async move { println!("event: {event:?}") }) [INFO] [stdout] 166 | | .connect(server.client_url()) [INFO] [stdout] 167 | | .await [INFO] [stdout] | |__________________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] --> tests/service_tests.rs:204:22 [INFO] [stdout] | [INFO] [stdout] 204 | let server = nats_server::run_basic_server(); [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `nats_server`, use `cargo add nats_server` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/service_tests.rs:205:22 [INFO] [stdout] | [INFO] [stdout] 205 | let client = async_nats::connect(server.client_url()).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/service_tests.rs:207:23 [INFO] [stdout] | [INFO] [stdout] 207 | let service = client [INFO] [stdout] | _______________________^ [INFO] [stdout] 208 | | .add_service(async_nats::service::Config { [INFO] [stdout] 209 | | name: "serviceA".to_string(), [INFO] [stdout] 210 | | version: "1.0.0".to_string(), [INFO] [stdout] ... | [INFO] [stdout] 215 | | }) [INFO] [stdout] 216 | | .await [INFO] [stdout] | |__________________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/service_tests.rs:219:28 [INFO] [stdout] | [INFO] [stdout] 219 | let mut endpoint = service.endpoint("products").await.unwrap().take(3); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/service_tests.rs:221:28 [INFO] [stdout] | [INFO] [stdout] 221 | let mut response = client.subscribe(reply.to_owned()).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/service_tests.rs:222:9 [INFO] [stdout] | [INFO] [stdout] 222 | / client [INFO] [stdout] 223 | | .publish_with_reply("products", reply.to_owned(), "data".into()) [INFO] [stdout] 224 | | .await [INFO] [stdout] | |__________________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/service_tests.rs:226:9 [INFO] [stdout] | [INFO] [stdout] 226 | / client [INFO] [stdout] 227 | | .publish_with_reply("products", reply.to_owned(), "data".into()) [INFO] [stdout] 228 | | .await [INFO] [stdout] | |__________________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/service_tests.rs:230:9 [INFO] [stdout] | [INFO] [stdout] 230 | / client [INFO] [stdout] 231 | | .publish_with_reply("products", reply.to_owned(), "data".into()) [INFO] [stdout] 232 | | .await [INFO] [stdout] | |__________________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/service_tests.rs:234:9 [INFO] [stdout] | [INFO] [stdout] 234 | / client [INFO] [stdout] 235 | | .publish_with_reply("products", reply.to_owned(), "data".into()) [INFO] [stdout] 236 | | .await [INFO] [stdout] | |__________________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/service_tests.rs:238:9 [INFO] [stdout] | [INFO] [stdout] 238 | client.flush().await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/service_tests.rs:242:13 [INFO] [stdout] | [INFO] [stdout] 242 | request.respond(Ok("data".into())).await.unwrap(); [INFO] [stdout] | ^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/service_tests.rs:242:13 [INFO] [stdout] | [INFO] [stdout] 242 | request.respond(Ok("data".into())).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] --> tests/kv_tests.rs:226:22 [INFO] [stdout] | [INFO] [stdout] 226 | let server = nats_server::run_server("tests/configs/jetstream.conf"); [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `nats_server`, use `cargo add nats_server` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/service_tests.rs:248:13 [INFO] [stdout] | [INFO] [stdout] 248 | request [INFO] [stdout] | ^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/service_tests.rs:248:13 [INFO] [stdout] | [INFO] [stdout] 248 | / request [INFO] [stdout] 249 | | .respond(Err(async_nats::service::error::Error { [INFO] [stdout] 250 | | code: 503, [INFO] [stdout] 251 | | status: "error".into(), [INFO] [stdout] 252 | | })) [INFO] [stdout] 253 | | .await [INFO] [stdout] | |______________________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/kv_tests.rs:227:22 [INFO] [stdout] | [INFO] [stdout] 227 | let client = ConnectOptions::new() [INFO] [stdout] | ______________________^ [INFO] [stdout] 228 | | .event_callback(|event| async move { println!("event: {event:?}") }) [INFO] [stdout] 229 | | .connect(server.client_url()) [INFO] [stdout] 230 | | .await [INFO] [stdout] | |__________________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/service_tests.rs:257:20 [INFO] [stdout] | [INFO] [stdout] 257 | let info = client [INFO] [stdout] | ____________________^ [INFO] [stdout] 258 | | .request("$SRV.INFO.serviceA", "".into()) [INFO] [stdout] 259 | | .await [INFO] [stdout] | |__________________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/service_tests.rs:266:21 [INFO] [stdout] | [INFO] [stdout] 266 | let stats = client [INFO] [stdout] | _____________________^ [INFO] [stdout] 267 | | .request("$SRV.STATS", "".into()) [INFO] [stdout] 268 | | .await [INFO] [stdout] | |__________________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/service_tests.rs:282:17 [INFO] [stdout] | [INFO] [stdout] 282 | assert!(service [INFO] [stdout] | _________________^ [INFO] [stdout] 283 | | .stats() [INFO] [stdout] 284 | | .await [INFO] [stdout] | |__________________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/service_tests.rs:290:9 [INFO] [stdout] | [INFO] [stdout] 290 | service.stop().await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/service_tests.rs:292:17 [INFO] [stdout] | [INFO] [stdout] 292 | assert!(response.next().await.is_some()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/service_tests.rs:293:17 [INFO] [stdout] | [INFO] [stdout] 293 | assert!(response.next().await.is_some()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/service_tests.rs:294:17 [INFO] [stdout] | [INFO] [stdout] 294 | assert!(response.next().await.is_some()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] --> tests/kv_tests.rs:262:22 [INFO] [stdout] | [INFO] [stdout] 262 | let server = nats_server::run_server("tests/configs/jetstream.conf"); [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `nats_server`, use `cargo add nats_server` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/kv_tests.rs:263:22 [INFO] [stdout] | [INFO] [stdout] 263 | let client = ConnectOptions::new() [INFO] [stdout] | ______________________^ [INFO] [stdout] 264 | | .event_callback(|event| async move { println!("event: {event:?}") }) [INFO] [stdout] 265 | | .connect(server.client_url()) [INFO] [stdout] 266 | | .await [INFO] [stdout] | |__________________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/service_tests.rs:295:30 [INFO] [stdout] | [INFO] [stdout] 295 | let error_response = response.next().await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/service_tests.rs:319:9 [INFO] [stdout] | [INFO] [stdout] 319 | client.request("$SRV.PING", "".into()).await.unwrap_err(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] --> tests/client_tests.rs:34:22 [INFO] [stdout] | [INFO] [stdout] 34 | let server = nats_server::run_basic_server(); [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `nats_server`, use `cargo add nats_server` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] --> tests/service_tests.rs:324:22 [INFO] [stdout] | [INFO] [stdout] 324 | let server = nats_server::run_basic_server(); [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `nats_server`, use `cargo add nats_server` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/service_tests.rs:325:22 [INFO] [stdout] | [INFO] [stdout] 325 | let client = async_nats::connect(server.client_url()).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/service_tests.rs:327:41 [INFO] [stdout] | [INFO] [stdout] 327 | let service_with_custom_queue = client [INFO] [stdout] | _________________________________________^ [INFO] [stdout] 328 | | .service_builder() [INFO] [stdout] 329 | | .queue_group("custom") [INFO] [stdout] 330 | | .start("custom", "1.0.0") [INFO] [stdout] 331 | | .await [INFO] [stdout] | |__________________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/service_tests.rs:334:28 [INFO] [stdout] | [INFO] [stdout] 334 | let mut endpoint = service_with_custom_queue.endpoint("data").await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] --> examples/pull_heartbeat_test.rs:74:19 [INFO] [stdout] | [INFO] [stdout] 74 | let _server = nats_server::run_server("tests/configs/jetstream.conf"); [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `nats_server`, use `cargo add nats_server` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:36:22 [INFO] [stdout] | [INFO] [stdout] 36 | let client = async_nats::ConnectOptions::new() [INFO] [stdout] | ______________________^ [INFO] [stdout] 37 | | .event_callback(move |event| { [INFO] [stdout] 38 | | let dctx = dctx.clone(); [INFO] [stdout] 39 | | let rctx = rctx.clone(); [INFO] [stdout] ... | [INFO] [stdout] 48 | | .connect(server.client_url()) [INFO] [stdout] 49 | | .await [INFO] [stdout] | |__________________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:52:23 [INFO] [stdout] | [INFO] [stdout] 52 | let mut sub = client.subscribe("foo").await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] --> tests/kv_tests.rs:301:22 [INFO] [stdout] | [INFO] [stdout] 301 | let server = nats_server::run_server("tests/configs/jetstream.conf"); [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `nats_server`, use `cargo add nats_server` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/service_tests.rs:337:17 [INFO] [stdout] | [INFO] [stdout] 337 | request.respond(Ok("ok".into())).await.unwrap(); [INFO] [stdout] | ^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/service_tests.rs:337:17 [INFO] [stdout] | [INFO] [stdout] 337 | request.respond(Ok("ok".into())).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/service_tests.rs:342:14 [INFO] [stdout] | [INFO] [stdout] 342 | &client [INFO] [stdout] | ______________^ [INFO] [stdout] 343 | | .request("$SRV.STATS", "".into()) [INFO] [stdout] 344 | | .await [INFO] [stdout] | |______________________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/kv_tests.rs:302:22 [INFO] [stdout] | [INFO] [stdout] 302 | let client = ConnectOptions::new() [INFO] [stdout] | ______________________^ [INFO] [stdout] 303 | | .event_callback(|event| async move { println!("event: {event:?}") }) [INFO] [stdout] 304 | | .connect(server.client_url()) [INFO] [stdout] 305 | | .await [INFO] [stdout] | |__________________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:55:9 [INFO] [stdout] | [INFO] [stdout] 55 | client.publish("test", "data".into()).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:56:9 [INFO] [stdout] | [INFO] [stdout] 56 | client.force_reconnect().await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/service_tests.rs:352:32 [INFO] [stdout] | [INFO] [stdout] 352 | let standard_service = client [INFO] [stdout] | ________________________________^ [INFO] [stdout] 353 | | .service_builder() [INFO] [stdout] 354 | | .start("custom", "1.0.0") [INFO] [stdout] 355 | | .await [INFO] [stdout] | |__________________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/service_tests.rs:358:37 [INFO] [stdout] | [INFO] [stdout] 358 | let mut standard_endpoint = standard_service.endpoint("data").await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/service_tests.rs:361:17 [INFO] [stdout] | [INFO] [stdout] 361 | request.respond(Ok("ok".into())).await.unwrap(); [INFO] [stdout] | ^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/service_tests.rs:361:17 [INFO] [stdout] | [INFO] [stdout] 361 | request.respond(Ok("ok".into())).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:69:9 [INFO] [stdout] | [INFO] [stdout] 69 | client.publish("foo", "data".into()).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:71:9 [INFO] [stdout] | [INFO] [stdout] 71 | / tokio::time::timeout(Duration::from_secs(5), sub.next()) [INFO] [stdout] 72 | | .await [INFO] [stdout] | |__________________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/service_tests.rs:368:25 [INFO] [stdout] | [INFO] [stdout] 368 | let responses = client.subscribe(reply_subject.to_owned()).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] --> tests/client_tests.rs:79:22 [INFO] [stdout] | [INFO] [stdout] 79 | let server = nats_server::run_basic_server(); [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `nats_server`, use `cargo add nats_server` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/service_tests.rs:369:9 [INFO] [stdout] | [INFO] [stdout] 369 | / client [INFO] [stdout] 370 | | .publish_with_reply("data", reply_subject, "request".into()) [INFO] [stdout] 371 | | .await [INFO] [stdout] | |__________________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:80:22 [INFO] [stdout] | [INFO] [stdout] 80 | let client = async_nats::connect(server.client_url()).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:82:30 [INFO] [stdout] | [INFO] [stdout] 82 | let mut subscriber = client.subscribe("foo").await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:85:13 [INFO] [stdout] | [INFO] [stdout] 85 | client.publish("foo", "data".into()).await.unwrap() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:87:9 [INFO] [stdout] | [INFO] [stdout] 87 | client.flush().await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:90:15 [INFO] [stdout] | [INFO] [stdout] 90 | while tokio::time::timeout(tokio::time::Duration::from_millis(500), subscriber.next()) [INFO] [stdout] | _______________^ [INFO] [stdout] 91 | | .await [INFO] [stdout] | |__________________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] --> tests/kv_tests.rs:350:22 [INFO] [stdout] | [INFO] [stdout] 350 | let server = nats_server::run_server("tests/configs/jetstream.conf"); [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `nats_server`, use `cargo add nats_server` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/kv_tests.rs:351:22 [INFO] [stdout] | [INFO] [stdout] 351 | let client = ConnectOptions::new() [INFO] [stdout] | ______________________^ [INFO] [stdout] 352 | | .event_callback(|event| async move { println!("event: {event:?}") }) [INFO] [stdout] 353 | | .connect(server.client_url()) [INFO] [stdout] 354 | | .await [INFO] [stdout] | |__________________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] --> tests/kv_tests.rs:390:22 [INFO] [stdout] | [INFO] [stdout] 390 | let server = nats_server::run_server("tests/configs/jetstream.conf"); [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `nats_server`, use `cargo add nats_server` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/kv_tests.rs:391:22 [INFO] [stdout] | [INFO] [stdout] 391 | let client = ConnectOptions::new() [INFO] [stdout] | ______________________^ [INFO] [stdout] 392 | | .event_callback(|event| async move { println!("event: {event:?}") }) [INFO] [stdout] 393 | | .connect(server.client_url()) [INFO] [stdout] 394 | | .await [INFO] [stdout] | |__________________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] --> tests/kv_tests.rs:440:22 [INFO] [stdout] | [INFO] [stdout] 440 | let server = nats_server::run_server("tests/configs/jetstream.conf"); [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `nats_server`, use `cargo add nats_server` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/kv_tests.rs:441:22 [INFO] [stdout] | [INFO] [stdout] 441 | let client = ConnectOptions::new() [INFO] [stdout] | ______________________^ [INFO] [stdout] 442 | | .event_callback(|event| async move { println!("event: {event:?}") }) [INFO] [stdout] 443 | | .connect(server.client_url()) [INFO] [stdout] 444 | | .await [INFO] [stdout] | |__________________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/service_tests.rs:378:28 [INFO] [stdout] | [INFO] [stdout] 378 | let mut endpoint = group_1.endpoint("grouped").await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/service_tests.rs:381:17 [INFO] [stdout] | [INFO] [stdout] 381 | request.respond(Ok("ok".into())).await.unwrap(); [INFO] [stdout] | ^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/service_tests.rs:381:17 [INFO] [stdout] | [INFO] [stdout] 381 | request.respond(Ok("ok".into())).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/service_tests.rs:386:28 [INFO] [stdout] | [INFO] [stdout] 386 | let mut endpoint = group_2.endpoint("grouped").await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] --> tests/kv_tests.rs:478:22 [INFO] [stdout] | [INFO] [stdout] 478 | let server = nats_server::run_server("tests/configs/jetstream.conf"); [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `nats_server`, use `cargo add nats_server` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/kv_tests.rs:479:22 [INFO] [stdout] | [INFO] [stdout] 479 | let client = ConnectOptions::new() [INFO] [stdout] | ______________________^ [INFO] [stdout] 480 | | .event_callback(|event| async move { println!("event: {event:?}") }) [INFO] [stdout] 481 | | .connect(server.client_url()) [INFO] [stdout] 482 | | .await [INFO] [stdout] | |__________________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/service_tests.rs:389:17 [INFO] [stdout] | [INFO] [stdout] 389 | request.respond(Ok("ok".into())).await.unwrap(); [INFO] [stdout] | ^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/kv_tests.rs:502:9 [INFO] [stdout] | [INFO] [stdout] 502 | client.flush().await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/service_tests.rs:389:17 [INFO] [stdout] | [INFO] [stdout] 389 | request.respond(Ok("ok".into())).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/service_tests.rs:393:13 [INFO] [stdout] | [INFO] [stdout] 393 | let standard_service_stats = standard_service.stats().await; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 394 | assert_eq!( [INFO] [stdout] 395 | standard_service_stats [INFO] [stdout] | ---------------------- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `standard_service_stats` an explicit type [INFO] [stdout] | [INFO] [stdout] 393 | let standard_service_stats: /* Type */ = standard_service.stats().await; [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/service_tests.rs:401:13 [INFO] [stdout] | [INFO] [stdout] 401 | let custom_service_stats = service_with_custom_queue.stats().await; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 402 | assert_eq!( [INFO] [stdout] 403 | custom_service_stats [INFO] [stdout] | -------------------- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `custom_service_stats` an explicit type [INFO] [stdout] | [INFO] [stdout] 401 | let custom_service_stats: /* Type */ = service_with_custom_queue.stats().await; [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/service_tests.rs:412:25 [INFO] [stdout] | [INFO] [stdout] 412 | let responses = client.subscribe(reply_subject.to_owned()).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/service_tests.rs:413:9 [INFO] [stdout] | [INFO] [stdout] 413 | / client [INFO] [stdout] 414 | | .publish_with_reply("group.grouped", reply_subject, "request".into()) [INFO] [stdout] 415 | | .await [INFO] [stdout] | |__________________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/service_tests.rs:420:28 [INFO] [stdout] | [INFO] [stdout] 420 | let mut endpoint = standard_service [INFO] [stdout] | ____________________________^ [INFO] [stdout] 421 | | .endpoint_builder() [INFO] [stdout] ... | [INFO] [stdout] 425 | | .add("endpoint") [INFO] [stdout] 426 | | .await [INFO] [stdout] | |__________________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/service_tests.rs:430:17 [INFO] [stdout] | [INFO] [stdout] 430 | request.respond(Ok("ok".into())).await.unwrap(); [INFO] [stdout] | ^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/service_tests.rs:430:17 [INFO] [stdout] | [INFO] [stdout] 430 | request.respond(Ok("ok".into())).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/service_tests.rs:434:28 [INFO] [stdout] | [INFO] [stdout] 434 | let mut endpoint = service_with_custom_queue [INFO] [stdout] | ____________________________^ [INFO] [stdout] 435 | | .endpoint_builder() [INFO] [stdout] 436 | | // Override the default queue group. [INFO] [stdout] 437 | | .queue_group("endpoint_queue") [INFO] [stdout] 438 | | .add("endpoint") [INFO] [stdout] 439 | | .await [INFO] [stdout] | |__________________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/service_tests.rs:443:17 [INFO] [stdout] | [INFO] [stdout] 443 | request.respond(Ok("ok".into())).await.unwrap(); [INFO] [stdout] | ^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] --> tests/kv_tests.rs:539:22 [INFO] [stdout] | [INFO] [stdout] 539 | let server = nats_server::run_server("tests/configs/jetstream.conf"); [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `nats_server`, use `cargo add nats_server` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/kv_tests.rs:540:22 [INFO] [stdout] | [INFO] [stdout] 540 | let client = async_nats::connect(server.client_url()).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/service_tests.rs:443:17 [INFO] [stdout] | [INFO] [stdout] 443 | request.respond(Ok("ok".into())).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] --> tests/kv_tests.rs:570:22 [INFO] [stdout] | [INFO] [stdout] 570 | let server = nats_server::run_server("tests/configs/jetstream.conf"); [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `nats_server`, use `cargo add nats_server` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/kv_tests.rs:571:22 [INFO] [stdout] | [INFO] [stdout] 571 | let client = ConnectOptions::new() [INFO] [stdout] | ______________________^ [INFO] [stdout] 572 | | .connect(server.client_url()) [INFO] [stdout] 573 | | .await [INFO] [stdout] | |__________________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/service_tests.rs:448:25 [INFO] [stdout] | [INFO] [stdout] 448 | let responses = client.subscribe(reply_subject.to_owned()).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/service_tests.rs:449:9 [INFO] [stdout] | [INFO] [stdout] 449 | / client [INFO] [stdout] 450 | | .publish_with_reply("endpoint", reply_subject, "request".into()) [INFO] [stdout] 451 | | .await [INFO] [stdout] | |__________________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] --> tests/kv_tests.rs:628:22 [INFO] [stdout] | [INFO] [stdout] 628 | let server = nats_server::run_server("tests/configs/jetstream.conf"); [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `nats_server`, use `cargo add nats_server` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/kv_tests.rs:629:22 [INFO] [stdout] | [INFO] [stdout] 629 | let client = ConnectOptions::new() [INFO] [stdout] | ______________________^ [INFO] [stdout] 630 | | .connect(server.client_url()) [INFO] [stdout] 631 | | .await [INFO] [stdout] | |__________________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] --> tests/service_tests.rs:458:22 [INFO] [stdout] | [INFO] [stdout] 458 | let server = nats_server::run_basic_server(); [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `nats_server`, use `cargo add nats_server` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/service_tests.rs:459:22 [INFO] [stdout] | [INFO] [stdout] 459 | let client = async_nats::connect(server.client_url()).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/service_tests.rs:461:23 [INFO] [stdout] | [INFO] [stdout] 461 | let service = client [INFO] [stdout] | _______________________^ [INFO] [stdout] 462 | | .service_builder() [INFO] [stdout] 463 | | .start("service", "1.0.0") [INFO] [stdout] 464 | | .await [INFO] [stdout] | |__________________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/service_tests.rs:474:9 [INFO] [stdout] | [INFO] [stdout] 474 | / service [INFO] [stdout] 475 | | .endpoint_builder() [INFO] [stdout] 476 | | .name(&endpoint_info.name) [INFO] [stdout] 477 | | .metadata(endpoint_info.metadata.clone()) [INFO] [stdout] 478 | | .queue_group(&endpoint_info.queue_group) [INFO] [stdout] 479 | | .add(&endpoint_info.subject) [INFO] [stdout] 480 | | .await [INFO] [stdout] | |__________________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/service_tests.rs:484:14 [INFO] [stdout] | [INFO] [stdout] 484 | &client [INFO] [stdout] | ______________^ [INFO] [stdout] 485 | | .request("$SRV.INFO", "".into()) [INFO] [stdout] 486 | | .await [INFO] [stdout] | |______________________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] --> tests/kv_tests.rs:703:22 [INFO] [stdout] | [INFO] [stdout] 703 | let server = nats_server::run_server("tests/configs/jetstream.conf"); [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `nats_server`, use `cargo add nats_server` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] --> tests/service_tests.rs:497:22 [INFO] [stdout] | [INFO] [stdout] 497 | let server = nats_server::run_basic_server(); [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `nats_server`, use `cargo add nats_server` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0282, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0282`. [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/kv_tests.rs:704:22 [INFO] [stdout] | [INFO] [stdout] 704 | let client = ConnectOptions::new() [INFO] [stdout] | ______________________^ [INFO] [stdout] 705 | | .event_callback(|event| async move { println!("event: {event:?}") }) [INFO] [stdout] 706 | | .connect(server.client_url()) [INFO] [stdout] 707 | | .await [INFO] [stdout] | |__________________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/service_tests.rs:498:22 [INFO] [stdout] | [INFO] [stdout] 498 | let client = async_nats::connect(server.client_url()).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/service_tests.rs:501:23 [INFO] [stdout] | [INFO] [stdout] 501 | let service = client [INFO] [stdout] | _______________________^ [INFO] [stdout] 502 | | .service_builder() [INFO] [stdout] 503 | | .start("service", "1.0.0") [INFO] [stdout] 504 | | .await [INFO] [stdout] | |__________________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/service_tests.rs:506:25 [INFO] [stdout] | [INFO] [stdout] 506 | let _endpoint = service.endpoint("products").await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/service_tests.rs:508:9 [INFO] [stdout] | [INFO] [stdout] 508 | group.endpoint("productsv2").await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/service_tests.rs:509:22 [INFO] [stdout] | [INFO] [stdout] 509 | let client = async_nats::connect(server.client_url()).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/service_tests.rs:512:23 [INFO] [stdout] | [INFO] [stdout] 512 | let service = client [INFO] [stdout] | _______________________^ [INFO] [stdout] 513 | | .service_builder() [INFO] [stdout] 514 | | .start("service", "1.0.0") [INFO] [stdout] 515 | | .await [INFO] [stdout] | |__________________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/service_tests.rs:517:25 [INFO] [stdout] | [INFO] [stdout] 517 | let _endpoint = service.endpoint("products").await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/service_tests.rs:519:9 [INFO] [stdout] | [INFO] [stdout] 519 | group.endpoint("productsv2").await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] --> tests/kv_tests.rs:766:22 [INFO] [stdout] | [INFO] [stdout] 766 | let server = nats_server::run_server("tests/configs/jetstream.conf"); [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `nats_server`, use `cargo add nats_server` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/kv_tests.rs:767:22 [INFO] [stdout] | [INFO] [stdout] 767 | let client = ConnectOptions::new() [INFO] [stdout] | ______________________^ [INFO] [stdout] 768 | | .event_callback(|event| async move { println!("event: {event:?}") }) [INFO] [stdout] 769 | | .connect(server.client_url()) [INFO] [stdout] 770 | | .await [INFO] [stdout] | |__________________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] --> tests/service_tests.rs:557:22 [INFO] [stdout] | [INFO] [stdout] 557 | let server = nats_server::run_basic_server(); [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `nats_server`, use `cargo add nats_server` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/service_tests.rs:558:22 [INFO] [stdout] | [INFO] [stdout] 558 | let client = async_nats::connect(server.client_url()).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/service_tests.rs:560:23 [INFO] [stdout] | [INFO] [stdout] 560 | let service = client [INFO] [stdout] | _______________________^ [INFO] [stdout] 561 | | .service_builder() [INFO] [stdout] 562 | | .start("service", "1.0.0") [INFO] [stdout] 563 | | .await [INFO] [stdout] | |__________________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/service_tests.rs:566:28 [INFO] [stdout] | [INFO] [stdout] 566 | let mut endpoint = service.endpoint("products").await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/service_tests.rs:568:9 [INFO] [stdout] | [INFO] [stdout] 568 | service.stop().await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/service_tests.rs:569:9 [INFO] [stdout] | [INFO] [stdout] 569 | client.publish("products", "data".into()).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/service_tests.rs:570:17 [INFO] [stdout] | [INFO] [stdout] 570 | assert!(endpoint.next().await.is_none()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] --> tests/service_tests.rs:578:22 [INFO] [stdout] | [INFO] [stdout] 578 | let server = nats_server::run_basic_server(); [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `nats_server`, use `cargo add nats_server` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/service_tests.rs:579:22 [INFO] [stdout] | [INFO] [stdout] 579 | let client = async_nats::connect(server.client_url()).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] --> tests/kv_tests.rs:842:22 [INFO] [stdout] | [INFO] [stdout] 842 | let server = nats_server::run_server("tests/configs/jetstream.conf"); [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `nats_server`, use `cargo add nats_server` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/kv_tests.rs:843:22 [INFO] [stdout] | [INFO] [stdout] 843 | let client = ConnectOptions::new() [INFO] [stdout] | ______________________^ [INFO] [stdout] 844 | | .event_callback(|event| async move { println!("event: {event:?}") }) [INFO] [stdout] 845 | | .connect(server.client_url()) [INFO] [stdout] 846 | | .await [INFO] [stdout] | |__________________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `async-nats` (example "pull_heartbeat_test") due to 3 previous errors [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/service_tests.rs:581:23 [INFO] [stdout] | [INFO] [stdout] 581 | let service = client [INFO] [stdout] | _______________________^ [INFO] [stdout] 582 | | .service_builder() [INFO] [stdout] 583 | | .stats_handler(|endpoint, _| serde_json::json!({ "endpoint": endpoint })) [INFO] [stdout] 584 | | .description("a cross service") [INFO] [stdout] 585 | | .start("cross", "1.0.0") [INFO] [stdout] 586 | | .await [INFO] [stdout] | |__________________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/service_tests.rs:589:28 [INFO] [stdout] | [INFO] [stdout] 589 | let mut endpoint = service.endpoint("cross").await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] --> tests/kv_tests.rs:928:22 [INFO] [stdout] | [INFO] [stdout] 928 | let server = nats_server::run_server("tests/configs/jetstream.conf"); [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `nats_server`, use `cargo add nats_server` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/service_tests.rs:595:21 [INFO] [stdout] | [INFO] [stdout] 595 | / request [INFO] [stdout] 596 | | .respond(Err(async_nats::service::error::Error { [INFO] [stdout] 597 | | code: 503, [INFO] [stdout] 598 | | status: "empty payload".into(), [INFO] [stdout] 599 | | })) [INFO] [stdout] 600 | | .await [INFO] [stdout] | |______________________________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/service_tests.rs:604:21 [INFO] [stdout] | [INFO] [stdout] 604 | request.respond(Ok(echo)).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/kv_tests.rs:929:22 [INFO] [stdout] | [INFO] [stdout] 929 | let client = ConnectOptions::new() [INFO] [stdout] | ______________________^ [INFO] [stdout] 930 | | .event_callback(|event| async move { println!("event: {event:?}") }) [INFO] [stdout] 931 | | .connect(server.client_url()) [INFO] [stdout] 932 | | .await [INFO] [stdout] | |__________________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] --> tests/client_tests.rs:105:22 [INFO] [stdout] | [INFO] [stdout] 105 | let server = nats_server::run_basic_server(); [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `nats_server`, use `cargo add nats_server` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] --> tests/kv_tests.rs:982:22 [INFO] [stdout] | [INFO] [stdout] 982 | let server = nats_server::run_server("tests/configs/jetstream.conf"); [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `nats_server`, use `cargo add nats_server` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/kv_tests.rs:983:22 [INFO] [stdout] | [INFO] [stdout] 983 | let client = ConnectOptions::new() [INFO] [stdout] | ______________________^ [INFO] [stdout] 984 | | .connect(server.client_url()) [INFO] [stdout] 985 | | .await [INFO] [stdout] | |__________________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:110:22 [INFO] [stdout] | [INFO] [stdout] 110 | let client = async_nats::connect(server.client_url()).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:113:17 [INFO] [stdout] | [INFO] [stdout] 113 | / client [INFO] [stdout] 114 | | .queue_subscribe("qfoo", "group".into()) [INFO] [stdout] 115 | | .await [INFO] [stdout] | |__________________________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:121:13 [INFO] [stdout] | [INFO] [stdout] 121 | client.publish("qfoo", "data".into()).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:123:9 [INFO] [stdout] | [INFO] [stdout] 123 | client.flush().await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] --> tests/kv_tests.rs:1027:22 [INFO] [stdout] | [INFO] [stdout] 1027 | let server = nats_server::run_server("tests/configs/jetstream.conf"); [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `nats_server`, use `cargo add nats_server` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/kv_tests.rs:1028:22 [INFO] [stdout] | [INFO] [stdout] 1028 | let client = ConnectOptions::new() [INFO] [stdout] | ______________________^ [INFO] [stdout] 1029 | | .event_callback(|event| async move { println!("event: {event:?}") }) [INFO] [stdout] 1030 | | .connect(server.client_url()) [INFO] [stdout] 1031 | | .await [INFO] [stdout] | |__________________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] --> tests/kv_tests.rs:1124:22 [INFO] [stdout] | [INFO] [stdout] 1124 | let server = nats_server::run_server("tests/configs/jetstream.conf"); [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `nats_server`, use `cargo add nats_server` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/kv_tests.rs:1125:22 [INFO] [stdout] | [INFO] [stdout] 1125 | let client = ConnectOptions::new() [INFO] [stdout] | ______________________^ [INFO] [stdout] 1126 | | .event_callback(|event| async move { println!("event: {event:?}") }) [INFO] [stdout] 1127 | | .connect(server.client_url()) [INFO] [stdout] 1128 | | .await [INFO] [stdout] | |__________________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/kv_tests.rs:1150:29 [INFO] [stdout] | [INFO] [stdout] 1150 | let mut subscribe = client.subscribe("bar.>").await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/kv_tests.rs:1154:23 [INFO] [stdout] | [INFO] [stdout] 1154 | let message = subscribe.next().await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] --> tests/kv_tests.rs:1163:26 [INFO] [stdout] | [INFO] [stdout] 1163 | let hub_server = nats_server::run_server("tests/configs/jetstream_hub.conf"); [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `nats_server`, use `cargo add nats_server` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] --> tests/kv_tests.rs:1164:27 [INFO] [stdout] | [INFO] [stdout] 1164 | let leaf_server = nats_server::run_server("tests/configs/jetstream_leaf.conf"); [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `nats_server`, use `cargo add nats_server` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/kv_tests.rs:1166:19 [INFO] [stdout] | [INFO] [stdout] 1166 | let hub = async_nats::connect(hub_server.client_url()).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0282, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0282`. [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/kv_tests.rs:1167:20 [INFO] [stdout] | [INFO] [stdout] 1167 | let leaf = async_nats::connect(leaf_server.client_url()).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] --> tests/kv_tests.rs:1243:22 [INFO] [stdout] | [INFO] [stdout] 1243 | let server = nats_server::run_server("tests/configs/jetstream.conf"); [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `nats_server`, use `cargo add nats_server` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/kv_tests.rs:1245:22 [INFO] [stdout] | [INFO] [stdout] 1245 | let client = ConnectOptions::new() [INFO] [stdout] | ______________________^ [INFO] [stdout] 1246 | | .connect(server.client_url()) [INFO] [stdout] 1247 | | .await [INFO] [stdout] | |__________________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] --> tests/kv_tests.rs:1325:22 [INFO] [stdout] | [INFO] [stdout] 1325 | let server = nats_server::run_server("tests/configs/jetstream.conf"); [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `nats_server`, use `cargo add nats_server` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/kv_tests.rs:1326:22 [INFO] [stdout] | [INFO] [stdout] 1326 | let client = ConnectOptions::new() [INFO] [stdout] | ______________________^ [INFO] [stdout] 1327 | | .connect(server.client_url()) [INFO] [stdout] 1328 | | .await [INFO] [stdout] | |__________________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] --> tests/kv_tests.rs:1374:22 [INFO] [stdout] | [INFO] [stdout] 1374 | let server = nats_server::run_server("tests/configs/jetstream.conf"); [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `nats_server`, use `cargo add nats_server` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/kv_tests.rs:1375:22 [INFO] [stdout] | [INFO] [stdout] 1375 | let client = ConnectOptions::new() [INFO] [stdout] | ______________________^ [INFO] [stdout] 1376 | | .connect(server.client_url()) [INFO] [stdout] 1377 | | .await [INFO] [stdout] | |__________________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] --> tests/kv_tests.rs:1409:22 [INFO] [stdout] | [INFO] [stdout] 1409 | let server = nats_server::run_server("tests/configs/jetstream.conf"); [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `nats_server`, use `cargo add nats_server` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/kv_tests.rs:1410:22 [INFO] [stdout] | [INFO] [stdout] 1410 | let client = ConnectOptions::new() [INFO] [stdout] | ______________________^ [INFO] [stdout] 1411 | | .connect(server.client_url()) [INFO] [stdout] 1412 | | .await [INFO] [stdout] | |__________________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `async-nats` (test "service_tests") due to 116 previous errors [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] --> tests/kv_tests.rs:1450:22 [INFO] [stdout] | [INFO] [stdout] 1450 | let server = nats_server::run_server("tests/configs/jetstream.conf"); [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `nats_server`, use `cargo add nats_server` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/kv_tests.rs:1451:22 [INFO] [stdout] | [INFO] [stdout] 1451 | let client = ConnectOptions::new() [INFO] [stdout] | ______________________^ [INFO] [stdout] 1452 | | .connect(server.client_url()) [INFO] [stdout] 1453 | | .await [INFO] [stdout] | |__________________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] --> tests/kv_tests.rs:1490:22 [INFO] [stdout] | [INFO] [stdout] 1490 | let server = nats_server::run_server("tests/configs/jetstream.conf"); [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `nats_server`, use `cargo add nats_server` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/kv_tests.rs:1491:22 [INFO] [stdout] | [INFO] [stdout] 1491 | let client = ConnectOptions::new() [INFO] [stdout] | ______________________^ [INFO] [stdout] 1492 | | .connect(server.client_url()) [INFO] [stdout] 1493 | | .await [INFO] [stdout] | |__________________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] --> tests/kv_tests.rs:1548:22 [INFO] [stdout] | [INFO] [stdout] 1548 | let server = nats_server::run_server("tests/configs/jetstream.conf"); [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `nats_server`, use `cargo add nats_server` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/kv_tests.rs:1549:22 [INFO] [stdout] | [INFO] [stdout] 1549 | let client = ConnectOptions::new() [INFO] [stdout] | ______________________^ [INFO] [stdout] 1550 | | .connect(server.client_url()) [INFO] [stdout] 1551 | | .await [INFO] [stdout] | |__________________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] --> tests/kv_tests.rs:1616:22 [INFO] [stdout] | [INFO] [stdout] 1616 | let server = nats_server::run_server("tests/configs/jetstream.conf"); [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `nats_server`, use `cargo add nats_server` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/kv_tests.rs:1617:22 [INFO] [stdout] | [INFO] [stdout] 1617 | let client = ConnectOptions::new() [INFO] [stdout] | ______________________^ [INFO] [stdout] 1618 | | .connect(server.client_url()) [INFO] [stdout] 1619 | | .await [INFO] [stdout] | |__________________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0282, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0282`. [INFO] [stdout] [INFO] [stderr] error: could not compile `async-nats` (test "kv_tests") due to 67 previous errors [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:130:21 [INFO] [stdout] | [INFO] [stdout] 130 | subscriber.next(), [INFO] [stdout] | ^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] --> tests/client_tests.rs:152:22 [INFO] [stdout] | [INFO] [stdout] 152 | let server = nats_server::run_basic_server(); [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `nats_server`, use `cargo add nats_server` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:153:22 [INFO] [stdout] | [INFO] [stdout] 153 | let client = async_nats::connect(server.client_url()).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:154:30 [INFO] [stdout] | [INFO] [stdout] 154 | let mut subscriber = client.clone().subscribe("foo").await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:158:13 [INFO] [stdout] | [INFO] [stdout] 158 | cloned_client.publish("foo", "data".into()).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:162:15 [INFO] [stdout] | [INFO] [stdout] 162 | while tokio::time::timeout(tokio::time::Duration::from_millis(500), subscriber.next()) [INFO] [stdout] | _______________^ [INFO] [stdout] 163 | | .await [INFO] [stdout] | |__________________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] --> tests/client_tests.rs:177:22 [INFO] [stdout] | [INFO] [stdout] 177 | let server = nats_server::run_basic_server(); [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `nats_server`, use `cargo add nats_server` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:178:22 [INFO] [stdout] | [INFO] [stdout] 178 | let client = async_nats::connect(server.client_url()).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:180:30 [INFO] [stdout] | [INFO] [stdout] 180 | let mut subscriber = client.subscribe("test").await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:185:9 [INFO] [stdout] | [INFO] [stdout] 185 | / client [INFO] [stdout] 186 | | .publish_with_headers("test", headers.clone(), b"".as_ref().into()) [INFO] [stdout] 187 | | .await [INFO] [stdout] | |__________________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:190:9 [INFO] [stdout] | [INFO] [stdout] 190 | client.flush().await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:192:23 [INFO] [stdout] | [INFO] [stdout] 192 | let message = subscriber.next().await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:199:9 [INFO] [stdout] | [INFO] [stdout] 199 | / client [INFO] [stdout] 200 | | .publish_with_headers("test", headers.clone(), "test".into()) [INFO] [stdout] 201 | | .await [INFO] [stdout] | |__________________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:204:23 [INFO] [stdout] | [INFO] [stdout] 204 | let message = subscriber.next().await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] --> tests/client_tests.rs:210:22 [INFO] [stdout] | [INFO] [stdout] 210 | let server = nats_server::run_basic_server(); [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `nats_server`, use `cargo add nats_server` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:211:22 [INFO] [stdout] | [INFO] [stdout] 211 | let client = async_nats::connect(server.client_url()).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:213:23 [INFO] [stdout] | [INFO] [stdout] 213 | let mut sub = client.subscribe("test").await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:218:27 [INFO] [stdout] | [INFO] [stdout] 218 | let msg = sub.next().await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:219:17 [INFO] [stdout] | [INFO] [stdout] 219 | / client [INFO] [stdout] 220 | | .publish(msg.reply.unwrap(), "resp".into()) [INFO] [stdout] 221 | | .await [INFO] [stdout] | |__________________________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:226:25 [INFO] [stdout] | [INFO] [stdout] 226 | let mut insub = client.subscribe(inbox.clone()).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:227:9 [INFO] [stdout] | [INFO] [stdout] 227 | / client [INFO] [stdout] 228 | | .publish_with_reply("test", inbox, "data".into()) [INFO] [stdout] 229 | | .await [INFO] [stdout] | |__________________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:231:17 [INFO] [stdout] | [INFO] [stdout] 231 | assert!(insub.next().await.is_some()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] --> tests/client_tests.rs:236:22 [INFO] [stdout] | [INFO] [stdout] 236 | let server = nats_server::run_basic_server(); [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `nats_server`, use `cargo add nats_server` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:237:22 [INFO] [stdout] | [INFO] [stdout] 237 | let client = async_nats::connect(server.client_url()).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:239:23 [INFO] [stdout] | [INFO] [stdout] 239 | let mut sub = client.subscribe("test").await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:244:27 [INFO] [stdout] | [INFO] [stdout] 244 | let msg = sub.next().await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:245:17 [INFO] [stdout] | [INFO] [stdout] 245 | / client [INFO] [stdout] 246 | | .publish(msg.reply.unwrap(), "reply".into()) [INFO] [stdout] 247 | | .await [INFO] [stdout] | |__________________________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:252:20 [INFO] [stdout] | [INFO] [stdout] 252 | let resp = tokio::time::timeout( [INFO] [stdout] | ____________________^ [INFO] [stdout] 253 | | tokio::time::Duration::from_millis(500), [INFO] [stdout] 254 | | client.request("test", "request".into()), [INFO] [stdout] 255 | | ) [INFO] [stdout] 256 | | .await [INFO] [stdout] | |______________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] --> tests/client_tests.rs:263:22 [INFO] [stdout] | [INFO] [stdout] 263 | let server = nats_server::run_basic_server(); [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `nats_server`, use `cargo add nats_server` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:264:22 [INFO] [stdout] | [INFO] [stdout] 264 | let client = async_nats::connect(server.client_url()).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:266:20 [INFO] [stdout] | [INFO] [stdout] 266 | let _sub = client.subscribe("service").await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:267:9 [INFO] [stdout] | [INFO] [stdout] 267 | client.flush().await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:269:19 [INFO] [stdout] | [INFO] [stdout] 269 | let err = client [INFO] [stdout] | ___________________^ [INFO] [stdout] 270 | | .request("service", "payload".into()) [INFO] [stdout] 271 | | .await [INFO] [stdout] | |__________________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] --> tests/client_tests.rs:278:22 [INFO] [stdout] | [INFO] [stdout] 278 | let server = nats_server::run_basic_server(); [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `nats_server`, use `cargo add nats_server` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:279:22 [INFO] [stdout] | [INFO] [stdout] 279 | let client = async_nats::connect(server.client_url()).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:281:19 [INFO] [stdout] | [INFO] [stdout] 281 | let err = tokio::time::timeout( [INFO] [stdout] | ___________________^ [INFO] [stdout] 282 | | tokio::time::Duration::from_millis(300), [INFO] [stdout] 283 | | client.request("test", "request".into()), [INFO] [stdout] 284 | | ) [INFO] [stdout] 285 | | .await [INFO] [stdout] | |______________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] --> tests/client_tests.rs:293:22 [INFO] [stdout] | [INFO] [stdout] 293 | let server = nats_server::run_basic_server(); [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `nats_server`, use `cargo add nats_server` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:294:22 [INFO] [stdout] | [INFO] [stdout] 294 | let client = async_nats::connect(server.client_url()).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:297:23 [INFO] [stdout] | [INFO] [stdout] 297 | let mut sub = client.subscribe("service").await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:303:31 [INFO] [stdout] | [INFO] [stdout] 303 | let request = sub.next().await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:306:17 [INFO] [stdout] | [INFO] [stdout] 306 | client.publish(reply, "ok".into()).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:307:17 [INFO] [stdout] | [INFO] [stdout] 307 | client.flush().await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:312:9 [INFO] [stdout] | [INFO] [stdout] 312 | client.send_request("service", request).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] --> tests/client_tests.rs:318:22 [INFO] [stdout] | [INFO] [stdout] 318 | let server = nats_server::run_basic_server(); [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `nats_server`, use `cargo add nats_server` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:319:22 [INFO] [stdout] | [INFO] [stdout] 319 | let client = async_nats::connect(server.client_url()).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:321:23 [INFO] [stdout] | [INFO] [stdout] 321 | let mut sub = client.subscribe("test").await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:323:9 [INFO] [stdout] | [INFO] [stdout] 323 | client.publish("test", "data".into()).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:324:9 [INFO] [stdout] | [INFO] [stdout] 324 | client.flush().await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:326:17 [INFO] [stdout] | [INFO] [stdout] 326 | assert!(sub.next().await.is_some()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed for `Result<(), _>` [INFO] [stdout] --> tests/client_tests.rs:327:13 [INFO] [stdout] | [INFO] [stdout] 327 | let result = sub.unsubscribe().await; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 332 | println!("source: {:?}", err.source()) [INFO] [stdout] | --- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `result` an explicit type, where the placeholders `_` are specified [INFO] [stdout] | [INFO] [stdout] 327 | let result: Result<_, E> = sub.unsubscribe().await; [INFO] [stdout] | ++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:336:24 [INFO] [stdout] | [INFO] [stdout] 336 | let mut sub2 = client.subscribe("test2").await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:337:9 [INFO] [stdout] | [INFO] [stdout] 337 | client.publish("test2", "data".into()).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:338:9 [INFO] [stdout] | [INFO] [stdout] 338 | client.flush().await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:339:17 [INFO] [stdout] | [INFO] [stdout] 339 | assert!(sub2.next().await.is_some()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] --> tests/client_tests.rs:344:22 [INFO] [stdout] | [INFO] [stdout] 344 | let server = nats_server::run_basic_server(); [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `nats_server`, use `cargo add nats_server` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:345:22 [INFO] [stdout] | [INFO] [stdout] 345 | let client = async_nats::connect(server.client_url()).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:347:23 [INFO] [stdout] | [INFO] [stdout] 347 | let mut sub = client.subscribe("test").await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:350:13 [INFO] [stdout] | [INFO] [stdout] 350 | client.publish("test", "data".into()).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:353:9 [INFO] [stdout] | [INFO] [stdout] 353 | sub.unsubscribe_after(3).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:354:9 [INFO] [stdout] | [INFO] [stdout] 354 | client.publish("test", "data".into()).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:355:9 [INFO] [stdout] | [INFO] [stdout] 355 | client.flush().await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:358:21 [INFO] [stdout] | [INFO] [stdout] 358 | assert!(sub.next().await.is_some()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:360:17 [INFO] [stdout] | [INFO] [stdout] 360 | assert!(sub.next().await.is_none()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] --> tests/client_tests.rs:364:22 [INFO] [stdout] | [INFO] [stdout] 364 | let server = nats_server::run_basic_server(); [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `nats_server`, use `cargo add nats_server` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:365:22 [INFO] [stdout] | [INFO] [stdout] 365 | let client = async_nats::connect(server.client_url()).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:367:23 [INFO] [stdout] | [INFO] [stdout] 367 | let mut sub = client.subscribe("test").await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:369:9 [INFO] [stdout] | [INFO] [stdout] 369 | client.publish("test", "data".into()).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:370:9 [INFO] [stdout] | [INFO] [stdout] 370 | client.publish("test", "data".into()).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:372:9 [INFO] [stdout] | [INFO] [stdout] 372 | sub.unsubscribe_after(1).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:373:9 [INFO] [stdout] | [INFO] [stdout] 373 | client.flush().await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:375:17 [INFO] [stdout] | [INFO] [stdout] 375 | assert!(sub.next().await.is_some()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:376:17 [INFO] [stdout] | [INFO] [stdout] 376 | assert!(sub.next().await.is_none()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] --> tests/client_tests.rs:391:22 [INFO] [stdout] | [INFO] [stdout] 391 | let server = nats_server::run_basic_server(); [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `nats_server`, use `cargo add nats_server` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:392:17 [INFO] [stdout] | [INFO] [stdout] 392 | assert!(async_nats::ConnectOptions::new() [INFO] [stdout] | _________________^ [INFO] [stdout] 393 | | .require_tls(true) [INFO] [stdout] 394 | | .connect(server.client_url()) [INFO] [stdout] 395 | | .await [INFO] [stdout] | |__________________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] --> tests/client_tests.rs:405:13 [INFO] [stdout] | [INFO] [stdout] 405 | nats_server::run_basic_server(), [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `nats_server`, use `cargo add nats_server` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] --> tests/client_tests.rs:406:13 [INFO] [stdout] | [INFO] [stdout] 406 | nats_server::run_basic_server(), [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `nats_server`, use `cargo add nats_server` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] --> tests/client_tests.rs:407:13 [INFO] [stdout] | [INFO] [stdout] 407 | nats_server::run_basic_server(), [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `nats_server`, use `cargo add nats_server` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:414:27 [INFO] [stdout] | [INFO] [stdout] 414 | .map(|server| server.client_url().parse::().unwrap()) [INFO] [stdout] | ^^^^^^ ------ type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving this closure parameter an explicit type [INFO] [stdout] | [INFO] [stdout] 414 | .map(|server: /* Type */| server.client_url().parse::().unwrap()) [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:410:22 [INFO] [stdout] | [INFO] [stdout] 410 | let client = async_nats::ConnectOptions::new() [INFO] [stdout] | ______________________^ [INFO] [stdout] 411 | | .connect( [INFO] [stdout] 412 | | servers [INFO] [stdout] 413 | | .iter() [INFO] [stdout] ... | [INFO] [stdout] 418 | | .await [INFO] [stdout] | |__________________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:421:30 [INFO] [stdout] | [INFO] [stdout] 421 | let mut subscriber = client.subscribe("test").await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:424:13 [INFO] [stdout] | [INFO] [stdout] 424 | client.publish("test", "data".into()).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:425:13 [INFO] [stdout] | [INFO] [stdout] 425 | client.flush().await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:426:21 [INFO] [stdout] | [INFO] [stdout] 426 | assert!(subscriber.next().await.is_some()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] --> tests/client_tests.rs:435:22 [INFO] [stdout] | [INFO] [stdout] 435 | let server = nats_server::run_server("tests/configs/token.conf"); [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `nats_server`, use `cargo add nats_server` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:436:22 [INFO] [stdout] | [INFO] [stdout] 436 | let client = async_nats::ConnectOptions::with_token("s3cr3t".into()) [INFO] [stdout] | ______________________^ [INFO] [stdout] 437 | | .connect(server.client_url()) [INFO] [stdout] 438 | | .await [INFO] [stdout] | |__________________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:441:23 [INFO] [stdout] | [INFO] [stdout] 441 | let mut sub = client.subscribe("test").await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:442:9 [INFO] [stdout] | [INFO] [stdout] 442 | client.publish("test", "test".into()).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:443:9 [INFO] [stdout] | [INFO] [stdout] 443 | client.flush().await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:444:17 [INFO] [stdout] | [INFO] [stdout] 444 | assert!(sub.next().await.is_some()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] --> tests/client_tests.rs:449:22 [INFO] [stdout] | [INFO] [stdout] 449 | let server = nats_server::run_server("tests/configs/user_pass.conf"); [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `nats_server`, use `cargo add nats_server` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:451:13 [INFO] [stdout] | [INFO] [stdout] 451 | / async_nats::ConnectOptions::with_user_and_password("derek".into(), "s3cr3t".into()) [INFO] [stdout] 452 | | .connect(server.client_url()) [INFO] [stdout] 453 | | .await [INFO] [stdout] | |______________________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:456:23 [INFO] [stdout] | [INFO] [stdout] 456 | let mut sub = client.subscribe("test").await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:457:9 [INFO] [stdout] | [INFO] [stdout] 457 | client.publish("test", "test".into()).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:458:9 [INFO] [stdout] | [INFO] [stdout] 458 | client.flush().await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:459:17 [INFO] [stdout] | [INFO] [stdout] 459 | assert!(sub.next().await.is_some()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] --> tests/client_tests.rs:464:22 [INFO] [stdout] | [INFO] [stdout] 464 | let server = nats_server::run_server("tests/configs/user_pass.conf"); [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `nats_server`, use `cargo add nats_server` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:465:19 [INFO] [stdout] | [INFO] [stdout] 465 | let err = async_nats::ConnectOptions::new() [INFO] [stdout] | ___________________^ [INFO] [stdout] 466 | | .connect(server.client_url()) [INFO] [stdout] 467 | | .await [INFO] [stdout] | |__________________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] --> tests/client_tests.rs:475:22 [INFO] [stdout] | [INFO] [stdout] 475 | let server = nats_server::run_server("tests/configs/user_pass.conf"); [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `nats_server`, use `cargo add nats_server` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:476:19 [INFO] [stdout] | [INFO] [stdout] 476 | let err = async_nats::ConnectOptions::with_user_and_password( [INFO] [stdout] | ___________________^ [INFO] [stdout] 477 | | "derek".into(), [INFO] [stdout] 478 | | "bad_password".into(), [INFO] [stdout] ... | [INFO] [stdout] 481 | | .await [INFO] [stdout] | |______________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] --> tests/client_tests.rs:488:22 [INFO] [stdout] | [INFO] [stdout] 488 | let server = nats_server::run_basic_server(); [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `nats_server`, use `cargo add nats_server` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:493:22 [INFO] [stdout] | [INFO] [stdout] 493 | let client = async_nats::ConnectOptions::new() [INFO] [stdout] | ______________________^ [INFO] [stdout] 494 | | .event_callback(move |event| { [INFO] [stdout] 495 | | let tx = tx.clone(); [INFO] [stdout] 496 | | let dc_tx = dc_tx.clone(); [INFO] [stdout] ... | [INFO] [stdout] 508 | | .connect(server.client_url()) [INFO] [stdout] 509 | | .await [INFO] [stdout] | |__________________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:512:9 [INFO] [stdout] | [INFO] [stdout] 512 | client.subscribe("test").await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:513:9 [INFO] [stdout] | [INFO] [stdout] 513 | client.flush().await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] --> tests/client_tests.rs:519:23 [INFO] [stdout] | [INFO] [stdout] 519 | let _server = nats_server::run_server_with_port("", Some(port.as_str())); [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `nats_server`, use `cargo add nats_server` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] --> tests/client_tests.rs:535:22 [INFO] [stdout] | [INFO] [stdout] 535 | let server = nats_server::run_basic_server(); [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `nats_server`, use `cargo add nats_server` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:538:22 [INFO] [stdout] | [INFO] [stdout] 538 | let client = ConnectOptions::new() [INFO] [stdout] | ______________________^ [INFO] [stdout] 539 | | .event_callback(move |event| { [INFO] [stdout] 540 | | let tx = tx.clone(); [INFO] [stdout] 541 | | async move { [INFO] [stdout] ... | [INFO] [stdout] 547 | | .connect(server.client_url()) [INFO] [stdout] 548 | | .await [INFO] [stdout] | |__________________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:551:23 [INFO] [stdout] | [INFO] [stdout] 551 | let mut sub = client.subscribe("data").await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:552:9 [INFO] [stdout] | [INFO] [stdout] 552 | client.publish("data", "data".into()).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:553:9 [INFO] [stdout] | [INFO] [stdout] 553 | sub.next().await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] --> tests/client_tests.rs:555:9 [INFO] [stdout] | [INFO] [stdout] 555 | nats_server::set_lame_duck_mode(&server); [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `nats_server`, use `cargo add nats_server` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] --> tests/client_tests.rs:564:22 [INFO] [stdout] | [INFO] [stdout] 564 | let server = nats_server::run_basic_server(); [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `nats_server`, use `cargo add nats_server` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:567:22 [INFO] [stdout] | [INFO] [stdout] 567 | let client = ConnectOptions::new() [INFO] [stdout] | ______________________^ [INFO] [stdout] 568 | | .subscription_capacity(1) [INFO] [stdout] 569 | | .event_callback(move |event| { [INFO] [stdout] 570 | | let tx = tx.clone(); [INFO] [stdout] ... | [INFO] [stdout] 577 | | .connect(server.client_url()) [INFO] [stdout] 578 | | .await [INFO] [stdout] | |__________________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:581:20 [INFO] [stdout] | [INFO] [stdout] 581 | let _sub = client.subscribe("data").await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:582:9 [INFO] [stdout] | [INFO] [stdout] 582 | client.publish("data", "data".into()).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:583:9 [INFO] [stdout] | [INFO] [stdout] 583 | client.publish("data", "data".into()).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:584:9 [INFO] [stdout] | [INFO] [stdout] 584 | client.flush().await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:585:9 [INFO] [stdout] | [INFO] [stdout] 585 | client.publish("data", "data".into()).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:586:9 [INFO] [stdout] | [INFO] [stdout] 586 | client.flush().await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] --> tests/client_tests.rs:602:22 [INFO] [stdout] | [INFO] [stdout] 602 | let server = nats_server::run_basic_server(); [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `nats_server`, use `cargo add nats_server` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:603:22 [INFO] [stdout] | [INFO] [stdout] 603 | let client = ConnectOptions::new() [INFO] [stdout] | ______________________^ [INFO] [stdout] 604 | | .connect(server.client_url()) [INFO] [stdout] 605 | | .await [INFO] [stdout] | |__________________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:607:32 [INFO] [stdout] | [INFO] [stdout] 607 | let mut subscription = client.subscribe("echo").await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:608:9 [INFO] [stdout] | [INFO] [stdout] 608 | client.publish("echo", "data".into()).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:609:9 [INFO] [stdout] | [INFO] [stdout] 609 | / tokio::time::timeout(Duration::from_millis(500), subscription.next()) [INFO] [stdout] 610 | | .await [INFO] [stdout] | |__________________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] --> tests/client_tests.rs:614:22 [INFO] [stdout] | [INFO] [stdout] 614 | let server = nats_server::run_basic_server(); [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `nats_server`, use `cargo add nats_server` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:615:22 [INFO] [stdout] | [INFO] [stdout] 615 | let client = ConnectOptions::new() [INFO] [stdout] | ______________________^ [INFO] [stdout] 616 | | .no_echo() [INFO] [stdout] 617 | | .connect(server.client_url()) [INFO] [stdout] 618 | | .await [INFO] [stdout] | |__________________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:620:32 [INFO] [stdout] | [INFO] [stdout] 620 | let mut subscription = client.subscribe("echo").await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:621:9 [INFO] [stdout] | [INFO] [stdout] 621 | client.publish("echo", "data".into()).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:622:9 [INFO] [stdout] | [INFO] [stdout] 622 | / tokio::time::timeout(Duration::from_millis(50), subscription.next()) [INFO] [stdout] 623 | | .await [INFO] [stdout] | |__________________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] --> tests/client_tests.rs:629:22 [INFO] [stdout] | [INFO] [stdout] 629 | let server = nats_server::run_basic_server(); [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `nats_server`, use `cargo add nats_server` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:631:23 [INFO] [stdout] | [INFO] [stdout] 631 | let _client = ConnectOptions::new() [INFO] [stdout] | _______________________^ [INFO] [stdout] 632 | | .event_callback(move |err| { [INFO] [stdout] 633 | | let tx = tx.clone(); [INFO] [stdout] 634 | | async move { [INFO] [stdout] ... | [INFO] [stdout] 638 | | .connect(server.client_url()) [INFO] [stdout] 639 | | .await [INFO] [stdout] | |__________________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] --> tests/client_tests.rs:650:22 [INFO] [stdout] | [INFO] [stdout] 650 | let server = nats_server::run_basic_server(); [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `nats_server`, use `cargo add nats_server` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:654:17 [INFO] [stdout] | [INFO] [stdout] 654 | let _ = ConnectOptions::new() [INFO] [stdout] | _________________^ [INFO] [stdout] 655 | | .retry_on_initial_connect() [INFO] [stdout] 656 | | .reconnect_delay_callback(move |attempts| { [INFO] [stdout] 657 | | let tx = tx.clone(); [INFO] [stdout] ... | [INFO] [stdout] 669 | | .connect(server.client_url()) [INFO] [stdout] 670 | | .await [INFO] [stdout] | |__________________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] --> tests/client_tests.rs:743:22 [INFO] [stdout] | [INFO] [stdout] 743 | let server = nats_server::run_basic_server(); [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `nats_server`, use `cargo add nats_server` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:744:22 [INFO] [stdout] | [INFO] [stdout] 744 | let client = ConnectOptions::new() [INFO] [stdout] | ______________________^ [INFO] [stdout] 745 | | .custom_inbox_prefix("BOB") [INFO] [stdout] 746 | | .connect(server.client_url()) [INFO] [stdout] 747 | | .await [INFO] [stdout] | |__________________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:750:47 [INFO] [stdout] | [INFO] [stdout] 750 | let mut inbox_wildcard_subscription = client.subscribe("BOB.>").await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:751:32 [INFO] [stdout] | [INFO] [stdout] 751 | let mut subscription = client.subscribe("request").await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:756:27 [INFO] [stdout] | [INFO] [stdout] 756 | let msg = subscription.next().await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:757:17 [INFO] [stdout] | [INFO] [stdout] 757 | / client [INFO] [stdout] 758 | | .publish(msg.reply.unwrap(), "prefix workers".into()) [INFO] [stdout] 759 | | .await [INFO] [stdout] | |__________________________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:764:9 [INFO] [stdout] | [INFO] [stdout] 764 | client.request("request", "data".into()).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:765:9 [INFO] [stdout] | [INFO] [stdout] 765 | inbox_wildcard_subscription.next().await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] --> tests/client_tests.rs:770:22 [INFO] [stdout] | [INFO] [stdout] 770 | let server = nats_server::run_basic_server(); [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `nats_server`, use `cargo add nats_server` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:771:22 [INFO] [stdout] | [INFO] [stdout] 771 | let client = async_nats::connect(server.client_url()).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] --> tests/client_tests.rs:780:22 [INFO] [stdout] | [INFO] [stdout] 780 | let server = nats_server::run_basic_server(); [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `nats_server`, use `cargo add nats_server` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:781:22 [INFO] [stdout] | [INFO] [stdout] 781 | let client = async_nats::connect(server.client_url()).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] --> tests/client_tests.rs:804:23 [INFO] [stdout] | [INFO] [stdout] 804 | let _server = nats_server::run_server_with_port("", Some("7779")); [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `nats_server`, use `cargo add nats_server` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] --> tests/client_tests.rs:811:13 [INFO] [stdout] | [INFO] [stdout] 811 | nats_server::run_basic_server(), [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `nats_server`, use `cargo add nats_server` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] --> tests/client_tests.rs:812:13 [INFO] [stdout] | [INFO] [stdout] 812 | nats_server::run_basic_server(), [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `nats_server`, use `cargo add nats_server` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:828:27 [INFO] [stdout] | [INFO] [stdout] 828 | .map(|s| s.client_url().parse::().unwrap()) [INFO] [stdout] | ^ - type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving this closure parameter an explicit type [INFO] [stdout] | [INFO] [stdout] 828 | .map(|s: /* Type */| s.client_url().parse::().unwrap()) [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:815:17 [INFO] [stdout] | [INFO] [stdout] 815 | let _ = ConnectOptions::with_user_and_password("js".into(), "js".into()) [INFO] [stdout] | _________________^ [INFO] [stdout] 816 | | .event_callback(move |event| { [INFO] [stdout] 817 | | let tx = tx.clone(); [INFO] [stdout] 818 | | async move { [INFO] [stdout] ... | [INFO] [stdout] 831 | | .await [INFO] [stdout] | |__________________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] --> tests/client_tests.rs:844:13 [INFO] [stdout] | [INFO] [stdout] 844 | nats_server::run_basic_server(), [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `nats_server`, use `cargo add nats_server` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] --> tests/client_tests.rs:845:13 [INFO] [stdout] | [INFO] [stdout] 845 | nats_server::run_server("tests/configs/jwt.conf"), [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `nats_server`, use `cargo add nats_server` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] --> tests/client_tests.rs:846:13 [INFO] [stdout] | [INFO] [stdout] 846 | nats_server::run_server("tests/configs/token.conf"), [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `nats_server`, use `cargo add nats_server` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:858:27 [INFO] [stdout] | [INFO] [stdout] 858 | .map(|server| server.client_url().parse::().unwrap()) [INFO] [stdout] | ^^^^^^ ------ type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving this closure parameter an explicit type [INFO] [stdout] | [INFO] [stdout] 858 | .map(|server: /* Type */| server.client_url().parse::().unwrap()) [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:849:22 [INFO] [stdout] | [INFO] [stdout] 849 | let client = async_nats::ConnectOptions::new() [INFO] [stdout] | ______________________^ [INFO] [stdout] 850 | | .user_and_password("js".into(), "js".into()) [INFO] [stdout] 851 | | .token("s3cr3t".into()) [INFO] [stdout] 852 | | .credentials_file(path.join("tests/configs/TestUser.creds")) [INFO] [stdout] ... | [INFO] [stdout] 862 | | .await [INFO] [stdout] | |__________________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:865:30 [INFO] [stdout] | [INFO] [stdout] 865 | let mut subscriber = client.subscribe("test").await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:867:13 [INFO] [stdout] | [INFO] [stdout] 867 | client.publish("test", "data".into()).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:868:13 [INFO] [stdout] | [INFO] [stdout] 868 | client.flush().await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:869:21 [INFO] [stdout] | [INFO] [stdout] 869 | assert!(subscriber.next().await.is_some()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] --> tests/client_tests.rs:878:22 [INFO] [stdout] | [INFO] [stdout] 878 | let server = nats_server::run_server("tests/configs/user_pass.conf"); [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `nats_server`, use `cargo add nats_server` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:880:9 [INFO] [stdout] | [INFO] [stdout] 880 | / ConnectOptions::with_auth_callback(move |_| async move { [INFO] [stdout] 881 | | let mut auth = async_nats::Auth::new(); [INFO] [stdout] 882 | | auth.username = Some("derek".to_string()); [INFO] [stdout] 883 | | auth.password = Some("s3cr3t".to_string()); [INFO] [stdout] ... | [INFO] [stdout] 886 | | .connect(server.client_url()) [INFO] [stdout] 887 | | .await [INFO] [stdout] | |______________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] --> tests/client_tests.rs:893:22 [INFO] [stdout] | [INFO] [stdout] 893 | let server = nats_server::run_server("tests/configs/jwt.conf"); [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `nats_server`, use `cargo add nats_server` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:895:9 [INFO] [stdout] | [INFO] [stdout] 895 | / ... ConnectOptions::with_auth_callback(move |nonce| async move { [INFO] [stdout] 896 | | ... let mut auth = async_nats::Auth::new(); [INFO] [stdout] 897 | | ... auth.jwt = Some("eyJ0eXAiOiJKV1QiLCJhbGciOiJlZDI1NTE5LW5rZXkifQ.".to_owned() + [INFO] [stdout] 898 | | ... "eyJqdGkiOiJMN1dBT1hJU0tPSUZNM1QyNEhMQ09ENzJRT1czQkNVWEdETjRKVU1SSUtHTlQ3RzdZVFRRIiwiaWF0IjoxNjUxNzkwOTgyLCJpc3MiOi... [INFO] [stdout] ... | [INFO] [stdout] 908 | | ... .connect(server.client_url()) [INFO] [stdout] 909 | | ... .await [INFO] [stdout] | |____________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] --> tests/client_tests.rs:944:22 [INFO] [stdout] | [INFO] [stdout] 944 | let server = nats_server::run_server("tests/configs/max_payload.conf"); [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `nats_server`, use `cargo add nats_server` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:946:22 [INFO] [stdout] | [INFO] [stdout] 946 | let client = async_nats::connect(server.client_url()).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:951:9 [INFO] [stdout] | [INFO] [stdout] 951 | client.publish("big", payload.into()).await.unwrap_err(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:952:9 [INFO] [stdout] | [INFO] [stdout] 952 | client.publish("small", "data".into()).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:953:9 [INFO] [stdout] | [INFO] [stdout] 953 | / client [INFO] [stdout] 954 | | .publish("just_ok", vec![0u8; 1024 * 128].into()) [INFO] [stdout] 955 | | .await [INFO] [stdout] | |__________________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] --> tests/client_tests.rs:961:22 [INFO] [stdout] | [INFO] [stdout] 961 | let server = nats_server::run_basic_server(); [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `nats_server`, use `cargo add nats_server` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:964:22 [INFO] [stdout] | [INFO] [stdout] 964 | let client = async_nats::ConnectOptions::new() [INFO] [stdout] | ______________________^ [INFO] [stdout] 965 | | .event_callback(move |event| { [INFO] [stdout] 966 | | let tx = tx.clone(); [INFO] [stdout] 967 | | async move { [INFO] [stdout] ... | [INFO] [stdout] 973 | | .connect(server.client_url()) [INFO] [stdout] 974 | | .await [INFO] [stdout] | |__________________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:989:29 [INFO] [stdout] | [INFO] [stdout] 989 | let mut responder = client.subscribe("request").await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:993:27 [INFO] [stdout] | [INFO] [stdout] 993 | let msg = responder.next().await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:994:17 [INFO] [stdout] | [INFO] [stdout] 994 | / client [INFO] [stdout] 995 | | .publish(msg.reply.unwrap(), "response".into()) [INFO] [stdout] 996 | | .await [INFO] [stdout] | |__________________________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:1000:9 [INFO] [stdout] | [INFO] [stdout] 1000 | client.request("request", "data".into()).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:1002:23 [INFO] [stdout] | [INFO] [stdout] 1002 | let mut sub = client.subscribe("test").await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:1003:9 [INFO] [stdout] | [INFO] [stdout] 1003 | client.publish("test", "data".into()).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:1004:9 [INFO] [stdout] | [INFO] [stdout] 1004 | client.publish("test", "data".into()).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:1005:9 [INFO] [stdout] | [INFO] [stdout] 1005 | sub.next().await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:1006:9 [INFO] [stdout] | [INFO] [stdout] 1006 | sub.next().await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:1008:9 [INFO] [stdout] | [INFO] [stdout] 1008 | client.flush().await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:1009:9 [INFO] [stdout] | [INFO] [stdout] 1009 | client.force_reconnect().await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] --> tests/client_tests.rs:1025:22 [INFO] [stdout] | [INFO] [stdout] 1025 | let server = nats_server::run_basic_server(); [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `nats_server`, use `cargo add nats_server` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:1026:22 [INFO] [stdout] | [INFO] [stdout] 1026 | let client = async_nats::connect(server.client_url()).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:1030:22 [INFO] [stdout] | [INFO] [stdout] 1030 | let client = async_nats::ConnectOptions::new() [INFO] [stdout] | ______________________^ [INFO] [stdout] 1031 | | .request_timeout(Some(Duration::from_secs(30))) [INFO] [stdout] 1032 | | .connect(server.client_url()) [INFO] [stdout] 1033 | | .await [INFO] [stdout] | |__________________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:1038:22 [INFO] [stdout] | [INFO] [stdout] 1038 | let client = async_nats::ConnectOptions::new() [INFO] [stdout] | ______________________^ [INFO] [stdout] 1039 | | .request_timeout(None) [INFO] [stdout] 1040 | | .connect(server.client_url()) [INFO] [stdout] 1041 | | .await [INFO] [stdout] | |__________________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] --> tests/client_tests.rs:1050:22 [INFO] [stdout] | [INFO] [stdout] 1050 | let server = nats_server::run_basic_server(); [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `nats_server`, use `cargo add nats_server` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:1051:22 [INFO] [stdout] | [INFO] [stdout] 1051 | let client = async_nats::connect(server.client_url()).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:1053:23 [INFO] [stdout] | [INFO] [stdout] 1053 | let mut sub = client.subscribe("test").await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:1056:9 [INFO] [stdout] | [INFO] [stdout] 1056 | client.publish("test", "data".into()).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:1057:9 [INFO] [stdout] | [INFO] [stdout] 1057 | client.flush().await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:1060:17 [INFO] [stdout] | [INFO] [stdout] 1060 | assert!(sub.next().await.is_some()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed for `Result<(), _>` [INFO] [stdout] --> tests/client_tests.rs:1063:13 [INFO] [stdout] | [INFO] [stdout] 1063 | let result = sub.drain().await; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1068 | println!("source: {:?}", err.source()) [INFO] [stdout] | --- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `result` an explicit type, where the placeholders `_` are specified [INFO] [stdout] | [INFO] [stdout] 1063 | let result: Result<_, E> = sub.drain().await; [INFO] [stdout] | ++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:1073:17 [INFO] [stdout] | [INFO] [stdout] 1073 | assert!(sub.next().await.is_none()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:1076:24 [INFO] [stdout] | [INFO] [stdout] 1076 | let mut sub2 = client.subscribe("test2").await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:1077:9 [INFO] [stdout] | [INFO] [stdout] 1077 | client.publish("test2", "data".into()).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:1078:9 [INFO] [stdout] | [INFO] [stdout] 1078 | client.flush().await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:1079:17 [INFO] [stdout] | [INFO] [stdout] 1079 | assert!(sub2.next().await.is_some()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] --> tests/client_tests.rs:1084:22 [INFO] [stdout] | [INFO] [stdout] 1084 | let server = nats_server::run_basic_server(); [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `nats_server`, use `cargo add nats_server` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:1085:22 [INFO] [stdout] | [INFO] [stdout] 1085 | let client = async_nats::connect(server.client_url()).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:1087:23 [INFO] [stdout] | [INFO] [stdout] 1087 | let mut sub = client.subscribe("test").await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:1089:9 [INFO] [stdout] | [INFO] [stdout] 1089 | / sub.unsubscribe_after(120) [INFO] [stdout] 1090 | | .await [INFO] [stdout] | |__________________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:1094:9 [INFO] [stdout] | [INFO] [stdout] 1094 | client.publish("test", "data".into()).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:1095:9 [INFO] [stdout] | [INFO] [stdout] 1095 | client.publish("test", "data".into()).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:1096:9 [INFO] [stdout] | [INFO] [stdout] 1096 | client.flush().await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:1099:9 [INFO] [stdout] | [INFO] [stdout] 1099 | sub.drain().await.expect("Expected to drain the sub"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:1102:17 [INFO] [stdout] | [INFO] [stdout] 1102 | assert!(sub.next().await.is_some()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:1103:17 [INFO] [stdout] | [INFO] [stdout] 1103 | assert!(sub.next().await.is_some()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:1104:17 [INFO] [stdout] | [INFO] [stdout] 1104 | assert!(sub.next().await.is_none()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] --> tests/client_tests.rs:1109:22 [INFO] [stdout] | [INFO] [stdout] 1109 | let server = nats_server::run_basic_server(); [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `nats_server`, use `cargo add nats_server` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:1110:22 [INFO] [stdout] | [INFO] [stdout] 1110 | let client = async_nats::connect(server.client_url()).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:1117:21 [INFO] [stdout] | [INFO] [stdout] 1117 | client.publish("test", "data".into()).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:1118:21 [INFO] [stdout] | [INFO] [stdout] 1118 | client.flush().await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:1123:23 [INFO] [stdout] | [INFO] [stdout] 1123 | let mut sub = client.subscribe("test").await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:1126:17 [INFO] [stdout] | [INFO] [stdout] 1126 | assert!(sub.next().await.is_some()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:1129:9 [INFO] [stdout] | [INFO] [stdout] 1129 | sub.drain().await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:1135:44 [INFO] [stdout] | [INFO] [stdout] 1135 | let sleep_fut = async move { while sub.next().await.is_some() {} }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:1144:24 [INFO] [stdout] | [INFO] [stdout] 1144 | let mut sub2 = client.subscribe("test").await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:1145:17 [INFO] [stdout] | [INFO] [stdout] 1145 | assert!(sub2.next().await.is_some()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] --> tests/client_tests.rs:1150:22 [INFO] [stdout] | [INFO] [stdout] 1150 | let server = nats_server::run_basic_server(); [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `nats_server`, use `cargo add nats_server` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:1151:22 [INFO] [stdout] | [INFO] [stdout] 1151 | let client = async_nats::connect(server.client_url()).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:1153:23 [INFO] [stdout] | [INFO] [stdout] 1153 | let mut sub = client.subscribe("test").await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:1156:9 [INFO] [stdout] | [INFO] [stdout] 1156 | client.publish("test", "data".into()).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:1157:9 [INFO] [stdout] | [INFO] [stdout] 1157 | client.flush().await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:1160:17 [INFO] [stdout] | [INFO] [stdout] 1160 | assert!(sub.next().await.is_some()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:1163:9 [INFO] [stdout] | [INFO] [stdout] 1163 | client.drain().await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:1166:17 [INFO] [stdout] | [INFO] [stdout] 1166 | assert!(sub.next().await.is_none()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:1169:9 [INFO] [stdout] | [INFO] [stdout] 1169 | / client [INFO] [stdout] 1170 | | .subscribe("test2") [INFO] [stdout] 1171 | | .await [INFO] [stdout] | |__________________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:1174:9 [INFO] [stdout] | [INFO] [stdout] 1174 | / client [INFO] [stdout] 1175 | | .publish("test", "data".into()) [INFO] [stdout] 1176 | | .await [INFO] [stdout] | |__________________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/client_tests.rs:1180:24 [INFO] [stdout] | [INFO] [stdout] 1180 | let _client2 = async_nats::connect(server.client_url()) [INFO] [stdout] | ________________________^ [INFO] [stdout] 1181 | | .await [INFO] [stdout] | |__________________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0282, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0282`. [INFO] [stdout] [INFO] [stderr] error: could not compile `async-nats` (test "client_tests") due to 246 previous errors [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] --> src/service/mod.rs:901:22 [INFO] [stdout] | [INFO] [stdout] 901 | let server = nats_server::run_basic_server(); [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `nats_server` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `nats_server`, use `cargo add nats_server` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/service/mod.rs:902:22 [INFO] [stdout] | [INFO] [stdout] 902 | let client = crate::connect(server.client_url()).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0282, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0282`. [INFO] [stdout] [INFO] [stderr] error: could not compile `async-nats` (lib test) due to 2 previous errors [INFO] running `Command { std: "docker" "inspect" "b3f078eb4a8a163758ba33ff5e50b2d2f6e89c673dfccab839dd35fd94826f5a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b3f078eb4a8a163758ba33ff5e50b2d2f6e89c673dfccab839dd35fd94826f5a", kill_on_drop: false }` [INFO] [stdout] b3f078eb4a8a163758ba33ff5e50b2d2f6e89c673dfccab839dd35fd94826f5a