[INFO] cloning repository https://github.com/selfhoster1312/yunohost-rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/selfhoster1312/yunohost-rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fselfhoster1312%2Fyunohost-rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fselfhoster1312%2Fyunohost-rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] b5608e5ad595d923bb1112ff5b6191100ae27303 [INFO] testing selfhoster1312/yunohost-rs against master#ad85bc524b1ad696e42061ad8338d382dffbdbe5 for pr-146237 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fselfhoster1312%2Fyunohost-rs" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/selfhoster1312/yunohost-rs [INFO] finished tweaking git repo https://github.com/selfhoster1312/yunohost-rs [INFO] tweaked toml for git repo https://github.com/selfhoster1312/yunohost-rs written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/selfhoster1312/yunohost-rs 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/selfhoster1312/yunohost-rs 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 serde_with_macros v3.8.1 [INFO] [stderr] Downloaded lber v0.4.2 [INFO] [stderr] Downloaded pretty_env_logger v0.5.0 [INFO] [stderr] Downloaded snafu-derive v0.8.3 [INFO] [stderr] Downloaded derive_deref v1.1.1 [INFO] [stderr] Downloaded file-owner v0.1.2 [INFO] [stderr] Downloaded proc-macro2 v1.0.84 [INFO] [stderr] Downloaded snafu v0.8.3 [INFO] [stderr] Downloaded serde_yaml_ng v0.10.0 [INFO] [stderr] Downloaded ldap3 v0.11.4 [INFO] [stderr] Downloaded serde_with v3.8.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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] 9300c34f91b1eb09e5a58a6ff16c36061e10f9e2994b8ea97145544dd23b0f6c [INFO] running `Command { std: "docker" "start" "-a" "9300c34f91b1eb09e5a58a6ff16c36061e10f9e2994b8ea97145544dd23b0f6c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9300c34f91b1eb09e5a58a6ff16c36061e10f9e2994b8ea97145544dd23b0f6c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9300c34f91b1eb09e5a58a6ff16c36061e10f9e2994b8ea97145544dd23b0f6c", kill_on_drop: false }` [INFO] [stdout] 9300c34f91b1eb09e5a58a6ff16c36061e10f9e2994b8ea97145544dd23b0f6c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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] 91489e4d534b3a20bac77895899597ef50f0b6ff3be55ae43a4e88073720df2f [INFO] running `Command { std: "docker" "start" "-a" "91489e4d534b3a20bac77895899597ef50f0b6ff3be55ae43a4e88073720df2f", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.84 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling bytes v1.6.0 [INFO] [stderr] Compiling serde v1.0.203 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling futures-channel v0.3.30 [INFO] [stderr] Compiling rustversion v1.0.17 [INFO] [stderr] Compiling utf8parse v0.2.1 [INFO] [stderr] Compiling futures-io v0.3.30 [INFO] [stderr] Compiling regex-syntax v0.8.3 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling mio v0.8.11 [INFO] [stderr] Compiling socket2 v0.5.7 [INFO] [stderr] Compiling nix v0.29.0 [INFO] [stderr] Compiling phf_shared v0.11.2 [INFO] [stderr] Compiling anstyle-query v1.0.3 [INFO] [stderr] Compiling colorchoice v1.0.1 [INFO] [stderr] Compiling is_terminal_polyfill v1.70.0 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling anstyle v1.0.7 [INFO] [stderr] Compiling anstyle-parse v0.2.4 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling log v0.4.21 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Compiling is-terminal v0.4.12 [INFO] [stderr] Compiling serde_json v1.0.117 [INFO] [stderr] Compiling winnow v0.6.8 [INFO] [stderr] Compiling clap_lex v0.7.0 [INFO] [stderr] Compiling bitflags v2.5.0 [INFO] [stderr] Compiling itoa v1.0.11 [INFO] [stderr] Compiling termcolor v1.4.1 [INFO] [stderr] Compiling camino v1.1.7 [INFO] [stderr] Compiling anstream v0.6.14 [INFO] [stderr] Compiling heck v0.4.1 [INFO] [stderr] Compiling url v2.5.0 [INFO] [stderr] Compiling unsafe-libyaml v0.2.11 [INFO] [stderr] Compiling glob v0.3.1 [INFO] [stderr] Compiling strfmt v0.2.4 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Compiling phf_generator v0.11.2 [INFO] [stderr] Compiling clap_builder v4.5.2 [INFO] [stderr] Compiling syn v2.0.66 [INFO] [stderr] Compiling maplit v1.0.2 [INFO] [stderr] Compiling difflib v0.4.0 [INFO] [stderr] Compiling md5 v0.7.0 [INFO] [stderr] Compiling lber v0.4.2 [INFO] [stderr] Compiling file-owner v0.1.2 [INFO] [stderr] Compiling derive_deref v1.1.1 [INFO] [stderr] Compiling regex-automata v0.4.6 [INFO] [stderr] Compiling darling_core v0.20.9 [INFO] [stderr] Compiling regex v1.10.4 [INFO] [stderr] Compiling env_logger v0.10.2 [INFO] [stderr] Compiling serde_derive v1.0.203 [INFO] [stderr] Compiling tokio-macros v2.2.0 [INFO] [stderr] Compiling futures-macro v0.3.30 [INFO] [stderr] Compiling thiserror-impl v1.0.61 [INFO] [stderr] Compiling phf_macros v0.11.2 [INFO] [stderr] Compiling snafu-derive v0.8.3 [INFO] [stderr] Compiling async-trait v0.1.80 [INFO] [stderr] Compiling strum_macros v0.26.2 [INFO] [stderr] Compiling clap_derive v4.5.4 [INFO] [stderr] Compiling pretty_env_logger v0.5.0 [INFO] [stderr] Compiling tokio v1.37.0 [INFO] [stderr] Compiling futures-util v0.3.30 [INFO] [stderr] Compiling thiserror v1.0.61 [INFO] [stderr] Compiling strum v0.26.2 [INFO] [stderr] Compiling darling_macro v0.20.9 [INFO] [stderr] Compiling snafu v0.8.3 [INFO] [stderr] Compiling darling v0.20.9 [INFO] [stderr] Compiling serde_with_macros v3.8.1 [INFO] [stderr] Compiling clap v4.5.4 [INFO] [stderr] Compiling futures-executor v0.3.30 [INFO] [stderr] Compiling futures v0.3.30 [INFO] [stderr] Compiling tokio-stream v0.1.15 [INFO] [stderr] Compiling tokio-util v0.7.11 [INFO] [stderr] Compiling ldap3 v0.11.4 [INFO] [stderr] Compiling toml_datetime v0.6.6 [INFO] [stderr] Compiling serde_spanned v0.6.6 [INFO] [stderr] Compiling serde_with v3.8.1 [INFO] [stderr] Compiling phf v0.11.2 [INFO] [stderr] Compiling serde_yaml_ng v0.10.0 [INFO] [stderr] Compiling toml_edit v0.22.13 [INFO] [stderr] Compiling toml v0.8.13 [INFO] [stderr] Compiling yunohost v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unexpected `cfg` condition value: `axum` [INFO] [stdout] --> src/helpers/credentials.rs:70:7 [INFO] [stdout] | [INFO] [stdout] 70 | #[cfg(feature = "axum")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `hooks` [INFO] [stdout] = help: consider adding `axum` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 37.06s [INFO] running `Command { std: "docker" "inspect" "91489e4d534b3a20bac77895899597ef50f0b6ff3be55ae43a4e88073720df2f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "91489e4d534b3a20bac77895899597ef50f0b6ff3be55ae43a4e88073720df2f", kill_on_drop: false }` [INFO] [stdout] 91489e4d534b3a20bac77895899597ef50f0b6ff3be55ae43a4e88073720df2f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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] 4c45af849c6a18b372ab663f84301aa319c311cb75ed1cb3f2202cfa93ce6f64 [INFO] running `Command { std: "docker" "start" "-a" "4c45af849c6a18b372ab663f84301aa319c311cb75ed1cb3f2202cfa93ce6f64", kill_on_drop: false }` [INFO] [stdout] warning: unexpected `cfg` condition value: `axum` [INFO] [stdout] --> src/helpers/credentials.rs:70:7 [INFO] [stdout] | [INFO] [stdout] 70 | #[cfg(feature = "axum")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `hooks` [INFO] [stdout] = help: consider adding `axum` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling yunohost v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unexpected `cfg` condition value: `axum` [INFO] [stdout] --> src/helpers/credentials.rs:70:7 [INFO] [stdout] | [INFO] [stdout] 70 | #[cfg(feature = "axum")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `hooks` [INFO] [stdout] = help: consider adding `axum` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 2.14s [INFO] running `Command { std: "docker" "inspect" "4c45af849c6a18b372ab663f84301aa319c311cb75ed1cb3f2202cfa93ce6f64", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4c45af849c6a18b372ab663f84301aa319c311cb75ed1cb3f2202cfa93ce6f64", kill_on_drop: false }` [INFO] [stdout] 4c45af849c6a18b372ab663f84301aa319c311cb75ed1cb3f2202cfa93ce6f64 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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", kill_on_drop: false }` [INFO] [stdout] d6f8352fb71838e5cd37f5c32e368f081f8d1aeb04f73ea701337df2e470336e [INFO] running `Command { std: "docker" "start" "-a" "d6f8352fb71838e5cd37f5c32e368f081f8d1aeb04f73ea701337df2e470336e", kill_on_drop: false }` [INFO] [stderr] warning: unexpected `cfg` condition value: `axum` [INFO] [stderr] --> src/helpers/credentials.rs:70:7 [INFO] [stderr] | [INFO] [stderr] 70 | #[cfg(feature = "axum")] [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: expected values for `feature` are: `hooks` [INFO] [stderr] = help: consider adding `axum` as a feature in `Cargo.toml` [INFO] [stderr] = note: see for more information about checking conditional configuration [INFO] [stderr] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stderr] [INFO] [stderr] warning: `yunohost` (lib) generated 1 warning [INFO] [stderr] warning: `yunohost` (lib test) generated 1 warning (1 duplicate) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.20s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/yunohost-764f014c2e0342e1) [INFO] [stdout] [INFO] [stdout] running 32 tests [INFO] [stdout] test helpers::configpanel::exclude_key::tests::panel_matches_option ... ok [INFO] [stdout] test helpers::configpanel::exclude_key::tests::option_matches_panel ... ok [INFO] [stdout] test helpers::configpanel::exclude_key::tests::option_matches_section ... ok [INFO] [stdout] test helpers::configpanel::exclude_key::tests::panel_matches_panel ... ok [INFO] [stdout] test helpers::configpanel::exclude_key::tests::invalid_empty_filter_key ... ok [INFO] [stdout] test helpers::configpanel::exclude_key::tests::invalid_too_deep_filter_key ... ok [INFO] [stdout] test helpers::configpanel::exclude_key::tests::valid_panel ... ok [INFO] [stdout] test helpers::configpanel::exclude_key::tests::valid_section ... ok [INFO] [stdout] test helpers::configpanel::exclude_key::tests::panel_matches_section ... ok [INFO] [stdout] test helpers::configpanel::filter_key::tests::invalid_empty_filter_key ... ok [INFO] [stdout] test helpers::configpanel::exclude_key::tests::section_matches_option ... ok [INFO] [stdout] test helpers::configpanel::exclude_key::tests::section_matches_section ... ok [INFO] [stdout] test helpers::configpanel::filter_key::tests::panel_matches_section ... ok [INFO] [stdout] test helpers::configpanel::filter_key::tests::invalid_too_deep_filter_key ... ok [INFO] [stdout] test helpers::configpanel::filter_key::tests::option_matches_option ... ok [INFO] [stdout] test helpers::configpanel::filter_key::tests::panel_matches_panel ... ok [INFO] [stdout] test helpers::configpanel::filter_key::tests::option_matches_panel ... ok [INFO] [stdout] test helpers::configpanel::exclude_key::tests::section_matches_panel ... ok [INFO] [stdout] test helpers::configpanel::filter_key::tests::section_matches_section ... ok [INFO] [stdout] test helpers::configpanel::filter_key::tests::option_matches_section ... ok [INFO] [stdout] test helpers::configpanel::filter_key::tests::section_matches_panel ... ok [INFO] [stdout] test helpers::configpanel::filter_key::tests::valid_section ... ok [INFO] [stdout] test helpers::configpanel::filter_key::tests::valid_panel ... ok [INFO] [stdout] test helpers::configpanel::exclude_key::tests::valid_option ... ok [INFO] [stdout] test helpers::hook::tests::alphanumeric_parts ... ok [INFO] [stdout] test helpers::i18n::value::tests::_value_for_locale_default_fallback ... ok [INFO] [stdout] test helpers::i18n::value::tests::_value_for_locale_ok ... ok [INFO] [stdout] test helpers::i18n::value::tests::_value_for_locale_first_fallback ... ok [INFO] [stdout] test helpers::configpanel::filter_key::tests::panel_matches_option ... ok [INFO] [stdout] test helpers::configpanel::exclude_key::tests::option_matches_option ... ok [INFO] [stdout] test helpers::configpanel::filter_key::tests::section_matches_option ... ok [INFO] [stdout] test helpers::configpanel::filter_key::tests::valid_option ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 32 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.02s [INFO] [stdout] [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/yunohost-a76577b9ae0e4be9) [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 yunohost [INFO] [stdout] [INFO] [stdout] running 9 tests [INFO] [stdout] test src/helpers/configpanel/mod.rs - helpers::configpanel::field_i18n_single_optional (line 355) ... FAILED [INFO] [stdout] test src/helpers/file/mod.rs - helpers::file::StrPath::read_lines (line 282) ... FAILED [INFO] [stdout] test src/helpers/service.rs - helpers::service::SystemCtl::enable (line 22) ... FAILED [INFO] [stdout] test src/helpers/configpanel/mod.rs - helpers::configpanel::field_i18n_single (line 399) ... FAILED [INFO] [stdout] test src/helpers/service.rs - helpers::service::SystemCtl::exists (line 79) ... FAILED [INFO] [stdout] test src/helpers/file/mod.rs - helpers::file::path (line 432) ... FAILED [INFO] [stdout] test src/helpers/string.rs - helpers::string::capitalize (line 9) ... FAILED [INFO] [stdout] test src/helpers/i18n/value.rs - helpers::i18n::value::_value_for_locale (line 11) ... FAILED [INFO] [stdout] test src/helpers/file/mod.rs - helpers::file::StrPath (line 27) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/helpers/configpanel/mod.rs - helpers::configpanel::field_i18n_single_optional (line 355) stdout ---- [INFO] [stdout] error: expected one of `!` or `::`, found `:` [INFO] [stdout] --> src/helpers/configpanel/mod.rs:356:4 [INFO] [stdout] | [INFO] [stdout] 1 | ask: [INFO] [stdout] | ^ expected one of `!` or `::` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/helpers/file/mod.rs - helpers::file::StrPath::read_lines (line 282) stdout ---- [INFO] [stdout] error: cannot find macro `info` in this scope [INFO] [stdout] --> src/helpers/file/mod.rs:284:5 [INFO] [stdout] | [INFO] [stdout] 4 | info!("{line}"); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 2 + use log::info; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0423]: expected function, found built-in attribute `path` [INFO] [stdout] --> src/helpers/file/mod.rs:283:13 [INFO] [stdout] | [INFO] [stdout] 3 | for line in path("/tmp/res.output").read_lines()? { [INFO] [stdout] | ^^^^ not a function [INFO] [stdout] | [INFO] [stdout] help: consider importing this function instead [INFO] [stdout] | [INFO] [stdout] 2 + use yunohost::helpers::file::path; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0423`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/helpers/service.rs - helpers::service::SystemCtl::enable (line 22) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Systemctl` [INFO] [stdout] --> src/helpers/service.rs:26:15 [INFO] [stdout] | [INFO] [stdout] 6 | let res = Systemctl::enable("nginx", [ "--quiet", "--now" ]); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | use of undeclared type `Systemctl` [INFO] [stdout] | help: a struct with a similar name exists (notice the capitalization): `SystemCtl` [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/helpers/configpanel/mod.rs - helpers::configpanel::field_i18n_single (line 399) stdout ---- [INFO] [stdout] error: expected one of `!` or `::`, found `:` [INFO] [stdout] --> src/helpers/configpanel/mod.rs:400:4 [INFO] [stdout] | [INFO] [stdout] 1 | ask: [INFO] [stdout] | ^ expected one of `!` or `::` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/helpers/service.rs - helpers::service::SystemCtl::exists (line 79) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Systemctl` [INFO] [stdout] --> src/helpers/service.rs:83:8 [INFO] [stdout] | [INFO] [stdout] 6 | if Systemctl::exists("nginx") { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | use of undeclared type `Systemctl` [INFO] [stdout] | help: a struct with a similar name exists (notice the capitalization): `SystemCtl` [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/helpers/file/mod.rs - helpers::file::path (line 432) stdout ---- [INFO] [stdout] error[E0423]: expected function, found built-in attribute `path` [INFO] [stdout] --> src/helpers/file/mod.rs:434:9 [INFO] [stdout] | [INFO] [stdout] 5 | let p = path("/etc/yunohost"); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] help: you might have meant to use `:` for type annotation [INFO] [stdout] | [INFO] [stdout] 5 - let p = path("/etc/yunohost"); [INFO] [stdout] 5 + let p: path("/etc/yunohost"); [INFO] [stdout] | [INFO] [stdout] help: consider importing this function instead [INFO] [stdout] | [INFO] [stdout] 2 + use yunohost::helpers::file::path; [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 E0423`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/helpers/string.rs - helpers::string::capitalize (line 9) stdout ---- [INFO] [stdout] error[E0425]: cannot find function `capitalize` in this scope [INFO] [stdout] --> src/helpers/string.rs:11:15 [INFO] [stdout] | [INFO] [stdout] 4 | println("{}", capitalize("hello, world!")); [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 + use yunohost::helpers::string::capitalize; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `capitalize` in this scope [INFO] [stdout] --> src/helpers/string.rs:12:41 [INFO] [stdout] | [INFO] [stdout] 5 | assert_eq!("Hello, world!".to_string(), capitalize("hello, world!")); [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 + use yunohost::helpers::string::capitalize; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0423]: expected function, found macro `println` [INFO] [stdout] --> src/helpers/string.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 4 | println("{}", capitalize("hello, world!")); [INFO] [stdout] | ^^^^^^^ not a function [INFO] [stdout] | [INFO] [stdout] help: use `!` to invoke the macro [INFO] [stdout] | [INFO] [stdout] 4 | println!("{}", capitalize("hello, world!")); [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0423, E0425. [INFO] [stdout] For more information about an error, try `rustc --explain E0423`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/helpers/i18n/value.rs - helpers::i18n::value::_value_for_locale (line 11) stdout ---- [INFO] [stdout] error: cannot find macro `hashmap` in this scope [INFO] [stdout] --> src/helpers/i18n/value.rs:12:61 [INFO] [stdout] | [INFO] [stdout] 3 | let translations: Map = serde_json::to_value(hashmap!( [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] --> /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/std/src/macros.rs:443:1 [INFO] [stdout] | [INFO] [stdout] = note: similarly named macro `hash_map` defined here [INFO] [stdout] help: a macro with a similar name exists [INFO] [stdout] | [INFO] [stdout] 3 | let translations: Map = serde_json::to_value(hash_map!( [INFO] [stdout] | + [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 2 + use maplit::hashmap; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Map` in this scope [INFO] [stdout] --> src/helpers/i18n/value.rs:12:19 [INFO] [stdout] | [INFO] [stdout] 3 | let translations: Map = serde_json::to_value(hashmap!( [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 2 + use std::iter::Map; [INFO] [stdout] | [INFO] [stdout] 2 + use phf::Map; [INFO] [stdout] | [INFO] [stdout] 2 + use serde_json::Map; [INFO] [stdout] | [INFO] [stdout] 2 + use serde_with::Map; [INFO] [stdout] | [INFO] [stdout] = and 1 other candidate [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Value` in this scope [INFO] [stdout] --> src/helpers/i18n/value.rs:12:31 [INFO] [stdout] | [INFO] [stdout] 3 | let translations: Map = serde_json::to_value(hashmap!( [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these enums [INFO] [stdout] | [INFO] [stdout] 2 + use serde_json::Value; [INFO] [stdout] | [INFO] [stdout] 2 + use serde_yaml_ng::Value; [INFO] [stdout] | [INFO] [stdout] 2 + use toml::Value; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `_value_for_locale` in this scope [INFO] [stdout] --> src/helpers/i18n/value.rs:16:16 [INFO] [stdout] | [INFO] [stdout] 7 | println!("{}", _value_for_locale(&translations)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 + use yunohost::helpers::i18n::_value_for_locale; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0425. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/helpers/file/mod.rs - helpers::file::StrPath (line 27) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `StrPath` [INFO] [stdout] --> src/helpers/file/mod.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 5 | let path = StrPath::from("/etc/yunohost"); [INFO] [stdout] | ^^^^^^^ use of undeclared type `StrPath` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use yunohost::helpers::file::StrPath; [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] [INFO] [stdout] failures: [INFO] [stdout] src/helpers/configpanel/mod.rs - helpers::configpanel::field_i18n_single (line 399) [INFO] [stdout] src/helpers/configpanel/mod.rs - helpers::configpanel::field_i18n_single_optional (line 355) [INFO] [stdout] src/helpers/file/mod.rs - helpers::file::StrPath (line 27) [INFO] [stdout] src/helpers/file/mod.rs - helpers::file::StrPath::read_lines (line 282) [INFO] [stdout] src/helpers/file/mod.rs - helpers::file::path (line 432) [INFO] [stdout] src/helpers/i18n/value.rs - helpers::i18n::value::_value_for_locale (line 11) [INFO] [stdout] src/helpers/service.rs - helpers::service::SystemCtl::enable (line 22) [INFO] [stdout] src/helpers/service.rs - helpers::service::SystemCtl::exists (line 79) [INFO] [stdout] src/helpers/string.rs - helpers::string::capitalize (line 9) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 9 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.76s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "d6f8352fb71838e5cd37f5c32e368f081f8d1aeb04f73ea701337df2e470336e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d6f8352fb71838e5cd37f5c32e368f081f8d1aeb04f73ea701337df2e470336e", kill_on_drop: false }` [INFO] [stdout] d6f8352fb71838e5cd37f5c32e368f081f8d1aeb04f73ea701337df2e470336e