[INFO] cloning repository https://github.com/griffin-ne/web-video-crawler [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/griffin-ne/web-video-crawler" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgriffin-ne%2Fweb-video-crawler", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgriffin-ne%2Fweb-video-crawler'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 2aa3ac86f1a4e676cda635daf0d62bddfd20a543 [INFO] building griffin-ne/web-video-crawler against master#ad85bc524b1ad696e42061ad8338d382dffbdbe5 for pr-146237-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgriffin-ne%2Fweb-video-crawler" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/griffin-ne/web-video-crawler [INFO] finished tweaking git repo https://github.com/griffin-ne/web-video-crawler [INFO] tweaked toml for git repo https://github.com/griffin-ne/web-video-crawler written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/griffin-ne/web-video-crawler on toolchain ad85bc524b1ad696e42061ad8338d382dffbdbe5 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/griffin-ne/web-video-crawler 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" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded textwrap v0.16.2 [INFO] [stderr] Downloaded wasip2 v1.0.0+wasi-0.2.4 [INFO] [stderr] Downloaded wasi v0.14.5+wasi-0.2.4 [INFO] [stderr] Downloaded indexmap v2.11.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 96a7e78efa427ef8cb4cb4c0e00cb1733ee85faeec0a73fbc66e923fac78318b [INFO] running `Command { std: "docker" "start" "-a" "96a7e78efa427ef8cb4cb4c0e00cb1733ee85faeec0a73fbc66e923fac78318b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "96a7e78efa427ef8cb4cb4c0e00cb1733ee85faeec0a73fbc66e923fac78318b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "96a7e78efa427ef8cb4cb4c0e00cb1733ee85faeec0a73fbc66e923fac78318b", kill_on_drop: false }` [INFO] [stdout] 96a7e78efa427ef8cb4cb4c0e00cb1733ee85faeec0a73fbc66e923fac78318b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 9698c9499fa9ba9a54bce0ac69d3564f2044425ec603d753d4b956c80e94a1fe [INFO] running `Command { std: "docker" "start" "-a" "9698c9499fa9ba9a54bce0ac69d3564f2044425ec603d753d4b956c80e94a1fe", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.175 [INFO] [stderr] Compiling hashbrown v0.15.5 [INFO] [stderr] Compiling percent-encoding v2.3.2 [INFO] [stderr] Compiling syn v2.0.106 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling indexmap v1.9.3 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling regex-syntax v0.8.6 [INFO] [stderr] Compiling rustix v1.1.2 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling portable-atomic v1.11.1 [INFO] [stderr] Compiling serde_json v1.0.143 [INFO] [stderr] Compiling http-body v0.4.6 [INFO] [stderr] Compiling linux-raw-sys v0.11.0 [INFO] [stderr] Compiling log v0.4.28 [INFO] [stderr] Compiling form_urlencoded v1.2.2 [INFO] [stderr] Compiling anyhow v1.0.99 [INFO] [stderr] Compiling os_str_bytes v6.6.1 [INFO] [stderr] Compiling bitflags v2.9.4 [INFO] [stderr] Compiling encoding_rs v0.8.35 [INFO] [stderr] Compiling textwrap v0.16.2 [INFO] [stderr] Compiling humantime v2.3.0 [INFO] [stderr] Compiling clap_lex v0.2.4 [INFO] [stderr] Compiling number_prefix v0.4.0 [INFO] [stderr] Compiling colored v2.2.0 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling indexmap v2.11.1 [INFO] [stderr] Compiling sha1 v0.10.6 [INFO] [stderr] Compiling sha2 v0.10.9 [INFO] [stderr] Compiling md5 v0.7.0 [INFO] [stderr] Compiling chrono v0.4.42 [INFO] [stderr] Compiling parking_lot_core v0.9.11 [INFO] [stderr] Compiling socket2 v0.6.0 [INFO] [stderr] Compiling signal-hook-registry v1.4.6 [INFO] [stderr] Compiling mio v1.0.4 [INFO] [stderr] Compiling getrandom v0.2.16 [INFO] [stderr] Compiling socket2 v0.5.10 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling getrandom v0.3.3 [INFO] [stderr] Compiling console v0.15.11 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling is-terminal v0.4.16 [INFO] [stderr] Compiling clap v3.2.25 [INFO] [stderr] Compiling parking_lot v0.12.4 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling indicatif v0.17.11 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling tempfile v3.22.0 [INFO] [stderr] Compiling regex-automata v0.4.10 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.0 [INFO] [stderr] Compiling zerovec-derive v0.11.1 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling async-trait v0.1.89 [INFO] [stderr] Compiling regex v1.11.2 [INFO] [stderr] Compiling tokio v1.47.1 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling env_logger v0.10.2 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling yoke v0.8.0 [INFO] [stderr] Compiling zerovec v0.11.4 [INFO] [stderr] Compiling zerotrie v0.2.2 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling tinystr v0.8.1 [INFO] [stderr] Compiling potential_utf v0.1.3 [INFO] [stderr] Compiling icu_collections v2.0.0 [INFO] [stderr] Compiling icu_locale_core v2.0.0 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling icu_provider v2.0.0 [INFO] [stderr] Compiling futures-executor v0.3.31 [INFO] [stderr] Compiling icu_normalizer v2.0.0 [INFO] [stderr] Compiling icu_properties v2.0.1 [INFO] [stderr] Compiling futures v0.3.31 [INFO] [stderr] Compiling idna_adapter v1.2.1 [INFO] [stderr] Compiling idna v1.1.0 [INFO] [stderr] Compiling tokio-util v0.7.16 [INFO] [stderr] Compiling h2 v0.3.27 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling url v2.5.7 [INFO] [stderr] Compiling hyper v0.14.32 [INFO] [stderr] Compiling reqwest v0.11.27 [INFO] [stderr] Compiling web-video-crawler v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `DownloadSettings`, `FfmpegSettings`, `HttpSettings`, `ProxySettings`, `RateLimitSettings`, and `Settings` [INFO] [stdout] --> src/config/mod.rs:4:20 [INFO] [stdout] | [INFO] [stdout] 4 | pub use settings::{DownloadSettings, FfmpegSettings, HttpSettings, ProxySettings, RateLimitSettings, Settings}; [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 imports: `CrawlerError` and `Result` [INFO] [stdout] --> src/models/mod.rs:5:17 [INFO] [stdout] | [INFO] [stdout] 5 | pub use error::{CrawlerError, Result}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `PlatformFactory` and `VideoPlatform` [INFO] [stdout] --> src/models/mod.rs:6:20 [INFO] [stdout] | [INFO] [stdout] 6 | pub use platform::{PlatformFactory, VideoPlatform}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DownloadOptions`, `DownloadProgress`, `DownloadResult`, `DownloadStatus`, `PlatformType`, `VideoFormat`, `VideoInfo`, `VideoQuality`, and `VideoStream` [INFO] [stdout] --> src/models/mod.rs:7:17 [INFO] [stdout] | [INFO] [stdout] 7 | ...::{DownloadOptions, DownloadProgress, DownloadResult, DownloadStatus, PlatformType, VideoFormat, VideoInfo, VideoQuality, VideoStream}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `error` and `info` [INFO] [stdout] --> src/utils/file_utils.rs:1:18 [INFO] [stdout] | [INFO] [stdout] 1 | use log::{debug, error, info}; [INFO] [stdout] | ^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `base64_decode`, `base64_encode`, `generate_nonce`, `generate_url_signature`, `hmac_sha256`, and `sha256_hash` [INFO] [stdout] --> src/utils/mod.rs:7:24 [INFO] [stdout] | [INFO] [stdout] 7 | pub use crypto_utils::{base64_decode, base64_encode, generate_nonce, generate_url_signature, hmac_sha256, sha256_hash}; [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^^^^^^^^ ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `append_to_file`, `create_temp_directory`, `ensure_directory_exists`, `generate_output_path`, `get_file_size`, `is_file_complete`, `read_from_file`, `sanitize_filename`, and `write_to_file` [INFO] [stdout] --> src/utils/mod.rs:8:22 [INFO] [stdout] | [INFO] [stdout] 8 | ...::{append_to_file, create_temp_directory, ensure_directory_exists, generate_output_path, get_file_size, is_file_complete, read_from_file, sanitize_filename, write_to_file}; [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::process::Command` [INFO] [stdout] --> src/platforms/youtube_real.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::process::Command; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Path` [INFO] [stdout] --> src/platforms/youtube_real.rs:4:17 [INFO] [stdout] | [INFO] [stdout] 4 | use std::path::{Path, PathBuf}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `YOUTUBE_URL_PATTERNS` is never used [INFO] [stdout] --> src/config/constants.rs:5:11 [INFO] [stdout] | [INFO] [stdout] 5 | pub const YOUTUBE_URL_PATTERNS: [&str; 4] = [ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `BILIBILI_URL_PATTERNS` is never used [INFO] [stdout] --> src/config/constants.rs:12:11 [INFO] [stdout] | [INFO] [stdout] 12 | pub const BILIBILI_URL_PATTERNS: [&str; 2] = [ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DOUYIN_URL_PATTERNS` is never used [INFO] [stdout] --> src/config/constants.rs:17:11 [INFO] [stdout] | [INFO] [stdout] 17 | pub const DOUYIN_URL_PATTERNS: [&str; 2] = [ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `TENCENT_URL_PATTERNS` is never used [INFO] [stdout] --> src/config/constants.rs:22:11 [INFO] [stdout] | [INFO] [stdout] 22 | pub const TENCENT_URL_PATTERNS: [&str; 2] = [ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `IQIYI_URL_PATTERNS` is never used [INFO] [stdout] --> src/config/constants.rs:27:11 [INFO] [stdout] | [INFO] [stdout] 27 | pub const IQIYI_URL_PATTERNS: [&str; 2] = [ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `YOUKU_URL_PATTERNS` is never used [INFO] [stdout] --> src/config/constants.rs:32:11 [INFO] [stdout] | [INFO] [stdout] 32 | pub const YOUKU_URL_PATTERNS: [&str; 2] = [ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DEFAULT_CHUNK_SIZE` is never used [INFO] [stdout] --> src/config/constants.rs:43:11 [INFO] [stdout] | [INFO] [stdout] 43 | pub const DEFAULT_CHUNK_SIZE: usize = 1024 * 1024; // 1MB [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DEFAULT_CONCURRENT_DOWNLOADS` is never used [INFO] [stdout] --> src/config/constants.rs:44:11 [INFO] [stdout] | [INFO] [stdout] 44 | pub const DEFAULT_CONCURRENT_DOWNLOADS: usize = 5; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DEFAULT_DOWNLOAD_DIR` is never used [INFO] [stdout] --> src/config/constants.rs:45:11 [INFO] [stdout] | [INFO] [stdout] 45 | pub const DEFAULT_DOWNLOAD_DIR: &str = "./downloads"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `FFMPEG_BIN` is never used [INFO] [stdout] --> src/config/constants.rs:48:11 [INFO] [stdout] | [INFO] [stdout] 48 | pub const FFMPEG_BIN: &str = "ffmpeg"; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `FFPROBE_BIN` is never used [INFO] [stdout] --> src/config/constants.rs:49:11 [INFO] [stdout] | [INFO] [stdout] 49 | pub const FFPROBE_BIN: &str = "ffprobe"; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DEFAULT_REQUESTS_PER_MINUTE` is never used [INFO] [stdout] --> src/config/constants.rs:52:11 [INFO] [stdout] | [INFO] [stdout] 52 | pub const DEFAULT_REQUESTS_PER_MINUTE: u32 = 60; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `VIDEO_EXTENSIONS` is never used [INFO] [stdout] --> src/config/constants.rs:58:11 [INFO] [stdout] | [INFO] [stdout] 58 | pub const VIDEO_EXTENSIONS: [&str; 7] = [ [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `TEMP_DIR_PREFIX` is never used [INFO] [stdout] --> src/config/constants.rs:63:11 [INFO] [stdout] | [INFO] [stdout] 63 | pub const TEMP_DIR_PREFIX: &str = "web_video_crawler_"; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DownloadSettings` is never constructed [INFO] [stdout] --> src/config/settings.rs:52:12 [INFO] [stdout] | [INFO] [stdout] 52 | pub struct DownloadSettings { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `FfmpegSettings` is never constructed [INFO] [stdout] --> src/config/settings.rs:77:12 [INFO] [stdout] | [INFO] [stdout] 77 | pub struct FfmpegSettings { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RateLimitSettings` is never constructed [INFO] [stdout] --> src/config/settings.rs:96:12 [INFO] [stdout] | [INFO] [stdout] 96 | pub struct RateLimitSettings { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Settings` is never constructed [INFO] [stdout] --> src/config/settings.rs:111:12 [INFO] [stdout] | [INFO] [stdout] 111 | pub struct Settings { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `load_from_file` and `save_to_file` are never used [INFO] [stdout] --> src/config/settings.rs:134:12 [INFO] [stdout] | [INFO] [stdout] 133 | impl Settings { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] 134 | pub fn load_from_file>(path: P) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 144 | pub fn save_to_file>(&self, path: P) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> src/models/error.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum CrawlerError { [INFO] [stdout] | ------------ variants in this enum [INFO] [stdout] ... [INFO] [stdout] 15 | JsonError(String), [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 24 | FfmpegError(String), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | VideoNotFound, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | MergeError(String), [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 39 | AntiScrapingDetected(String), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | AuthenticationRequired(String), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 45 | RateLimited(String), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 48 | ProxyError(String), [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 51 | UnsupportedPlatform(String), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 54 | ConfigError(String), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 57 | Unknown(String), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CrawlerError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `validate_url` is never used [INFO] [stdout] --> src/models/platform.rs:26:8 [INFO] [stdout] | [INFO] [stdout] 8 | pub trait VideoPlatform: Send + Sync { [INFO] [stdout] | ------------- method in this trait [INFO] [stdout] ... [INFO] [stdout] 26 | fn validate_url(&self, url: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PlatformFactory` is never constructed [INFO] [stdout] --> src/models/platform.rs:42:12 [INFO] [stdout] | [INFO] [stdout] 42 | pub struct PlatformFactory { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `register`, and `get_platform_for_url` are never used [INFO] [stdout] --> src/models/platform.rs:47:12 [INFO] [stdout] | [INFO] [stdout] 46 | impl PlatformFactory { [INFO] [stdout] | -------------------- associated items in this implementation [INFO] [stdout] 47 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 53 | pub fn register(&mut self, platform: P) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 57 | pub fn get_platform_for_url(&self, url: &str) -> Option<&dyn VideoPlatform> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/models/video.rs:76:9 [INFO] [stdout] | [INFO] [stdout] 74 | pub struct DownloadOptions { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] 75 | pub output_dir: PathBuf, [INFO] [stdout] 76 | pub filename: Option, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 77 | pub quality: Option, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 78 | pub format: Option, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 79 | pub merge_audio_video: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 80 | pub use_proxy: bool, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 81 | pub max_retries: u32, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 82 | pub timeout: std::time::Duration, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 83 | pub user_agent: Option, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 84 | pub cookies: Option, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 85 | pub headers: Option>, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 88 | pub output_format: String, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 89 | pub keep_separate_files: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 90 | pub max_concurrent_downloads: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 91 | pub chunk_size: Option, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 92 | pub retry_count: Option, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 93 | pub retry_delay: Option, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DownloadOptions` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DownloadProgress` is never constructed [INFO] [stdout] --> src/models/video.rs:123:12 [INFO] [stdout] | [INFO] [stdout] 123 | pub struct DownloadProgress { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `DownloadStatus` is never used [INFO] [stdout] --> src/models/video.rs:137:10 [INFO] [stdout] | [INFO] [stdout] 137 | pub enum DownloadStatus { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `video_info` is never read [INFO] [stdout] --> src/models/video.rs:147:9 [INFO] [stdout] | [INFO] [stdout] 146 | pub struct DownloadResult { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] 147 | pub video_info: VideoInfo, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DownloadResult` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `sha256_hash` is never used [INFO] [stdout] --> src/utils/crypto_utils.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn sha256_hash(data: &[u8]) -> String { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `hmac_sha256` is never used [INFO] [stdout] --> src/utils/crypto_utils.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn hmac_sha256(key: &[u8], data: &[u8]) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `base64_encode` is never used [INFO] [stdout] --> src/utils/crypto_utils.rs:29:8 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn base64_encode(data: &[u8]) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `base64_decode` is never used [INFO] [stdout] --> src/utils/crypto_utils.rs:34:8 [INFO] [stdout] | [INFO] [stdout] 34 | pub fn base64_decode(data: &str) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_url_signature` is never used [INFO] [stdout] --> src/utils/crypto_utils.rs:40:8 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn generate_url_signature(url: &str, params: &[(String, String)], secret: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_nonce` is never used [INFO] [stdout] --> src/utils/crypto_utils.rs:68:8 [INFO] [stdout] | [INFO] [stdout] 68 | pub fn generate_nonce() -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ensure_directory_exists` is never used [INFO] [stdout] --> src/utils/file_utils.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn ensure_directory_exists>(path: P) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_output_path` is never used [INFO] [stdout] --> src/utils/file_utils.rs:26:8 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn generate_output_path( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `sanitize_filename` is never used [INFO] [stdout] --> src/utils/file_utils.rs:60:8 [INFO] [stdout] | [INFO] [stdout] 60 | pub fn sanitize_filename(filename: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_temp_directory` is never used [INFO] [stdout] --> src/utils/file_utils.rs:70:8 [INFO] [stdout] | [INFO] [stdout] 70 | pub fn create_temp_directory() -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `write_to_file` is never used [INFO] [stdout] --> src/utils/file_utils.rs:80:8 [INFO] [stdout] | [INFO] [stdout] 80 | pub fn write_to_file>(path: P, data: &[u8]) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_from_file` is never used [INFO] [stdout] --> src/utils/file_utils.rs:117:8 [INFO] [stdout] | [INFO] [stdout] 117 | pub fn read_from_file>(path: P) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_file_complete` is never used [INFO] [stdout] --> src/utils/file_utils.rs:138:8 [INFO] [stdout] | [INFO] [stdout] 138 | pub fn is_file_complete>(path: P) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_file_size` is never used [INFO] [stdout] --> src/utils/file_utils.rs:151:8 [INFO] [stdout] | [INFO] [stdout] 151 | pub fn get_file_size>(path: P) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `append_to_file` is never used [INFO] [stdout] --> src/utils/file_utils.rs:164:8 [INFO] [stdout] | [INFO] [stdout] 164 | pub fn append_to_file>(path: P, data: &[u8]) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `client` and `settings` are never read [INFO] [stdout] --> src/utils/http_utils.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct HttpClient { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 10 | client: Client, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 11 | settings: HttpSettings, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `HttpClient` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get`, `get_with_headers`, and `create_headers` are never used [INFO] [stdout] --> src/utils/http_utils.rs:29:18 [INFO] [stdout] | [INFO] [stdout] 14 | impl HttpClient { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 29 | pub async fn get(&self, url: &str) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 40 | pub async fn get_with_headers(&self, url: &str, headers: Vec<(String, String)>) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 51 | pub fn create_headers(&self, additional_headers: Option>) -> HeaderMap { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `http_client` is never read [INFO] [stdout] --> src/platforms/youtube_real.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct YouTube { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] 15 | http_client: HttpClient, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 05s [INFO] running `Command { std: "docker" "inspect" "9698c9499fa9ba9a54bce0ac69d3564f2044425ec603d753d4b956c80e94a1fe", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9698c9499fa9ba9a54bce0ac69d3564f2044425ec603d753d4b956c80e94a1fe", kill_on_drop: false }` [INFO] [stdout] 9698c9499fa9ba9a54bce0ac69d3564f2044425ec603d753d4b956c80e94a1fe [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 16ddf2f67292b1a6d50d94a377ff4213d3fac0ccefe9e9d05e0f029e7653a8c7 [INFO] running `Command { std: "docker" "start" "-a" "16ddf2f67292b1a6d50d94a377ff4213d3fac0ccefe9e9d05e0f029e7653a8c7", kill_on_drop: false }` [INFO] [stderr] Compiling web-video-crawler v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `DownloadSettings`, `FfmpegSettings`, `HttpSettings`, `ProxySettings`, `RateLimitSettings`, and `Settings` [INFO] [stdout] --> src/config/mod.rs:4:20 [INFO] [stdout] | [INFO] [stdout] 4 | pub use settings::{DownloadSettings, FfmpegSettings, HttpSettings, ProxySettings, RateLimitSettings, Settings}; [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 imports: `CrawlerError` and `Result` [INFO] [stdout] --> src/models/mod.rs:5:17 [INFO] [stdout] | [INFO] [stdout] 5 | pub use error::{CrawlerError, Result}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `PlatformFactory` and `VideoPlatform` [INFO] [stdout] --> src/models/mod.rs:6:20 [INFO] [stdout] | [INFO] [stdout] 6 | pub use platform::{PlatformFactory, VideoPlatform}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DownloadOptions`, `DownloadProgress`, `DownloadResult`, `DownloadStatus`, `PlatformType`, `VideoFormat`, `VideoInfo`, `VideoQuality`, and `VideoStream` [INFO] [stdout] --> src/models/mod.rs:7:17 [INFO] [stdout] | [INFO] [stdout] 7 | ...::{DownloadOptions, DownloadProgress, DownloadResult, DownloadStatus, PlatformType, VideoFormat, VideoInfo, VideoQuality, VideoStream}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `error` and `info` [INFO] [stdout] --> src/utils/file_utils.rs:1:18 [INFO] [stdout] | [INFO] [stdout] 1 | use log::{debug, error, info}; [INFO] [stdout] | ^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `base64_decode`, `base64_encode`, `generate_nonce`, `generate_url_signature`, `hmac_sha256`, and `sha256_hash` [INFO] [stdout] --> src/utils/mod.rs:7:24 [INFO] [stdout] | [INFO] [stdout] 7 | pub use crypto_utils::{base64_decode, base64_encode, generate_nonce, generate_url_signature, hmac_sha256, sha256_hash}; [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^^^^^^^^ ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `append_to_file`, `create_temp_directory`, `ensure_directory_exists`, `generate_output_path`, `get_file_size`, `is_file_complete`, `read_from_file`, `sanitize_filename`, and `write_to_file` [INFO] [stdout] --> src/utils/mod.rs:8:22 [INFO] [stdout] | [INFO] [stdout] 8 | ...::{append_to_file, create_temp_directory, ensure_directory_exists, generate_output_path, get_file_size, is_file_complete, read_from_file, sanitize_filename, write_to_file}; [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::process::Command` [INFO] [stdout] --> src/platforms/youtube_real.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::process::Command; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Path` [INFO] [stdout] --> src/platforms/youtube_real.rs:4:17 [INFO] [stdout] | [INFO] [stdout] 4 | use std::path::{Path, PathBuf}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `YOUTUBE_URL_PATTERNS` is never used [INFO] [stdout] --> src/config/constants.rs:5:11 [INFO] [stdout] | [INFO] [stdout] 5 | pub const YOUTUBE_URL_PATTERNS: [&str; 4] = [ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `BILIBILI_URL_PATTERNS` is never used [INFO] [stdout] --> src/config/constants.rs:12:11 [INFO] [stdout] | [INFO] [stdout] 12 | pub const BILIBILI_URL_PATTERNS: [&str; 2] = [ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DOUYIN_URL_PATTERNS` is never used [INFO] [stdout] --> src/config/constants.rs:17:11 [INFO] [stdout] | [INFO] [stdout] 17 | pub const DOUYIN_URL_PATTERNS: [&str; 2] = [ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `TENCENT_URL_PATTERNS` is never used [INFO] [stdout] --> src/config/constants.rs:22:11 [INFO] [stdout] | [INFO] [stdout] 22 | pub const TENCENT_URL_PATTERNS: [&str; 2] = [ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `IQIYI_URL_PATTERNS` is never used [INFO] [stdout] --> src/config/constants.rs:27:11 [INFO] [stdout] | [INFO] [stdout] 27 | pub const IQIYI_URL_PATTERNS: [&str; 2] = [ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `YOUKU_URL_PATTERNS` is never used [INFO] [stdout] --> src/config/constants.rs:32:11 [INFO] [stdout] | [INFO] [stdout] 32 | pub const YOUKU_URL_PATTERNS: [&str; 2] = [ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DEFAULT_CHUNK_SIZE` is never used [INFO] [stdout] --> src/config/constants.rs:43:11 [INFO] [stdout] | [INFO] [stdout] 43 | pub const DEFAULT_CHUNK_SIZE: usize = 1024 * 1024; // 1MB [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DEFAULT_CONCURRENT_DOWNLOADS` is never used [INFO] [stdout] --> src/config/constants.rs:44:11 [INFO] [stdout] | [INFO] [stdout] 44 | pub const DEFAULT_CONCURRENT_DOWNLOADS: usize = 5; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DEFAULT_DOWNLOAD_DIR` is never used [INFO] [stdout] --> src/config/constants.rs:45:11 [INFO] [stdout] | [INFO] [stdout] 45 | pub const DEFAULT_DOWNLOAD_DIR: &str = "./downloads"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `FFMPEG_BIN` is never used [INFO] [stdout] --> src/config/constants.rs:48:11 [INFO] [stdout] | [INFO] [stdout] 48 | pub const FFMPEG_BIN: &str = "ffmpeg"; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `FFPROBE_BIN` is never used [INFO] [stdout] --> src/config/constants.rs:49:11 [INFO] [stdout] | [INFO] [stdout] 49 | pub const FFPROBE_BIN: &str = "ffprobe"; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DEFAULT_REQUESTS_PER_MINUTE` is never used [INFO] [stdout] --> src/config/constants.rs:52:11 [INFO] [stdout] | [INFO] [stdout] 52 | pub const DEFAULT_REQUESTS_PER_MINUTE: u32 = 60; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `VIDEO_EXTENSIONS` is never used [INFO] [stdout] --> src/config/constants.rs:58:11 [INFO] [stdout] | [INFO] [stdout] 58 | pub const VIDEO_EXTENSIONS: [&str; 7] = [ [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `TEMP_DIR_PREFIX` is never used [INFO] [stdout] --> src/config/constants.rs:63:11 [INFO] [stdout] | [INFO] [stdout] 63 | pub const TEMP_DIR_PREFIX: &str = "web_video_crawler_"; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DownloadSettings` is never constructed [INFO] [stdout] --> src/config/settings.rs:52:12 [INFO] [stdout] | [INFO] [stdout] 52 | pub struct DownloadSettings { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `FfmpegSettings` is never constructed [INFO] [stdout] --> src/config/settings.rs:77:12 [INFO] [stdout] | [INFO] [stdout] 77 | pub struct FfmpegSettings { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RateLimitSettings` is never constructed [INFO] [stdout] --> src/config/settings.rs:96:12 [INFO] [stdout] | [INFO] [stdout] 96 | pub struct RateLimitSettings { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Settings` is never constructed [INFO] [stdout] --> src/config/settings.rs:111:12 [INFO] [stdout] | [INFO] [stdout] 111 | pub struct Settings { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `load_from_file` and `save_to_file` are never used [INFO] [stdout] --> src/config/settings.rs:134:12 [INFO] [stdout] | [INFO] [stdout] 133 | impl Settings { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] 134 | pub fn load_from_file>(path: P) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 144 | pub fn save_to_file>(&self, path: P) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> src/models/error.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum CrawlerError { [INFO] [stdout] | ------------ variants in this enum [INFO] [stdout] ... [INFO] [stdout] 15 | JsonError(String), [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 24 | FfmpegError(String), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | VideoNotFound, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | MergeError(String), [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 39 | AntiScrapingDetected(String), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | AuthenticationRequired(String), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 45 | RateLimited(String), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 48 | ProxyError(String), [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 51 | UnsupportedPlatform(String), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 54 | ConfigError(String), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 57 | Unknown(String), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CrawlerError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `validate_url` is never used [INFO] [stdout] --> src/models/platform.rs:26:8 [INFO] [stdout] | [INFO] [stdout] 8 | pub trait VideoPlatform: Send + Sync { [INFO] [stdout] | ------------- method in this trait [INFO] [stdout] ... [INFO] [stdout] 26 | fn validate_url(&self, url: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PlatformFactory` is never constructed [INFO] [stdout] --> src/models/platform.rs:42:12 [INFO] [stdout] | [INFO] [stdout] 42 | pub struct PlatformFactory { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `register`, and `get_platform_for_url` are never used [INFO] [stdout] --> src/models/platform.rs:47:12 [INFO] [stdout] | [INFO] [stdout] 46 | impl PlatformFactory { [INFO] [stdout] | -------------------- associated items in this implementation [INFO] [stdout] 47 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 53 | pub fn register(&mut self, platform: P) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 57 | pub fn get_platform_for_url(&self, url: &str) -> Option<&dyn VideoPlatform> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/models/video.rs:76:9 [INFO] [stdout] | [INFO] [stdout] 74 | pub struct DownloadOptions { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] 75 | pub output_dir: PathBuf, [INFO] [stdout] 76 | pub filename: Option, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 77 | pub quality: Option, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 78 | pub format: Option, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 79 | pub merge_audio_video: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 80 | pub use_proxy: bool, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 81 | pub max_retries: u32, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 82 | pub timeout: std::time::Duration, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 83 | pub user_agent: Option, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 84 | pub cookies: Option, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 85 | pub headers: Option>, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 88 | pub output_format: String, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 89 | pub keep_separate_files: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 90 | pub max_concurrent_downloads: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 91 | pub chunk_size: Option, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 92 | pub retry_count: Option, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 93 | pub retry_delay: Option, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DownloadOptions` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DownloadProgress` is never constructed [INFO] [stdout] --> src/models/video.rs:123:12 [INFO] [stdout] | [INFO] [stdout] 123 | pub struct DownloadProgress { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `DownloadStatus` is never used [INFO] [stdout] --> src/models/video.rs:137:10 [INFO] [stdout] | [INFO] [stdout] 137 | pub enum DownloadStatus { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `video_info` is never read [INFO] [stdout] --> src/models/video.rs:147:9 [INFO] [stdout] | [INFO] [stdout] 146 | pub struct DownloadResult { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] 147 | pub video_info: VideoInfo, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DownloadResult` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `sha256_hash` is never used [INFO] [stdout] --> src/utils/crypto_utils.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn sha256_hash(data: &[u8]) -> String { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `hmac_sha256` is never used [INFO] [stdout] --> src/utils/crypto_utils.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn hmac_sha256(key: &[u8], data: &[u8]) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `base64_encode` is never used [INFO] [stdout] --> src/utils/crypto_utils.rs:29:8 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn base64_encode(data: &[u8]) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `base64_decode` is never used [INFO] [stdout] --> src/utils/crypto_utils.rs:34:8 [INFO] [stdout] | [INFO] [stdout] 34 | pub fn base64_decode(data: &str) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_url_signature` is never used [INFO] [stdout] --> src/utils/crypto_utils.rs:40:8 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn generate_url_signature(url: &str, params: &[(String, String)], secret: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_nonce` is never used [INFO] [stdout] --> src/utils/crypto_utils.rs:68:8 [INFO] [stdout] | [INFO] [stdout] 68 | pub fn generate_nonce() -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ensure_directory_exists` is never used [INFO] [stdout] --> src/utils/file_utils.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn ensure_directory_exists>(path: P) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_output_path` is never used [INFO] [stdout] --> src/utils/file_utils.rs:26:8 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn generate_output_path( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `sanitize_filename` is never used [INFO] [stdout] --> src/utils/file_utils.rs:60:8 [INFO] [stdout] | [INFO] [stdout] 60 | pub fn sanitize_filename(filename: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_temp_directory` is never used [INFO] [stdout] --> src/utils/file_utils.rs:70:8 [INFO] [stdout] | [INFO] [stdout] 70 | pub fn create_temp_directory() -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `write_to_file` is never used [INFO] [stdout] --> src/utils/file_utils.rs:80:8 [INFO] [stdout] | [INFO] [stdout] 80 | pub fn write_to_file>(path: P, data: &[u8]) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_from_file` is never used [INFO] [stdout] --> src/utils/file_utils.rs:117:8 [INFO] [stdout] | [INFO] [stdout] 117 | pub fn read_from_file>(path: P) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_file_complete` is never used [INFO] [stdout] --> src/utils/file_utils.rs:138:8 [INFO] [stdout] | [INFO] [stdout] 138 | pub fn is_file_complete>(path: P) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_file_size` is never used [INFO] [stdout] --> src/utils/file_utils.rs:151:8 [INFO] [stdout] | [INFO] [stdout] 151 | pub fn get_file_size>(path: P) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `append_to_file` is never used [INFO] [stdout] --> src/utils/file_utils.rs:164:8 [INFO] [stdout] | [INFO] [stdout] 164 | pub fn append_to_file>(path: P, data: &[u8]) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `client` and `settings` are never read [INFO] [stdout] --> src/utils/http_utils.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct HttpClient { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 10 | client: Client, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 11 | settings: HttpSettings, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `HttpClient` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get`, `get_with_headers`, and `create_headers` are never used [INFO] [stdout] --> src/utils/http_utils.rs:29:18 [INFO] [stdout] | [INFO] [stdout] 14 | impl HttpClient { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 29 | pub async fn get(&self, url: &str) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 40 | pub async fn get_with_headers(&self, url: &str, headers: Vec<(String, String)>) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 51 | pub fn create_headers(&self, additional_headers: Option>) -> HeaderMap { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `http_client` is never read [INFO] [stdout] --> src/platforms/youtube_real.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct YouTube { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] 15 | http_client: HttpClient, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.81s [INFO] running `Command { std: "docker" "inspect" "16ddf2f67292b1a6d50d94a377ff4213d3fac0ccefe9e9d05e0f029e7653a8c7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "16ddf2f67292b1a6d50d94a377ff4213d3fac0ccefe9e9d05e0f029e7653a8c7", kill_on_drop: false }` [INFO] [stdout] 16ddf2f67292b1a6d50d94a377ff4213d3fac0ccefe9e9d05e0f029e7653a8c7