[INFO] cloning repository https://github.com/Atul-khadoliya/Image-compression
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Atul-khadoliya/Image-compression" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAtul-khadoliya%2FImage-compression", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAtul-khadoliya%2FImage-compression'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] f1a7b76b4374579941b417201963bf1223703370
[INFO] checking Atul-khadoliya/Image-compression against try#ddcf048784667508cd676fef4667f88ae15628a3 for pr-148271
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAtul-khadoliya%2FImage-compression" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/Atul-khadoliya/Image-compression
[INFO] finished tweaking git repo https://github.com/Atul-khadoliya/Image-compression
[INFO] tweaked toml for git repo https://github.com/Atul-khadoliya/Image-compression written to /workspace/builds/worker-0-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/Atul-khadoliya/Image-compression on toolchain ddcf048784667508cd676fef4667f88ae15628a3
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ddcf048784667508cd676fef4667f88ae15628a3" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/Atul-khadoliya/Image-compression 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" "+ddcf048784667508cd676fef4667f88ae15628a3" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ddcf048784667508cd676fef4667f88ae15628a3" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] f8db650996224dffd39c3bdfe49240e725d96e4e08630d18033a84cd26ce65df
[INFO] running `Command { std: "docker" "start" "-a" "f8db650996224dffd39c3bdfe49240e725d96e4e08630d18033a84cd26ce65df", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "f8db650996224dffd39c3bdfe49240e725d96e4e08630d18033a84cd26ce65df", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "f8db650996224dffd39c3bdfe49240e725d96e4e08630d18033a84cd26ce65df", kill_on_drop: false }`
[INFO] [stdout] f8db650996224dffd39c3bdfe49240e725d96e4e08630d18033a84cd26ce65df
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ddcf048784667508cd676fef4667f88ae15628a3" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 64c01b54394c4f166b16ad001e678e817beb80468a39f765210030b46c60ea94
[INFO] running `Command { std: "docker" "start" "-a" "64c01b54394c4f166b16ad001e678e817beb80468a39f765210030b46c60ea94", kill_on_drop: false }`
[INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024
[INFO] [stderr]    Compiling indexmap v1.9.3
[INFO] [stderr]    Compiling cc v1.1.21
[INFO] [stderr]     Checking miniz_oxide v0.7.4
[INFO] [stderr]     Checking bytemuck v1.17.1
[INFO] [stderr]     Checking flate2 v1.0.33
[INFO] [stderr]     Checking fdeflate v0.3.4
[INFO] [stderr]     Checking spin v0.9.8
[INFO] [stderr]     Checking atty v0.2.14
[INFO] [stderr]     Checking tap v1.0.1
[INFO] [stderr]     Checking regex-syntax v0.8.4
[INFO] [stderr]     Checking thread_local v1.1.8
[INFO] [stderr]    Compiling syn v2.0.77
[INFO] [stderr]     Checking radium v0.7.0
[INFO] [stderr]     Checking jpeg-decoder v0.3.1
[INFO] [stderr]     Checking typed-arena v2.0.2
[INFO] [stderr]     Checking funty v2.0.0
[INFO] [stderr]     Checking console v0.15.8
[INFO] [stderr]     Checking wyz v0.5.1
[INFO] [stderr]     Checking zopfli v0.7.4
[INFO] [stderr]     Checking flume v0.11.0
[INFO] [stderr]     Checking clap_builder v4.5.17
[INFO] [stderr]     Checking stderrlog v0.5.4
[INFO] [stderr]     Checking qoi v0.4.1
[INFO] [stderr]     Checking rgb v0.8.50
[INFO] [stderr]     Checking filetime v0.2.25
[INFO] [stderr]     Checking is-terminal v0.4.13
[INFO] [stderr]     Checking wild v2.2.1
[INFO] [stderr]     Checking png v0.17.13
[INFO] [stderr]     Checking exr v1.72.0
[INFO] [stderr]     Checking tiff v0.9.1
[INFO] [stderr]     Checking indicatif v0.17.8
[INFO] [stderr]     Checking bitvec v1.0.1
[INFO] [stderr]     Checking clap v3.2.25
[INFO] [stderr]     Checking regex-automata v0.4.7
[INFO] [stderr]    Compiling libdeflate-sys v0.11.0
[INFO] [stderr]    Compiling clap_derive v4.5.13
[INFO] [stderr]     Checking regex v1.10.6
[INFO] [stderr]     Checking image v0.24.9
[INFO] [stderr]     Checking env_logger v0.10.2
[INFO] [stderr]     Checking libdeflater v0.11.0
[INFO] [stderr]     Checking clap v4.5.17
[INFO] [stderr]     Checking oxipng v8.0.0
[INFO] [stderr]     Checking image_compressor_cli v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] error[E0432]: unresolved import `clap`
[INFO] [stdout]  --> src/cli.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use clap::Parser;
[INFO] [stdout]   |     ^^^^ use of unresolved module or unlinked crate `clap`
[INFO] [stdout]   |
[INFO] [stdout] help: if you wanted to use a crate named `clap`, use `cargo add clap` to add it to your `Cargo.toml` and import it in your code
[INFO] [stdout]  --> src/main.rs:1:1
[INFO] [stdout]   |
[INFO] [stdout] 1 + extern crate clap;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `image`
[INFO] [stdout]  --> src/compressor.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use image::{GenericImageView, ImageFormat, imageops::FilterType};
[INFO] [stdout]   |     ^^^^^ use of unresolved module or unlinked crate `image`
[INFO] [stdout]   |
[INFO] [stdout] help: if you wanted to use a crate named `image`, use `cargo add image` to add it to your `Cargo.toml` and import it in your code
[INFO] [stdout]  --> src/main.rs:1:1
[INFO] [stdout]   |
[INFO] [stdout] 1 + extern crate image;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0432]: unresolved import `image`
[INFO] [stdout]  --> src/compressor.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use image::{GenericImageView, ImageFormat, imageops::FilterType};
[INFO] [stdout]   |     ^^^^^ use of unresolved module or unlinked crate `image`
[INFO] [stdout]   |
[INFO] [stdout] help: if you wanted to use a crate named `image`, use `cargo add image` to add it to your `Cargo.toml` and import it in your code
[INFO] [stdout]  --> src/main.rs:1:1
[INFO] [stdout]   |
[INFO] [stdout] 1 + extern crate image;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0432]: unresolved import `walkdir`
[INFO] [stdout]  --> src/compressor.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use walkdir::WalkDir;
[INFO] [stdout]   |     ^^^^^^^ use of unresolved module or unlinked crate `walkdir`
[INFO] [stdout]   |
[INFO] [stdout] help: if you wanted to use a crate named `walkdir`, use `cargo add walkdir` to add it to your `Cargo.toml` and import it in your code
[INFO] [stdout]  --> src/main.rs:1:1
[INFO] [stdout]   |
[INFO] [stdout] 1 + extern crate walkdir;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0432]: unresolved import `indicatif`
[INFO] [stdout]  --> src/compressor.rs:4:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | use indicatif::{ProgressBar, ProgressStyle};
[INFO] [stdout]   |     ^^^^^^^^^ use of unresolved module or unlinked crate `indicatif`
[INFO] [stdout]   |
[INFO] [stdout] help: if you wanted to use a crate named `indicatif`, use `cargo add indicatif` to add it to your `Cargo.toml` and import it in your code
[INFO] [stdout]  --> src/main.rs:1:1
[INFO] [stdout]   |
[INFO] [stdout] 1 + extern crate indicatif;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0432]: unresolved import `oxipng`
[INFO] [stdout]  --> src/compressor.rs:5:5
[INFO] [stdout]   |
[INFO] [stdout] 5 | use oxipng::{InFile, OutFile, Options};
[INFO] [stdout]   |     ^^^^^^ use of unresolved module or unlinked crate `oxipng`
[INFO] [stdout]   |
[INFO] [stdout] help: if you wanted to use a crate named `oxipng`, use `cargo add oxipng` to add it to your `Cargo.toml` and import it in your code
[INFO] [stdout]  --> src/main.rs:1:1
[INFO] [stdout]   |
[INFO] [stdout] 1 + extern crate oxipng;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `rayon`
[INFO] [stdout]  --> src/compressor.rs:8:5
[INFO] [stdout]   |
[INFO] [stdout] 8 | use rayon::prelude::*;
[INFO] [stdout]   |     ^^^^^ use of unresolved module or unlinked crate `rayon`
[INFO] [stdout]   |
[INFO] [stdout] help: if you wanted to use a crate named `rayon`, use `cargo add rayon` to add it to your `Cargo.toml` and import it in your code
[INFO] [stdout]  --> src/main.rs:1:1
[INFO] [stdout]   |
[INFO] [stdout] 1 + extern crate rayon;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0432]: unresolved import `log`
[INFO] [stdout]  --> src/compressor.rs:6:5
[INFO] [stdout]   |
[INFO] [stdout] 6 | use log::{info, warn};
[INFO] [stdout]   |     ^^^ use of unresolved module or unlinked crate `log`
[INFO] [stdout]   |
[INFO] [stdout] help: if you wanted to use a crate named `log`, use `cargo add log` to add it to your `Cargo.toml` and import it in your code
[INFO] [stdout]  --> src/main.rs:1:1
[INFO] [stdout]   |
[INFO] [stdout] 1 + extern crate log;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0432]: unresolved import `image`
[INFO] [stdout]  --> src/utils.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use image::ImageFormat;
[INFO] [stdout]   |     ^^^^^ use of unresolved module or unlinked crate `image`
[INFO] [stdout]   |
[INFO] [stdout] help: if you wanted to use a crate named `image`, use `cargo add image` to add it to your `Cargo.toml` and import it in your code
[INFO] [stdout]  --> src/main.rs:1:1
[INFO] [stdout]   |
[INFO] [stdout] 1 + extern crate image;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0432]: unresolved import `log`
[INFO] [stdout]  --> src/main.rs:6:5
[INFO] [stdout]   |
[INFO] [stdout] 6 | use log::{info, error};
[INFO] [stdout]   |     ^^^ use of unresolved module or unlinked crate `log`
[INFO] [stdout]   |
[INFO] [stdout] help: if you wanted to use a crate named `log`, use `cargo add log` to add it to your `Cargo.toml` and import it in your code
[INFO] [stdout]   |
[INFO] [stdout] 1 + extern crate log;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0432]: unresolved import `env_logger`
[INFO] [stdout]  --> src/main.rs:7:5
[INFO] [stdout]   |
[INFO] [stdout] 7 | use env_logger::Env;
[INFO] [stdout]   |     ^^^^^^^^^^ use of unresolved module or unlinked crate `env_logger`
[INFO] [stdout]   |
[INFO] [stdout] help: if you wanted to use a crate named `env_logger`, use `cargo add env_logger` to add it to your `Cargo.toml` and import it in your code
[INFO] [stdout]   |
[INFO] [stdout] 1 + extern crate env_logger;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot find attribute `clap` in this scope
[INFO] [stdout]  --> src/cli.rs:7:3
[INFO] [stdout]   |
[INFO] [stdout] 7 | #[clap(version = "1.0", author = "Your Name", about = "Compresses images in a folder")]
[INFO] [stdout]   |   ^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `clap` is in scope, but it is a crate, not an attribute
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot find attribute `clap` in this scope
[INFO] [stdout]   --> src/cli.rs:10:7
[INFO] [stdout]    |
[INFO] [stdout] 10 |     #[clap(short, long, default_value = ".")]
[INFO] [stdout]    |       ^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `clap` is in scope, but it is a crate, not an attribute
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot find attribute `clap` in this scope
[INFO] [stdout]   --> src/cli.rs:14:7
[INFO] [stdout]    |
[INFO] [stdout] 14 |     #[clap(short, long, default_value = "compressed_images")]
[INFO] [stdout]    |       ^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `clap` is in scope, but it is a crate, not an attribute
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot find attribute `clap` in this scope
[INFO] [stdout]   --> src/cli.rs:18:7
[INFO] [stdout]    |
[INFO] [stdout] 18 |     #[clap(short, long, default_value = "85")]
[INFO] [stdout]    |       ^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `clap` is in scope, but it is a crate, not an attribute
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot find attribute `clap` in this scope
[INFO] [stdout]   --> src/cli.rs:22:7
[INFO] [stdout]    |
[INFO] [stdout] 22 |     #[clap(long, default_value = "1280")]
[INFO] [stdout]    |       ^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `clap` is in scope, but it is a crate, not an attribute
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no function or associated item named `parse` found for struct `Opts` in the current scope
[INFO] [stdout]   --> src/cli.rs:37:11
[INFO] [stdout]    |
[INFO] [stdout]  8 | pub struct Opts {
[INFO] [stdout]    | --------------- function or associated item `parse` not found for this struct
[INFO] [stdout] ...
[INFO] [stdout] 37 |     Opts::parse()
[INFO] [stdout]    |           ^^^^^ function or associated item not found in `Opts`
[INFO] [stdout]    |
[INFO] [stdout]    = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout]    = note: the following traits define an item `parse`, perhaps you need to implement one of them:
[INFO] [stdout]            candidate #1: `clap::Parser`
[INFO] [stdout]            candidate #2: `clap::builder::TypedValueParser`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0282]: type annotations needed
[INFO] [stdout]   --> src/compressor.rs:29:22
[INFO] [stdout]    |
[INFO] [stdout] 29 |         .filter_map(|e| e.ok())
[INFO] [stdout]    |                      ^  - type must be known at this point
[INFO] [stdout]    |
[INFO] [stdout] help: consider giving this closure parameter an explicit type
[INFO] [stdout]    |
[INFO] [stdout] 29 |         .filter_map(|e: /* Type */| e.ok())
[INFO] [stdout]    |                       ++++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0282]: type annotations needed
[INFO] [stdout]   --> src/compressor.rs:30:18
[INFO] [stdout]    |
[INFO] [stdout] 30 |         .filter(|e| e.file_type().is_file())
[INFO] [stdout]    |                  ^  - type must be known at this point
[INFO] [stdout]    |
[INFO] [stdout] help: consider giving this closure parameter an explicit type
[INFO] [stdout]    |
[INFO] [stdout] 30 |         .filter(|e: /* Type */| e.file_type().is_file())
[INFO] [stdout]    |                   ++++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0282]: type annotations needed
[INFO] [stdout]   --> src/compressor.rs:39:34
[INFO] [stdout]    |
[INFO] [stdout] 39 |     entries.par_iter().for_each(|entry| {
[INFO] [stdout]    |                                  ^^^^^
[INFO] [stdout] 40 |         let path = entry.path();
[INFO] [stdout]    |                    ----- type must be known at this point
[INFO] [stdout]    |
[INFO] [stdout] help: consider giving this closure parameter an explicit type
[INFO] [stdout]    |
[INFO] [stdout] 39 |     entries.par_iter().for_each(|entry: /* Type */| {
[INFO] [stdout]    |                                       ++++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `dimensions` found for enum `DynamicImage` in the current scope
[INFO] [stdout]     --> src/compressor.rs:83:31
[INFO] [stdout]      |
[INFO] [stdout]   83 |     let (width, height) = img.dimensions();
[INFO] [stdout]      |                               ^^^^^^^^^^ method not found in `DynamicImage`
[INFO] [stdout]      |
[INFO] [stdout]     ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/image-0.24.9/src/image.rs:1014:8
[INFO] [stdout]      |
[INFO] [stdout] 1014 |     fn dimensions(&self) -> (u32, u32);
[INFO] [stdout]      |        ---------- the method is available for `DynamicImage` here
[INFO] [stdout]      |
[INFO] [stdout]      = help: items from traits can only be used if the trait is in scope
[INFO] [stdout] help: trait `GenericImageView` which provides `dimensions` is implemented but not in scope; perhaps you want to import it
[INFO] [stdout]      |
[INFO] [stdout]    1 + use image::GenericImageView;
[INFO] [stdout]      |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0282, E0432, E0433, E0599.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0282`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `image_compressor_cli` (bin "image_compressor_cli") due to 21 previous errors
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stdout] error[E0432]: unresolved import `clap`
[INFO] [stdout]  --> src/cli.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use clap::Parser;
[INFO] [stdout]   |     ^^^^ use of unresolved module or unlinked crate `clap`
[INFO] [stdout]   |
[INFO] [stdout] help: if you wanted to use a crate named `clap`, use `cargo add clap` to add it to your `Cargo.toml` and import it in your code
[INFO] [stdout]  --> src/main.rs:1:1
[INFO] [stdout]   |
[INFO] [stdout] 1 + extern crate clap;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `image`
[INFO] [stdout]  --> src/compressor.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use image::{GenericImageView, ImageFormat, imageops::FilterType};
[INFO] [stdout]   |     ^^^^^ use of unresolved module or unlinked crate `image`
[INFO] [stdout]   |
[INFO] [stdout] help: if you wanted to use a crate named `image`, use `cargo add image` to add it to your `Cargo.toml` and import it in your code
[INFO] [stdout]  --> src/main.rs:1:1
[INFO] [stdout]   |
[INFO] [stdout] 1 + extern crate image;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0432]: unresolved import `image`
[INFO] [stdout]  --> src/compressor.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use image::{GenericImageView, ImageFormat, imageops::FilterType};
[INFO] [stdout]   |     ^^^^^ use of unresolved module or unlinked crate `image`
[INFO] [stdout]   |
[INFO] [stdout] help: if you wanted to use a crate named `image`, use `cargo add image` to add it to your `Cargo.toml` and import it in your code
[INFO] [stdout]  --> src/main.rs:1:1
[INFO] [stdout]   |
[INFO] [stdout] 1 + extern crate image;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0432]: unresolved import `walkdir`
[INFO] [stdout]  --> src/compressor.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use walkdir::WalkDir;
[INFO] [stdout]   |     ^^^^^^^ use of unresolved module or unlinked crate `walkdir`
[INFO] [stdout]   |
[INFO] [stdout] help: if you wanted to use a crate named `walkdir`, use `cargo add walkdir` to add it to your `Cargo.toml` and import it in your code
[INFO] [stdout]  --> src/main.rs:1:1
[INFO] [stdout]   |
[INFO] [stdout] 1 + extern crate walkdir;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0432]: unresolved import `indicatif`
[INFO] [stdout]  --> src/compressor.rs:4:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | use indicatif::{ProgressBar, ProgressStyle};
[INFO] [stdout]   |     ^^^^^^^^^ use of unresolved module or unlinked crate `indicatif`
[INFO] [stdout]   |
[INFO] [stdout] help: if you wanted to use a crate named `indicatif`, use `cargo add indicatif` to add it to your `Cargo.toml` and import it in your code
[INFO] [stdout]  --> src/main.rs:1:1
[INFO] [stdout]   |
[INFO] [stdout] 1 + extern crate indicatif;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0432]: unresolved import `oxipng`
[INFO] [stdout]  --> src/compressor.rs:5:5
[INFO] [stdout]   |
[INFO] [stdout] 5 | use oxipng::{InFile, OutFile, Options};
[INFO] [stdout]   |     ^^^^^^ use of unresolved module or unlinked crate `oxipng`
[INFO] [stdout]   |
[INFO] [stdout] help: if you wanted to use a crate named `oxipng`, use `cargo add oxipng` to add it to your `Cargo.toml` and import it in your code
[INFO] [stdout]  --> src/main.rs:1:1
[INFO] [stdout]   |
[INFO] [stdout] 1 + extern crate oxipng;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `rayon`
[INFO] [stdout]  --> src/compressor.rs:8:5
[INFO] [stdout]   |
[INFO] [stdout] 8 | use rayon::prelude::*;
[INFO] [stdout]   |     ^^^^^ use of unresolved module or unlinked crate `rayon`
[INFO] [stdout]   |
[INFO] [stdout] help: if you wanted to use a crate named `rayon`, use `cargo add rayon` to add it to your `Cargo.toml` and import it in your code
[INFO] [stdout]  --> src/main.rs:1:1
[INFO] [stdout]   |
[INFO] [stdout] 1 + extern crate rayon;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0432]: unresolved import `log`
[INFO] [stdout]  --> src/compressor.rs:6:5
[INFO] [stdout]   |
[INFO] [stdout] 6 | use log::{info, warn};
[INFO] [stdout]   |     ^^^ use of unresolved module or unlinked crate `log`
[INFO] [stdout]   |
[INFO] [stdout] help: if you wanted to use a crate named `log`, use `cargo add log` to add it to your `Cargo.toml` and import it in your code
[INFO] [stdout]  --> src/main.rs:1:1
[INFO] [stdout]   |
[INFO] [stdout] 1 + extern crate log;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0432]: unresolved import `image`
[INFO] [stdout]  --> src/utils.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use image::ImageFormat;
[INFO] [stdout]   |     ^^^^^ use of unresolved module or unlinked crate `image`
[INFO] [stdout]   |
[INFO] [stdout] help: if you wanted to use a crate named `image`, use `cargo add image` to add it to your `Cargo.toml` and import it in your code
[INFO] [stdout]  --> src/main.rs:1:1
[INFO] [stdout]   |
[INFO] [stdout] 1 + extern crate image;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0432]: unresolved import `log`
[INFO] [stdout]  --> src/main.rs:6:5
[INFO] [stdout]   |
[INFO] [stdout] 6 | use log::{info, error};
[INFO] [stdout]   |     ^^^ use of unresolved module or unlinked crate `log`
[INFO] [stdout]   |
[INFO] [stdout] help: if you wanted to use a crate named `log`, use `cargo add log` to add it to your `Cargo.toml` and import it in your code
[INFO] [stdout]   |
[INFO] [stdout] 1 + extern crate log;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0432]: unresolved import `env_logger`
[INFO] [stdout]  --> src/main.rs:7:5
[INFO] [stdout]   |
[INFO] [stdout] 7 | use env_logger::Env;
[INFO] [stdout]   |     ^^^^^^^^^^ use of unresolved module or unlinked crate `env_logger`
[INFO] [stdout]   |
[INFO] [stdout] help: if you wanted to use a crate named `env_logger`, use `cargo add env_logger` to add it to your `Cargo.toml` and import it in your code
[INFO] [stdout]   |
[INFO] [stdout] 1 + extern crate env_logger;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot find attribute `clap` in this scope
[INFO] [stdout]  --> src/cli.rs:7:3
[INFO] [stdout]   |
[INFO] [stdout] 7 | #[clap(version = "1.0", author = "Your Name", about = "Compresses images in a folder")]
[INFO] [stdout]   |   ^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `clap` is in scope, but it is a crate, not an attribute
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot find attribute `clap` in this scope
[INFO] [stdout]   --> src/cli.rs:10:7
[INFO] [stdout]    |
[INFO] [stdout] 10 |     #[clap(short, long, default_value = ".")]
[INFO] [stdout]    |       ^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `clap` is in scope, but it is a crate, not an attribute
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot find attribute `clap` in this scope
[INFO] [stdout]   --> src/cli.rs:14:7
[INFO] [stdout]    |
[INFO] [stdout] 14 |     #[clap(short, long, default_value = "compressed_images")]
[INFO] [stdout]    |       ^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `clap` is in scope, but it is a crate, not an attribute
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot find attribute `clap` in this scope
[INFO] [stdout]   --> src/cli.rs:18:7
[INFO] [stdout]    |
[INFO] [stdout] 18 |     #[clap(short, long, default_value = "85")]
[INFO] [stdout]    |       ^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `clap` is in scope, but it is a crate, not an attribute
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot find attribute `clap` in this scope
[INFO] [stdout]   --> src/cli.rs:22:7
[INFO] [stdout]    |
[INFO] [stdout] 22 |     #[clap(long, default_value = "1280")]
[INFO] [stdout]    |       ^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `clap` is in scope, but it is a crate, not an attribute
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no function or associated item named `parse` found for struct `Opts` in the current scope
[INFO] [stdout]   --> src/cli.rs:37:11
[INFO] [stdout]    |
[INFO] [stdout]  8 | pub struct Opts {
[INFO] [stdout]    | --------------- function or associated item `parse` not found for this struct
[INFO] [stdout] ...
[INFO] [stdout] 37 |     Opts::parse()
[INFO] [stdout]    |           ^^^^^ function or associated item not found in `Opts`
[INFO] [stdout]    |
[INFO] [stdout]    = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout]    = note: the following traits define an item `parse`, perhaps you need to implement one of them:
[INFO] [stdout]            candidate #1: `clap::Parser`
[INFO] [stdout]            candidate #2: `clap::builder::TypedValueParser`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0282]: type annotations needed
[INFO] [stdout]   --> src/compressor.rs:29:22
[INFO] [stdout]    |
[INFO] [stdout] 29 |         .filter_map(|e| e.ok())
[INFO] [stdout]    |                      ^  - type must be known at this point
[INFO] [stdout]    |
[INFO] [stdout] help: consider giving this closure parameter an explicit type
[INFO] [stdout]    |
[INFO] [stdout] 29 |         .filter_map(|e: /* Type */| e.ok())
[INFO] [stdout]    |                       ++++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0282]: type annotations needed
[INFO] [stdout]   --> src/compressor.rs:30:18
[INFO] [stdout]    |
[INFO] [stdout] 30 |         .filter(|e| e.file_type().is_file())
[INFO] [stdout]    |                  ^  - type must be known at this point
[INFO] [stdout]    |
[INFO] [stdout] help: consider giving this closure parameter an explicit type
[INFO] [stdout]    |
[INFO] [stdout] 30 |         .filter(|e: /* Type */| e.file_type().is_file())
[INFO] [stdout]    |                   ++++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0282]: type annotations needed
[INFO] [stdout]   --> src/compressor.rs:39:34
[INFO] [stdout]    |
[INFO] [stdout] 39 |     entries.par_iter().for_each(|entry| {
[INFO] [stdout]    |                                  ^^^^^
[INFO] [stdout] 40 |         let path = entry.path();
[INFO] [stdout]    |                    ----- type must be known at this point
[INFO] [stdout]    |
[INFO] [stdout] help: consider giving this closure parameter an explicit type
[INFO] [stdout]    |
[INFO] [stdout] 39 |     entries.par_iter().for_each(|entry: /* Type */| {
[INFO] [stdout]    |                                       ++++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `dimensions` found for enum `DynamicImage` in the current scope
[INFO] [stdout]     --> src/compressor.rs:83:31
[INFO] [stdout]      |
[INFO] [stdout]   83 |     let (width, height) = img.dimensions();
[INFO] [stdout]      |                               ^^^^^^^^^^ method not found in `DynamicImage`
[INFO] [stdout]      |
[INFO] [stdout]     ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/image-0.24.9/src/image.rs:1014:8
[INFO] [stdout]      |
[INFO] [stdout] 1014 |     fn dimensions(&self) -> (u32, u32);
[INFO] [stdout]      |        ---------- the method is available for `DynamicImage` here
[INFO] [stdout]      |
[INFO] [stdout]      = help: items from traits can only be used if the trait is in scope
[INFO] [stdout] help: trait `GenericImageView` which provides `dimensions` is implemented but not in scope; perhaps you want to import it
[INFO] [stdout]      |
[INFO] [stdout]    1 + use image::GenericImageView;
[INFO] [stdout]      |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0282, E0432, E0433, E0599.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0282`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `image_compressor_cli` (bin "image_compressor_cli" test) due to 21 previous errors
[INFO] running `Command { std: "docker" "inspect" "64c01b54394c4f166b16ad001e678e817beb80468a39f765210030b46c60ea94", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "64c01b54394c4f166b16ad001e678e817beb80468a39f765210030b46c60ea94", kill_on_drop: false }`
[INFO] [stdout] 64c01b54394c4f166b16ad001e678e817beb80468a39f765210030b46c60ea94
