[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] testing Nikolaikolya/init_server against master#2fd6efc32704647e64d3d646d21c4c68eae100e4 for pr-149852-1
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FNikolaikolya%2Finit_server" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-3-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-3-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/Nikolaikolya/init_server on toolchain 2fd6efc32704647e64d3d646d21c4c68eae100e4
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+2fd6efc32704647e64d3d646d21c4c68eae100e4" "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" "+2fd6efc32704647e64d3d646d21c4c68eae100e4" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Updating crates.io index
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded ssh2 v0.9.5
[INFO] [stderr]   Downloaded dialoguer v0.10.4
[INFO] [stderr]   Downloaded clap v4.5.35
[INFO] [stderr]   Downloaded clap_builder v4.5.35
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:aa71247004a7fa38d13ec170f48f06cdedf5bc50b2a8645e56ed7e992e6fa513" "/opt/rustwide/cargo-home/bin/cargo" "+2fd6efc32704647e64d3d646d21c4c68eae100e4" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] fe4777f3d564cb802362f84d2a21fbd1346f0b158a7a332e36ec4cb4b136ba6d
[INFO] running `Command { std: "docker" "start" "-a" "fe4777f3d564cb802362f84d2a21fbd1346f0b158a7a332e36ec4cb4b136ba6d", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "fe4777f3d564cb802362f84d2a21fbd1346f0b158a7a332e36ec4cb4b136ba6d", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "fe4777f3d564cb802362f84d2a21fbd1346f0b158a7a332e36ec4cb4b136ba6d", kill_on_drop: false }`
[INFO] [stdout] fe4777f3d564cb802362f84d2a21fbd1346f0b158a7a332e36ec4cb4b136ba6d
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:aa71247004a7fa38d13ec170f48f06cdedf5bc50b2a8645e56ed7e992e6fa513" "/opt/rustwide/cargo-home/bin/cargo" "+2fd6efc32704647e64d3d646d21c4c68eae100e4" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 2dcc5a66a58c3ed5e3fa988f368f81ff4115d9edacb74984080521f07b9f20d9
[INFO] running `Command { std: "docker" "start" "-a" "2dcc5a66a58c3ed5e3fa988f368f81ff4115d9edacb74984080521f07b9f20d9", kill_on_drop: false }`
[INFO] [stderr]    Compiling libc v0.2.171
[INFO] [stderr]    Compiling subtle v2.6.1
[INFO] [stderr]    Compiling bitflags v2.9.0
[INFO] [stderr]    Compiling zerocopy v0.8.24
[INFO] [stderr]    Compiling getrandom v0.3.2
[INFO] [stderr]    Compiling openssl-sys v0.9.106
[INFO] [stderr]    Compiling libz-sys v1.1.22
[INFO] [stderr]    Compiling smallvec v1.14.0
[INFO] [stderr]    Compiling rustix v1.0.5
[INFO] [stderr]    Compiling nix v0.29.0
[INFO] [stderr]    Compiling libssh2-sys v0.3.1
[INFO] [stderr]    Compiling memoffset v0.7.1
[INFO] [stderr]    Compiling syn v2.0.100
[INFO] [stderr]    Compiling inout v0.1.4
[INFO] [stderr]    Compiling linux-raw-sys v0.9.3
[INFO] [stderr]    Compiling portable-atomic v1.11.0
[INFO] [stderr]    Compiling indexmap v2.8.0
[INFO] [stderr]    Compiling regex-automata v0.4.9
[INFO] [stderr]    Compiling serde_json v1.0.140
[INFO] [stderr]    Compiling openssl v0.10.71
[INFO] [stderr]    Compiling winnow v0.5.40
[INFO] [stderr]    Compiling clap_lex v0.7.4
[INFO] [stderr]    Compiling base64ct v1.7.3
[INFO] [stderr]    Compiling init_server v0.1.0 (/opt/rustwide/workdir)
[INFO] [stderr]    Compiling humantime v2.2.0
[INFO] [stderr]    Compiling iana-time-zone v0.1.63
[INFO] [stderr]    Compiling clap_builder v4.5.35
[INFO] [stderr]    Compiling colored v2.2.0
[INFO] [stderr]    Compiling ppv-lite86 v0.2.21
[INFO] [stderr]    Compiling getrandom v0.2.15
[INFO] [stderr]    Compiling parking_lot_core v0.9.10
[INFO] [stderr]    Compiling console v0.15.11
[INFO] [stderr]    Compiling mio v1.0.3
[INFO] [stderr]    Compiling signal-hook-registry v1.4.2
[INFO] [stderr]    Compiling rand_core v0.6.4
[INFO] [stderr]    Compiling is-terminal v0.4.16
[INFO] [stderr]    Compiling socket2 v0.5.9
[INFO] [stderr]    Compiling parking_lot v0.12.3
[INFO] [stderr]    Compiling uuid v1.16.0
[INFO] [stderr]    Compiling nix v0.26.4
[INFO] [stderr]    Compiling crypto-common v0.1.6
[INFO] [stderr]    Compiling rand_chacha v0.3.1
[INFO] [stderr]    Compiling password-hash v0.5.0
[INFO] [stderr]    Compiling universal-hash v0.5.1
[INFO] [stderr]    Compiling digest v0.10.7
[INFO] [stderr]    Compiling cipher v0.4.4
[INFO] [stderr]    Compiling polyval v0.6.2
[INFO] [stderr]    Compiling aes v0.8.4
[INFO] [stderr]    Compiling ghash v0.5.1
[INFO] [stderr]    Compiling ctr v0.9.2
[INFO] [stderr]    Compiling tempfile v3.19.1
[INFO] [stderr]    Compiling blake2 v0.10.6
[INFO] [stderr]    Compiling regex v1.11.1
[INFO] [stderr]    Compiling aead v0.5.2
[INFO] [stderr]    Compiling ctrlc v3.4.5
[INFO] [stderr]    Compiling sha2 v0.10.8
[INFO] [stderr]    Compiling aes-gcm v0.10.3
[INFO] [stderr]    Compiling rand v0.8.5
[INFO] [stderr]    Compiling indicatif v0.17.11
[INFO] [stderr]    Compiling argon2 v0.5.3
[INFO] [stderr]    Compiling dialoguer v0.10.4
[INFO] [stderr]    Compiling env_logger v0.10.2
[INFO] [stderr]    Compiling serde_derive v1.0.219
[INFO] [stderr]    Compiling openssl-macros v0.1.1
[INFO] [stderr]    Compiling tokio-macros v2.5.0
[INFO] [stderr]    Compiling clap_derive v4.5.32
[INFO] [stderr]    Compiling thiserror-impl v1.0.69
[INFO] [stderr]    Compiling tokio v1.44.1
[INFO] [stderr]    Compiling thiserror v1.0.69
[INFO] [stderr]    Compiling ssh2 v0.9.5
[INFO] [stderr]    Compiling clap v4.5.35
[INFO] [stderr]    Compiling serde v1.0.219
[INFO] [stderr]    Compiling serde_spanned v0.6.8
[INFO] [stderr]    Compiling toml_datetime 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: 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 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: 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 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:28
[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: 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: 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 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: 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 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:28
[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: 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<P: AsRef<Path>>(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<String> {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 176 |     pub fn decrypt_string(&self, encrypted: &str) -> Result<String> {
[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<String> {
[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<String> {
[INFO] [stdout]     |              ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 23.57s
[INFO] running `Command { std: "docker" "inspect" "2dcc5a66a58c3ed5e3fa988f368f81ff4115d9edacb74984080521f07b9f20d9", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "2dcc5a66a58c3ed5e3fa988f368f81ff4115d9edacb74984080521f07b9f20d9", kill_on_drop: false }`
[INFO] [stdout] 2dcc5a66a58c3ed5e3fa988f368f81ff4115d9edacb74984080521f07b9f20d9
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:aa71247004a7fa38d13ec170f48f06cdedf5bc50b2a8645e56ed7e992e6fa513" "/opt/rustwide/cargo-home/bin/cargo" "+2fd6efc32704647e64d3d646d21c4c68eae100e4" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 59bc4ab4276f49009d06f54f967905d345b56a36c01cfb75ecfa74dc831b27bc
[INFO] running `Command { std: "docker" "start" "-a" "59bc4ab4276f49009d06f54f967905d345b56a36c01cfb75ecfa74dc831b27bc", 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: 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 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: 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 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:28
[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] [stderr]    Compiling init_server v0.1.0 (/opt/rustwide/workdir)
[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: 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 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: 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 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: 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 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 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: 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 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:28
[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: 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<P: AsRef<Path>>(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<String> {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 176 |     pub fn decrypt_string(&self, encrypted: &str) -> Result<String> {
[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<String> {
[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<String> {
[INFO] [stdout]     |              ^^^^^^^^^^^^^
[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:28
[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: 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]     Finished `test` profile [unoptimized + debuginfo] target(s) in 3.89s
[INFO] running `Command { std: "docker" "inspect" "59bc4ab4276f49009d06f54f967905d345b56a36c01cfb75ecfa74dc831b27bc", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "59bc4ab4276f49009d06f54f967905d345b56a36c01cfb75ecfa74dc831b27bc", kill_on_drop: false }`
[INFO] [stdout] 59bc4ab4276f49009d06f54f967905d345b56a36c01cfb75ecfa74dc831b27bc
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:aa71247004a7fa38d13ec170f48f06cdedf5bc50b2a8645e56ed7e992e6fa513" "/opt/rustwide/cargo-home/bin/cargo" "+2fd6efc32704647e64d3d646d21c4c68eae100e4" "test" "--frozen", kill_on_drop: false }`
[INFO] [stdout] e84504eeb9ceec83fe6f47fc309d47a0252d7f4c0c0737e49c82bd935dc5cb3f
[INFO] running `Command { std: "docker" "start" "-a" "e84504eeb9ceec83fe6f47fc309d47a0252d7f4c0c0737e49c82bd935dc5cb3f", kill_on_drop: false }`
[INFO] [stderr] warning: unused import: `debug`
[INFO] [stderr]  --> src/nginx.rs:2:11
[INFO] [stderr]   |
[INFO] [stderr] 2 | use log::{debug, error, info, warn};
[INFO] [stderr]   |           ^^^^^
[INFO] [stderr]   |
[INFO] [stderr]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `File`
[INFO] [stderr]  --> src/server.rs:2:16
[INFO] [stderr]   |
[INFO] [stderr] 2 |     fs::{self, File},
[INFO] [stderr]   |                ^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `debug`
[INFO] [stderr]   --> src/server.rs:10:11
[INFO] [stderr]    |
[INFO] [stderr] 10 | use log::{debug, error, info, warn};
[INFO] [stderr]    |           ^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `warn`
[INFO] [stderr]  --> src/utils.rs:2:31
[INFO] [stderr]   |
[INFO] [stderr] 2 | use log::{debug, error, info, warn};
[INFO] [stderr]   |                               ^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: use of deprecated function `base64::decode`: Use Engine::decode
[INFO] [stderr]  --> src/config.rs:9:14
[INFO] [stderr]   |
[INFO] [stderr] 9 | use base64::{decode, encode};
[INFO] [stderr]   |              ^^^^^^
[INFO] [stderr]   |
[INFO] [stderr]   = note: `#[warn(deprecated)]` on by default
[INFO] [stderr] 
[INFO] [stderr] warning: use of deprecated function `base64::encode`: Use Engine::encode
[INFO] [stderr]  --> src/config.rs:9:22
[INFO] [stderr]   |
[INFO] [stderr] 9 | use base64::{decode, encode};
[INFO] [stderr]   |                      ^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: use of deprecated function `base64::encode`: Use Engine::encode
[INFO] [stderr]    --> src/config.rs:343:13
[INFO] [stderr]     |
[INFO] [stderr] 343 |     Ok(Some(encode(key)))
[INFO] [stderr]     |             ^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: use of deprecated function `base64::decode`: Use Engine::decode
[INFO] [stderr]    --> src/config.rs:149:25
[INFO] [stderr]     |
[INFO] [stderr] 149 |         let key_bytes = decode(&key_string)
[INFO] [stderr]     |                         ^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: use of deprecated function `base64::encode`: Use Engine::encode
[INFO] [stderr]    --> src/config.rs:172:12
[INFO] [stderr]     |
[INFO] [stderr] 172 |         Ok(encode(result))
[INFO] [stderr]     |            ^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: use of deprecated function `base64::decode`: Use Engine::decode
[INFO] [stderr]    --> src/config.rs:187:25
[INFO] [stderr]     |
[INFO] [stderr] 187 |         let key_bytes = decode(&key_string)
[INFO] [stderr]     |                         ^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: use of deprecated function `base64::decode`: Use Engine::decode
[INFO] [stderr]    --> src/config.rs:190:13
[INFO] [stderr]     |
[INFO] [stderr] 190 |             decode(encrypted).with_context(|| "Не удалось декодировать Base64 данные")?;
[INFO] [stderr]     |             ^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: variable does not need to be mutable
[INFO] [stderr]   --> src/backup.rs:79:9
[INFO] [stderr]    |
[INFO] [stderr] 79 |     let mut entries = fs::read_dir(&backup_dir)
[INFO] [stderr]    |         ----^^^^^^^
[INFO] [stderr]    |         |
[INFO] [stderr]    |         help: remove this `mut`
[INFO] [stderr]    |
[INFO] [stderr]    = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `Write`
[INFO] [stderr]  --> src/config.rs:4:16
[INFO] [stderr]   |
[INFO] [stderr] 4 |     io::{Read, Write},
[INFO] [stderr]   |                ^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `name`
[INFO] [stderr]    --> src/backup.rs:101:10
[INFO] [stderr]     |
[INFO] [stderr] 101 |     for (name, mut files) in files_by_name {
[INFO] [stderr]     |          ^^^^ help: if this is intentional, prefix it with an underscore: `_name`
[INFO] [stderr]     |
[INFO] [stderr]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `user`
[INFO] [stderr]    --> src/nginx.rs:250:67
[INFO] [stderr]     |
[INFO] [stderr] 250 | pub async fn configure_domain_proxy(domain_config: &DomainConfig, user: &str) -> Result<()> {
[INFO] [stderr]     |                                                                   ^^^^ help: if this is intentional, prefix it with an underscore: `_user`
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `user`
[INFO] [stderr]    --> src/nginx.rs:325:68
[INFO] [stderr]     |
[INFO] [stderr] 325 | pub async fn configure_domain_static(domain_config: &DomainConfig, user: &str) -> Result<()> {
[INFO] [stderr]     |                                                                    ^^^^ help: if this is intentional, prefix it with an underscore: `_user`
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `ssh_key`
[INFO] [stderr]    --> src/security.rs:265:47
[INFO] [stderr]     |
[INFO] [stderr] 265 | pub async fn setup_ssh_access(username: &str, ssh_key: Option<&str>, user: &str) -> Result<()> {
[INFO] [stderr]     |                                               ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ssh_key`
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `user`
[INFO] [stderr]    --> src/security.rs:265:70
[INFO] [stderr]     |
[INFO] [stderr] 265 | pub async fn setup_ssh_access(username: &str, ssh_key: Option<&str>, user: &str) -> Result<()> {
[INFO] [stderr]     |                                                                      ^^^^ help: if this is intentional, prefix it with an underscore: `_user`
[INFO] [stderr] 
[INFO] [stderr] warning: value assigned to `password` is never read
[INFO] [stderr]    --> src/server.rs:309:28
[INFO] [stderr]     |
[INFO] [stderr] 309 |         let mut password = String::new();
[INFO] [stderr]     |                            ^^^^^^^^^^^^^
[INFO] [stderr]     |
[INFO] [stderr]     = help: maybe it is overwritten before being read?
[INFO] [stderr]     = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `config`
[INFO] [stderr]    --> src/server.rs:735:13
[INFO] [stderr]     |
[INFO] [stderr] 735 |         let config = ServerConfig::default();
[INFO] [stderr]     |             ^^^^^^ help: if this is intentional, prefix it with an underscore: `_config`
[INFO] [stderr] 
[INFO] [stderr] warning: function `change_root_password` is never used
[INFO] [stderr]    --> src/server.rs:278:10
[INFO] [stderr]     |
[INFO] [stderr] 278 | async fn change_root_password(user: &str) -> Result<()> {
[INFO] [stderr]     |          ^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]     |
[INFO] [stderr]     = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: `init_server` (lib) generated 21 warnings (run `cargo fix --lib -p init_server` to apply 11 suggestions)
[INFO] [stderr] warning: `init_server` (lib test) generated 21 warnings (21 duplicates)
[INFO] [stderr] warning: function `restore_from_backup` is never used
[INFO] [stderr]   --> src/backup.rs:43:14
[INFO] [stderr]    |
[INFO] [stderr] 43 | pub async fn restore_from_backup<P: AsRef<Path>>(backup_path: P, original_path: P) -> Result<()> {
[INFO] [stderr]    |              ^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: function `clean_old_backups` is never used
[INFO] [stderr]   --> src/backup.rs:70:14
[INFO] [stderr]    |
[INFO] [stderr] 70 | pub async fn clean_old_backups(keep_last: usize) -> Result<()> {
[INFO] [stderr]    |              ^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: constant `CONFIG_FILE` is never used
[INFO] [stderr]   --> src/config.rs:33:11
[INFO] [stderr]    |
[INFO] [stderr] 33 | pub const CONFIG_FILE: &str = "config.json";
[INFO] [stderr]    |           ^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: enum `ConfigError` is never used
[INFO] [stderr]   --> src/config.rs:46:10
[INFO] [stderr]    |
[INFO] [stderr] 46 | pub enum ConfigError {
[INFO] [stderr]    |          ^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: methods `encrypt_string`, `decrypt_string`, and `update` are never used
[INFO] [stderr]    --> src/config.rs:138:12
[INFO] [stderr]     |
[INFO] [stderr]  96 | impl ServerConfig {
[INFO] [stderr]     | ----------------- methods in this implementation
[INFO] [stderr] ...
[INFO] [stderr] 138 |     pub fn encrypt_string(&self, plaintext: &str) -> Result<String> {
[INFO] [stderr]     |            ^^^^^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 176 |     pub fn decrypt_string(&self, encrypted: &str) -> Result<String> {
[INFO] [stderr]     |            ^^^^^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 321 |     pub fn update(
[INFO] [stderr]     |            ^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function `cleanup_containers` is never used
[INFO] [stderr]    --> src/docker.rs:125:14
[INFO] [stderr]     |
[INFO] [stderr] 125 | pub async fn cleanup_containers(user: &str) -> Result<()> {
[INFO] [stderr]     |              ^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function `success` is never used
[INFO] [stderr]   --> src/logger.rs:55:8
[INFO] [stderr]    |
[INFO] [stderr] 55 | pub fn success(message: &str) {
[INFO] [stderr]    |        ^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function `configure_firewall` is never used
[INFO] [stderr]    --> src/security.rs:138:14
[INFO] [stderr]     |
[INFO] [stderr] 138 | pub async fn configure_firewall(ports: &[u16], user: &str) -> Result<()> {
[INFO] [stderr]     |              ^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function `hash_password` is never used
[INFO] [stderr]    --> src/security.rs:209:8
[INFO] [stderr]     |
[INFO] [stderr] 209 | pub fn hash_password(password: &str) -> Result<String> {
[INFO] [stderr]     |        ^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function `setup_ssh_access` is never used
[INFO] [stderr]    --> src/security.rs:265:14
[INFO] [stderr]     |
[INFO] [stderr] 265 | pub async fn setup_ssh_access(username: &str, ssh_key: Option<&str>, user: &str) -> Result<()> {
[INFO] [stderr]     |              ^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function `change_root_password` is never used
[INFO] [stderr]    --> src/server.rs:278:10
[INFO] [stderr]     |
[INFO] [stderr] 278 | async fn change_root_password(user: &str) -> Result<()> {
[INFO] [stderr]     |          ^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function `get_server_ip` is never used
[INFO] [stderr]    --> src/utils.rs:136:14
[INFO] [stderr]     |
[INFO] [stderr] 136 | pub async fn get_server_ip() -> Result<String> {
[INFO] [stderr]     |              ^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: `init_server` (bin "init_server" test) generated 32 warnings (20 duplicates)
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 0.19s
[INFO] [stderr]      Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/init_server-30522c9bd22b73d9)
[INFO] [stdout] 
[INFO] [stdout] running 0 tests
[INFO] [stdout] 
[INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
[INFO] [stdout] 
[INFO] [stderr]      Running unittests src/main.rs (/opt/rustwide/target/debug/deps/init_server-cabf7797218e9279)
[INFO] [stdout] 
[INFO] [stdout] running 0 tests
[INFO] [stdout] 
[INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
[INFO] [stdout] 
[INFO] [stderr]    Doc-tests init_server
[INFO] [stdout] 
[INFO] [stdout] running 15 tests
[INFO] [stdout] test src/nginx.rs - nginx::setup_certbot_renewal (line 506) ... FAILED
[INFO] [stdout] test src/logger.rs - logger::init (line 12) ... FAILED
[INFO] [stdout] test src/nginx.rs - nginx::setup_nginx_ip_only (line 72) ... FAILED
[INFO] [stdout] test src/nginx.rs - nginx::configure_domain_proxy (line 246) ... FAILED
[INFO] [stdout] test src/nginx.rs - nginx::generate_ssl_cert (line 404) ... FAILED
[INFO] [stdout] test src/server.rs - server::create_user (line 370) ... FAILED
[INFO] [stdout] test src/logger.rs - logger::success (line 52) ... FAILED
[INFO] [stdout] test src/server.rs - server::uninstall_server (line 902) ... FAILED
[INFO] [stdout] test src/server.rs - server::setup_ssh_access (line 526) ... FAILED
[INFO] [stdout] test src/nginx.rs - nginx::setup_nginx (line 206) ... FAILED
[INFO] [stdout] test src/server.rs - server::init_server (line 764) ... FAILED
[INFO] [stdout] test src/nginx.rs - nginx::configure_domain_static (line 321) ... FAILED
[INFO] [stdout] test src/server.rs - server::setup_runners (line 724) ... FAILED
[INFO] [stdout] test src/logger.rs - logger::password_info (line 35) ... FAILED
[INFO] [stdout] test src/server.rs - server::setup_domains (line 659) ... FAILED
[INFO] [stdout] 
[INFO] [stdout] failures:
[INFO] [stdout] 
[INFO] [stdout] ---- src/nginx.rs - nginx::setup_certbot_renewal (line 506) stdout ----
[INFO] [stdout] error[E0425]: cannot find function `setup_certbot_renewal` in this scope
[INFO] [stdout]    --> src/nginx.rs:507:1
[INFO] [stdout]     |
[INFO] [stdout] 507 | setup_certbot_renewal("admin").await?;
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing this function
[INFO] [stdout]     |
[INFO] [stdout] 506 + use init_server::nginx::setup_certbot_renewal;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]    --> src/nginx.rs:507:32
[INFO] [stdout]     |
[INFO] [stdout] 506 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_nginx_rs_506_0() {
[INFO] [stdout]     |                                      ------------------------------------- this is not `async`
[INFO] [stdout] 507 | setup_certbot_renewal("admin").await?;
[INFO] [stdout]     |                                ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 2 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/logger.rs - logger::init (line 12) stdout ----
[INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `logger`
[INFO] [stdout]   --> src/logger.rs:13:1
[INFO] [stdout]    |
[INFO] [stdout] 13 | logger::init()?;
[INFO] [stdout]    | ^^^^^^ use of unresolved module or unlinked crate `logger`
[INFO] [stdout]    |
[INFO] [stdout] help: to make use of source file src/logger.rs, use `mod logger` in this file to declare the module
[INFO] [stdout]    |
[INFO] [stdout] 12 + mod logger;
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this module
[INFO] [stdout]    |
[INFO] [stdout] 12 + use init_server::logger;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 1 previous error
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0433`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/nginx.rs - nginx::setup_nginx_ip_only (line 72) stdout ----
[INFO] [stdout] error[E0425]: cannot find function `setup_nginx_ip_only` in this scope
[INFO] [stdout]   --> src/nginx.rs:73:1
[INFO] [stdout]    |
[INFO] [stdout] 73 | setup_nginx_ip_only("admin").await?;
[INFO] [stdout]    | ^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this function
[INFO] [stdout]    |
[INFO] [stdout] 72 + use init_server::nginx::setup_nginx_ip_only;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]   --> src/nginx.rs:73:30
[INFO] [stdout]    |
[INFO] [stdout] 72 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_nginx_rs_72_0() {
[INFO] [stdout]    |                                      ------------------------------------ this is not `async`
[INFO] [stdout] 73 | setup_nginx_ip_only("admin").await?;
[INFO] [stdout]    |                              ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 2 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/nginx.rs - nginx::configure_domain_proxy (line 246) stdout ----
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `DomainConfig`
[INFO] [stdout]    --> src/nginx.rs:247:14
[INFO] [stdout]     |
[INFO] [stdout] 247 | let config = DomainConfig::new("example.com", "localhost:8080", false);
[INFO] [stdout]     |              ^^^^^^^^^^^^ use of undeclared type `DomainConfig`
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]     |
[INFO] [stdout] 246 + use init_server::nginx::DomainConfig;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `configure_domain_proxy` in this scope
[INFO] [stdout]    --> src/nginx.rs:248:1
[INFO] [stdout]     |
[INFO] [stdout] 248 | configure_domain_proxy(&config, "admin").await?;
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing this function
[INFO] [stdout]     |
[INFO] [stdout] 246 + use init_server::nginx::configure_domain_proxy;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]    --> src/nginx.rs:248:42
[INFO] [stdout]     |
[INFO] [stdout] 246 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_nginx_rs_246_0() {
[INFO] [stdout]     |                                      ------------------------------------- this is not `async`
[INFO] [stdout] 247 | let config = DomainConfig::new("example.com", "localhost:8080", false);
[INFO] [stdout] 248 | configure_domain_proxy(&config, "admin").await?;
[INFO] [stdout]     |                                          ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 3 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0433, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/nginx.rs - nginx::generate_ssl_cert (line 404) stdout ----
[INFO] [stdout] error[E0425]: cannot find function `generate_ssl_cert` in this scope
[INFO] [stdout]    --> src/nginx.rs:405:1
[INFO] [stdout]     |
[INFO] [stdout] 405 | generate_ssl_cert("example.com", "admin@example.com", "admin").await?;
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing this function
[INFO] [stdout]     |
[INFO] [stdout] 404 + use init_server::nginx::generate_ssl_cert;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]    --> src/nginx.rs:405:64
[INFO] [stdout]     |
[INFO] [stdout] 404 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_nginx_rs_404_0() {
[INFO] [stdout]     |                                      ------------------------------------- this is not `async`
[INFO] [stdout] 405 | generate_ssl_cert("example.com", "admin@example.com", "admin").await?;
[INFO] [stdout]     |                                                                ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 2 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/server.rs - server::create_user (line 370) stdout ----
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]    --> src/server.rs:371:51
[INFO] [stdout]     |
[INFO] [stdout] 370 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_server_rs_370_0() {
[INFO] [stdout]     |                                      -------------------------------------- this is not `async`
[INFO] [stdout] 371 | let username = create_user("admin", "root", None).await?;
[INFO] [stdout]     |                                                   ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `create_user` in this scope
[INFO] [stdout]    --> src/server.rs:371:16
[INFO] [stdout]     |
[INFO] [stdout] 371 | let username = create_user("admin", "root", None).await?;
[INFO] [stdout]     |                ^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 2 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/logger.rs - logger::success (line 52) stdout ----
[INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `logger`
[INFO] [stdout]   --> src/logger.rs:53:1
[INFO] [stdout]    |
[INFO] [stdout] 53 | logger::success("Команда успешно выполнена");
[INFO] [stdout]    | ^^^^^^ use of unresolved module or unlinked crate `logger`
[INFO] [stdout]    |
[INFO] [stdout] help: to make use of source file src/logger.rs, use `mod logger` in this file to declare the module
[INFO] [stdout]    |
[INFO] [stdout] 52 + mod logger;
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this module
[INFO] [stdout]    |
[INFO] [stdout] 52 + use init_server::logger;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 1 previous error
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0433`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/server.rs - server::uninstall_server (line 902) stdout ----
[INFO] [stdout] error[E0425]: cannot find function `uninstall_server` in this scope
[INFO] [stdout]    --> src/server.rs:903:1
[INFO] [stdout]     |
[INFO] [stdout] 903 | uninstall_server().await?;
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing this function
[INFO] [stdout]     |
[INFO] [stdout] 902 + use init_server::server::uninstall_server;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]    --> src/server.rs:903:20
[INFO] [stdout]     |
[INFO] [stdout] 902 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_server_rs_902_0() {
[INFO] [stdout]     |                                      -------------------------------------- this is not `async`
[INFO] [stdout] 903 | uninstall_server().await?;
[INFO] [stdout]     |                    ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 2 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/server.rs - server::setup_ssh_access (line 526) stdout ----
[INFO] [stdout] error[E0425]: cannot find function `setup_ssh_access` in this scope
[INFO] [stdout]    --> src/server.rs:527:1
[INFO] [stdout]     |
[INFO] [stdout] 527 | setup_ssh_access("admin", Some("ssh-rsa ..."), "root").await?;
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing this function
[INFO] [stdout]     |
[INFO] [stdout] 526 + use init_server::security::setup_ssh_access;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]    --> src/server.rs:527:56
[INFO] [stdout]     |
[INFO] [stdout] 526 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_server_rs_526_0() {
[INFO] [stdout]     |                                      -------------------------------------- this is not `async`
[INFO] [stdout] 527 | setup_ssh_access("admin", Some("ssh-rsa ..."), "root").await?;
[INFO] [stdout]     |                                                        ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 2 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/nginx.rs - nginx::setup_nginx (line 206) stdout ----
[INFO] [stdout] error[E0425]: cannot find function `setup_nginx` in this scope
[INFO] [stdout]    --> src/nginx.rs:207:1
[INFO] [stdout]     |
[INFO] [stdout] 207 | setup_nginx("admin").await?;
[INFO] [stdout]     | ^^^^^^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing this function
[INFO] [stdout]     |
[INFO] [stdout] 206 + use init_server::nginx::setup_nginx;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]    --> src/nginx.rs:207:22
[INFO] [stdout]     |
[INFO] [stdout] 206 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_nginx_rs_206_0() {
[INFO] [stdout]     |                                      ------------------------------------- this is not `async`
[INFO] [stdout] 207 | setup_nginx("admin").await?;
[INFO] [stdout]     |                      ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 2 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/server.rs - server::init_server (line 764) stdout ----
[INFO] [stdout] error[E0423]: expected function, found crate `init_server`
[INFO] [stdout]    --> src/server.rs:766:1
[INFO] [stdout]     |
[INFO] [stdout] 766 | init_server(false, Some("admin"), None, false, true, None).await?;
[INFO] [stdout]     | ^^^^^^^^^^^ not a function
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing this function instead
[INFO] [stdout]     |
[INFO] [stdout] 763 + use init_server::server::init_server;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]    --> src/server.rs:766:60
[INFO] [stdout]     |
[INFO] [stdout] 765 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_server_rs_764_0() {
[INFO] [stdout]     |                                      -------------------------------------- this is not `async`
[INFO] [stdout] 766 | init_server(false, Some("admin"), None, false, true, None).await?;
[INFO] [stdout]     |                                                            ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 2 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0423, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0423`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/nginx.rs - nginx::configure_domain_static (line 321) stdout ----
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `DomainConfig`
[INFO] [stdout]    --> src/nginx.rs:322:14
[INFO] [stdout]     |
[INFO] [stdout] 322 | let config = DomainConfig::new("example.com", "static", true);
[INFO] [stdout]     |              ^^^^^^^^^^^^ use of undeclared type `DomainConfig`
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]     |
[INFO] [stdout] 321 + use init_server::nginx::DomainConfig;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `configure_domain_static` in this scope
[INFO] [stdout]    --> src/nginx.rs:323:1
[INFO] [stdout]     |
[INFO] [stdout] 323 | configure_domain_static(&config, "admin").await?;
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing this function
[INFO] [stdout]     |
[INFO] [stdout] 321 + use init_server::nginx::configure_domain_static;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]    --> src/nginx.rs:323:43
[INFO] [stdout]     |
[INFO] [stdout] 321 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_nginx_rs_321_0() {
[INFO] [stdout]     |                                      ------------------------------------- this is not `async`
[INFO] [stdout] 322 | let config = DomainConfig::new("example.com", "static", true);
[INFO] [stdout] 323 | configure_domain_static(&config, "admin").await?;
[INFO] [stdout]     |                                           ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 3 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0433, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/server.rs - server::setup_runners (line 724) stdout ----
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]    --> src/server.rs:725:50
[INFO] [stdout]     |
[INFO] [stdout] 724 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_server_rs_724_0() {
[INFO] [stdout]     |                                      -------------------------------------- this is not `async`
[INFO] [stdout] 725 | setup_runners(&["runner-1", "runner-2"], "root").await?;
[INFO] [stdout]     |                                                  ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `setup_runners` in this scope
[INFO] [stdout]    --> src/server.rs:725:1
[INFO] [stdout]     |
[INFO] [stdout] 725 | setup_runners(&["runner-1", "runner-2"], "root").await?;
[INFO] [stdout]     | ^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 2 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/logger.rs - logger::password_info (line 35) stdout ----
[INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `logger`
[INFO] [stdout]   --> src/logger.rs:36:1
[INFO] [stdout]    |
[INFO] [stdout] 36 | logger::password_info("Сгенерирован пароль: 123456");
[INFO] [stdout]    | ^^^^^^ use of unresolved module or unlinked crate `logger`
[INFO] [stdout]    |
[INFO] [stdout] help: to make use of source file src/logger.rs, use `mod logger` in this file to declare the module
[INFO] [stdout]    |
[INFO] [stdout] 35 + mod logger;
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this module
[INFO] [stdout]    |
[INFO] [stdout] 35 + use init_server::logger;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 1 previous error
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0433`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/server.rs - server::setup_domains (line 659) stdout ----
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]    --> src/server.rs:660:69
[INFO] [stdout]     |
[INFO] [stdout] 659 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_server_rs_659_0() {
[INFO] [stdout]     |                                      -------------------------------------- this is not `async`
[INFO] [stdout] 660 | setup_domains(&["example.com"], "admin@example.com", false, "root").await?;
[INFO] [stdout]     |                                                                     ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `setup_domains` in this scope
[INFO] [stdout]    --> src/server.rs:660:1
[INFO] [stdout]     |
[INFO] [stdout] 660 | setup_domains(&["example.com"], "admin@example.com", false, "root").await?;
[INFO] [stdout]     | ^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 2 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] 
[INFO] [stdout] failures:
[INFO] [stdout]     src/logger.rs - logger::init (line 12)
[INFO] [stdout]     src/logger.rs - logger::password_info (line 35)
[INFO] [stdout]     src/logger.rs - logger::success (line 52)
[INFO] [stdout]     src/nginx.rs - nginx::configure_domain_proxy (line 246)
[INFO] [stdout]     src/nginx.rs - nginx::configure_domain_static (line 321)
[INFO] [stdout]     src/nginx.rs - nginx::generate_ssl_cert (line 404)
[INFO] [stdout]     src/nginx.rs - nginx::setup_certbot_renewal (line 506)
[INFO] [stdout]     src/nginx.rs - nginx::setup_nginx (line 206)
[INFO] [stdout]     src/nginx.rs - nginx::setup_nginx_ip_only (line 72)
[INFO] [stdout]     src/server.rs - server::create_user (line 370)
[INFO] [stdout]     src/server.rs - server::init_server (line 764)
[INFO] [stdout]     src/server.rs - server::setup_domains (line 659)
[INFO] [stdout]     src/server.rs - server::setup_runners (line 724)
[INFO] [stdout]     src/server.rs - server::setup_ssh_access (line 526)
[INFO] [stdout]     src/server.rs - server::uninstall_server (line 902)
[INFO] [stdout] 
[INFO] [stdout] test result: FAILED. 0 passed; 15 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.74s
[INFO] [stdout] 
[INFO] [stderr] error: doctest failed, to rerun pass `--doc`
[INFO] running `Command { std: "docker" "inspect" "e84504eeb9ceec83fe6f47fc309d47a0252d7f4c0c0737e49c82bd935dc5cb3f", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "e84504eeb9ceec83fe6f47fc309d47a0252d7f4c0c0737e49c82bd935dc5cb3f", kill_on_drop: false }`
[INFO] [stdout] e84504eeb9ceec83fe6f47fc309d47a0252d7f4c0c0737e49c82bd935dc5cb3f
