[INFO] cloning repository https://github.com/Hi-Mr-Wind/kamu
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Hi-Mr-Wind/kamu" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FHi-Mr-Wind%2Fkamu", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FHi-Mr-Wind%2Fkamu'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 2f9511c2e82cb2ba3f2c5361738c083b4c9b2fbc
[INFO] building Hi-Mr-Wind/kamu against try#334963c956d25708feab489a3816ae63f639355d for pr-135216
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FHi-Mr-Wind%2Fkamu" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'...
[INFO] [stderr] done.
[INFO] validating manifest of git repo https://github.com/Hi-Mr-Wind/kamu on toolchain 334963c956d25708feab489a3816ae63f639355d
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+334963c956d25708feab489a3816ae63f639355d" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] started tweaking git repo https://github.com/Hi-Mr-Wind/kamu
[INFO] finished tweaking git repo https://github.com/Hi-Mr-Wind/kamu
[INFO] tweaked toml for git repo https://github.com/Hi-Mr-Wind/kamu written to /workspace/builds/worker-1-tc2/source/Cargo.toml
[INFO] crate git repo https://github.com/Hi-Mr-Wind/kamu 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" "+334963c956d25708feab489a3816ae63f639355d" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr] warning: unused manifest key: profile.release.debuginfo
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+334963c956d25708feab489a3816ae63f639355d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 1b7faba89404a1d6e653fea29ef1fff63afbd52cb76151474b43d662b40b5efe
[INFO] running `Command { std: "docker" "start" "-a" "1b7faba89404a1d6e653fea29ef1fff63afbd52cb76151474b43d662b40b5efe", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "1b7faba89404a1d6e653fea29ef1fff63afbd52cb76151474b43d662b40b5efe", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "1b7faba89404a1d6e653fea29ef1fff63afbd52cb76151474b43d662b40b5efe", kill_on_drop: false }`
[INFO] [stdout] 1b7faba89404a1d6e653fea29ef1fff63afbd52cb76151474b43d662b40b5efe
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+334963c956d25708feab489a3816ae63f639355d" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] c6c2cc46c7d65995e1092f54c35ea3492dcedbfd6977ff9aa044dc40375c28dd
[INFO] running `Command { std: "docker" "start" "-a" "c6c2cc46c7d65995e1092f54c35ea3492dcedbfd6977ff9aa044dc40375c28dd", kill_on_drop: false }`
[INFO] [stderr] warning: unused manifest key: profile.release.debuginfo
[INFO] [stderr]    Compiling libc v0.2.152
[INFO] [stderr]    Compiling unicode-ident v1.0.12
[INFO] [stderr]    Compiling proc-macro2 v1.0.78
[INFO] [stderr]    Compiling autocfg v1.1.0
[INFO] [stderr]    Compiling serde v1.0.195
[INFO] [stderr]    Compiling pkg-config v0.3.29
[INFO] [stderr]    Compiling generic-array v0.14.7
[INFO] [stderr]    Compiling pin-project-lite v0.2.13
[INFO] [stderr]    Compiling bytes v1.5.0
[INFO] [stderr]    Compiling itoa v1.0.10
[INFO] [stderr]    Compiling crossbeam-utils v0.8.19
[INFO] [stderr]    Compiling futures-task v0.3.30
[INFO] [stderr]    Compiling slab v0.4.9
[INFO] [stderr]    Compiling subtle v2.5.0
[INFO] [stderr]    Compiling rustversion v1.0.14
[INFO] [stderr]    Compiling http v1.0.0
[INFO] [stderr]    Compiling crypto-common v0.1.6
[INFO] [stderr]    Compiling block-buffer v0.10.4
[INFO] [stderr]    Compiling hashbrown v0.14.3
[INFO] [stderr]    Compiling cpufeatures v0.2.12
[INFO] [stderr]    Compiling digest v0.10.7
[INFO] [stderr]    Compiling num-traits v0.2.17
[INFO] [stderr]    Compiling quote v1.0.35
[INFO] [stderr]    Compiling jobserver v0.1.27
[INFO] [stderr]    Compiling socket2 v0.5.5
[INFO] [stderr]    Compiling syn v2.0.48
[INFO] [stderr]    Compiling getrandom v0.2.12
[INFO] [stderr]    Compiling cc v1.0.83
[INFO] [stderr]    Compiling mio v0.8.10
[INFO] [stderr]    Compiling num_cpus v1.16.0
[INFO] [stderr]    Compiling rand_core v0.6.4
[INFO] [stderr]    Compiling equivalent v1.0.1
[INFO] [stderr]    Compiling http-body v1.0.0
[INFO] [stderr]    Compiling ryu v1.0.16
[INFO] [stderr]    Compiling indexmap v2.1.0
[INFO] [stderr]    Compiling lock_api v0.4.11
[INFO] [stderr]    Compiling zstd-safe v5.0.2+zstd.1.5.2
[INFO] [stderr]    Compiling futures-sink v0.3.30
[INFO] [stderr]    Compiling rustix v0.38.30
[INFO] [stderr]    Compiling async-trait v0.1.77
[INFO] [stderr]    Compiling bitflags v2.4.2
[INFO] [stderr]    Compiling smallvec v1.13.1
[INFO] [stderr]    Compiling httparse v1.8.0
[INFO] [stderr]    Compiling tower-layer v0.3.3
[INFO] [stderr]    Compiling crc32fast v1.3.2
[INFO] [stderr]    Compiling tower-service v0.3.3
[INFO] [stderr]    Compiling crossbeam-epoch v0.9.18
[INFO] [stderr]    Compiling sha2 v0.10.8
[INFO] [stderr]    Compiling inout v0.1.3
[INFO] [stderr]    Compiling indexmap v1.9.3
[INFO] [stderr]    Compiling serde_json v1.0.111
[INFO] [stderr]    Compiling powerfmt v0.2.0
[INFO] [stderr]    Compiling memchr v2.7.1
[INFO] [stderr]    Compiling zstd-sys v2.0.9+zstd.1.5.5
[INFO] [stderr]    Compiling bzip2-sys v0.1.11+1.0.8
[INFO] [stderr]    Compiling lzma-sys v0.1.20
[INFO] [stderr]    Compiling base64ct v1.6.0
[INFO] [stderr]    Compiling rayon-core v1.12.1
[INFO] [stderr]    Compiling syn v1.0.109
[INFO] [stderr]    Compiling linux-raw-sys v0.4.13
[INFO] [stderr]    Compiling miniz_oxide v0.7.1
[INFO] [stderr]    Compiling password-hash v0.4.2
[INFO] [stderr]    Compiling crossbeam-deque v0.8.5
[INFO] [stderr]    Compiling deranged v0.3.11
[INFO] [stderr]    Compiling parking_lot_core v0.9.9
[INFO] [stderr]    Compiling cipher v0.4.4
[INFO] [stderr]    Compiling axum-core v0.4.3
[INFO] [stderr]    Compiling hmac v0.12.1
[INFO] [stderr]    Compiling hashbrown v0.12.3
[INFO] [stderr]    Compiling destructure_traitobject v0.2.0
[INFO] [stderr]    Compiling linked-hash-map v0.5.6
[INFO] [stderr]    Compiling num-conv v0.1.0
[INFO] [stderr]    Compiling ppv-lite86 v0.2.17
[INFO] [stderr]    Compiling thiserror v1.0.56
[INFO] [stderr]    Compiling time-core v0.1.2
[INFO] [stderr]    Compiling anyhow v1.0.79
[INFO] [stderr]    Compiling time v0.3.36
[INFO] [stderr]    Compiling yaml-rust v0.4.5
[INFO] [stderr]    Compiling pbkdf2 v0.11.0
[INFO] [stderr]    Compiling rand_chacha v0.3.1
[INFO] [stderr]    Compiling unsafe-any-ors v1.0.0
[INFO] [stderr]    Compiling flate2 v1.0.28
[INFO] [stderr]    Compiling aes v0.8.3
[INFO] [stderr]    Compiling aho-corasick v1.1.2
[INFO] [stderr]    Compiling ordered-float v2.10.1
[INFO] [stderr]    Compiling ring v0.17.7
[INFO] [stderr]    Compiling axum v0.7.4
[INFO] [stderr]    Compiling filetime v0.2.23
[INFO] [stderr]    Compiling xattr v1.3.1
[INFO] [stderr]    Compiling sha1 v0.10.6
[INFO] [stderr]    Compiling either v1.9.0
[INFO] [stderr]    Compiling constant_time_eq v0.1.5
[INFO] [stderr]    Compiling iana-time-zone v0.1.59
[INFO] [stderr]    Compiling regex-syntax v0.8.2
[INFO] [stderr]    Compiling rayon v1.8.1
[INFO] [stderr]    Compiling chrono v0.4.33
[INFO] [stderr]    Compiling sharded-slab v0.1.7
[INFO] [stderr]    Compiling serde_derive v1.0.195
[INFO] [stderr]    Compiling tokio-macros v2.2.0
[INFO] [stderr]    Compiling futures-macro v0.3.30
[INFO] [stderr]    Compiling tokio v1.35.1
[INFO] [stderr]    Compiling futures-util v0.3.30
[INFO] [stderr]    Compiling pin-project-internal v1.1.4
[INFO] [stderr]    Compiling thiserror-impl v1.0.56
[INFO] [stderr]    Compiling derivative v2.2.0
[INFO] [stderr]    Compiling regex-automata v0.4.5
[INFO] [stderr]    Compiling pin-project v1.1.4
[INFO] [stderr]    Compiling uuid-macro-internal v1.7.0
[INFO] [stderr]    Compiling tar v0.4.40
[INFO] [stderr]    Compiling xz2 v0.1.7
[INFO] [stderr]    Compiling http-body-util v0.1.0
[INFO] [stderr]    Compiling rand v0.8.5
[INFO] [stderr]    Compiling typemap-ors v1.0.0
[INFO] [stderr]    Compiling parking_lot v0.12.1
[INFO] [stderr]    Compiling subprocess v0.2.9
[INFO] [stderr]    Compiling thread-id v4.2.1
[INFO] [stderr]    Compiling crossbeam-queue v0.3.11
[INFO] [stderr]    Compiling thread_local v1.1.7
[INFO] [stderr]    Compiling untrusted v0.9.0
[INFO] [stderr]    Compiling humantime v2.1.0
[INFO] [stderr]    Compiling atomic v0.5.3
[INFO] [stderr]    Compiling log-mdc v0.1.0
[INFO] [stderr]    Compiling hex v0.4.3
[INFO] [stderr]    Compiling unsafe-libyaml v0.2.10
[INFO] [stderr]    Compiling spin v0.9.8
[INFO] [stderr]    Compiling arc-swap v1.6.0
[INFO] [stderr]    Compiling uuid v1.7.0
[INFO] [stderr]    Compiling sysinfo v0.30.5
[INFO] [stderr]    Compiling dashmap v5.5.3
[INFO] [stderr]    Compiling regex v1.10.3
[INFO] [stderr]    Compiling sha256 v1.5.0
[INFO] [stderr]    Compiling tower v0.5.1
[INFO] [stderr]    Compiling bzip2 v0.4.4
[INFO] [stderr]    Compiling log v0.4.20
[INFO] [stderr]    Compiling serde_yaml v0.8.26
[INFO] [stderr]    Compiling tracing v0.1.40
[INFO] [stderr]    Compiling tracing-log v0.2.0
[INFO] [stderr]    Compiling serde-value v0.7.0
[INFO] [stderr]    Compiling tokio-util v0.7.10
[INFO] [stderr]    Compiling tower v0.4.13
[INFO] [stderr]    Compiling serde_path_to_error v0.1.15
[INFO] [stderr]    Compiling h2 v0.4.2
[INFO] [stderr]    Compiling serde_urlencoded v0.7.1
[INFO] [stderr]    Compiling log4rs v1.2.0
[INFO] [stderr]    Compiling tower-http v0.5.1
[INFO] [stderr]    Compiling tracing-subscriber v0.3.18
[INFO] [stderr]    Compiling serde_yaml v0.9.30
[INFO] [stderr]    Compiling hyper v1.1.0
[INFO] [stderr]    Compiling hyper-util v0.1.3
[INFO] [stderr]    Compiling zstd v0.11.2+zstd.1.5.2
[INFO] [stderr]    Compiling zip v0.6.6
[INFO] [stderr]    Compiling zip_archive v1.2.2
[INFO] [stderr]    Compiling kamu v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused imports: `Duration` and `Instant`
[INFO] [stdout]  --> src/main.rs:4:17
[INFO] [stdout]   |
[INFO] [stdout] 4 | use std::time::{Duration, Instant, SystemTime, UNIX_EPOCH};
[INFO] [stdout]   |                 ^^^^^^^^  ^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::comm::app_cache::CACHE_INSTANCE`
[INFO] [stdout]  --> src/main.rs:6:5
[INFO] [stdout]   |
[INFO] [stdout] 6 | use crate::comm::app_cache::CACHE_INSTANCE;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Components`, `Disks`, `Networks`, and `System`
[INFO] [stdout]  --> src/main.rs:8:15
[INFO] [stdout]   |
[INFO] [stdout] 8 | use sysinfo::{Components, Disks, Networks, System};
[INFO] [stdout]   |               ^^^^^^^^^^  ^^^^^  ^^^^^^^^  ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::entity::file_data::FileData`
[INFO] [stdout]  --> src/main.rs:9:5
[INFO] [stdout]   |
[INFO] [stdout] 9 | use crate::entity::file_data::FileData;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `axum::http::StatusCode`
[INFO] [stdout]  --> src/controller/sys_controller.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use axum::http::StatusCode;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::fmt::Debug`
[INFO] [stdout]  --> src/route/routes.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::fmt::Debug;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `HeaderValue`
[INFO] [stdout]  --> src/app_middleware/middlewares.rs:7:18
[INFO] [stdout]   |
[INFO] [stdout] 7 | use axum::http::{HeaderValue, StatusCode, Uri};
[INFO] [stdout]   |                  ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `axum::response::IntoResponse`
[INFO] [stdout]  --> src/app_middleware/middlewares.rs:8:5
[INFO] [stdout]   |
[INFO] [stdout] 8 | use axum::response::IntoResponse;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `file_data_name`
[INFO] [stdout]   --> src/core/file_handling.rs:78:9
[INFO] [stdout]    |
[INFO] [stdout] 78 |     let file_data_name = uid.join(".data");
[INFO] [stdout]    |         ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_file_data_name`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/app_middleware/middlewares.rs:24:9
[INFO] [stdout]    |
[INFO] [stdout] 24 |     let mut x = next.run(request).await;
[INFO] [stdout]    |         ----^
[INFO] [stdout]    |         |
[INFO] [stdout]    |         help: remove this `mut`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_mut)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `user`
[INFO] [stdout]  --> src/service/core_service.rs:7:18
[INFO] [stdout]   |
[INFO] [stdout] 7 |     pub fn login(user: User) {}
[INFO] [stdout]   |                  ^^^^ help: if this is intentional, prefix it with an underscore: `_user`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `numerical_order` is assigned to, but never used
[INFO] [stdout]   --> src/service/core_service.rs:18:17
[INFO] [stdout]    |
[INFO] [stdout] 18 |         let mut numerical_order = 1;
[INFO] [stdout]    |                 ^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: consider using `_numerical_order` instead
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_current_timestamp_ms` is never used
[INFO] [stdout]   --> src/main.rs:61:4
[INFO] [stdout]    |
[INFO] [stdout] 61 | fn get_current_timestamp_ms() -> u128 {
[INFO] [stdout]    |    ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `find_number` is never used
[INFO] [stdout]    --> src/main.rs:153:4
[INFO] [stdout]     |
[INFO] [stdout] 153 | fn find_number(target: u32) -> Option<u32> {
[INFO] [stdout]     |    ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `CHUNK_SIZE` is never used
[INFO] [stdout]   --> src/core/file_handling.rs:14:7
[INFO] [stdout]    |
[INFO] [stdout] 14 | const CHUNK_SIZE: usize = 256 * 1024;
[INFO] [stdout]    |       ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `convert_file` is never used
[INFO] [stdout]   --> src/core/file_handling.rs:21:14
[INFO] [stdout]    |
[INFO] [stdout] 21 | pub async fn convert_file(src_path: &PathBuf, dest_dir: &PathBuf, key: u8, uid: Arc<String>) -> io::Result<FileData> {
[INFO] [stdout]    |              ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `restore_file` is never used
[INFO] [stdout]   --> src/core/file_handling.rs:77:14
[INFO] [stdout]    |
[INFO] [stdout] 77 | pub async fn restore_file(src_dir: &PathBuf, dest_path: &PathBuf, key: u8, uid: &PathBuf) -> io::Result<()> {
[INFO] [stdout]    |              ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `compress_folder_to_zip` is never used
[INFO] [stdout]    --> src/core/file_handling.rs:127:14
[INFO] [stdout]     |
[INFO] [stdout] 127 | pub async fn compress_folder_to_zip(source_dir: &PathBuf, target_file: &PathBuf) {
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `create_file_hash` is never used
[INFO] [stdout]    --> src/core/file_handling.rs:142:8
[INFO] [stdout]     |
[INFO] [stdout] 142 | pub fn create_file_hash(file_path: &PathBuf) -> String {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated functions `new`, `fail`, and `fail_for_code` are never used
[INFO] [stdout]   --> src/comm/json_result.rs:12:12
[INFO] [stdout]    |
[INFO] [stdout] 11 | impl<T> JsonResult<T> {
[INFO] [stdout]    | --------------------- associated functions in this implementation
[INFO] [stdout] 12 |     pub fn new(code: u16, mes: String, data: Option<T>) -> JsonResult<T> {
[INFO] [stdout]    |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 33 |     pub fn fail() -> JsonResult<T> {
[INFO] [stdout]    |            ^^^^
[INFO] [stdout] ...
[INFO] [stdout] 40 |     pub fn fail_for_code(code: u16) -> JsonResult<T> {
[INFO] [stdout]    |            ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `database`, `connection_poll`, and `file_path` are never read
[INFO] [stdout]   --> src/comm/config_util.rs:14:9
[INFO] [stdout]    |
[INFO] [stdout] 12 | pub struct AppConfig {
[INFO] [stdout]    |            --------- fields in this struct
[INFO] [stdout] 13 |     ///数据库配置
[INFO] [stdout] 14 |     pub database: DatabaseConfig,
[INFO] [stdout]    |         ^^^^^^^^
[INFO] [stdout] 15 |     ///连接池配置
[INFO] [stdout] 16 |     pub connection_poll: ConnectionPool,
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^
[INFO] [stdout] 17 |     ///文件存储位置
[INFO] [stdout] 18 |     pub file_path: String,
[INFO] [stdout]    |         ^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `AppConfig` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: multiple fields are never read
[INFO] [stdout]   --> src/comm/config_util.rs:26:9
[INFO] [stdout]    |
[INFO] [stdout] 24 | pub struct DatabaseConfig {
[INFO] [stdout]    |            -------------- fields in this struct
[INFO] [stdout] 25 |     ///数据库
[INFO] [stdout] 26 |     pub data_base: String,
[INFO] [stdout]    |         ^^^^^^^^^
[INFO] [stdout] 27 |     ///连接地址
[INFO] [stdout] 28 |     pub host: String,
[INFO] [stdout]    |         ^^^^
[INFO] [stdout] 29 |     ///账号
[INFO] [stdout] 30 |     pub username: String,
[INFO] [stdout]    |         ^^^^^^^^
[INFO] [stdout] 31 |     ///密码
[INFO] [stdout] 32 |     pub password: String,
[INFO] [stdout]    |         ^^^^^^^^
[INFO] [stdout] 33 |     ///数据库名称
[INFO] [stdout] 34 |     pub db_name: String,
[INFO] [stdout]    |         ^^^^^^^
[INFO] [stdout] 35 |     ///sql日志开关
[INFO] [stdout] 36 |     pub sql_logger_open: bool,
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^
[INFO] [stdout] 37 |     ///sql日志级别
[INFO] [stdout] 38 |     pub sql_logger_level: String,
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `DatabaseConfig` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `max_connections`, `min_connections`, `connect_timeout`, `acquire_timeout`, `idle_timeout`, and `max_lifetime` are never read
[INFO] [stdout]   --> src/comm/config_util.rs:45:9
[INFO] [stdout]    |
[INFO] [stdout] 43 | pub struct ConnectionPool {
[INFO] [stdout]    |            -------------- fields in this struct
[INFO] [stdout] 44 |     ///最大连接数
[INFO] [stdout] 45 |     pub max_connections: u32,
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^
[INFO] [stdout] 46 |     ///最小连接数
[INFO] [stdout] 47 |     pub min_connections: u32,
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^
[INFO] [stdout] 48 |     ///连接超时时间
[INFO] [stdout] 49 |     pub connect_timeout: u64,
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^
[INFO] [stdout] 50 |     ///等待获取连接所花费的最长时间
[INFO] [stdout] 51 |     pub acquire_timeout: u64,
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^
[INFO] [stdout] 52 |     ///最大空闲时间
[INFO] [stdout] 53 |     pub idle_timeout: u64,
[INFO] [stdout]    |         ^^^^^^^^^^^^
[INFO] [stdout] 54 |     ///单个连接的最长生存期
[INFO] [stdout] 55 |     pub max_lifetime: u64,
[INFO] [stdout]    |         ^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `ConnectionPool` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_config` is never used
[INFO] [stdout]   --> src/comm/config_util.rs:61:8
[INFO] [stdout]    |
[INFO] [stdout] 61 | pub fn get_config() -> AppConfig {
[INFO] [stdout]    |        ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `value` is never read
[INFO] [stdout]   --> src/comm/app_cache.rs:14:5
[INFO] [stdout]    |
[INFO] [stdout] 13 | struct CacheEntry {
[INFO] [stdout]    |        ---------- field in this struct
[INFO] [stdout] 14 |     value: String,
[INFO] [stdout]    |     ^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `CacheEntry` 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: methods `insert` and `get` are never used
[INFO] [stdout]   --> src/comm/app_cache.rs:44:12
[INFO] [stdout]    |
[INFO] [stdout] 24 | impl MemoryCache {
[INFO] [stdout]    | ---------------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 44 |     pub fn insert(&self, key: String, value: String, ttl: Option<Duration>) {
[INFO] [stdout]    |            ^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 51 |     pub fn get(&self, key: &str) -> Option<String> {
[INFO] [stdout]    |            ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `new` and `to_json` are never used
[INFO] [stdout]   --> src/entity/file_data.rs:17:12
[INFO] [stdout]    |
[INFO] [stdout] 16 | impl FileData {
[INFO] [stdout]    | ------------- associated items in this implementation
[INFO] [stdout] 17 |     pub fn new(file_name: String, file_size: u64, file_hash: String,file_sequence: i32) -> FileData {
[INFO] [stdout]    |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 21 |     pub fn to_json(&self) -> String{
[INFO] [stdout]    |            ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: static `ROUTES` is never used
[INFO] [stdout]  --> src/route/routes.rs:9:12
[INFO] [stdout]   |
[INFO] [stdout] 9 | static mut ROUTES: Vec<String> = Vec::new();
[INFO] [stdout]   |            ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `verify_key` is never used
[INFO] [stdout]   --> src/app_middleware/middlewares.rs:60:14
[INFO] [stdout]    |
[INFO] [stdout] 60 | pub async fn verify_key(request: Request<Body>, next: Next, ) -> Response<Body> {
[INFO] [stdout]    |              ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 2m 27s
[INFO] running `Command { std: "docker" "inspect" "c6c2cc46c7d65995e1092f54c35ea3492dcedbfd6977ff9aa044dc40375c28dd", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "c6c2cc46c7d65995e1092f54c35ea3492dcedbfd6977ff9aa044dc40375c28dd", kill_on_drop: false }`
[INFO] [stdout] c6c2cc46c7d65995e1092f54c35ea3492dcedbfd6977ff9aa044dc40375c28dd
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+334963c956d25708feab489a3816ae63f639355d" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 78c915dd2b972faff350799d97b8e9939be3cd52ae81fd8a43c50fc54680810a
[INFO] running `Command { std: "docker" "start" "-a" "78c915dd2b972faff350799d97b8e9939be3cd52ae81fd8a43c50fc54680810a", kill_on_drop: false }`
[INFO] [stderr] warning: unused manifest key: profile.release.debuginfo
[INFO] [stderr]    Compiling kamu v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused imports: `Duration` and `Instant`
[INFO] [stdout]  --> src/main.rs:4:17
[INFO] [stdout]   |
[INFO] [stdout] 4 | use std::time::{Duration, Instant, SystemTime, UNIX_EPOCH};
[INFO] [stdout]   |                 ^^^^^^^^  ^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::comm::app_cache::CACHE_INSTANCE`
[INFO] [stdout]  --> src/main.rs:6:5
[INFO] [stdout]   |
[INFO] [stdout] 6 | use crate::comm::app_cache::CACHE_INSTANCE;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Components`, `Disks`, `Networks`, and `System`
[INFO] [stdout]  --> src/main.rs:8:15
[INFO] [stdout]   |
[INFO] [stdout] 8 | use sysinfo::{Components, Disks, Networks, System};
[INFO] [stdout]   |               ^^^^^^^^^^  ^^^^^  ^^^^^^^^  ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::entity::file_data::FileData`
[INFO] [stdout]  --> src/main.rs:9:5
[INFO] [stdout]   |
[INFO] [stdout] 9 | use crate::entity::file_data::FileData;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `axum::http::StatusCode`
[INFO] [stdout]  --> src/controller/sys_controller.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use axum::http::StatusCode;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::fmt::Debug`
[INFO] [stdout]  --> src/route/routes.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::fmt::Debug;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `HeaderValue`
[INFO] [stdout]  --> src/app_middleware/middlewares.rs:7:18
[INFO] [stdout]   |
[INFO] [stdout] 7 | use axum::http::{HeaderValue, StatusCode, Uri};
[INFO] [stdout]   |                  ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `axum::response::IntoResponse`
[INFO] [stdout]  --> src/app_middleware/middlewares.rs:8:5
[INFO] [stdout]   |
[INFO] [stdout] 8 | use axum::response::IntoResponse;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `file_data_name`
[INFO] [stdout]   --> src/core/file_handling.rs:78:9
[INFO] [stdout]    |
[INFO] [stdout] 78 |     let file_data_name = uid.join(".data");
[INFO] [stdout]    |         ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_file_data_name`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/app_middleware/middlewares.rs:24:9
[INFO] [stdout]    |
[INFO] [stdout] 24 |     let mut x = next.run(request).await;
[INFO] [stdout]    |         ----^
[INFO] [stdout]    |         |
[INFO] [stdout]    |         help: remove this `mut`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_mut)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `user`
[INFO] [stdout]  --> src/service/core_service.rs:7:18
[INFO] [stdout]   |
[INFO] [stdout] 7 |     pub fn login(user: User) {}
[INFO] [stdout]   |                  ^^^^ help: if this is intentional, prefix it with an underscore: `_user`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `numerical_order` is assigned to, but never used
[INFO] [stdout]   --> src/service/core_service.rs:18:17
[INFO] [stdout]    |
[INFO] [stdout] 18 |         let mut numerical_order = 1;
[INFO] [stdout]    |                 ^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: consider using `_numerical_order` instead
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_current_timestamp_ms` is never used
[INFO] [stdout]   --> src/main.rs:61:4
[INFO] [stdout]    |
[INFO] [stdout] 61 | fn get_current_timestamp_ms() -> u128 {
[INFO] [stdout]    |    ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `find_number` is never used
[INFO] [stdout]    --> src/main.rs:153:4
[INFO] [stdout]     |
[INFO] [stdout] 153 | fn find_number(target: u32) -> Option<u32> {
[INFO] [stdout]     |    ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `CHUNK_SIZE` is never used
[INFO] [stdout]   --> src/core/file_handling.rs:14:7
[INFO] [stdout]    |
[INFO] [stdout] 14 | const CHUNK_SIZE: usize = 256 * 1024;
[INFO] [stdout]    |       ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `convert_file` is never used
[INFO] [stdout]   --> src/core/file_handling.rs:21:14
[INFO] [stdout]    |
[INFO] [stdout] 21 | pub async fn convert_file(src_path: &PathBuf, dest_dir: &PathBuf, key: u8, uid: Arc<String>) -> io::Result<FileData> {
[INFO] [stdout]    |              ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `restore_file` is never used
[INFO] [stdout]   --> src/core/file_handling.rs:77:14
[INFO] [stdout]    |
[INFO] [stdout] 77 | pub async fn restore_file(src_dir: &PathBuf, dest_path: &PathBuf, key: u8, uid: &PathBuf) -> io::Result<()> {
[INFO] [stdout]    |              ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `compress_folder_to_zip` is never used
[INFO] [stdout]    --> src/core/file_handling.rs:127:14
[INFO] [stdout]     |
[INFO] [stdout] 127 | pub async fn compress_folder_to_zip(source_dir: &PathBuf, target_file: &PathBuf) {
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `create_file_hash` is never used
[INFO] [stdout]    --> src/core/file_handling.rs:142:8
[INFO] [stdout]     |
[INFO] [stdout] 142 | pub fn create_file_hash(file_path: &PathBuf) -> String {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated functions `new`, `fail`, and `fail_for_code` are never used
[INFO] [stdout]   --> src/comm/json_result.rs:12:12
[INFO] [stdout]    |
[INFO] [stdout] 11 | impl<T> JsonResult<T> {
[INFO] [stdout]    | --------------------- associated functions in this implementation
[INFO] [stdout] 12 |     pub fn new(code: u16, mes: String, data: Option<T>) -> JsonResult<T> {
[INFO] [stdout]    |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 33 |     pub fn fail() -> JsonResult<T> {
[INFO] [stdout]    |            ^^^^
[INFO] [stdout] ...
[INFO] [stdout] 40 |     pub fn fail_for_code(code: u16) -> JsonResult<T> {
[INFO] [stdout]    |            ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `database`, `connection_poll`, and `file_path` are never read
[INFO] [stdout]   --> src/comm/config_util.rs:14:9
[INFO] [stdout]    |
[INFO] [stdout] 12 | pub struct AppConfig {
[INFO] [stdout]    |            --------- fields in this struct
[INFO] [stdout] 13 |     ///数据库配置
[INFO] [stdout] 14 |     pub database: DatabaseConfig,
[INFO] [stdout]    |         ^^^^^^^^
[INFO] [stdout] 15 |     ///连接池配置
[INFO] [stdout] 16 |     pub connection_poll: ConnectionPool,
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^
[INFO] [stdout] 17 |     ///文件存储位置
[INFO] [stdout] 18 |     pub file_path: String,
[INFO] [stdout]    |         ^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `AppConfig` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: multiple fields are never read
[INFO] [stdout]   --> src/comm/config_util.rs:26:9
[INFO] [stdout]    |
[INFO] [stdout] 24 | pub struct DatabaseConfig {
[INFO] [stdout]    |            -------------- fields in this struct
[INFO] [stdout] 25 |     ///数据库
[INFO] [stdout] 26 |     pub data_base: String,
[INFO] [stdout]    |         ^^^^^^^^^
[INFO] [stdout] 27 |     ///连接地址
[INFO] [stdout] 28 |     pub host: String,
[INFO] [stdout]    |         ^^^^
[INFO] [stdout] 29 |     ///账号
[INFO] [stdout] 30 |     pub username: String,
[INFO] [stdout]    |         ^^^^^^^^
[INFO] [stdout] 31 |     ///密码
[INFO] [stdout] 32 |     pub password: String,
[INFO] [stdout]    |         ^^^^^^^^
[INFO] [stdout] 33 |     ///数据库名称
[INFO] [stdout] 34 |     pub db_name: String,
[INFO] [stdout]    |         ^^^^^^^
[INFO] [stdout] 35 |     ///sql日志开关
[INFO] [stdout] 36 |     pub sql_logger_open: bool,
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^
[INFO] [stdout] 37 |     ///sql日志级别
[INFO] [stdout] 38 |     pub sql_logger_level: String,
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `DatabaseConfig` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `max_connections`, `min_connections`, `connect_timeout`, `acquire_timeout`, `idle_timeout`, and `max_lifetime` are never read
[INFO] [stdout]   --> src/comm/config_util.rs:45:9
[INFO] [stdout]    |
[INFO] [stdout] 43 | pub struct ConnectionPool {
[INFO] [stdout]    |            -------------- fields in this struct
[INFO] [stdout] 44 |     ///最大连接数
[INFO] [stdout] 45 |     pub max_connections: u32,
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^
[INFO] [stdout] 46 |     ///最小连接数
[INFO] [stdout] 47 |     pub min_connections: u32,
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^
[INFO] [stdout] 48 |     ///连接超时时间
[INFO] [stdout] 49 |     pub connect_timeout: u64,
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^
[INFO] [stdout] 50 |     ///等待获取连接所花费的最长时间
[INFO] [stdout] 51 |     pub acquire_timeout: u64,
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^
[INFO] [stdout] 52 |     ///最大空闲时间
[INFO] [stdout] 53 |     pub idle_timeout: u64,
[INFO] [stdout]    |         ^^^^^^^^^^^^
[INFO] [stdout] 54 |     ///单个连接的最长生存期
[INFO] [stdout] 55 |     pub max_lifetime: u64,
[INFO] [stdout]    |         ^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `ConnectionPool` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_config` is never used
[INFO] [stdout]   --> src/comm/config_util.rs:61:8
[INFO] [stdout]    |
[INFO] [stdout] 61 | pub fn get_config() -> AppConfig {
[INFO] [stdout]    |        ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `value` is never read
[INFO] [stdout]   --> src/comm/app_cache.rs:14:5
[INFO] [stdout]    |
[INFO] [stdout] 13 | struct CacheEntry {
[INFO] [stdout]    |        ---------- field in this struct
[INFO] [stdout] 14 |     value: String,
[INFO] [stdout]    |     ^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `CacheEntry` 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: methods `insert` and `get` are never used
[INFO] [stdout]   --> src/comm/app_cache.rs:44:12
[INFO] [stdout]    |
[INFO] [stdout] 24 | impl MemoryCache {
[INFO] [stdout]    | ---------------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 44 |     pub fn insert(&self, key: String, value: String, ttl: Option<Duration>) {
[INFO] [stdout]    |            ^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 51 |     pub fn get(&self, key: &str) -> Option<String> {
[INFO] [stdout]    |            ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `new` and `to_json` are never used
[INFO] [stdout]   --> src/entity/file_data.rs:17:12
[INFO] [stdout]    |
[INFO] [stdout] 16 | impl FileData {
[INFO] [stdout]    | ------------- associated items in this implementation
[INFO] [stdout] 17 |     pub fn new(file_name: String, file_size: u64, file_hash: String,file_sequence: i32) -> FileData {
[INFO] [stdout]    |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 21 |     pub fn to_json(&self) -> String{
[INFO] [stdout]    |            ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: static `ROUTES` is never used
[INFO] [stdout]  --> src/route/routes.rs:9:12
[INFO] [stdout]   |
[INFO] [stdout] 9 | static mut ROUTES: Vec<String> = Vec::new();
[INFO] [stdout]   |            ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `verify_key` is never used
[INFO] [stdout]   --> src/app_middleware/middlewares.rs:60:14
[INFO] [stdout]    |
[INFO] [stdout] 60 | pub async fn verify_key(request: Request<Body>, next: Next, ) -> Response<Body> {
[INFO] [stdout]    |              ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `FileData`
[INFO] [stdout]  --> tests/test.rs:5:13
[INFO] [stdout]   |
[INFO] [stdout] 5 |     let _ = FileData::new("exe".to_string(),100,"cqwdaqqwd".to_string(),12);
[INFO] [stdout]   |             ^^^^^^^^ use of undeclared type `FileData`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0433`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `kamu` (test "test") due to 1 previous error
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stdout] warning: unused import: `axum::http::StatusCode`
[INFO] [stdout]  --> src/controller/sys_controller.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use axum::http::StatusCode;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::fmt::Debug`
[INFO] [stdout]  --> src/route/routes.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::fmt::Debug;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `HeaderValue`
[INFO] [stdout]  --> src/app_middleware/middlewares.rs:7:18
[INFO] [stdout]   |
[INFO] [stdout] 7 | use axum::http::{HeaderValue, StatusCode, Uri};
[INFO] [stdout]   |                  ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `axum::response::IntoResponse`
[INFO] [stdout]  --> src/app_middleware/middlewares.rs:8:5
[INFO] [stdout]   |
[INFO] [stdout] 8 | use axum::response::IntoResponse;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `file_data_name`
[INFO] [stdout]   --> src/core/file_handling.rs:78:9
[INFO] [stdout]    |
[INFO] [stdout] 78 |     let file_data_name = uid.join(".data");
[INFO] [stdout]    |         ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_file_data_name`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/app_middleware/middlewares.rs:24:9
[INFO] [stdout]    |
[INFO] [stdout] 24 |     let mut x = next.run(request).await;
[INFO] [stdout]    |         ----^
[INFO] [stdout]    |         |
[INFO] [stdout]    |         help: remove this `mut`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_mut)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `user`
[INFO] [stdout]  --> src/service/core_service.rs:7:18
[INFO] [stdout]   |
[INFO] [stdout] 7 |     pub fn login(user: User) {}
[INFO] [stdout]   |                  ^^^^ help: if this is intentional, prefix it with an underscore: `_user`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `numerical_order` is assigned to, but never used
[INFO] [stdout]   --> src/service/core_service.rs:18:17
[INFO] [stdout]    |
[INFO] [stdout] 18 |         let mut numerical_order = 1;
[INFO] [stdout]    |                 ^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: consider using `_numerical_order` instead
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_current_timestamp_ms` is never used
[INFO] [stdout]   --> src/main.rs:61:4
[INFO] [stdout]    |
[INFO] [stdout] 61 | fn get_current_timestamp_ms() -> u128 {
[INFO] [stdout]    |    ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `CHUNK_SIZE` is never used
[INFO] [stdout]   --> src/core/file_handling.rs:14:7
[INFO] [stdout]    |
[INFO] [stdout] 14 | const CHUNK_SIZE: usize = 256 * 1024;
[INFO] [stdout]    |       ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `convert_file` is never used
[INFO] [stdout]   --> src/core/file_handling.rs:21:14
[INFO] [stdout]    |
[INFO] [stdout] 21 | pub async fn convert_file(src_path: &PathBuf, dest_dir: &PathBuf, key: u8, uid: Arc<String>) -> io::Result<FileData> {
[INFO] [stdout]    |              ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `restore_file` is never used
[INFO] [stdout]   --> src/core/file_handling.rs:77:14
[INFO] [stdout]    |
[INFO] [stdout] 77 | pub async fn restore_file(src_dir: &PathBuf, dest_path: &PathBuf, key: u8, uid: &PathBuf) -> io::Result<()> {
[INFO] [stdout]    |              ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `compress_folder_to_zip` is never used
[INFO] [stdout]    --> src/core/file_handling.rs:127:14
[INFO] [stdout]     |
[INFO] [stdout] 127 | pub async fn compress_folder_to_zip(source_dir: &PathBuf, target_file: &PathBuf) {
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `create_file_hash` is never used
[INFO] [stdout]    --> src/core/file_handling.rs:142:8
[INFO] [stdout]     |
[INFO] [stdout] 142 | pub fn create_file_hash(file_path: &PathBuf) -> String {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated functions `new`, `fail`, and `fail_for_code` are never used
[INFO] [stdout]   --> src/comm/json_result.rs:12:12
[INFO] [stdout]    |
[INFO] [stdout] 11 | impl<T> JsonResult<T> {
[INFO] [stdout]    | --------------------- associated functions in this implementation
[INFO] [stdout] 12 |     pub fn new(code: u16, mes: String, data: Option<T>) -> JsonResult<T> {
[INFO] [stdout]    |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 33 |     pub fn fail() -> JsonResult<T> {
[INFO] [stdout]    |            ^^^^
[INFO] [stdout] ...
[INFO] [stdout] 40 |     pub fn fail_for_code(code: u16) -> JsonResult<T> {
[INFO] [stdout]    |            ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `database`, `connection_poll`, and `file_path` are never read
[INFO] [stdout]   --> src/comm/config_util.rs:14:9
[INFO] [stdout]    |
[INFO] [stdout] 12 | pub struct AppConfig {
[INFO] [stdout]    |            --------- fields in this struct
[INFO] [stdout] 13 |     ///数据库配置
[INFO] [stdout] 14 |     pub database: DatabaseConfig,
[INFO] [stdout]    |         ^^^^^^^^
[INFO] [stdout] 15 |     ///连接池配置
[INFO] [stdout] 16 |     pub connection_poll: ConnectionPool,
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^
[INFO] [stdout] 17 |     ///文件存储位置
[INFO] [stdout] 18 |     pub file_path: String,
[INFO] [stdout]    |         ^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `AppConfig` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: multiple fields are never read
[INFO] [stdout]   --> src/comm/config_util.rs:26:9
[INFO] [stdout]    |
[INFO] [stdout] 24 | pub struct DatabaseConfig {
[INFO] [stdout]    |            -------------- fields in this struct
[INFO] [stdout] 25 |     ///数据库
[INFO] [stdout] 26 |     pub data_base: String,
[INFO] [stdout]    |         ^^^^^^^^^
[INFO] [stdout] 27 |     ///连接地址
[INFO] [stdout] 28 |     pub host: String,
[INFO] [stdout]    |         ^^^^
[INFO] [stdout] 29 |     ///账号
[INFO] [stdout] 30 |     pub username: String,
[INFO] [stdout]    |         ^^^^^^^^
[INFO] [stdout] 31 |     ///密码
[INFO] [stdout] 32 |     pub password: String,
[INFO] [stdout]    |         ^^^^^^^^
[INFO] [stdout] 33 |     ///数据库名称
[INFO] [stdout] 34 |     pub db_name: String,
[INFO] [stdout]    |         ^^^^^^^
[INFO] [stdout] 35 |     ///sql日志开关
[INFO] [stdout] 36 |     pub sql_logger_open: bool,
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^
[INFO] [stdout] 37 |     ///sql日志级别
[INFO] [stdout] 38 |     pub sql_logger_level: String,
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `DatabaseConfig` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `max_connections`, `min_connections`, `connect_timeout`, `acquire_timeout`, `idle_timeout`, and `max_lifetime` are never read
[INFO] [stdout]   --> src/comm/config_util.rs:45:9
[INFO] [stdout]    |
[INFO] [stdout] 43 | pub struct ConnectionPool {
[INFO] [stdout]    |            -------------- fields in this struct
[INFO] [stdout] 44 |     ///最大连接数
[INFO] [stdout] 45 |     pub max_connections: u32,
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^
[INFO] [stdout] 46 |     ///最小连接数
[INFO] [stdout] 47 |     pub min_connections: u32,
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^
[INFO] [stdout] 48 |     ///连接超时时间
[INFO] [stdout] 49 |     pub connect_timeout: u64,
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^
[INFO] [stdout] 50 |     ///等待获取连接所花费的最长时间
[INFO] [stdout] 51 |     pub acquire_timeout: u64,
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^
[INFO] [stdout] 52 |     ///最大空闲时间
[INFO] [stdout] 53 |     pub idle_timeout: u64,
[INFO] [stdout]    |         ^^^^^^^^^^^^
[INFO] [stdout] 54 |     ///单个连接的最长生存期
[INFO] [stdout] 55 |     pub max_lifetime: u64,
[INFO] [stdout]    |         ^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `ConnectionPool` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_config` is never used
[INFO] [stdout]   --> src/comm/config_util.rs:61:8
[INFO] [stdout]    |
[INFO] [stdout] 61 | pub fn get_config() -> AppConfig {
[INFO] [stdout]    |        ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `to_json` is never used
[INFO] [stdout]   --> src/entity/file_data.rs:21:12
[INFO] [stdout]    |
[INFO] [stdout] 16 | impl FileData {
[INFO] [stdout]    | ------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 21 |     pub fn to_json(&self) -> String{
[INFO] [stdout]    |            ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: static `ROUTES` is never used
[INFO] [stdout]  --> src/route/routes.rs:9:12
[INFO] [stdout]   |
[INFO] [stdout] 9 | static mut ROUTES: Vec<String> = Vec::new();
[INFO] [stdout]   |            ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `verify_key` is never used
[INFO] [stdout]   --> src/app_middleware/middlewares.rs:60:14
[INFO] [stdout]    |
[INFO] [stdout] 60 | pub async fn verify_key(request: Request<Body>, next: Next, ) -> Response<Body> {
[INFO] [stdout]    |              ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] running `Command { std: "docker" "inspect" "78c915dd2b972faff350799d97b8e9939be3cd52ae81fd8a43c50fc54680810a", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "78c915dd2b972faff350799d97b8e9939be3cd52ae81fd8a43c50fc54680810a", kill_on_drop: false }`
[INFO] [stdout] 78c915dd2b972faff350799d97b8e9939be3cd52ae81fd8a43c50fc54680810a
