[INFO] cloning repository https://github.com/Nikolaikolya/init_server [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Nikolaikolya/init_server" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FNikolaikolya%2Finit_server", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FNikolaikolya%2Finit_server'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 541a759209c3fc3916973986655a14614c012b31 [INFO] building Nikolaikolya/init_server against master#ad85bc524b1ad696e42061ad8338d382dffbdbe5 for pr-146237-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FNikolaikolya%2Finit_server" "/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/Nikolaikolya/init_server [INFO] finished tweaking git repo https://github.com/Nikolaikolya/init_server [INFO] tweaked toml for git repo https://github.com/Nikolaikolya/init_server written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/Nikolaikolya/init_server 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/Nikolaikolya/init_server 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] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded number_prefix v0.4.0 [INFO] [stderr] Downloaded opaque-debug v0.3.1 [INFO] [stderr] Downloaded rustversion v1.0.20 [INFO] [stderr] Downloaded polyval v0.6.2 [INFO] [stderr] Downloaded windows-link v0.1.1 [INFO] [stderr] Downloaded ghash v0.5.1 [INFO] [stderr] Downloaded aead v0.5.2 [INFO] [stderr] Downloaded base64ct v1.7.3 [INFO] [stderr] Downloaded ctr v0.9.2 [INFO] [stderr] Downloaded clap_derive v4.5.32 [INFO] [stderr] Downloaded blake2 v0.10.6 [INFO] [stderr] Downloaded ssh2 v0.9.5 [INFO] [stderr] Downloaded zerocopy-derive v0.8.24 [INFO] [stderr] Downloaded aes-gcm v0.10.3 [INFO] [stderr] Downloaded serde_json v1.0.140 [INFO] [stderr] Downloaded clap_builder v4.5.35 [INFO] [stderr] Downloaded portable-atomic v1.11.0 [INFO] [stderr] Downloaded chrono v0.4.40 [INFO] [stderr] Downloaded syn v2.0.100 [INFO] [stderr] Downloaded zerocopy v0.8.24 [INFO] [stderr] Downloaded unicode-width v0.2.0 [INFO] [stderr] Downloaded nix v0.26.4 [INFO] [stderr] Downloaded cc v1.2.17 [INFO] [stderr] Downloaded r-efi v5.2.0 [INFO] [stderr] Downloaded socket2 v0.5.9 [INFO] [stderr] Downloaded encode_unicode v1.0.0 [INFO] [stderr] Downloaded indicatif v0.17.11 [INFO] [stderr] Downloaded getrandom v0.3.2 [INFO] [stderr] Downloaded rustix v1.0.5 [INFO] [stderr] Downloaded uuid v1.16.0 [INFO] [stderr] Downloaded clap v4.5.35 [INFO] [stderr] Downloaded libssh2-sys v0.3.1 [INFO] [stderr] Downloaded console v0.15.11 [INFO] [stderr] Downloaded indexmap v2.8.0 [INFO] [stderr] Downloaded universal-hash v0.5.1 [INFO] [stderr] Downloaded anyhow v1.0.97 [INFO] [stderr] Downloaded windows-core v0.61.0 [INFO] [stderr] Downloaded tempfile v3.19.1 [INFO] [stderr] Downloaded dialoguer v0.10.4 [INFO] [stderr] Downloaded hermit-abi v0.5.0 [INFO] [stderr] Downloaded libc v0.2.171 [INFO] [stderr] Downloaded winapi-util v0.1.9 [INFO] [stderr] Downloaded env_logger v0.10.2 [INFO] [stderr] Downloaded redox_syscall v0.5.10 [INFO] [stderr] Downloaded argon2 v0.5.3 [INFO] [stderr] Downloaded libz-sys v1.1.22 [INFO] [stderr] Downloaded tokio v1.44.1 [INFO] [stderr] Downloaded colored v2.2.0 [INFO] [stderr] Downloaded proc-macro2 v1.0.94 [INFO] [stderr] Downloaded password-hash v0.5.0 [INFO] [stderr] Downloaded ctrlc v3.4.5 [INFO] [stderr] Downloaded is-terminal v0.4.16 [INFO] [stderr] Downloaded windows-result v0.3.2 [INFO] [stderr] Downloaded humantime v2.2.0 [INFO] [stderr] Downloaded memoffset v0.7.1 [INFO] [stderr] Downloaded toml v0.7.8 [INFO] [stderr] Downloaded windows-strings v0.4.0 [INFO] [stderr] Downloaded linux-raw-sys v0.9.3 [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] b80b27134fa5bd72fd01bd9f78d2d3b944c1a0432a5d722c76f0db7781dd9c76 [INFO] running `Command { std: "docker" "start" "-a" "b80b27134fa5bd72fd01bd9f78d2d3b944c1a0432a5d722c76f0db7781dd9c76", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b80b27134fa5bd72fd01bd9f78d2d3b944c1a0432a5d722c76f0db7781dd9c76", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b80b27134fa5bd72fd01bd9f78d2d3b944c1a0432a5d722c76f0db7781dd9c76", kill_on_drop: false }` [INFO] [stdout] b80b27134fa5bd72fd01bd9f78d2d3b944c1a0432a5d722c76f0db7781dd9c76 [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] 869e27b23eecc335a0ad92ca42e3b4818125a2057d2344619fcd123d9eb3fd23 [INFO] running `Command { std: "docker" "start" "-a" "869e27b23eecc335a0ad92ca42e3b4818125a2057d2344619fcd123d9eb3fd23", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.171 [INFO] [stderr] Compiling proc-macro2 v1.0.94 [INFO] [stderr] Compiling unicode-ident v1.0.18 [INFO] [stderr] Compiling typenum v1.18.0 [INFO] [stderr] Compiling version_check v0.9.5 [INFO] [stderr] Compiling autocfg v1.4.0 [INFO] [stderr] Compiling shlex v1.3.0 [INFO] [stderr] Compiling pkg-config v0.3.32 [INFO] [stderr] Compiling subtle v2.6.1 [INFO] [stderr] Compiling cc v1.2.17 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling bitflags v2.9.0 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling cpufeatures v0.2.17 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Compiling zerocopy v0.8.24 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling memchr v2.7.4 [INFO] [stderr] Compiling once_cell v1.21.3 [INFO] [stderr] Compiling getrandom v0.3.2 [INFO] [stderr] Compiling rustix v1.0.5 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Compiling smallvec v1.14.0 [INFO] [stderr] Compiling syn v2.0.100 [INFO] [stderr] Compiling utf8parse v0.2.2 [INFO] [stderr] Compiling cfg_aliases v0.2.1 [INFO] [stderr] Compiling anstyle-parse v0.2.6 [INFO] [stderr] Compiling nix v0.29.0 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling memoffset v0.7.1 [INFO] [stderr] Compiling anstyle v1.0.10 [INFO] [stderr] Compiling inout v0.1.4 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling hashbrown v0.15.2 [INFO] [stderr] Compiling anstyle-query v1.1.2 [INFO] [stderr] Compiling colorchoice v1.0.3 [INFO] [stderr] Compiling portable-atomic v1.11.0 [INFO] [stderr] Compiling openssl-sys v0.9.106 [INFO] [stderr] Compiling libz-sys v1.1.22 [INFO] [stderr] Compiling libssh2-sys v0.3.1 [INFO] [stderr] Compiling linux-raw-sys v0.9.3 [INFO] [stderr] Compiling equivalent v1.0.2 [INFO] [stderr] Compiling regex-syntax v0.8.5 [INFO] [stderr] Compiling is_terminal_polyfill v1.70.1 [INFO] [stderr] Compiling opaque-debug v0.3.1 [INFO] [stderr] Compiling unicode-width v0.2.0 [INFO] [stderr] Compiling indexmap v2.8.0 [INFO] [stderr] Compiling getrandom v0.2.15 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling cipher v0.4.4 [INFO] [stderr] Compiling universal-hash v0.5.1 [INFO] [stderr] Compiling polyval v0.6.2 [INFO] [stderr] Compiling ppv-lite86 v0.2.21 [INFO] [stderr] Compiling parking_lot v0.12.3 [INFO] [stderr] Compiling console v0.15.11 [INFO] [stderr] Compiling anstream v0.6.18 [INFO] [stderr] Compiling heck v0.5.0 [INFO] [stderr] Compiling openssl v0.10.71 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling serde_json v1.0.140 [INFO] [stderr] Compiling base64ct v1.7.3 [INFO] [stderr] Compiling fastrand v2.3.0 [INFO] [stderr] Compiling strsim v0.11.1 [INFO] [stderr] Compiling anyhow v1.0.97 [INFO] [stderr] Compiling regex-automata v0.4.9 [INFO] [stderr] Compiling winnow v0.5.40 [INFO] [stderr] Compiling clap_lex v0.7.4 [INFO] [stderr] Compiling clap_builder v4.5.35 [INFO] [stderr] Compiling password-hash v0.5.0 [INFO] [stderr] Compiling tempfile v3.19.1 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling clap_derive v4.5.32 [INFO] [stderr] Compiling regex v1.11.1 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling ghash v0.5.1 [INFO] [stderr] Compiling ctr v0.9.2 [INFO] [stderr] Compiling aes v0.8.4 [INFO] [stderr] Compiling blake2 v0.10.6 [INFO] [stderr] Compiling aead v0.5.2 [INFO] [stderr] Compiling mio v1.0.3 [INFO] [stderr] Compiling socket2 v0.5.9 [INFO] [stderr] Compiling is-terminal v0.4.16 [INFO] [stderr] Compiling signal-hook-registry v1.4.2 [INFO] [stderr] Compiling number_prefix v0.4.0 [INFO] [stderr] Compiling lazy_static v1.5.0 [INFO] [stderr] Compiling log v0.4.27 [INFO] [stderr] Compiling init_server v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Compiling zeroize v1.8.1 [INFO] [stderr] Compiling iana-time-zone v0.1.63 [INFO] [stderr] Compiling humantime v2.2.0 [INFO] [stderr] Compiling bytes v1.10.1 [INFO] [stderr] Compiling termcolor v1.4.1 [INFO] [stderr] Compiling pin-project-lite v0.2.16 [INFO] [stderr] Compiling itoa v1.0.15 [INFO] [stderr] Compiling shell-words v1.1.0 [INFO] [stderr] Compiling ryu v1.0.20 [INFO] [stderr] Compiling dialoguer v0.10.4 [INFO] [stderr] Compiling nix v0.26.4 [INFO] [stderr] Compiling ssh2 v0.9.5 [INFO] [stderr] Compiling colored v2.2.0 [INFO] [stderr] Compiling env_logger v0.10.2 [INFO] [stderr] Compiling indicatif v0.17.11 [INFO] [stderr] Compiling tokio v1.44.1 [INFO] [stderr] Compiling clap v4.5.35 [INFO] [stderr] Compiling argon2 v0.5.3 [INFO] [stderr] Compiling aes-gcm v0.10.3 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling ctrlc v3.4.5 [INFO] [stderr] Compiling sha2 v0.10.8 [INFO] [stderr] Compiling uuid v1.16.0 [INFO] [stderr] Compiling base64 v0.21.7 [INFO] [stderr] Compiling toml_datetime v0.6.8 [INFO] [stderr] Compiling serde_spanned v0.6.8 [INFO] [stderr] Compiling chrono v0.4.40 [INFO] [stderr] Compiling toml_edit v0.19.15 [INFO] [stderr] Compiling toml v0.7.8 [INFO] [stdout] warning: unused import: `debug` [INFO] [stdout] --> src/nginx.rs:2:11 [INFO] [stdout] | [INFO] [stdout] 2 | use log::{debug, error, info, warn}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `File` [INFO] [stdout] --> src/server.rs:2:16 [INFO] [stdout] | [INFO] [stdout] 2 | fs::{self, File}, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `debug` [INFO] [stdout] --> src/server.rs:10:11 [INFO] [stdout] | [INFO] [stdout] 10 | use log::{debug, error, info, warn}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `warn` [INFO] [stdout] --> src/utils.rs:2:31 [INFO] [stdout] | [INFO] [stdout] 2 | use log::{debug, error, info, warn}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `base64::decode`: Use Engine::decode [INFO] [stdout] --> src/config.rs:9:14 [INFO] [stdout] | [INFO] [stdout] 9 | use base64::{decode, encode}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `base64::encode`: Use Engine::encode [INFO] [stdout] --> src/config.rs:9:22 [INFO] [stdout] | [INFO] [stdout] 9 | use base64::{decode, encode}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `base64::encode`: Use Engine::encode [INFO] [stdout] --> src/config.rs:343:13 [INFO] [stdout] | [INFO] [stdout] 343 | Ok(Some(encode(key))) [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `base64::decode`: Use Engine::decode [INFO] [stdout] --> src/config.rs:149:25 [INFO] [stdout] | [INFO] [stdout] 149 | let key_bytes = decode(&key_string) [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `base64::encode`: Use Engine::encode [INFO] [stdout] --> src/config.rs:172:12 [INFO] [stdout] | [INFO] [stdout] 172 | Ok(encode(result)) [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `base64::decode`: Use Engine::decode [INFO] [stdout] --> src/config.rs:187:25 [INFO] [stdout] | [INFO] [stdout] 187 | let key_bytes = decode(&key_string) [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `base64::decode`: Use Engine::decode [INFO] [stdout] --> src/config.rs:190:13 [INFO] [stdout] | [INFO] [stdout] 190 | decode(encrypted).with_context(|| "Не удалось декодировать Base64 данные")?; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/backup.rs:101:10 [INFO] [stdout] | [INFO] [stdout] 101 | for (name, mut files) in files_by_name { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/backup.rs:79:9 [INFO] [stdout] | [INFO] [stdout] 79 | let mut entries = fs::read_dir(&backup_dir) [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `user` [INFO] [stdout] --> src/nginx.rs:250:67 [INFO] [stdout] | [INFO] [stdout] 250 | pub async fn configure_domain_proxy(domain_config: &DomainConfig, user: &str) -> Result<()> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_user` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `user` [INFO] [stdout] --> src/nginx.rs:325:68 [INFO] [stdout] | [INFO] [stdout] 325 | pub async fn configure_domain_static(domain_config: &DomainConfig, user: &str) -> Result<()> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_user` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ssh_key` [INFO] [stdout] --> src/security.rs:265:47 [INFO] [stdout] | [INFO] [stdout] 265 | pub async fn setup_ssh_access(username: &str, ssh_key: Option<&str>, user: &str) -> Result<()> { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ssh_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `user` [INFO] [stdout] --> src/security.rs:265:70 [INFO] [stdout] | [INFO] [stdout] 265 | pub async fn setup_ssh_access(username: &str, ssh_key: Option<&str>, user: &str) -> Result<()> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_user` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `password` is never read [INFO] [stdout] --> src/server.rs:309:17 [INFO] [stdout] | [INFO] [stdout] 309 | let mut password = String::new(); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `config` [INFO] [stdout] --> src/server.rs:735:13 [INFO] [stdout] | [INFO] [stdout] 735 | let config = ServerConfig::default(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_config` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Write` [INFO] [stdout] --> src/config.rs:4:16 [INFO] [stdout] | [INFO] [stdout] 4 | io::{Read, Write}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `change_root_password` is never used [INFO] [stdout] --> src/server.rs:278:10 [INFO] [stdout] | [INFO] [stdout] 278 | async fn change_root_password(user: &str) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `debug` [INFO] [stdout] --> src/nginx.rs:2:11 [INFO] [stdout] | [INFO] [stdout] 2 | use log::{debug, error, info, warn}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `File` [INFO] [stdout] --> src/server.rs:2:16 [INFO] [stdout] | [INFO] [stdout] 2 | fs::{self, File}, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `debug` [INFO] [stdout] --> src/server.rs:10:11 [INFO] [stdout] | [INFO] [stdout] 10 | use log::{debug, error, info, warn}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `warn` [INFO] [stdout] --> src/utils.rs:2:31 [INFO] [stdout] | [INFO] [stdout] 2 | use log::{debug, error, info, warn}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `base64::decode`: Use Engine::decode [INFO] [stdout] --> src/config.rs:9:14 [INFO] [stdout] | [INFO] [stdout] 9 | use base64::{decode, encode}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `base64::encode`: Use Engine::encode [INFO] [stdout] --> src/config.rs:9:22 [INFO] [stdout] | [INFO] [stdout] 9 | use base64::{decode, encode}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `base64::encode`: Use Engine::encode [INFO] [stdout] --> src/config.rs:343:13 [INFO] [stdout] | [INFO] [stdout] 343 | Ok(Some(encode(key))) [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `base64::decode`: Use Engine::decode [INFO] [stdout] --> src/config.rs:149:25 [INFO] [stdout] | [INFO] [stdout] 149 | let key_bytes = decode(&key_string) [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `base64::encode`: Use Engine::encode [INFO] [stdout] --> src/config.rs:172:12 [INFO] [stdout] | [INFO] [stdout] 172 | Ok(encode(result)) [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `base64::decode`: Use Engine::decode [INFO] [stdout] --> src/config.rs:187:25 [INFO] [stdout] | [INFO] [stdout] 187 | let key_bytes = decode(&key_string) [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `base64::decode`: Use Engine::decode [INFO] [stdout] --> src/config.rs:190:13 [INFO] [stdout] | [INFO] [stdout] 190 | decode(encrypted).with_context(|| "Не удалось декодировать Base64 данные")?; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/backup.rs:101:10 [INFO] [stdout] | [INFO] [stdout] 101 | for (name, mut files) in files_by_name { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/backup.rs:79:9 [INFO] [stdout] | [INFO] [stdout] 79 | let mut entries = fs::read_dir(&backup_dir) [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `user` [INFO] [stdout] --> src/nginx.rs:250:67 [INFO] [stdout] | [INFO] [stdout] 250 | pub async fn configure_domain_proxy(domain_config: &DomainConfig, user: &str) -> Result<()> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_user` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `user` [INFO] [stdout] --> src/nginx.rs:325:68 [INFO] [stdout] | [INFO] [stdout] 325 | pub async fn configure_domain_static(domain_config: &DomainConfig, user: &str) -> Result<()> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_user` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ssh_key` [INFO] [stdout] --> src/security.rs:265:47 [INFO] [stdout] | [INFO] [stdout] 265 | pub async fn setup_ssh_access(username: &str, ssh_key: Option<&str>, user: &str) -> Result<()> { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ssh_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `user` [INFO] [stdout] --> src/security.rs:265:70 [INFO] [stdout] | [INFO] [stdout] 265 | pub async fn setup_ssh_access(username: &str, ssh_key: Option<&str>, user: &str) -> Result<()> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_user` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `password` is never read [INFO] [stdout] --> src/server.rs:309:17 [INFO] [stdout] | [INFO] [stdout] 309 | let mut password = String::new(); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `config` [INFO] [stdout] --> src/server.rs:735:13 [INFO] [stdout] | [INFO] [stdout] 735 | let config = ServerConfig::default(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_config` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Write` [INFO] [stdout] --> src/config.rs:4:16 [INFO] [stdout] | [INFO] [stdout] 4 | io::{Read, Write}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `restore_from_backup` is never used [INFO] [stdout] --> src/backup.rs:43:14 [INFO] [stdout] | [INFO] [stdout] 43 | pub async fn restore_from_backup>(backup_path: P, original_path: P) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `clean_old_backups` is never used [INFO] [stdout] --> src/backup.rs:70:14 [INFO] [stdout] | [INFO] [stdout] 70 | pub async fn clean_old_backups(keep_last: usize) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CONFIG_FILE` is never used [INFO] [stdout] --> src/config.rs:33:11 [INFO] [stdout] | [INFO] [stdout] 33 | pub const CONFIG_FILE: &str = "config.json"; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `ConfigError` is never used [INFO] [stdout] --> src/config.rs:46:10 [INFO] [stdout] | [INFO] [stdout] 46 | pub enum ConfigError { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `encrypt_string`, `decrypt_string`, and `update` are never used [INFO] [stdout] --> src/config.rs:138:12 [INFO] [stdout] | [INFO] [stdout] 96 | impl ServerConfig { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 138 | pub fn encrypt_string(&self, plaintext: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 176 | pub fn decrypt_string(&self, encrypted: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 321 | pub fn update( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `cleanup_containers` is never used [INFO] [stdout] --> src/docker.rs:125:14 [INFO] [stdout] | [INFO] [stdout] 125 | pub async fn cleanup_containers(user: &str) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `success` is never used [INFO] [stdout] --> src/logger.rs:55:8 [INFO] [stdout] | [INFO] [stdout] 55 | pub fn success(message: &str) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `configure_firewall` is never used [INFO] [stdout] --> src/security.rs:138:14 [INFO] [stdout] | [INFO] [stdout] 138 | pub async fn configure_firewall(ports: &[u16], user: &str) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `hash_password` is never used [INFO] [stdout] --> src/security.rs:209:8 [INFO] [stdout] | [INFO] [stdout] 209 | pub fn hash_password(password: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `setup_ssh_access` is never used [INFO] [stdout] --> src/security.rs:265:14 [INFO] [stdout] | [INFO] [stdout] 265 | pub async fn setup_ssh_access(username: &str, ssh_key: Option<&str>, user: &str) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `change_root_password` is never used [INFO] [stdout] --> src/server.rs:278:10 [INFO] [stdout] | [INFO] [stdout] 278 | async fn change_root_password(user: &str) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_server_ip` is never used [INFO] [stdout] --> src/utils.rs:136:14 [INFO] [stdout] | [INFO] [stdout] 136 | pub async fn get_server_ip() -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2m 03s [INFO] running `Command { std: "docker" "inspect" "869e27b23eecc335a0ad92ca42e3b4818125a2057d2344619fcd123d9eb3fd23", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "869e27b23eecc335a0ad92ca42e3b4818125a2057d2344619fcd123d9eb3fd23", kill_on_drop: false }` [INFO] [stdout] 869e27b23eecc335a0ad92ca42e3b4818125a2057d2344619fcd123d9eb3fd23 [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] 670badcfc77a43760cbd21c7a135c1c7dd9a068b81423015a92fb08861fb0191 [INFO] running `Command { std: "docker" "start" "-a" "670badcfc77a43760cbd21c7a135c1c7dd9a068b81423015a92fb08861fb0191", kill_on_drop: false }` [INFO] [stdout] warning: unused import: `debug` [INFO] [stdout] --> src/nginx.rs:2:11 [INFO] [stdout] | [INFO] [stdout] 2 | use log::{debug, error, info, warn}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `File` [INFO] [stdout] --> src/server.rs:2:16 [INFO] [stdout] | [INFO] [stdout] 2 | fs::{self, File}, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `debug` [INFO] [stdout] --> src/server.rs:10:11 [INFO] [stdout] | [INFO] [stdout] 10 | use log::{debug, error, info, warn}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `warn` [INFO] [stdout] --> src/utils.rs:2:31 [INFO] [stdout] | [INFO] [stdout] 2 | use log::{debug, error, info, warn}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `base64::decode`: Use Engine::decode [INFO] [stdout] --> src/config.rs:9:14 [INFO] [stdout] | [INFO] [stdout] 9 | use base64::{decode, encode}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `base64::encode`: Use Engine::encode [INFO] [stdout] --> src/config.rs:9:22 [INFO] [stdout] | [INFO] [stdout] 9 | use base64::{decode, encode}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `base64::encode`: Use Engine::encode [INFO] [stdout] --> src/config.rs:343:13 [INFO] [stdout] | [INFO] [stdout] 343 | Ok(Some(encode(key))) [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `base64::decode`: Use Engine::decode [INFO] [stdout] --> src/config.rs:149:25 [INFO] [stdout] | [INFO] [stdout] 149 | let key_bytes = decode(&key_string) [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `base64::encode`: Use Engine::encode [INFO] [stdout] --> src/config.rs:172:12 [INFO] [stdout] | [INFO] [stdout] 172 | Ok(encode(result)) [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `base64::decode`: Use Engine::decode [INFO] [stdout] --> src/config.rs:187:25 [INFO] [stdout] | [INFO] [stdout] 187 | let key_bytes = decode(&key_string) [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `base64::decode`: Use Engine::decode [INFO] [stdout] --> src/config.rs:190:13 [INFO] [stdout] | [INFO] [stdout] 190 | decode(encrypted).with_context(|| "Не удалось декодировать Base64 данные")?; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/backup.rs:101:10 [INFO] [stdout] | [INFO] [stdout] 101 | for (name, mut files) in files_by_name { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/backup.rs:79:9 [INFO] [stdout] | [INFO] [stdout] 79 | let mut entries = fs::read_dir(&backup_dir) [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `user` [INFO] [stdout] --> src/nginx.rs:250:67 [INFO] [stdout] | [INFO] [stdout] 250 | pub async fn configure_domain_proxy(domain_config: &DomainConfig, user: &str) -> Result<()> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_user` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `user` [INFO] [stdout] --> src/nginx.rs:325:68 [INFO] [stdout] | [INFO] [stdout] 325 | pub async fn configure_domain_static(domain_config: &DomainConfig, user: &str) -> Result<()> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_user` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ssh_key` [INFO] [stdout] --> src/security.rs:265:47 [INFO] [stdout] | [INFO] [stdout] 265 | pub async fn setup_ssh_access(username: &str, ssh_key: Option<&str>, user: &str) -> Result<()> { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ssh_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `user` [INFO] [stdout] --> src/security.rs:265:70 [INFO] [stdout] | [INFO] [stdout] 265 | pub async fn setup_ssh_access(username: &str, ssh_key: Option<&str>, user: &str) -> Result<()> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_user` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `password` is never read [INFO] [stdout] --> src/server.rs:309:17 [INFO] [stdout] | [INFO] [stdout] 309 | let mut password = String::new(); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `config` [INFO] [stdout] --> src/server.rs:735:13 [INFO] [stdout] | [INFO] [stdout] 735 | let config = ServerConfig::default(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_config` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Write` [INFO] [stdout] --> src/config.rs:4:16 [INFO] [stdout] | [INFO] [stdout] 4 | io::{Read, Write}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `change_root_password` is never used [INFO] [stdout] --> src/server.rs:278:10 [INFO] [stdout] | [INFO] [stdout] 278 | async fn change_root_password(user: &str) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling init_server v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `debug` [INFO] [stdout] --> src/nginx.rs:2:11 [INFO] [stdout] | [INFO] [stdout] 2 | use log::{debug, error, info, warn}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `File` [INFO] [stdout] --> src/server.rs:2:16 [INFO] [stdout] | [INFO] [stdout] 2 | fs::{self, File}, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `debug` [INFO] [stdout] --> src/server.rs:10:11 [INFO] [stdout] | [INFO] [stdout] 10 | use log::{debug, error, info, warn}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `warn` [INFO] [stdout] --> src/utils.rs:2:31 [INFO] [stdout] | [INFO] [stdout] 2 | use log::{debug, error, info, warn}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `base64::decode`: Use Engine::decode [INFO] [stdout] --> src/config.rs:9:14 [INFO] [stdout] | [INFO] [stdout] 9 | use base64::{decode, encode}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `base64::encode`: Use Engine::encode [INFO] [stdout] --> src/config.rs:9:22 [INFO] [stdout] | [INFO] [stdout] 9 | use base64::{decode, encode}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `base64::encode`: Use Engine::encode [INFO] [stdout] --> src/config.rs:343:13 [INFO] [stdout] | [INFO] [stdout] 343 | Ok(Some(encode(key))) [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `base64::decode`: Use Engine::decode [INFO] [stdout] --> src/config.rs:149:25 [INFO] [stdout] | [INFO] [stdout] 149 | let key_bytes = decode(&key_string) [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `base64::encode`: Use Engine::encode [INFO] [stdout] --> src/config.rs:172:12 [INFO] [stdout] | [INFO] [stdout] 172 | Ok(encode(result)) [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `base64::decode`: Use Engine::decode [INFO] [stdout] --> src/config.rs:187:25 [INFO] [stdout] | [INFO] [stdout] 187 | let key_bytes = decode(&key_string) [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `base64::decode`: Use Engine::decode [INFO] [stdout] --> src/config.rs:190:13 [INFO] [stdout] | [INFO] [stdout] 190 | decode(encrypted).with_context(|| "Не удалось декодировать Base64 данные")?; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/backup.rs:101:10 [INFO] [stdout] | [INFO] [stdout] 101 | for (name, mut files) in files_by_name { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `debug` [INFO] [stdout] --> src/nginx.rs:2:11 [INFO] [stdout] | [INFO] [stdout] 2 | use log::{debug, error, info, warn}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `File` [INFO] [stdout] --> src/server.rs:2:16 [INFO] [stdout] | [INFO] [stdout] 2 | fs::{self, File}, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `debug` [INFO] [stdout] --> src/server.rs:10:11 [INFO] [stdout] | [INFO] [stdout] 10 | use log::{debug, error, info, warn}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `warn` [INFO] [stdout] --> src/utils.rs:2:31 [INFO] [stdout] | [INFO] [stdout] 2 | use log::{debug, error, info, warn}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `base64::decode`: Use Engine::decode [INFO] [stdout] --> src/config.rs:9:14 [INFO] [stdout] | [INFO] [stdout] 9 | use base64::{decode, encode}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `base64::encode`: Use Engine::encode [INFO] [stdout] --> src/config.rs:9:22 [INFO] [stdout] | [INFO] [stdout] 9 | use base64::{decode, encode}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `base64::encode`: Use Engine::encode [INFO] [stdout] --> src/config.rs:343:13 [INFO] [stdout] | [INFO] [stdout] 343 | Ok(Some(encode(key))) [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `base64::decode`: Use Engine::decode [INFO] [stdout] --> src/config.rs:149:25 [INFO] [stdout] | [INFO] [stdout] 149 | let key_bytes = decode(&key_string) [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `base64::encode`: Use Engine::encode [INFO] [stdout] --> src/config.rs:172:12 [INFO] [stdout] | [INFO] [stdout] 172 | Ok(encode(result)) [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `base64::decode`: Use Engine::decode [INFO] [stdout] --> src/config.rs:187:25 [INFO] [stdout] | [INFO] [stdout] 187 | let key_bytes = decode(&key_string) [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `base64::decode`: Use Engine::decode [INFO] [stdout] --> src/config.rs:190:13 [INFO] [stdout] | [INFO] [stdout] 190 | decode(encrypted).with_context(|| "Не удалось декодировать Base64 данные")?; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/backup.rs:101:10 [INFO] [stdout] | [INFO] [stdout] 101 | for (name, mut files) in files_by_name { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/backup.rs:79:9 [INFO] [stdout] | [INFO] [stdout] 79 | let mut entries = fs::read_dir(&backup_dir) [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/backup.rs:79:9 [INFO] [stdout] | [INFO] [stdout] 79 | let mut entries = fs::read_dir(&backup_dir) [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `user` [INFO] [stdout] --> src/nginx.rs:250:67 [INFO] [stdout] | [INFO] [stdout] 250 | pub async fn configure_domain_proxy(domain_config: &DomainConfig, user: &str) -> Result<()> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_user` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `user` [INFO] [stdout] --> src/nginx.rs:250:67 [INFO] [stdout] | [INFO] [stdout] 250 | pub async fn configure_domain_proxy(domain_config: &DomainConfig, user: &str) -> Result<()> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_user` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `user` [INFO] [stdout] --> src/nginx.rs:325:68 [INFO] [stdout] | [INFO] [stdout] 325 | pub async fn configure_domain_static(domain_config: &DomainConfig, user: &str) -> Result<()> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_user` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `user` [INFO] [stdout] --> src/nginx.rs:325:68 [INFO] [stdout] | [INFO] [stdout] 325 | pub async fn configure_domain_static(domain_config: &DomainConfig, user: &str) -> Result<()> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_user` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ssh_key` [INFO] [stdout] --> src/security.rs:265:47 [INFO] [stdout] | [INFO] [stdout] 265 | pub async fn setup_ssh_access(username: &str, ssh_key: Option<&str>, user: &str) -> Result<()> { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ssh_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `user` [INFO] [stdout] --> src/security.rs:265:70 [INFO] [stdout] | [INFO] [stdout] 265 | pub async fn setup_ssh_access(username: &str, ssh_key: Option<&str>, user: &str) -> Result<()> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_user` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ssh_key` [INFO] [stdout] --> src/security.rs:265:47 [INFO] [stdout] | [INFO] [stdout] 265 | pub async fn setup_ssh_access(username: &str, ssh_key: Option<&str>, user: &str) -> Result<()> { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ssh_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `user` [INFO] [stdout] --> src/security.rs:265:70 [INFO] [stdout] | [INFO] [stdout] 265 | pub async fn setup_ssh_access(username: &str, ssh_key: Option<&str>, user: &str) -> Result<()> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_user` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `password` is never read [INFO] [stdout] --> src/server.rs:309:17 [INFO] [stdout] | [INFO] [stdout] 309 | let mut password = String::new(); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `password` is never read [INFO] [stdout] --> src/server.rs:309:17 [INFO] [stdout] | [INFO] [stdout] 309 | let mut password = String::new(); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `config` [INFO] [stdout] --> src/server.rs:735:13 [INFO] [stdout] | [INFO] [stdout] 735 | let config = ServerConfig::default(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_config` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `config` [INFO] [stdout] --> src/server.rs:735:13 [INFO] [stdout] | [INFO] [stdout] 735 | let config = ServerConfig::default(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_config` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Write` [INFO] [stdout] --> src/config.rs:4:16 [INFO] [stdout] | [INFO] [stdout] 4 | io::{Read, Write}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `change_root_password` is never used [INFO] [stdout] --> src/server.rs:278:10 [INFO] [stdout] | [INFO] [stdout] 278 | async fn change_root_password(user: &str) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Write` [INFO] [stdout] --> src/config.rs:4:16 [INFO] [stdout] | [INFO] [stdout] 4 | io::{Read, Write}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `restore_from_backup` is never used [INFO] [stdout] --> src/backup.rs:43:14 [INFO] [stdout] | [INFO] [stdout] 43 | pub async fn restore_from_backup>(backup_path: P, original_path: P) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `clean_old_backups` is never used [INFO] [stdout] --> src/backup.rs:70:14 [INFO] [stdout] | [INFO] [stdout] 70 | pub async fn clean_old_backups(keep_last: usize) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CONFIG_FILE` is never used [INFO] [stdout] --> src/config.rs:33:11 [INFO] [stdout] | [INFO] [stdout] 33 | pub const CONFIG_FILE: &str = "config.json"; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `ConfigError` is never used [INFO] [stdout] --> src/config.rs:46:10 [INFO] [stdout] | [INFO] [stdout] 46 | pub enum ConfigError { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `encrypt_string`, `decrypt_string`, and `update` are never used [INFO] [stdout] --> src/config.rs:138:12 [INFO] [stdout] | [INFO] [stdout] 96 | impl ServerConfig { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 138 | pub fn encrypt_string(&self, plaintext: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 176 | pub fn decrypt_string(&self, encrypted: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 321 | pub fn update( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `cleanup_containers` is never used [INFO] [stdout] --> src/docker.rs:125:14 [INFO] [stdout] | [INFO] [stdout] 125 | pub async fn cleanup_containers(user: &str) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `success` is never used [INFO] [stdout] --> src/logger.rs:55:8 [INFO] [stdout] | [INFO] [stdout] 55 | pub fn success(message: &str) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `configure_firewall` is never used [INFO] [stdout] --> src/security.rs:138:14 [INFO] [stdout] | [INFO] [stdout] 138 | pub async fn configure_firewall(ports: &[u16], user: &str) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `hash_password` is never used [INFO] [stdout] --> src/security.rs:209:8 [INFO] [stdout] | [INFO] [stdout] 209 | pub fn hash_password(password: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `setup_ssh_access` is never used [INFO] [stdout] --> src/security.rs:265:14 [INFO] [stdout] | [INFO] [stdout] 265 | pub async fn setup_ssh_access(username: &str, ssh_key: Option<&str>, user: &str) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `change_root_password` is never used [INFO] [stdout] --> src/server.rs:278:10 [INFO] [stdout] | [INFO] [stdout] 278 | async fn change_root_password(user: &str) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_server_ip` is never used [INFO] [stdout] --> src/utils.rs:136:14 [INFO] [stdout] | [INFO] [stdout] 136 | pub async fn get_server_ip() -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 7.99s [INFO] running `Command { std: "docker" "inspect" "670badcfc77a43760cbd21c7a135c1c7dd9a068b81423015a92fb08861fb0191", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "670badcfc77a43760cbd21c7a135c1c7dd9a068b81423015a92fb08861fb0191", kill_on_drop: false }` [INFO] [stdout] 670badcfc77a43760cbd21c7a135c1c7dd9a068b81423015a92fb08861fb0191