[INFO] fetching crate rs-docker-api-rs 0.3.2... [INFO] building rs-docker-api-rs-0.3.2 against master#c7f6aa2869acdbf014d094c6e427e554e160b6db for pr-146237-2 [INFO] extracting crate rs-docker-api-rs 0.3.2 into /workspace/builds/worker-2-tc1/source [INFO] started tweaking crates.io crate rs-docker-api-rs 0.3.2 [INFO] removed 0 missing examples [INFO] removed 0 missing tests [INFO] finished tweaking crates.io crate rs-docker-api-rs 0.3.2 [INFO] tweaked toml for crates.io crate rs-docker-api-rs 0.3.2 written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate rs-docker-api-rs 0.3.2 on toolchain c7f6aa2869acdbf014d094c6e427e554e160b6db [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate rs-docker-api-rs 0.3.2 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" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded tokio-openssl v0.6.5 [INFO] [stderr] Downloaded containers-api v0.9.0 [INFO] [stderr] Downloaded linked_hash_set v0.1.5 [INFO] [stderr] Downloaded rs-docker-api-stubs v0.8.0 [INFO] [stderr] Downloaded asynchronous-codec v0.6.2 [INFO] [stderr] Downloaded core_affinity v0.8.1 [INFO] [stderr] Downloaded cmake v0.1.52 [INFO] [stderr] Downloaded hyper-openssl v0.9.2 [INFO] [stderr] Downloaded xattr v1.4.0 [INFO] [stderr] Downloaded memfile v0.2.1 [INFO] [stderr] Downloaded openssl-sys v0.9.104 [INFO] [stderr] Downloaded openssl v0.10.69 [INFO] [stderr] Downloaded openssl-src v300.4.1+3.4.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] f789fd9ec437cb3878b4d8a2278a00adef9788c55e1dc004a82b7a9eb0d68bbf [INFO] running `Command { std: "docker" "start" "-a" "f789fd9ec437cb3878b4d8a2278a00adef9788c55e1dc004a82b7a9eb0d68bbf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f789fd9ec437cb3878b4d8a2278a00adef9788c55e1dc004a82b7a9eb0d68bbf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f789fd9ec437cb3878b4d8a2278a00adef9788c55e1dc004a82b7a9eb0d68bbf", kill_on_drop: false }` [INFO] [stdout] f789fd9ec437cb3878b4d8a2278a00adef9788c55e1dc004a82b7a9eb0d68bbf [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 51d98504b0e6b9350e88704e91da5d73047c0599ed982c4be835d3080e3bdd8c [INFO] running `Command { std: "docker" "start" "-a" "51d98504b0e6b9350e88704e91da5d73047c0599ed982c4be835d3080e3bdd8c", kill_on_drop: false }` [INFO] [stderr] Compiling litemap v0.7.4 [INFO] [stderr] Compiling writeable v0.5.5 [INFO] [stderr] Compiling serde v1.0.217 [INFO] [stderr] Compiling icu_locid_transform_data v1.5.0 [INFO] [stderr] Compiling icu_properties_data v1.5.0 [INFO] [stderr] Compiling bytes v1.9.0 [INFO] [stderr] Compiling strsim v0.11.1 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling once_cell v1.20.2 [INFO] [stderr] Compiling utf16_iter v1.0.5 [INFO] [stderr] Compiling icu_normalizer_data v1.5.0 [INFO] [stderr] Compiling httparse v1.9.5 [INFO] [stderr] Compiling syn v2.0.96 [INFO] [stderr] Compiling smallvec v1.13.2 [INFO] [stderr] Compiling write16 v1.0.0 [INFO] [stderr] Compiling socket2 v0.5.8 [INFO] [stderr] Compiling tracing-core v0.1.33 [INFO] [stderr] Compiling mio v1.0.3 [INFO] [stderr] Compiling linux-raw-sys v0.4.15 [INFO] [stderr] Compiling bitflags v2.8.0 [INFO] [stderr] Compiling futures-channel v0.3.31 [INFO] [stderr] Compiling adler2 v2.0.0 [INFO] [stderr] Compiling iana-time-zone v0.1.61 [INFO] [stderr] Compiling miniz_oxide v0.8.3 [INFO] [stderr] Compiling crc32fast v1.4.2 [INFO] [stderr] Compiling filetime v0.2.25 [INFO] [stderr] Compiling log v0.4.25 [INFO] [stderr] Compiling rustix v0.38.44 [INFO] [stderr] Compiling http v0.2.12 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling tokio v1.43.0 [INFO] [stderr] Compiling flate2 v1.0.35 [INFO] [stderr] Compiling http-body v0.4.6 [INFO] [stderr] Compiling xattr v1.4.0 [INFO] [stderr] Compiling tar v0.4.43 [INFO] [stderr] Compiling synstructure v0.13.1 [INFO] [stderr] Compiling darling_core v0.20.10 [INFO] [stderr] Compiling zerovec-derive v0.10.3 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling icu_provider_macros v1.5.0 [INFO] [stderr] Compiling serde_derive v1.0.217 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling pin-project-internal v1.1.8 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling zerofrom-derive v0.1.5 [INFO] [stderr] Compiling yoke-derive v0.7.5 [INFO] [stderr] Compiling pin-project v1.1.8 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling zerofrom v0.1.5 [INFO] [stderr] Compiling yoke v0.7.5 [INFO] [stderr] Compiling zerovec v0.10.4 [INFO] [stderr] Compiling darling_macro v0.20.10 [INFO] [stderr] Compiling tinystr v0.7.6 [INFO] [stderr] Compiling icu_collections v1.5.0 [INFO] [stderr] Compiling darling v0.20.10 [INFO] [stderr] Compiling serde_with_macros v2.3.3 [INFO] [stderr] Compiling icu_locid v1.5.0 [INFO] [stderr] Compiling hyper v0.14.32 [INFO] [stderr] Compiling asynchronous-codec v0.6.2 [INFO] [stderr] Compiling icu_provider v1.5.0 [INFO] [stderr] Compiling icu_locid_transform v1.5.0 [INFO] [stderr] Compiling icu_properties v1.5.1 [INFO] [stderr] Compiling chrono v0.4.39 [INFO] [stderr] Compiling serde_json v1.0.137 [INFO] [stderr] Compiling serde_with v2.3.3 [INFO] [stderr] Compiling hyperlocal v0.8.0 [INFO] [stderr] Compiling icu_normalizer v1.5.0 [INFO] [stderr] Compiling idna_adapter v1.2.0 [INFO] [stderr] Compiling idna v1.0.3 [INFO] [stderr] Compiling rs-docker-api-stubs v0.8.0 [INFO] [stderr] Compiling url v2.5.4 [INFO] [stderr] Compiling containers-api v0.9.0 [INFO] [stderr] Compiling rs-docker-api-rs v0.3.2 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `models` [INFO] [stdout] --> src/api/exec.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | models, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `models` [INFO] [stdout] --> src/api/network.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | models, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `system::*` [INFO] [stdout] --> src/api/mod.rs:31:55 [INFO] [stdout] | [INFO] [stdout] 31 | pub use {container::*, exec::*, image::*, network::*, system::*, volume::*}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 49.79s [INFO] running `Command { std: "docker" "inspect" "51d98504b0e6b9350e88704e91da5d73047c0599ed982c4be835d3080e3bdd8c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "51d98504b0e6b9350e88704e91da5d73047c0599ed982c4be835d3080e3bdd8c", kill_on_drop: false }` [INFO] [stdout] 51d98504b0e6b9350e88704e91da5d73047c0599ed982c4be835d3080e3bdd8c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 612e673319283bdec7637e48d1e6adc06fa7c9a6f9a392f5f9b418335a59e66b [INFO] running `Command { std: "docker" "start" "-a" "612e673319283bdec7637e48d1e6adc06fa7c9a6f9a392f5f9b418335a59e66b", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.169 [INFO] [stderr] Compiling futures-channel v0.3.31 [INFO] [stderr] Compiling rustix v0.38.44 [INFO] [stderr] Compiling darling_core v0.20.10 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling memoffset v0.6.5 [INFO] [stderr] Compiling clap_builder v4.5.27 [INFO] [stderr] Compiling clap_derive v4.5.24 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling xattr v1.4.0 [INFO] [stderr] Compiling darling_macro v0.20.10 [INFO] [stderr] Compiling darling v0.20.10 [INFO] [stderr] Compiling mio v1.0.3 [INFO] [stderr] Compiling socket2 v0.5.8 [INFO] [stderr] Compiling filetime v0.2.25 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling getrandom v0.2.15 [INFO] [stderr] Compiling gethostname v0.2.3 [INFO] [stderr] Compiling nix v0.25.1 [INFO] [stderr] Compiling env_logger v0.9.3 [INFO] [stderr] Compiling serde_with_macros v2.3.3 [INFO] [stderr] Compiling clap v4.5.27 [INFO] [stderr] Compiling tar v0.4.43 [INFO] [stderr] Compiling tempfile v3.15.0 [INFO] [stderr] Compiling tokio v1.43.0 [INFO] [stderr] Compiling serde_with v2.3.3 [INFO] [stderr] Compiling futures-executor v0.3.31 [INFO] [stderr] Compiling asynchronous-codec v0.6.2 [INFO] [stderr] Compiling futures v0.3.31 [INFO] [stderr] Compiling rs-docker-api-stubs v0.8.0 [INFO] [stderr] Compiling hyper v0.14.32 [INFO] [stderr] Compiling hyperlocal v0.8.0 [INFO] [stderr] Compiling containers-api v0.9.0 [INFO] [stderr] Compiling rs-docker-api-rs v0.3.2 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `models` [INFO] [stdout] --> src/api/exec.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | models, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `models` [INFO] [stdout] --> src/api/network.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | models, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `system::*` [INFO] [stdout] --> src/api/mod.rs:31:55 [INFO] [stdout] | [INFO] [stdout] 31 | pub use {container::*, exec::*, image::*, network::*, system::*, volume::*}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `models` [INFO] [stdout] --> src/api/exec.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | models, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `models` [INFO] [stdout] --> src/api/network.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | models, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `system::*` [INFO] [stdout] --> src/api/mod.rs:31:55 [INFO] [stdout] | [INFO] [stdout] 31 | pub use {container::*, exec::*, image::*, network::*, system::*, volume::*}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `chrono::NaiveDateTime::from_timestamp_opt`: use `DateTime::from_timestamp` instead [INFO] [stdout] --> src/opts/mod.rs:132:48 [INFO] [stdout] | [INFO] [stdout] 132 | let timestamp = chrono::NaiveDateTime::from_timestamp_opt(2_147_483_647, 0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `chrono::DateTime::::from_utc`: Use TimeZone::from_utc_datetime() or DateTime::from_naive_utc_and_offset instead [INFO] [stdout] --> src/opts/mod.rs:133:54 [INFO] [stdout] | [INFO] [stdout] 133 | let since = chrono::DateTime::::from_utc(timestamp.unwrap(), chrono::Utc); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `docker_api` [INFO] [stdout] --> examples/common.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use docker_api::{conn::TtyChunk, Docker, Result}; [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `docker_api` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `docker_api`, use `cargo add docker_api` 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 `docker_api` [INFO] [stdout] --> examples/common.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use docker_api::{conn::TtyChunk, Docker, Result}; [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `docker_api` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `docker_api`, use `cargo add docker_api` 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 `docker_api` [INFO] [stdout] --> tests/common.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | pub use docker_api::{ [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `docker_api` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `docker_api`, use `cargo add docker_api` 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 `docker_api` [INFO] [stdout] --> tests/docker_tests.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use docker_api::opts::{DataUsageType, SystemDataUsageOpts}; [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `docker_api` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `docker_api`, use `cargo add docker_api` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `docker_api` [INFO] [stdout] --> tests/common.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | pub use docker_api::{ [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `docker_api` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `docker_api`, use `cargo add docker_api` 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 `docker_api` [INFO] [stdout] --> examples/container.rs:190:17 [INFO] [stdout] | [INFO] [stdout] 190 | use docker_api::opts::ContainerCommitOpts; [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `docker_api` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `docker_api`, use `cargo add docker_api` 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 `docker_api` [INFO] [stdout] --> examples/container.rs:223:17 [INFO] [stdout] | [INFO] [stdout] 223 | use docker_api::opts::ContainerCreateOpts; [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `docker_api` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `docker_api`, use `cargo add docker_api` 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 `docker_api` [INFO] [stdout] --> examples/container.rs:238:17 [INFO] [stdout] | [INFO] [stdout] 238 | use docker_api::opts::ContainerRemoveOpts; [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `docker_api` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `docker_api`, use `cargo add docker_api` 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 `docker_api` [INFO] [stdout] --> examples/container.rs:250:17 [INFO] [stdout] | [INFO] [stdout] 250 | use docker_api::opts::ExecCreateOpts; [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `docker_api` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `docker_api`, use `cargo add docker_api` 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 `docker_api` [INFO] [stdout] --> examples/container.rs:276:17 [INFO] [stdout] | [INFO] [stdout] 276 | use docker_api::opts::ContainerListOpts; [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `docker_api` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `docker_api`, use `cargo add docker_api` 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 `docker_api` [INFO] [stdout] --> examples/container.rs:300:17 [INFO] [stdout] | [INFO] [stdout] 300 | use docker_api::opts::LogsOpts; [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `docker_api` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `docker_api`, use `cargo add docker_api` 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 `docker_api` [INFO] [stdout] --> examples/container.rs:321:17 [INFO] [stdout] | [INFO] [stdout] 321 | use docker_api::opts::{ContainerPruneFilter, ContainerPruneOpts}; [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `docker_api` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `docker_api`, use `cargo add docker_api` 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 `docker_api` [INFO] [stdout] --> examples/container.rs:354:17 [INFO] [stdout] | [INFO] [stdout] 354 | use docker_api::opts::ContainerStopOpts; [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `docker_api` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `docker_api`, use `cargo add docker_api` 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 `docker_api` [INFO] [stdout] --> examples/container.rs:370:17 [INFO] [stdout] | [INFO] [stdout] 370 | use docker_api::opts::ContainerRestartOpts; [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `docker_api` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `docker_api`, use `cargo add docker_api` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `docker_api` [INFO] [stdout] --> examples/common.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use docker_api::{conn::TtyChunk, Docker, Result}; [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `docker_api` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `docker_api`, use `cargo add docker_api` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TryStreamExt` [INFO] [stdout] --> tests/common.rs:9:35 [INFO] [stdout] | [INFO] [stdout] 9 | pub use futures_util::{StreamExt, TryStreamExt}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/common.rs:66:10 [INFO] [stdout] | [INFO] [stdout] 66 | .expect("created base container"); [INFO] [stdout] | ^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `docker_api` [INFO] [stdout] --> examples/common.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use docker_api::{conn::TtyChunk, Docker, Result}; [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `docker_api` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `docker_api`, use `cargo add docker_api` 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 `docker_api` [INFO] [stdout] --> examples/common.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use docker_api::{conn::TtyChunk, Docker, Result}; [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `docker_api` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `docker_api`, use `cargo add docker_api` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/common.rs:84:10 [INFO] [stdout] | [INFO] [stdout] 84 | .map(|data| data.id) [INFO] [stdout] | ^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/common.rs:129:23 [INFO] [stdout] | [INFO] [stdout] 129 | assert!(chunk.is_ok()); [INFO] [stdout] | ^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `docker_api` [INFO] [stdout] --> tests/common.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | pub use docker_api::{ [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `docker_api` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `docker_api`, use `cargo add docker_api` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `docker_api` [INFO] [stdout] --> tests/common.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | pub use docker_api::{ [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `docker_api` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `docker_api`, use `cargo add docker_api` 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 `docker_api` [INFO] [stdout] --> tests/common.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | pub use docker_api::{ [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `docker_api` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `docker_api`, use `cargo add docker_api` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `docker_api` [INFO] [stdout] --> tests/common.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | pub use docker_api::{ [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `docker_api` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `docker_api`, use `cargo add docker_api` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TryStreamExt` [INFO] [stdout] --> tests/common.rs:9:35 [INFO] [stdout] | [INFO] [stdout] 9 | pub use futures_util::{StreamExt, TryStreamExt}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> examples/container.rs:132:17 [INFO] [stdout] | [INFO] [stdout] 132 | let tty_multiplexer = container.attach().await?; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 133 | [INFO] [stdout] 134 | let (mut reader, _writer) = tty_multiplexer.split(); [INFO] [stdout] | ----- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `tty_multiplexer` an explicit type [INFO] [stdout] | [INFO] [stdout] 132 | let tty_multiplexer: /* Type */ = container.attach().await?; [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> examples/container.rs:136:49 [INFO] [stdout] | [INFO] [stdout] 136 | while let Some(tty_result) = reader.next().await { [INFO] [stdout] | ^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> examples/container.rs:261:18 [INFO] [stdout] | [INFO] [stdout] 261 | .expect("exec stream"); [INFO] [stdout] | ^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> examples/container.rs:285:32 [INFO] [stdout] | [INFO] [stdout] 285 | containers.into_iter().for_each(|container| { [INFO] [stdout] | ^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rs-docker-api-rs` (example "common") due to 2 previous errors [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/common.rs:66:10 [INFO] [stdout] | [INFO] [stdout] 66 | .expect("created base container"); [INFO] [stdout] | ^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/common.rs:84:10 [INFO] [stdout] | [INFO] [stdout] 84 | .map(|data| data.id) [INFO] [stdout] | ^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/common.rs:147:10 [INFO] [stdout] | [INFO] [stdout] 147 | .map(|data| data.id) [INFO] [stdout] | ^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/common.rs:129:23 [INFO] [stdout] | [INFO] [stdout] 129 | assert!(chunk.is_ok()); [INFO] [stdout] | ^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/common.rs:66:10 [INFO] [stdout] | [INFO] [stdout] 66 | .expect("created base container"); [INFO] [stdout] | ^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/common.rs:164:10 [INFO] [stdout] | [INFO] [stdout] 164 | .expect("created base volume"); [INFO] [stdout] | ^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/common.rs:184:10 [INFO] [stdout] | [INFO] [stdout] 184 | .expect("created base network"); [INFO] [stdout] | ^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed for `Result<_, _>` [INFO] [stdout] --> examples/container.rs:306:23 [INFO] [stdout] | [INFO] [stdout] 306 | .map(|chunk| match chunk { [INFO] [stdout] | ^^^^^ [INFO] [stdout] 307 | Ok(chunk) => chunk.to_vec(), [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] 306 | .map(|chunk: Result<_, E>| match chunk { [INFO] [stdout] | ++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/common.rs:84:10 [INFO] [stdout] | [INFO] [stdout] 84 | .map(|data| data.id) [INFO] [stdout] | ^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> examples/container.rs:315:18 [INFO] [stdout] | [INFO] [stdout] 315 | .into_iter() [INFO] [stdout] | ^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `docker_api` [INFO] [stdout] --> examples/exec.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use docker_api::{conn::TtyChunk, Exec}; [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `docker_api` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `docker_api`, use `cargo add docker_api` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `docker_api` [INFO] [stdout] --> examples/common.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use docker_api::{conn::TtyChunk, Docker, Result}; [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `docker_api` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `docker_api`, use `cargo add docker_api` 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 `docker_api` [INFO] [stdout] --> examples/exec.rs:37:17 [INFO] [stdout] | [INFO] [stdout] 37 | use docker_api::opts::ExecCreateOpts; [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `docker_api` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `docker_api`, use `cargo add docker_api` 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 `docker_api` [INFO] [stdout] --> examples/exec.rs:75:17 [INFO] [stdout] | [INFO] [stdout] 75 | use docker_api::opts::ExecResizeOpts; [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `docker_api` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `docker_api`, use `cargo add docker_api` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `docker_api` [INFO] [stdout] --> examples/exec.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use docker_api::{conn::TtyChunk, Exec}; [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `docker_api` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `docker_api`, use `cargo add docker_api` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/docker_tests.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | let info_result = docker.info().await; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 11 | assert!(info_result.is_ok()); [INFO] [stdout] | ----- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `info_result` an explicit type [INFO] [stdout] | [INFO] [stdout] 10 | let info_result: /* Type */ = docker.info().await; [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/common.rs:129:23 [INFO] [stdout] | [INFO] [stdout] 129 | assert!(chunk.is_ok()); [INFO] [stdout] | ^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/docker_tests.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 23 | let ping_result = docker.ping().await; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 24 | assert!(ping_result.is_ok()); [INFO] [stdout] | ----- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `ping_result` an explicit type [INFO] [stdout] | [INFO] [stdout] 23 | let ping_result: /* Type */ = docker.ping().await; [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/docker_tests.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 33 | let version_result = docker.version().await; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 34 | assert!(version_result.is_ok()); [INFO] [stdout] | ----- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `version_result` an explicit type [INFO] [stdout] | [INFO] [stdout] 33 | let version_result: /* Type */ = docker.version().await; [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/docker_tests.rs:37:9 [INFO] [stdout] | [INFO] [stdout] 37 | let ping_result = docker.ping().await; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 38 | assert!(ping_result.is_ok()); [INFO] [stdout] | ----- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `ping_result` an explicit type [INFO] [stdout] | [INFO] [stdout] 37 | let ping_result: /* Type */ = docker.ping().await; [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/common.rs:147:10 [INFO] [stdout] | [INFO] [stdout] 147 | .map(|data| data.id) [INFO] [stdout] | ^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/docker_tests.rs:48:9 [INFO] [stdout] | [INFO] [stdout] 48 | let du_result = docker [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 59 | assert!(du_result.is_ok()); [INFO] [stdout] | ----- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `du_result` an explicit type [INFO] [stdout] | [INFO] [stdout] 48 | let du_result: /* Type */ = docker [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/common.rs:164:10 [INFO] [stdout] | [INFO] [stdout] 164 | .expect("created base volume"); [INFO] [stdout] | ^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/common.rs:184:10 [INFO] [stdout] | [INFO] [stdout] 184 | .expect("created base network"); [INFO] [stdout] | ^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `docker_api` [INFO] [stdout] --> examples/common.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use docker_api::{conn::TtyChunk, Docker, Result}; [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `docker_api` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `docker_api`, use `cargo add docker_api` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0282, E0432, E0433. [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/network_tests.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | let network = create_base_network(&docker, "test-create-network", None).await; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 11 | [INFO] [stdout] 12 | assert!(network.inspect().await.is_ok()); [INFO] [stdout] | ------- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `network` an explicit type [INFO] [stdout] | [INFO] [stdout] 10 | let network: /* Type */ = create_base_network(&docker, "test-create-network", None).await; [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/network_tests.rs:12:37 [INFO] [stdout] | [INFO] [stdout] 12 | assert!(network.inspect().await.is_ok()); [INFO] [stdout] | ^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/network_tests.rs:13:36 [INFO] [stdout] | [INFO] [stdout] 13 | assert!(network.delete().await.is_ok()); [INFO] [stdout] | ^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/common.rs:147:10 [INFO] [stdout] | [INFO] [stdout] 147 | .map(|data| data.id) [INFO] [stdout] | ^^^ cannot infer type [INFO] [stdout] [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/network_tests.rs:14:37 [INFO] [stdout] | [INFO] [stdout] 14 | assert!(network.inspect().await.is_err()); [INFO] [stdout] | ^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/network_tests.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 15 | let network = create_base_network(&docker, "test-create-network", None).await; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 16 | assert!(network.inspect().await.is_ok()); [INFO] [stdout] | ------- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `network` an explicit type [INFO] [stdout] | [INFO] [stdout] 15 | let network: /* Type */ = create_base_network(&docker, "test-create-network", None).await; [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/network_tests.rs:16:37 [INFO] [stdout] | [INFO] [stdout] 16 | assert!(network.inspect().await.is_ok()); [INFO] [stdout] | ^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/network_tests.rs:17:36 [INFO] [stdout] | [INFO] [stdout] 17 | assert!(network.delete().await.is_ok()); [INFO] [stdout] | ^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/network_tests.rs:18:37 [INFO] [stdout] | [INFO] [stdout] 18 | assert!(network.inspect().await.is_err()); [INFO] [stdout] | ^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/common.rs:164:10 [INFO] [stdout] | [INFO] [stdout] 164 | .expect("created base volume"); [INFO] [stdout] | ^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/common.rs:184:10 [INFO] [stdout] | [INFO] [stdout] 184 | .expect("created base network"); [INFO] [stdout] | ^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `docker_api` [INFO] [stdout] --> examples/common.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use docker_api::{conn::TtyChunk, Docker, Result}; [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `docker_api` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `docker_api`, use `cargo add docker_api` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/network_tests.rs:31:9 [INFO] [stdout] | [INFO] [stdout] 31 | let inspect_result = network.inspect().await; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 32 | assert!(inspect_result.is_ok()); [INFO] [stdout] | ----- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `inspect_result` an explicit type [INFO] [stdout] | [INFO] [stdout] 31 | let inspect_result: /* Type */ = network.inspect().await; [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/network_tests.rs:35:36 [INFO] [stdout] | [INFO] [stdout] 35 | assert!(network.delete().await.is_ok()); [INFO] [stdout] | ^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/network_tests.rs:60:39 [INFO] [stdout] | [INFO] [stdout] 60 | assert!(network_a.inspect().await.is_ok()); [INFO] [stdout] | ^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/network_tests.rs:61:39 [INFO] [stdout] | [INFO] [stdout] 61 | assert!(network_b.inspect().await.is_ok()); [INFO] [stdout] | ^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rs-docker-api-rs` (test "docker_tests") due to 14 previous errors; 1 warning emitted [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/network_tests.rs:65:9 [INFO] [stdout] | [INFO] [stdout] 65 | let prune_result = networks.prune(&prune_opts).await; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 66 | assert!(prune_result.is_ok()); [INFO] [stdout] | ----- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `prune_result` an explicit type [INFO] [stdout] | [INFO] [stdout] 65 | let prune_result: /* Type */ = networks.prune(&prune_opts).await; [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/network_tests.rs:70:39 [INFO] [stdout] | [INFO] [stdout] 70 | assert!(network_a.inspect().await.is_err()); [INFO] [stdout] | ^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/network_tests.rs:71:39 [INFO] [stdout] | [INFO] [stdout] 71 | assert!(network_b.inspect().await.is_err()); [INFO] [stdout] | ^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/network_tests.rs:77:39 [INFO] [stdout] | [INFO] [stdout] 77 | assert!(network_a.inspect().await.is_ok()); [INFO] [stdout] | ^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/network_tests.rs:78:39 [INFO] [stdout] | [INFO] [stdout] 78 | assert!(network_b.inspect().await.is_ok()); [INFO] [stdout] | ^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/network_tests.rs:82:9 [INFO] [stdout] | [INFO] [stdout] 82 | let prune_result = networks.prune(&prune_opts).await; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 83 | assert!(prune_result.is_ok()); [INFO] [stdout] | ----- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `prune_result` an explicit type [INFO] [stdout] | [INFO] [stdout] 82 | let prune_result: /* Type */ = networks.prune(&prune_opts).await; [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/network_tests.rs:87:39 [INFO] [stdout] | [INFO] [stdout] 87 | assert!(network_a.inspect().await.is_err()); [INFO] [stdout] | ^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/network_tests.rs:88:39 [INFO] [stdout] | [INFO] [stdout] 88 | assert!(network_b.inspect().await.is_ok()); [INFO] [stdout] | ^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/network_tests.rs:92:9 [INFO] [stdout] | [INFO] [stdout] 92 | let prune_result = networks.prune(&prune_opts).await; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 93 | assert!(prune_result.is_ok()); [INFO] [stdout] | ----- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `prune_result` an explicit type [INFO] [stdout] | [INFO] [stdout] 92 | let prune_result: /* Type */ = networks.prune(&prune_opts).await; [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/network_tests.rs:97:39 [INFO] [stdout] | [INFO] [stdout] 97 | assert!(network_a.inspect().await.is_err()); [INFO] [stdout] | ^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> examples/exec.rs:47:17 [INFO] [stdout] | [INFO] [stdout] 47 | let exec = Exec::create(docker, &container, &opts).await?; [INFO] [stdout] | ^^^^ [INFO] [stdout] 48 | [INFO] [stdout] 49 | println!("{:#?}", exec.inspect().await?); [INFO] [stdout] | ------- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `exec` an explicit type [INFO] [stdout] | [INFO] [stdout] 47 | let exec: /* Type */ = Exec::create(docker, &container, &opts).await?; [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/network_tests.rs:98:39 [INFO] [stdout] | [INFO] [stdout] 98 | assert!(network_b.inspect().await.is_err()); [INFO] [stdout] | ^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> examples/exec.rs:51:17 [INFO] [stdout] | [INFO] [stdout] 51 | let mut stream = exec.start(&Default::default()).await?; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 52 | [INFO] [stdout] 53 | while let Some(Ok(chunk)) = stream.next().await { [INFO] [stdout] | ---- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `stream` an explicit type [INFO] [stdout] | [INFO] [stdout] 51 | let mut stream: /* Type */ = exec.start(&Default::default()).await?; [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/network_tests.rs:126:9 [INFO] [stdout] | [INFO] [stdout] 126 | let list_result = networks.list(&list_opts).await; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 127 | assert!(list_result.is_ok()); [INFO] [stdout] | ----- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `list_result` an explicit type [INFO] [stdout] | [INFO] [stdout] 126 | let list_result: /* Type */ = networks.list(&list_opts).await; [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/network_tests.rs:139:9 [INFO] [stdout] | [INFO] [stdout] 139 | let list_result = networks.list(&list_opts).await; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 140 | // This sometimes breaks when running all tests at the same time [INFO] [stdout] 141 | assert!(list_result.is_ok()); [INFO] [stdout] | ----- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `list_result` an explicit type [INFO] [stdout] | [INFO] [stdout] 139 | let list_result: /* Type */ = networks.list(&list_opts).await; [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/network_tests.rs:153:9 [INFO] [stdout] | [INFO] [stdout] 153 | let list_result = networks.list(&list_opts).await; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 154 | assert!(list_result.is_ok()); [INFO] [stdout] | ----- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `list_result` an explicit type [INFO] [stdout] | [INFO] [stdout] 153 | let list_result: /* Type */ = networks.list(&list_opts).await; [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `docker_api` [INFO] [stdout] --> examples/system.rs:46:17 [INFO] [stdout] | [INFO] [stdout] 46 | use docker_api::opts::{DataUsageType, SystemDataUsageOpts}; [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `docker_api` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `docker_api`, use `cargo add docker_api` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `docker_api` [INFO] [stdout] --> examples/common.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use docker_api::{conn::TtyChunk, Docker, Result}; [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `docker_api` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `docker_api`, use `cargo add docker_api` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0282, E0432, 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/network_tests.rs:174:9 [INFO] [stdout] | [INFO] [stdout] 174 | let network = create_base_network(&docker, network_name, None).await; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 180 | let connect_result = network.connect(&opts).await; [INFO] [stdout] | ------- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `network` an explicit type [INFO] [stdout] | [INFO] [stdout] 174 | let network: /* Type */ = create_base_network(&docker, network_name, None).await; [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/network_tests.rs:180:9 [INFO] [stdout] | [INFO] [stdout] 180 | let connect_result = network.connect(&opts).await; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 181 | assert!(connect_result.is_ok()); [INFO] [stdout] | ----- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `connect_result` an explicit type [INFO] [stdout] | [INFO] [stdout] 180 | let connect_result: /* Type */ = network.connect(&opts).await; [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `docker_api` [INFO] [stdout] --> examples/common.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use docker_api::{conn::TtyChunk, Docker, Result}; [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `docker_api` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `docker_api`, use `cargo add docker_api` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/network_tests.rs:176:9 [INFO] [stdout] | [INFO] [stdout] 176 | let container = create_base_container(&docker, container_name, None).await; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 184 | let container_data = container.inspect().await.unwrap(); [INFO] [stdout] | ------- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `container` an explicit type [INFO] [stdout] | [INFO] [stdout] 176 | let container: /* Type */ = create_base_container(&docker, container_name, None).await; [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/network_tests.rs:184:52 [INFO] [stdout] | [INFO] [stdout] 184 | let container_data = container.inspect().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 `docker_api` [INFO] [stdout] --> tests/common.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | pub use docker_api::{ [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `docker_api` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `docker_api`, use `cargo add docker_api` 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 `docker_api` [INFO] [stdout] --> tests/container_tests.rs:215:9 [INFO] [stdout] | [INFO] [stdout] 215 | use docker_api::opts::ContainerCommitOpts; [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `docker_api` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `docker_api`, use `cargo add docker_api` 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 `docker_api` [INFO] [stdout] --> tests/container_tests.rs:414:9 [INFO] [stdout] | [INFO] [stdout] 414 | use docker_api::models::FilesystemChange; [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `docker_api` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `docker_api`, use `cargo add docker_api` 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 `docker_api` [INFO] [stdout] --> tests/container_tests.rs:457:9 [INFO] [stdout] | [INFO] [stdout] 457 | use docker_api::opts::LogsOpts; [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `docker_api` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `docker_api`, use `cargo add docker_api` 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 `docker_api` [INFO] [stdout] --> tests/container_tests.rs:518:9 [INFO] [stdout] | [INFO] [stdout] 518 | use docker_api::opts::{ContainerFilter, ContainerListOpts}; [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `docker_api` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `docker_api`, use `cargo add docker_api` 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 `docker_api` [INFO] [stdout] --> tests/container_tests.rs:600:9 [INFO] [stdout] | [INFO] [stdout] 600 | use docker_api::opts::{ContainerPruneFilter, ContainerPruneOpts}; [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `docker_api` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `docker_api`, use `cargo add docker_api` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `docker_api` [INFO] [stdout] --> tests/common.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | pub use docker_api::{ [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `docker_api` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `docker_api`, use `cargo add docker_api` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/common.rs:66:10 [INFO] [stdout] | [INFO] [stdout] 66 | .expect("created base container"); [INFO] [stdout] | ^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/common.rs:84:10 [INFO] [stdout] | [INFO] [stdout] 84 | .map(|data| data.id) [INFO] [stdout] | ^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/common.rs:129:23 [INFO] [stdout] | [INFO] [stdout] 129 | assert!(chunk.is_ok()); [INFO] [stdout] | ^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0282, E0432, 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/common.rs:147:10 [INFO] [stdout] | [INFO] [stdout] 147 | .map(|data| data.id) [INFO] [stdout] | ^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rs-docker-api-rs` (test "common") due to 8 previous errors [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/common.rs:164:10 [INFO] [stdout] | [INFO] [stdout] 164 | .expect("created base volume"); [INFO] [stdout] | ^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/common.rs:184:10 [INFO] [stdout] | [INFO] [stdout] 184 | .expect("created base network"); [INFO] [stdout] | ^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/container_tests.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | let container = create_base_container(&docker, container_name, None).await; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 17 | let inspect_result = container.inspect().await; [INFO] [stdout] | ------- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `container` an explicit type [INFO] [stdout] | [INFO] [stdout] 16 | let container: /* Type */ = create_base_container(&docker, container_name, None).await; [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/container_tests.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | let inspect_result = container.inspect().await; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 18 | assert!(inspect_result.is_ok()); [INFO] [stdout] | ----- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `inspect_result` an explicit type [INFO] [stdout] | [INFO] [stdout] 17 | let inspect_result: /* Type */ = container.inspect().await; [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/container_tests.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 20 | let remove_result = container.delete().await; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 21 | assert!(remove_result.is_ok()); [INFO] [stdout] | ----- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `remove_result` an explicit type [INFO] [stdout] | [INFO] [stdout] 20 | let remove_result: /* Type */ = container.delete().await; [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/container_tests.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 23 | let inspect_result = container.inspect().await; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 24 | assert!(inspect_result.is_err()); [INFO] [stdout] | ------ type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `inspect_result` an explicit type [INFO] [stdout] | [INFO] [stdout] 23 | let inspect_result: /* Type */ = container.inspect().await; [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `docker_api` [INFO] [stdout] --> tests/common.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | pub use docker_api::{ [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `docker_api` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `docker_api`, use `cargo add docker_api` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/container_tests.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 32 | let container = create_base_container(&docker, container_name, None).await; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 33 | let inspect_result = container.inspect().await; [INFO] [stdout] | ------- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `container` an explicit type [INFO] [stdout] | [INFO] [stdout] 32 | let container: /* Type */ = create_base_container(&docker, container_name, None).await; [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/container_tests.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 33 | let inspect_result = container.inspect().await; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 34 | assert!(inspect_result.is_ok()); [INFO] [stdout] | ----- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `inspect_result` an explicit type [INFO] [stdout] | [INFO] [stdout] 33 | let inspect_result: /* Type */ = container.inspect().await; [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/container_tests.rs:49:9 [INFO] [stdout] | [INFO] [stdout] 49 | let inspect_result = container.inspect().await; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 50 | assert!(inspect_result.is_err()); [INFO] [stdout] | ------ type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `inspect_result` an explicit type [INFO] [stdout] | [INFO] [stdout] 49 | let inspect_result: /* Type */ = container.inspect().await; [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `docker_api` [INFO] [stdout] --> tests/common.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | pub use docker_api::{ [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `docker_api` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `docker_api`, use `cargo add docker_api` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/container_tests.rs:62:9 [INFO] [stdout] | [INFO] [stdout] 62 | let inspect_result = docker.containers().get(new_container_name).inspect().await; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 63 | assert!(inspect_result.is_err()); [INFO] [stdout] | ------ type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `inspect_result` an explicit type [INFO] [stdout] | [INFO] [stdout] 62 | let inspect_result: /* Type */ = docker.containers().get(new_container_name).inspect().await; [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/container_tests.rs:60:9 [INFO] [stdout] | [INFO] [stdout] 60 | let container = create_base_container(&docker, container_name, None).await; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 65 | let rename_result = container.rename(new_container_name).await; [INFO] [stdout] | ------ type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `container` an explicit type [INFO] [stdout] | [INFO] [stdout] 60 | let container: /* Type */ = create_base_container(&docker, container_name, None).await; [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/container_tests.rs:65:9 [INFO] [stdout] | [INFO] [stdout] 65 | let rename_result = container.rename(new_container_name).await; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 66 | assert!(rename_result.is_ok()); [INFO] [stdout] | ----- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `rename_result` an explicit type [INFO] [stdout] | [INFO] [stdout] 65 | let rename_result: /* Type */ = container.rename(new_container_name).await; [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/container_tests.rs:68:9 [INFO] [stdout] | [INFO] [stdout] 68 | let inspect_result = docker.containers().get(new_container_name).inspect().await; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 69 | assert!(inspect_result.is_ok()); [INFO] [stdout] | ----- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `inspect_result` an explicit type [INFO] [stdout] | [INFO] [stdout] 68 | let inspect_result: /* Type */ = docker.containers().get(new_container_name).inspect().await; [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/container_tests.rs:80:9 [INFO] [stdout] | [INFO] [stdout] 80 | let container = create_base_container(&docker, container_name, None).await; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 81 | [INFO] [stdout] 82 | let start_result = container.start().await; [INFO] [stdout] | ----- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `container` an explicit type [INFO] [stdout] | [INFO] [stdout] 80 | let container: /* Type */ = create_base_container(&docker, container_name, None).await; [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/container_tests.rs:82:9 [INFO] [stdout] | [INFO] [stdout] 82 | let start_result = container.start().await; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 83 | assert!(start_result.is_ok()); [INFO] [stdout] | ----- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `start_result` an explicit type [INFO] [stdout] | [INFO] [stdout] 82 | let start_result: /* Type */ = container.start().await; [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/container_tests.rs:88:10 [INFO] [stdout] | [INFO] [stdout] 88 | .expect("started container inspect data"); [INFO] [stdout] | ^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/container_tests.rs:99:9 [INFO] [stdout] | [INFO] [stdout] 99 | let container = create_base_container(&docker, container_name, None).await; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 100 | let _ = container.start().await; [INFO] [stdout] | ----- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `container` an explicit type [INFO] [stdout] | [INFO] [stdout] 99 | let container: /* Type */ = create_base_container(&docker, container_name, None).await; [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/container_tests.rs:105:10 [INFO] [stdout] | [INFO] [stdout] 105 | .expect("restarted container inspect data before") [INFO] [stdout] | ^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/container_tests.rs:111:9 [INFO] [stdout] | [INFO] [stdout] 111 | let restart_result = container.restart(&Default::default()).await; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 112 | assert!(restart_result.is_ok()); [INFO] [stdout] | ----- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `restart_result` an explicit type [INFO] [stdout] | [INFO] [stdout] 111 | let restart_result: /* Type */ = container.restart(&Default::default()).await; [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/container_tests.rs:117:10 [INFO] [stdout] | [INFO] [stdout] 117 | .expect("restarted container inspect data") [INFO] [stdout] | ^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/container_tests.rs:132:9 [INFO] [stdout] | [INFO] [stdout] 132 | let container = create_base_container(&docker, container_name, None).await; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 133 | [INFO] [stdout] 134 | let _ = container.start().await; [INFO] [stdout] | ----- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `container` an explicit type [INFO] [stdout] | [INFO] [stdout] 132 | let container: /* Type */ = create_base_container(&docker, container_name, None).await; [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/container_tests.rs:136:9 [INFO] [stdout] | [INFO] [stdout] 136 | let pause_result = container.pause().await; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 137 | assert!(pause_result.is_ok()); [INFO] [stdout] | ----- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `pause_result` an explicit type [INFO] [stdout] | [INFO] [stdout] 136 | let pause_result: /* Type */ = container.pause().await; [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/container_tests.rs:142:10 [INFO] [stdout] | [INFO] [stdout] 142 | .expect("paused container inspect data"); [INFO] [stdout] | ^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/container_tests.rs:145:9 [INFO] [stdout] | [INFO] [stdout] 145 | let unpause_result = container.unpause().await; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 146 | assert!(unpause_result.is_ok()); [INFO] [stdout] | ----- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `unpause_result` an explicit type [INFO] [stdout] | [INFO] [stdout] 145 | let unpause_result: /* Type */ = container.unpause().await; [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/container_tests.rs:151:10 [INFO] [stdout] | [INFO] [stdout] 151 | .expect("paused container inspect data"); [INFO] [stdout] | ^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/container_tests.rs:162:9 [INFO] [stdout] | [INFO] [stdout] 162 | let container = create_base_container(&docker, container_name, None).await; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 163 | [INFO] [stdout] 164 | let _ = container.start().await; [INFO] [stdout] | ----- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `container` an explicit type [INFO] [stdout] | [INFO] [stdout] 162 | let container: /* Type */ = create_base_container(&docker, container_name, None).await; [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rs-docker-api-rs` (test "network_tests") due to 38 previous errors; 1 warning emitted [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/container_tests.rs:169:10 [INFO] [stdout] | [INFO] [stdout] 169 | .expect("killed container inspect data"); [INFO] [stdout] | ^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/container_tests.rs:173:9 [INFO] [stdout] | [INFO] [stdout] 173 | let kill_result = container.kill(None).await; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 174 | assert!(kill_result.is_ok()); [INFO] [stdout] | ----- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `kill_result` an explicit type [INFO] [stdout] | [INFO] [stdout] 173 | let kill_result: /* Type */ = container.kill(None).await; [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/container_tests.rs:179:10 [INFO] [stdout] | [INFO] [stdout] 179 | .expect("killed container inspect data"); [INFO] [stdout] | ^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/container_tests.rs:191:9 [INFO] [stdout] | [INFO] [stdout] 191 | let container = create_base_container(&docker, container_name, None).await; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 192 | [INFO] [stdout] 193 | let _ = container.start().await; [INFO] [stdout] | ----- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `container` an explicit type [INFO] [stdout] | [INFO] [stdout] 191 | let container: /* Type */ = create_base_container(&docker, container_name, None).await; [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/container_tests.rs:198:10 [INFO] [stdout] | [INFO] [stdout] 198 | .expect("stopped container inspect data"); [INFO] [stdout] | ^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/container_tests.rs:201:9 [INFO] [stdout] | [INFO] [stdout] 201 | let stop_result = container.stop(&Default::default()).await; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 202 | assert!(stop_result.is_ok()); [INFO] [stdout] | ----- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `stop_result` an explicit type [INFO] [stdout] | [INFO] [stdout] 201 | let stop_result: /* Type */ = container.stop(&Default::default()).await; [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/container_tests.rs:207:10 [INFO] [stdout] | [INFO] [stdout] 207 | .expect("stopped container inspect data"); [INFO] [stdout] | ^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/container_tests.rs:219:9 [INFO] [stdout] | [INFO] [stdout] 219 | let container = create_base_container(&docker, container_name, None).await; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 223 | .commit( [INFO] [stdout] | ------ type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `container` an explicit type [INFO] [stdout] | [INFO] [stdout] 219 | let container: /* Type */ = create_base_container(&docker, container_name, None).await; [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/container_tests.rs:222:9 [INFO] [stdout] | [INFO] [stdout] 222 | let commit_result = container [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 232 | assert!(commit_result.is_ok()); [INFO] [stdout] | ----- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `commit_result` an explicit type [INFO] [stdout] | [INFO] [stdout] 222 | let commit_result: /* Type */ = container [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/container_tests.rs:240:10 [INFO] [stdout] | [INFO] [stdout] 240 | .expect("commited image inspect data"); [INFO] [stdout] | ^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/container_tests.rs:251:9 [INFO] [stdout] | [INFO] [stdout] 251 | let container = create_base_container(&docker, container_name, None).await; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 252 | [INFO] [stdout] 253 | let _ = container.start().await; [INFO] [stdout] | ----- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `container` an explicit type [INFO] [stdout] | [INFO] [stdout] 251 | let container: /* Type */ = create_base_container(&docker, container_name, None).await; [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/container_tests.rs:269:10 [INFO] [stdout] | [INFO] [stdout] 269 | .unwrap(); [INFO] [stdout] | ^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/container_tests.rs:270:36 [INFO] [stdout] | [INFO] [stdout] 270 | while exec_stream.next().await.is_some() {} [INFO] [stdout] | ^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/container_tests.rs:283:10 [INFO] [stdout] | [INFO] [stdout] 283 | .unwrap(); [INFO] [stdout] | ^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/container_tests.rs:284:9 [INFO] [stdout] | [INFO] [stdout] 284 | let chunk = exec_stream.next().await; [INFO] [stdout] | ^^^^^ [INFO] [stdout] 285 | assert!(chunk.is_some()); [INFO] [stdout] | ------- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `chunk` an explicit type [INFO] [stdout] | [INFO] [stdout] 284 | let chunk: /* Type */ = exec_stream.next().await; [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0282, E0432, E0433. [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 `docker_api` [INFO] [stdout] --> examples/image.rs:87:17 [INFO] [stdout] | [INFO] [stdout] 87 | use docker_api::opts::ImageBuildOpts; [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `docker_api` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `docker_api`, use `cargo add docker_api` 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 `docker_api` [INFO] [stdout] --> examples/image.rs:128:17 [INFO] [stdout] | [INFO] [stdout] 128 | use docker_api::opts::ImageRemoveOpts; [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `docker_api` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `docker_api`, use `cargo add docker_api` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `docker_api` [INFO] [stdout] --> examples/common.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use docker_api::{conn::TtyChunk, Docker, Result}; [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `docker_api` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `docker_api`, use `cargo add docker_api` 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 `docker_api` [INFO] [stdout] --> examples/image.rs:181:17 [INFO] [stdout] | [INFO] [stdout] 181 | use docker_api::opts::ImageListOpts; [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `docker_api` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `docker_api`, use `cargo add docker_api` 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 `docker_api` [INFO] [stdout] --> examples/image.rs:213:17 [INFO] [stdout] | [INFO] [stdout] 213 | use docker_api::opts::{PullOpts, RegistryAuth}; [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `docker_api` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `docker_api`, use `cargo add docker_api` 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 `docker_api` [INFO] [stdout] --> examples/image.rs:252:17 [INFO] [stdout] | [INFO] [stdout] 252 | use docker_api::api::Image; [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `docker_api` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `docker_api`, use `cargo add docker_api` 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 `docker_api` [INFO] [stdout] --> examples/image.rs:253:17 [INFO] [stdout] | [INFO] [stdout] 253 | use docker_api::opts::TagOpts; [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `docker_api` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `docker_api`, use `cargo add docker_api` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `docker_api` [INFO] [stdout] --> examples/image.rs:143:17 [INFO] [stdout] | [INFO] [stdout] 143 | use docker_api::Error; [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `docker_api` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `docker_api`, use `cargo add docker_api` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `[u8]` cannot be known at compilation time [INFO] [stdout] --> tests/container_tests.rs:291:12 [INFO] [stdout] | [INFO] [stdout] 291 | Ok(chunk) => { [INFO] [stdout] | ^^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sized` is not implemented for `[u8]` [INFO] [stdout] = note: all local variables must have a statically known size [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `[u8]` cannot be known at compilation time [INFO] [stdout] --> tests/container_tests.rs:291:9 [INFO] [stdout] | [INFO] [stdout] 291 | Ok(chunk) => { [INFO] [stdout] | ^^^^^^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sized` is not implemented for `[u8]` [INFO] [stdout] note: required by a bound in `Ok` [INFO] [stdout] --> /rustc/c7f6aa2869acdbf014d094c6e427e554e160b6db/library/core/src/result.rs:554:5 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/container_tests.rs:315:9 [INFO] [stdout] | [INFO] [stdout] 315 | let container = create_base_container(&docker, container_name, None).await; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 316 | [INFO] [stdout] 317 | let _ = container.start().await; [INFO] [stdout] | ----- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `container` an explicit type [INFO] [stdout] | [INFO] [stdout] 315 | let container: /* Type */ = create_base_container(&docker, container_name, None).await; [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/container_tests.rs:333:10 [INFO] [stdout] | [INFO] [stdout] 333 | .unwrap(); [INFO] [stdout] | ^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/container_tests.rs:334:36 [INFO] [stdout] | [INFO] [stdout] 334 | while exec_stream.next().await.is_some() {} [INFO] [stdout] | ^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/container_tests.rs:337:47 [INFO] [stdout] | [INFO] [stdout] 337 | let bytes = tar_stream.try_concat().await.expect("joined tarball bytes"); [INFO] [stdout] | ^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/container_tests.rs:354:9 [INFO] [stdout] | [INFO] [stdout] 354 | let container = create_base_container(&docker, container_name, None).await; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 355 | [INFO] [stdout] 356 | let _ = container.start().await; [INFO] [stdout] | ----- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `container` an explicit type [INFO] [stdout] | [INFO] [stdout] 354 | let container: /* Type */ = create_base_container(&docker, container_name, None).await; [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/container_tests.rs:359:9 [INFO] [stdout] | [INFO] [stdout] 359 | let copy_result = container.copy_file_into("/tmp/test-file", data).await; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 360 | assert!(copy_result.is_ok()); [INFO] [stdout] | ----- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `copy_result` an explicit type [INFO] [stdout] | [INFO] [stdout] 359 | let copy_result: /* Type */ = container.copy_file_into("/tmp/test-file", data).await; [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/container_tests.rs:372:10 [INFO] [stdout] | [INFO] [stdout] 372 | .unwrap(); [INFO] [stdout] | ^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/container_tests.rs:373:9 [INFO] [stdout] | [INFO] [stdout] 373 | let chunk = exec_stream.next().await; [INFO] [stdout] | ^^^^^ [INFO] [stdout] 374 | assert!(chunk.is_some()); [INFO] [stdout] | ------- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `chunk` an explicit type [INFO] [stdout] | [INFO] [stdout] 373 | let chunk: /* Type */ = exec_stream.next().await; [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/container_tests.rs:393:9 [INFO] [stdout] | [INFO] [stdout] 393 | let container = create_base_container(&docker, container_name, None).await; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 394 | [INFO] [stdout] 395 | let _ = container.start().await; [INFO] [stdout] | ----- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `container` an explicit type [INFO] [stdout] | [INFO] [stdout] 393 | let container: /* Type */ = create_base_container(&docker, container_name, None).await; [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/container_tests.rs:411:10 [INFO] [stdout] | [INFO] [stdout] 411 | .unwrap(); [INFO] [stdout] | ^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/container_tests.rs:412:36 [INFO] [stdout] | [INFO] [stdout] 412 | while exec_stream.next().await.is_some() {} [INFO] [stdout] | ^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/container_tests.rs:419:10 [INFO] [stdout] | [INFO] [stdout] 419 | .expect("container changes") [INFO] [stdout] | ^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/container_tests.rs:442:9 [INFO] [stdout] | [INFO] [stdout] 442 | let container = create_base_container( [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 455 | let _ = container.start().await; [INFO] [stdout] | ----- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `container` an explicit type [INFO] [stdout] | [INFO] [stdout] 442 | let container: /* Type */ = create_base_container( [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/container_tests.rs:480:9 [INFO] [stdout] | [INFO] [stdout] 480 | let container = create_base_container(&docker, container_name, None).await; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 481 | [INFO] [stdout] 482 | let _ = container.start().await; [INFO] [stdout] | ----- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `container` an explicit type [INFO] [stdout] | [INFO] [stdout] 480 | let container: /* Type */ = create_base_container(&docker, container_name, None).await; [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/container_tests.rs:490:27 [INFO] [stdout] | [INFO] [stdout] 490 | assert!(chunk.is_ok()); [INFO] [stdout] | ^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rs-docker-api-rs` (example "container") due to 17 previous errors [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `docker_api` [INFO] [stdout] --> examples/volume.rs:36:17 [INFO] [stdout] | [INFO] [stdout] 36 | use docker_api::opts::VolumeCreateOpts; [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `docker_api` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `docker_api`, use `cargo add docker_api` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `docker_api` [INFO] [stdout] --> examples/common.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use docker_api::{conn::TtyChunk, Docker, Result}; [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `docker_api` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `docker_api`, use `cargo add docker_api` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/container_tests.rs:505:9 [INFO] [stdout] | [INFO] [stdout] 505 | let container = create_base_container(&docker, container_name, None).await; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 506 | [INFO] [stdout] 507 | let _ = container.start().await; [INFO] [stdout] | ----- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `container` an explicit type [INFO] [stdout] | [INFO] [stdout] 505 | let container: /* Type */ = create_base_container(&docker, container_name, None).await; [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/container_tests.rs:509:9 [INFO] [stdout] | [INFO] [stdout] 509 | let top_result = container.top(None).await; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 510 | assert!(top_result.is_ok()); [INFO] [stdout] | ----- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `top_result` an explicit type [INFO] [stdout] | [INFO] [stdout] 509 | let top_result: /* Type */ = container.top(None).await; [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/container_tests.rs:544:9 [INFO] [stdout] | [INFO] [stdout] 544 | let list_result = docker.containers().list(&opts).await; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 545 | assert!(list_result.is_ok()); [INFO] [stdout] | ----- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `list_result` an explicit type [INFO] [stdout] | [INFO] [stdout] 544 | let list_result: /* Type */ = docker.containers().list(&opts).await; [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/container_tests.rs:559:9 [INFO] [stdout] | [INFO] [stdout] 559 | let list_result = docker.containers().list(&opts).await; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 560 | assert!(list_result.is_ok()); [INFO] [stdout] | ----- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `list_result` an explicit type [INFO] [stdout] | [INFO] [stdout] 559 | let list_result: /* Type */ = docker.containers().list(&opts).await; [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/container_tests.rs:569:9 [INFO] [stdout] | [INFO] [stdout] 569 | let list_result = docker.containers().list(&opts).await; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 570 | assert!(list_result.is_ok()); [INFO] [stdout] | ----- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `list_result` an explicit type [INFO] [stdout] | [INFO] [stdout] 569 | let list_result: /* Type */ = docker.containers().list(&opts).await; [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/container_tests.rs:584:9 [INFO] [stdout] | [INFO] [stdout] 584 | let list_result = docker.containers().list(&opts).await; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 585 | assert!(list_result.is_ok()); [INFO] [stdout] | ----- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `list_result` an explicit type [INFO] [stdout] | [INFO] [stdout] 584 | let list_result: /* Type */ = docker.containers().list(&opts).await; [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0282, E0432, 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/container_tests.rs:626:9 [INFO] [stdout] | [INFO] [stdout] 626 | let prune_result = docker.containers().prune(&prune_opts).await; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 627 | assert!(prune_result.is_ok()); [INFO] [stdout] | ----- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `prune_result` an explicit type [INFO] [stdout] | [INFO] [stdout] 626 | let prune_result: /* Type */ = docker.containers().prune(&prune_opts).await; [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/container_tests.rs:640:9 [INFO] [stdout] | [INFO] [stdout] 640 | let prune_result = docker.containers().prune(&prune_opts).await; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 641 | assert!(prune_result.is_ok()); [INFO] [stdout] | ----- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `prune_result` an explicit type [INFO] [stdout] | [INFO] [stdout] 640 | let prune_result: /* Type */ = docker.containers().prune(&prune_opts).await; [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/container_tests.rs:648:9 [INFO] [stdout] | [INFO] [stdout] 648 | let prune_result = docker.containers().prune(&prune_opts).await; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 649 | assert!(prune_result.is_ok()); [INFO] [stdout] | ----- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `prune_result` an explicit type [INFO] [stdout] | [INFO] [stdout] 648 | let prune_result: /* Type */ = docker.containers().prune(&prune_opts).await; [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/common.rs:66:10 [INFO] [stdout] | [INFO] [stdout] 66 | .expect("created base container"); [INFO] [stdout] | ^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/container_tests.rs:660:9 [INFO] [stdout] | [INFO] [stdout] 660 | let container = create_base_container( [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 677 | let _ = container.start().await; [INFO] [stdout] | ----- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `container` an explicit type [INFO] [stdout] | [INFO] [stdout] 660 | let container: /* Type */ = create_base_container( [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/container_tests.rs:679:52 [INFO] [stdout] | [INFO] [stdout] 679 | let mut multiplexer = container.attach().await.unwrap(); [INFO] [stdout] | ^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/container_tests.rs:697:9 [INFO] [stdout] | [INFO] [stdout] 697 | let container = create_base_container( [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 713 | let _ = container.start().await; [INFO] [stdout] | ----- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `container` an explicit type [INFO] [stdout] | [INFO] [stdout] 697 | let container: /* Type */ = create_base_container( [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/container_tests.rs:715:52 [INFO] [stdout] | [INFO] [stdout] 715 | let mut multiplexer = container.attach().await.unwrap(); [INFO] [stdout] | ^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/common.rs:84:10 [INFO] [stdout] | [INFO] [stdout] 84 | .map(|data| data.id) [INFO] [stdout] | ^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/common.rs:129:23 [INFO] [stdout] | [INFO] [stdout] 129 | assert!(chunk.is_ok()); [INFO] [stdout] | ^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `docker_api` [INFO] [stdout] --> examples/common.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use docker_api::{conn::TtyChunk, Docker, Result}; [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `docker_api` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `docker_api`, use `cargo add docker_api` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rs-docker-api-rs` (example "exec") due to 8 previous errors [INFO] [stdout] Some errors have detailed explanations: E0277, E0282, E0432, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> examples/image.rs:151:37 [INFO] [stdout] | [INFO] [stdout] 151 | match export_result.and_then(|bytes| export_file.write(&bytes).map_err(Error::from)) [INFO] [stdout] | ^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rs-docker-api-rs` (test "container_tests") due to 82 previous errors [INFO] [stdout] error[E0277]: the size for values of type `[u8]` cannot be known at compilation time [INFO] [stdout] --> examples/image.rs:151:47 [INFO] [stdout] | [INFO] [stdout] 151 | match export_result.and_then(|bytes| export_file.write(&bytes).map_err(Error::from)) [INFO] [stdout] | ^^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sized` is not implemented for `[u8]` [INFO] [stdout] = note: all function arguments must have a statically known size [INFO] [stdout] = help: unsized fn params are gated as an unstable feature [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> examples/image.rs:190:28 [INFO] [stdout] | [INFO] [stdout] 190 | images.into_iter().for_each(|image| { [INFO] [stdout] | ^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `docker_api` [INFO] [stdout] --> examples/network.rs:48:17 [INFO] [stdout] | [INFO] [stdout] 48 | use docker_api::opts::ContainerConnectionOpts; [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `docker_api` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `docker_api`, use `cargo add docker_api` 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 `docker_api` [INFO] [stdout] --> examples/network.rs:59:17 [INFO] [stdout] | [INFO] [stdout] 59 | use docker_api::opts::NetworkCreateOpts; [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `docker_api` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `docker_api`, use `cargo add docker_api` 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 `docker_api` [INFO] [stdout] --> examples/network.rs:75:17 [INFO] [stdout] | [INFO] [stdout] 75 | use docker_api::opts::ContainerDisconnectionOpts; [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `docker_api` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `docker_api`, use `cargo add docker_api` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `docker_api` [INFO] [stdout] --> examples/common.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use docker_api::{conn::TtyChunk, Docker, Result}; [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `docker_api` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `docker_api`, use `cargo add docker_api` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rs-docker-api-rs` (example "system") due to 3 previous errors [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/common.rs:147:10 [INFO] [stdout] | [INFO] [stdout] 147 | .map(|data| data.id) [INFO] [stdout] | ^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/common.rs:164:10 [INFO] [stdout] | [INFO] [stdout] 164 | .expect("created base volume"); [INFO] [stdout] | ^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/common.rs:184:10 [INFO] [stdout] | [INFO] [stdout] 184 | .expect("created base network"); [INFO] [stdout] | ^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/image_tests.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | let image = create_base_image(&docker, "test-create-image", None).await; [INFO] [stdout] | ^^^^^ [INFO] [stdout] 13 | assert!(image.inspect().await.is_ok()); [INFO] [stdout] | ------- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `image` an explicit type [INFO] [stdout] | [INFO] [stdout] 12 | let image: /* Type */ = create_base_image(&docker, "test-create-image", None).await; [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/image_tests.rs:13:35 [INFO] [stdout] | [INFO] [stdout] 13 | assert!(image.inspect().await.is_ok()); [INFO] [stdout] | ^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/image_tests.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | let delete_res = image [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 23 | assert!(delete_res.is_ok()); [INFO] [stdout] | ----- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `delete_res` an explicit type [INFO] [stdout] | [INFO] [stdout] 14 | let delete_res: /* Type */ = image [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/image_tests.rs:24:35 [INFO] [stdout] | [INFO] [stdout] 24 | assert!(image.inspect().await.is_err()); [INFO] [stdout] | ^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/image_tests.rs:37:9 [INFO] [stdout] | [INFO] [stdout] 37 | let inspect_result = image.inspect().await; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 38 | assert!(inspect_result.is_ok()); [INFO] [stdout] | ----- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `inspect_result` an explicit type [INFO] [stdout] | [INFO] [stdout] 37 | let inspect_result: /* Type */ = image.inspect().await; [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/image_tests.rs:45:34 [INFO] [stdout] | [INFO] [stdout] 45 | assert!(image.delete().await.is_ok()); [INFO] [stdout] | ^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/image_tests.rs:58:9 [INFO] [stdout] | [INFO] [stdout] 58 | let history_result = image.history().await; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 59 | assert!(history_result.is_ok()); [INFO] [stdout] | ----- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `history_result` an explicit type [INFO] [stdout] | [INFO] [stdout] 58 | let history_result: /* Type */ = image.history().await; [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/image_tests.rs:82:36 [INFO] [stdout] | [INFO] [stdout] 82 | assert!(image.tag(&opts).await.is_ok()); [INFO] [stdout] | ^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/image_tests.rs:89:10 [INFO] [stdout] | [INFO] [stdout] 89 | .expect("image inspect data") [INFO] [stdout] | ^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/image_tests.rs:109:56 [INFO] [stdout] | [INFO] [stdout] 109 | let export_data = export_stream.try_concat().await.expect("image archive"); [INFO] [stdout] | ^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/image_tests.rs:121:35 [INFO] [stdout] | [INFO] [stdout] 121 | assert!(image.inspect().await.is_err()); [INFO] [stdout] | ^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/image_tests.rs:125:23 [INFO] [stdout] | [INFO] [stdout] 125 | assert!(chunk.is_ok()); [INFO] [stdout] | ^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/image_tests.rs:127:35 [INFO] [stdout] | [INFO] [stdout] 127 | assert!(image.inspect().await.is_ok()); [INFO] [stdout] | ^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/image_tests.rs:130:35 [INFO] [stdout] | [INFO] [stdout] 130 | assert!(image.inspect().await.is_err()); [INFO] [stdout] | ^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/image_tests.rs:138:9 [INFO] [stdout] | [INFO] [stdout] 138 | let search_result = images.search("ubuntu").await; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 139 | println!("{search_result:#?}"); [INFO] [stdout] 140 | assert!(search_result.is_ok()); [INFO] [stdout] | ----- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `search_result` an explicit type [INFO] [stdout] | [INFO] [stdout] 138 | let search_result: /* Type */ = images.search("ubuntu").await; [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/image_tests.rs:179:9 [INFO] [stdout] | [INFO] [stdout] 179 | let list_result = images.list(&list_opts).await; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 180 | assert!(list_result.is_ok()); [INFO] [stdout] | ----- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `list_result` an explicit type [INFO] [stdout] | [INFO] [stdout] 179 | let list_result: /* Type */ = images.list(&list_opts).await; [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/image_tests.rs:191:9 [INFO] [stdout] | [INFO] [stdout] 191 | let list_result = images.list(&list_opts).await; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 192 | // This sometimes breaks when running all tests at the same time [INFO] [stdout] 193 | assert!(list_result.is_ok()); [INFO] [stdout] | ----- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `list_result` an explicit type [INFO] [stdout] | [INFO] [stdout] 191 | let list_result: /* Type */ = images.list(&list_opts).await; [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/image_tests.rs:204:9 [INFO] [stdout] | [INFO] [stdout] 204 | let list_result = images.list(&list_opts).await; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 205 | assert!(list_result.is_ok()); [INFO] [stdout] | ----- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `list_result` an explicit type [INFO] [stdout] | [INFO] [stdout] 204 | let list_result: /* Type */ = images.list(&list_opts).await; [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/image_tests.rs:216:9 [INFO] [stdout] | [INFO] [stdout] 216 | let list_result = images.list(&list_opts).await; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 217 | assert!(list_result.is_ok()); [INFO] [stdout] | ----- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `list_result` an explicit type [INFO] [stdout] | [INFO] [stdout] 216 | let list_result: /* Type */ = images.list(&list_opts).await; [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/image_tests.rs:227:9 [INFO] [stdout] | [INFO] [stdout] 227 | let list_result = images.list(&list_opts).await; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 228 | assert!(list_result.is_ok()); [INFO] [stdout] | ----- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `list_result` an explicit type [INFO] [stdout] | [INFO] [stdout] 227 | let list_result: /* Type */ = images.list(&list_opts).await; [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0282, E0432, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0282, E0432, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0282`. [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rs-docker-api-rs` (example "image") due to 12 previous errors [INFO] [stderr] error: could not compile `rs-docker-api-rs` (test "image_tests") due to 28 previous errors [INFO] [stderr] error: could not compile `rs-docker-api-rs` (example "volume") due to 3 previous errors [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> examples/network.rs:92:38 [INFO] [stdout] | [INFO] [stdout] 92 | Ok(networks) => networks.into_iter().for_each(|net| { [INFO] [stdout] | ^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0282, E0432, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0282`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rs-docker-api-rs` (example "network") due to 6 previous errors [INFO] running `Command { std: "docker" "inspect" "612e673319283bdec7637e48d1e6adc06fa7c9a6f9a392f5f9b418335a59e66b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "612e673319283bdec7637e48d1e6adc06fa7c9a6f9a392f5f9b418335a59e66b", kill_on_drop: false }` [INFO] [stdout] 612e673319283bdec7637e48d1e6adc06fa7c9a6f9a392f5f9b418335a59e66b