[INFO] cloning repository https://github.com/JonasKruckenberg/tauri-sys [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/JonasKruckenberg/tauri-sys" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJonasKruckenberg%2Ftauri-sys", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJonasKruckenberg%2Ftauri-sys'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 7d3b893dc1647690fef0303de9c64010411830b7 [INFO] testing JonasKruckenberg/tauri-sys against master#733b47ea4b1b86216f14ef56e49440c33933f230+rustflags=-Copt-level=3 for pr-138759 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJonasKruckenberg%2Ftauri-sys" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/JonasKruckenberg/tauri-sys [INFO] finished tweaking git repo https://github.com/JonasKruckenberg/tauri-sys [INFO] tweaked toml for git repo https://github.com/JonasKruckenberg/tauri-sys written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/JonasKruckenberg/tauri-sys on toolchain 733b47ea4b1b86216f14ef56e49440c33933f230 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+733b47ea4b1b86216f14ef56e49440c33933f230" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/JonasKruckenberg/tauri-sys 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" "+733b47ea4b1b86216f14ef56e49440c33933f230" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating git repository `https://github.com/sycamore-rs/sycamore` [INFO] [stderr] Updating git repository `https://github.com/tauri-apps/tauri-plugin-log` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [ERROR] error running command: no output for 300 seconds [INFO] testing JonasKruckenberg/tauri-sys against master#733b47ea4b1b86216f14ef56e49440c33933f230+rustflags=-Copt-level=3 for pr-138759 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJonasKruckenberg%2Ftauri-sys" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/JonasKruckenberg/tauri-sys [INFO] finished tweaking git repo https://github.com/JonasKruckenberg/tauri-sys [INFO] tweaked toml for git repo https://github.com/JonasKruckenberg/tauri-sys written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/JonasKruckenberg/tauri-sys on toolchain 733b47ea4b1b86216f14ef56e49440c33933f230 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+733b47ea4b1b86216f14ef56e49440c33933f230" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/JonasKruckenberg/tauri-sys 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" "+733b47ea4b1b86216f14ef56e49440c33933f230" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded glib-macros v0.15.11 [INFO] [stderr] Downloaded gtk3-macros v0.15.4 [INFO] [stderr] Downloaded field-offset v0.3.4 [INFO] [stderr] Downloaded time-macros v0.2.5 [INFO] [stderr] Downloaded uuid v1.2.1 [INFO] [stderr] Downloaded tauri-macros v1.4.2 [INFO] [stderr] Downloaded xattr v0.2.3 [INFO] [stderr] Downloaded tauri-runtime-wry v0.14.2 [INFO] [stderr] Downloaded time v0.3.16 [INFO] [stderr] Downloaded serde-wasm-bindgen v0.6.3 [INFO] [stderr] Downloaded html-escape v0.2.12 [INFO] [stderr] Downloaded minicov v0.3.5 [INFO] [stderr] Downloaded strum_macros v0.22.0 [INFO] [stderr] Downloaded strum v0.22.0 [INFO] [stderr] Downloaded winnow v0.5.28 [INFO] [stderr] Downloaded os_info v3.5.1 [INFO] [stderr] Downloaded filetime v0.2.18 [INFO] [stderr] Downloaded bytemuck v1.12.2 [INFO] [stderr] Downloaded fern v0.6.1 [INFO] [stderr] Downloaded zbus v2.3.2 [INFO] [stderr] Downloaded value-bag v1.4.2 [INFO] [stderr] Downloaded zbus_macros v2.3.2 [INFO] [stderr] Downloaded os_pipe v1.1.1 [INFO] [stderr] Downloaded tar v0.4.38 [INFO] [stderr] Downloaded nix v0.23.2 [INFO] [stderr] Downloaded plist v1.3.1 [INFO] [stderr] Downloaded tauri-winrt-notification v0.1.0 [INFO] [stderr] Downloaded openssl-sys v0.9.83 [INFO] [stderr] Downloaded dunce v1.0.3 [INFO] [stderr] Downloaded infer v0.13.0 [INFO] [stderr] Downloaded parking_lot_core v0.9.4 [INFO] [stderr] Downloaded string_cache v0.8.4 [INFO] [stderr] Downloaded windows-version v0.1.0 [INFO] [stderr] Downloaded tauri-utils v1.5.1 [INFO] [stderr] Downloaded wasm-bindgen-test v0.3.54 [INFO] [stderr] Downloaded utf8-width v0.1.6 [INFO] [stderr] Downloaded globset v0.4.9 [INFO] [stderr] Downloaded ignore v0.4.18 [INFO] [stderr] Downloaded async-broadcast v0.4.1 [INFO] [stderr] Downloaded notify-rust v4.5.10 [INFO] [stderr] Downloaded wasm-bindgen-test-macro v0.3.54 [INFO] [stderr] Downloaded mac-notification-sys v0.5.6 [INFO] [stderr] Downloaded openssl v0.10.48 [INFO] [stderr] Downloaded pest v2.4.0 [INFO] [stderr] Downloaded tauri v1.5.3 [INFO] [stderr] Downloaded syn v2.0.41 [INFO] [stderr] Downloaded byte-unit v4.0.17 [INFO] [stderr] Downloaded minisign-verify v0.2.1 [INFO] [stderr] Downloaded wry v0.24.6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+733b47ea4b1b86216f14ef56e49440c33933f230" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 7645b95084966ac3b6f50c57dda37162f594f4cb8760f6592365030094f3fa35 [INFO] running `Command { std: "docker" "start" "-a" "7645b95084966ac3b6f50c57dda37162f594f4cb8760f6592365030094f3fa35", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "7645b95084966ac3b6f50c57dda37162f594f4cb8760f6592365030094f3fa35", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7645b95084966ac3b6f50c57dda37162f594f4cb8760f6592365030094f3fa35", kill_on_drop: false }` [INFO] [stdout] 7645b95084966ac3b6f50c57dda37162f594f4cb8760f6592365030094f3fa35 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid -Copt-level=3" "-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" "+733b47ea4b1b86216f14ef56e49440c33933f230" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e3904c3e44013273a368ec86a18db46c7dfbe95f1f6ce7df781aaff95e053cd6 [INFO] running `Command { std: "docker" "start" "-a" "e3904c3e44013273a368ec86a18db46c7dfbe95f1f6ce7df781aaff95e053cd6", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.70 [INFO] [stderr] Compiling unicode-ident v1.0.5 [INFO] [stderr] Compiling wasm-bindgen-shared v0.2.104 [INFO] [stderr] Compiling rustversion v1.0.9 [INFO] [stderr] Compiling bumpalo v3.11.1 [INFO] [stderr] Compiling once_cell v1.16.0 [INFO] [stderr] Compiling serde v1.0.193 [INFO] [stderr] Compiling thiserror v1.0.50 [INFO] [stderr] Compiling wasm-bindgen v0.2.104 [INFO] [stderr] Compiling quote v1.0.33 [INFO] [stderr] Compiling syn v2.0.41 [INFO] [stderr] Compiling wasm-bindgen-backend v0.2.104 [INFO] [stderr] Compiling wasm-bindgen-macro-support v0.2.104 [INFO] [stderr] Compiling serde_derive v1.0.193 [INFO] [stderr] Compiling thiserror-impl v1.0.50 [INFO] [stderr] Compiling serde_repr v0.1.17 [INFO] [stderr] Compiling wasm-bindgen-macro v0.2.104 [INFO] [stderr] Compiling js-sys v0.3.81 [INFO] [stderr] Compiling wasm-bindgen-futures v0.4.54 [INFO] [stderr] Compiling serde-wasm-bindgen v0.6.3 [INFO] [stderr] Compiling tauri-sys v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::path::PathBuf` [INFO] [stdout] --> src/error.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::path::PathBuf; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Result` is never used [INFO] [stdout] --> src/lib.rs:152:17 [INFO] [stdout] | [INFO] [stdout] 152 | pub(crate) type Result = core::result::Result; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 46.27s [INFO] running `Command { std: "docker" "inspect" "e3904c3e44013273a368ec86a18db46c7dfbe95f1f6ce7df781aaff95e053cd6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e3904c3e44013273a368ec86a18db46c7dfbe95f1f6ce7df781aaff95e053cd6", kill_on_drop: false }` [INFO] [stdout] e3904c3e44013273a368ec86a18db46c7dfbe95f1f6ce7df781aaff95e053cd6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid -Copt-level=3" "-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" "+733b47ea4b1b86216f14ef56e49440c33933f230" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 55b8c3bcab1014196ebe0d0e834ffc315635b19ff5eb88fd59718ccd495c4fd7 [INFO] running `Command { std: "docker" "start" "-a" "55b8c3bcab1014196ebe0d0e834ffc315635b19ff5eb88fd59718ccd495c4fd7", kill_on_drop: false }` [INFO] [stderr] Compiling futures-core v0.3.29 [INFO] [stderr] Compiling futures-task v0.3.29 [INFO] [stderr] Compiling futures-channel v0.3.29 [INFO] [stderr] Compiling futures-util v0.3.29 [INFO] [stderr] Compiling futures-sink v0.3.29 [INFO] [stderr] Compiling tinyvec v1.6.0 [INFO] [stderr] Compiling futures-io v0.3.29 [INFO] [stderr] Compiling slab v0.4.7 [INFO] [stderr] Compiling semver v1.0.20 [INFO] [stderr] Compiling unicode-bidi v0.3.14 [INFO] [stderr] Compiling futures-macro v0.3.29 [INFO] [stderr] Compiling wasm-bindgen-test-macro v0.3.54 [INFO] [stderr] Compiling unicode-normalization v0.1.22 [INFO] [stderr] Compiling idna v0.5.0 [INFO] [stderr] Compiling wasm-bindgen-test v0.3.54 [INFO] [stderr] Compiling url v2.5.0 [INFO] [stderr] Compiling futures-executor v0.3.29 [INFO] [stderr] Compiling futures v0.3.29 [INFO] [stderr] Compiling tauri-sys v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: irrefutable `if let` pattern [INFO] [stdout] --> src/dialog.rs:175:12 [INFO] [stdout] | [INFO] [stdout] 175 | if let Ok(files) = Array::try_from(raw) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this pattern will always match, so the `if let` is useless [INFO] [stdout] = help: consider replacing the `if let` with a `let` [INFO] [stdout] = note: `#[warn(irrefutable_let_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: irrefutable `if let` pattern [INFO] [stdout] --> src/dialog.rs:227:12 [INFO] [stdout] | [INFO] [stdout] 227 | if let Ok(files) = Array::try_from(raw) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this pattern will always match, so the `if let` is useless [INFO] [stdout] = help: consider replacing the `if let` with a `let` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `FsTextFileOption` is never constructed [INFO] [stdout] --> src/fs.rs:81:8 [INFO] [stdout] | [INFO] [stdout] 81 | struct FsTextFileOption { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: irrefutable `if let` pattern [INFO] [stdout] --> src/dialog.rs:175:12 [INFO] [stdout] | [INFO] [stdout] 175 | if let Ok(files) = Array::try_from(raw) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this pattern will always match, so the `if let` is useless [INFO] [stdout] = help: consider replacing the `if let` with a `let` [INFO] [stdout] = note: `#[warn(irrefutable_let_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: irrefutable `if let` pattern [INFO] [stdout] --> src/dialog.rs:227:12 [INFO] [stdout] | [INFO] [stdout] 227 | if let Ok(files) = Array::try_from(raw) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this pattern will always match, so the `if let` is useless [INFO] [stdout] = help: consider replacing the `if let` with a `let` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `FsTextFileOption` is never constructed [INFO] [stdout] --> src/fs.rs:81:8 [INFO] [stdout] | [INFO] [stdout] 81 | struct FsTextFileOption { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 8.30s [INFO] running `Command { std: "docker" "inspect" "55b8c3bcab1014196ebe0d0e834ffc315635b19ff5eb88fd59718ccd495c4fd7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "55b8c3bcab1014196ebe0d0e834ffc315635b19ff5eb88fd59718ccd495c4fd7", kill_on_drop: false }` [INFO] [stdout] 55b8c3bcab1014196ebe0d0e834ffc315635b19ff5eb88fd59718ccd495c4fd7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid -Copt-level=3" "-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" "+733b47ea4b1b86216f14ef56e49440c33933f230" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 87cb7ecca35347c8f58415c985735080bf52bf98b211f32524ab50fe257b8483 [INFO] running `Command { std: "docker" "start" "-a" "87cb7ecca35347c8f58415c985735080bf52bf98b211f32524ab50fe257b8483", kill_on_drop: false }` [INFO] [stderr] warning: irrefutable `if let` pattern [INFO] [stderr] --> src/dialog.rs:175:12 [INFO] [stderr] | [INFO] [stderr] 175 | if let Ok(files) = Array::try_from(raw) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this pattern will always match, so the `if let` is useless [INFO] [stderr] = help: consider replacing the `if let` with a `let` [INFO] [stderr] = note: `#[warn(irrefutable_let_patterns)]` on by default [INFO] [stderr] [INFO] [stderr] warning: irrefutable `if let` pattern [INFO] [stderr] --> src/dialog.rs:227:12 [INFO] [stderr] | [INFO] [stderr] 227 | if let Ok(files) = Array::try_from(raw) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this pattern will always match, so the `if let` is useless [INFO] [stderr] = help: consider replacing the `if let` with a `let` [INFO] [stderr] [INFO] [stderr] warning: struct `FsTextFileOption` is never constructed [INFO] [stderr] --> src/fs.rs:81:8 [INFO] [stderr] | [INFO] [stderr] 81 | struct FsTextFileOption { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: `tauri-sys` (lib) generated 3 warnings [INFO] [stderr] warning: `tauri-sys` (lib test) generated 3 warnings (3 duplicates) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.15s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/tauri_sys-84066407ea468c92) [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 tests/web.rs (/opt/rustwide/target/debug/deps/web-b67ba343215f5714) [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 tauri_sys [INFO] [stdout] [INFO] [stdout] running 87 tests [INFO] [stdout] test src/app.rs - app::hide (line 88) - compile ... FAILED [INFO] [stdout] test src/clipboard.rs - clipboard::read_text (line 23) - compile ... FAILED [INFO] [stdout] test src/app.rs - app::get_version (line 40) - compile ... FAILED [INFO] [stdout] test src/app.rs - app::get_tauri_version (line 56) - compile ... FAILED [INFO] [stdout] test src/clipboard.rs - clipboard::write_text (line 41) - compile ... FAILED [INFO] [stdout] test src/app.rs - app::show (line 72) - compile ... FAILED [INFO] [stdout] test src/dialog.rs - dialog::FileDialogBuilder<'a>::save (line 247) - compile ... FAILED [INFO] [stdout] test src/dialog.rs - dialog::FileDialogBuilder<'a>::pick_file (line 140) - compile ... FAILED [INFO] [stdout] test src/dialog.rs - dialog::MessageDialogBuilder<'a>::ask (line 345) - compile ... FAILED [INFO] [stdout] test src/dialog.rs - dialog::FileDialogBuilder<'a>::pick_folder (line 189) - compile ... FAILED [INFO] [stdout] test src/dialog.rs - dialog::FileDialogBuilder<'a>::pick_files (line 160) - compile ... FAILED [INFO] [stdout] test src/dialog.rs - dialog::FileDialogBuilder<'a>::pick_folders (line 211) - compile ... FAILED [INFO] [stdout] test src/dialog.rs - dialog::FileDialogBuilder<'a>::add_filters (line 115) ... FAILED [INFO] [stdout] test src/event.rs - event::once (line 115) - compile ... FAILED [INFO] [stdout] test src/dialog.rs - dialog::MessageDialogBuilder<'a>::message (line 327) - compile ... FAILED [INFO] [stdout] test src/event.rs - event::listen (line 56) - compile ... FAILED [INFO] [stdout] test src/dialog.rs - dialog::MessageDialogBuilder<'a>::confirm (line 365) - compile ... FAILED [INFO] [stdout] test src/event.rs - event::emit (line 28) - compile ... FAILED [INFO] [stdout] test src/dialog.rs - dialog::FileDialogBuilder<'a>::add_filter (line 98) ... ok [INFO] [stdout] test src/dialog.rs - dialog::FileDialogBuilder<'a>::set_title (line 81) ... ok [INFO] [stdout] test src/dialog.rs - dialog::FileDialogBuilder<'a>::set_recursive (line 64) ... ok [INFO] [stdout] test src/fs.rs - fs::copy_file (line 90) - compile ... FAILED [INFO] [stdout] test src/fs.rs - fs::create_dir_all (line 149) - compile ... FAILED [INFO] [stdout] test src/fs.rs - fs::create_dir (line 121) - compile ... FAILED [INFO] [stdout] test src/fs.rs - fs::exists (line 177) - compile ... FAILED [INFO] [stdout] test src/fs.rs - fs::read_binary_file (line 202) - compile ... FAILED [INFO] [stdout] test src/fs.rs - fs::read_dir (line 227) - compile ... FAILED [INFO] [stdout] test src/fs.rs - fs::read_dir_all (line 256) - compile ... FAILED [INFO] [stdout] test src/fs.rs - fs::read_text_file (line 285) - compile ... FAILED [INFO] [stdout] test src/dialog.rs - dialog::MessageDialogBuilder<'a>::set_kind (line 310) ... ok [INFO] [stdout] test src/dialog.rs - dialog::MessageDialogBuilder<'a>::set_title (line 293) ... ok [INFO] [stdout] test src/fs.rs - fs::remove_file (line 365) - compile ... FAILED [INFO] [stdout] test src/fs.rs - fs::remove_dir_all (line 338) - compile ... FAILED [INFO] [stdout] test src/fs.rs - fs::remove_dir (line 311) - compile ... FAILED [INFO] [stdout] test src/global_shortcut.rs - global_shortcut::register (line 70) - compile ... FAILED [INFO] [stdout] test src/fs.rs - fs::rename_file (line 388) - compile ... FAILED [INFO] [stdout] test src/lib.rs - (line 106) ... FAILED [INFO] [stdout] test src/global_shortcut.rs - global_shortcut::is_registered (line 49) - compile ... FAILED [INFO] [stdout] test src/fs.rs - fs::write_binary_file (line 420) - compile ... FAILED [INFO] [stdout] test src/fs.rs - fs::write_text_file (line 448) - compile ... FAILED [INFO] [stdout] test src/global_shortcut.rs - global_shortcut::inner (line 125) - compile ... FAILED [INFO] [stdout] test src/global_shortcut.rs - global_shortcut (line 7) - compile ... FAILED [INFO] [stdout] test src/path.rs - path::app_config_dir (line 26) - compile ... FAILED [INFO] [stdout] test src/notification.rs - notification::request_permission (line 43) - compile ... FAILED [INFO] [stdout] test src/notification.rs - notification::is_permission_granted (line 24) - compile ... FAILED [INFO] [stdout] test src/lib.rs - (line 28) ... FAILED [INFO] [stdout] test src/path.rs - path::app_cache_dir (line 89) - compile ... FAILED [INFO] [stdout] test src/notification.rs - notification::Notification<'a>::show (line 104) - compile ... FAILED [INFO] [stdout] test src/path.rs - path::app_data_dir (line 47) - compile ... FAILED [INFO] [stdout] test src/lib.rs - (line 63) ... FAILED [INFO] [stdout] test src/path.rs - path::app_local_data_dir (line 68) - compile ... FAILED [INFO] [stdout] test src/path.rs - path::cache_dir (line 139) - compile ... FAILED [INFO] [stdout] test src/path.rs - path::app_log_dir (line 556) - compile ... FAILED [INFO] [stdout] test src/path.rs - path::audio_dir (line 114) - compile ... FAILED [INFO] [stdout] test src/path.rs - path::basename (line 684) - compile ... FAILED [INFO] [stdout] test src/path.rs - path::data_dir (line 189) - compile ... FAILED [INFO] [stdout] test src/path.rs - path::config_dir (line 164) - compile ... FAILED [INFO] [stdout] test src/path.rs - path::document_dir (line 239) - compile ... FAILED [INFO] [stdout] test src/path.rs - path::desktop_dir (line 214) - compile ... FAILED [INFO] [stdout] test src/path.rs - path::font_dir (line 314) - compile ... FAILED [INFO] [stdout] test src/path.rs - path::executable_dir (line 289) - compile ... FAILED [INFO] [stdout] test src/path.rs - path::download_dir (line 264) - compile ... FAILED [INFO] [stdout] test src/path.rs - path::is_absolute (line 709) - compile ... FAILED [INFO] [stdout] test src/path.rs - path::home_dir (line 339) - compile ... FAILED [INFO] [stdout] test src/path.rs - path::dirname (line 640) - compile ... FAILED [INFO] [stdout] test src/path.rs - path::extname (line 661) - compile ... FAILED [INFO] [stdout] test src/path.rs - path::local_data_dir (line 364) - compile ... FAILED [INFO] [stdout] test src/path.rs - path::public_dir (line 414) - compile ... FAILED [INFO] [stdout] test src/path.rs - path::resolve_resource (line 456) - compile ... FAILED [INFO] [stdout] test src/path.rs - path::picture_dir (line 389) - compile ... FAILED [INFO] [stdout] test src/path.rs - path::join (line 618) - compile ... FAILED [INFO] [stdout] test src/path.rs - path::normalize (line 597) - compile ... FAILED [INFO] [stdout] test src/path.rs - path::resource_dir (line 435) - compile ... FAILED [INFO] [stdout] test src/tauri.rs - tauri::invoke (line 52) - compile ... FAILED [INFO] [stdout] test src/path.rs - path::template_dir (line 506) - compile ... FAILED [INFO] [stdout] test src/path.rs - path::resolve (line 575) - compile ... FAILED [INFO] [stdout] test src/path.rs - path::video_dir (line 531) - compile ... FAILED [INFO] [stdout] test src/path.rs - path::runtime_dir (line 481) - compile ... FAILED [INFO] [stdout] test src/tauri.rs - tauri::convert_file_src (line 19) - compile ... FAILED [INFO] [stdout] test src/updater.rs - updater::check_update (line 42) - compile ... FAILED [INFO] [stdout] test src/window.rs - window::all_windows (line 1042) - compile ... FAILED [INFO] [stdout] test src/window.rs - window::current_monitor (line 1067) - compile ... FAILED [INFO] [stdout] test src/updater.rs - updater::install_update (line 62) - compile ... FAILED [INFO] [stdout] test src/window.rs - window::available_monitors (line 1113) - compile ... FAILED [INFO] [stdout] test src/updater.rs - updater::updater_events (line 88) - compile ... FAILED [INFO] [stdout] test src/window.rs - window::primary_monitor (line 1091) - compile ... FAILED [INFO] [stdout] test src/window.rs - window::current_window (line 1026) - compile ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/app.rs - app::hide (line 88) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tauri_api` [INFO] [stdout] --> src/app.rs:89:5 [INFO] [stdout] | [INFO] [stdout] 3 | use tauri_api::app::hide; [INFO] [stdout] | ^^^^^^^^^ use of unresolved module or unlinked crate `tauri_api` [INFO] [stdout] | [INFO] [stdout] help: there is a crate or module with a similar name [INFO] [stdout] | [INFO] [stdout] 3 - use tauri_api::app::hide; [INFO] [stdout] 3 + use tauri_sys::app::hide; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/app.rs:91:8 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_app_rs_88_0() { [INFO] [stdout] | ---------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 5 | hide().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: E0433, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/clipboard.rs - clipboard::read_text (line 23) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tauri_api` [INFO] [stdout] --> src/clipboard.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 3 | use tauri_api::clipboard::read_text; [INFO] [stdout] | ^^^^^^^^^ use of unresolved module or unlinked crate `tauri_api` [INFO] [stdout] | [INFO] [stdout] help: there is a crate or module with a similar name [INFO] [stdout] | [INFO] [stdout] 3 - use tauri_api::clipboard::read_text; [INFO] [stdout] 3 + use tauri_sys::clipboard::read_text; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/clipboard.rs:26:34 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_clipboard_rs_23_0() { [INFO] [stdout] | ---------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 5 | let clipboard_text = read_text().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: E0433, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/app.rs - app::get_version (line 40) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tauri_api` [INFO] [stdout] --> src/app.rs:41:5 [INFO] [stdout] | [INFO] [stdout] 3 | use tauri_api::app::get_version; [INFO] [stdout] | ^^^^^^^^^ use of unresolved module or unlinked crate `tauri_api` [INFO] [stdout] | [INFO] [stdout] help: there is a crate or module with a similar name [INFO] [stdout] | [INFO] [stdout] 3 - use tauri_api::app::get_version; [INFO] [stdout] 3 + use tauri_sys::app::get_version; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/app.rs:43:29 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_app_rs_40_0() { [INFO] [stdout] | ---------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 5 | let version = get_version().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: E0433, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/app.rs - app::get_tauri_version (line 56) stdout ---- [INFO] [stdout] error: expected `::`, found `:` [INFO] [stdout] --> src/app.rs:57:19 [INFO] [stdout] | [INFO] [stdout] 3 | use tauri_app::app:get_tauri_version; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: import paths are delimited using `::` [INFO] [stdout] help: use double colon [INFO] [stdout] | [INFO] [stdout] 3 | use tauri_app::app::get_tauri_version; [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tauri_app` [INFO] [stdout] --> src/app.rs:57:5 [INFO] [stdout] | [INFO] [stdout] 3 | use tauri_app::app:get_tauri_version; [INFO] [stdout] | ^^^^^^^^^ use of unresolved module or unlinked crate `tauri_app` [INFO] [stdout] | [INFO] [stdout] help: there is a crate or module with a similar name [INFO] [stdout] | [INFO] [stdout] 3 - use tauri_app::app:get_tauri_version; [INFO] [stdout] 3 + use tauri_sys::app:get_tauri_version; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/app.rs:59:35 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_app_rs_56_0() { [INFO] [stdout] | ---------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 5 | let version = get_tauri_version().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: E0433, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/clipboard.rs - clipboard::write_text (line 41) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tauri_api` [INFO] [stdout] --> src/clipboard.rs:42:5 [INFO] [stdout] | [INFO] [stdout] 3 | use tauri_api::clipboard::{write_text, read_text}; [INFO] [stdout] | ^^^^^^^^^ use of unresolved module or unlinked crate `tauri_api` [INFO] [stdout] | [INFO] [stdout] help: there is a crate or module with a similar name [INFO] [stdout] | [INFO] [stdout] 3 - use tauri_api::clipboard::{write_text, read_text}; [INFO] [stdout] 3 + use tauri_sys::clipboard::{write_text, read_text}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/clipboard.rs:44:33 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_clipboard_rs_41_0() { [INFO] [stdout] | ---------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 5 | write_text("Tauri is awesome!").await; [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/clipboard.rs:45:24 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_clipboard_rs_41_0() { [INFO] [stdout] | ---------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 6 | assert_eq!(read_text().await, "Tauri is awesome!"); [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: E0433, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/app.rs - app::show (line 72) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tauri_api` [INFO] [stdout] --> src/app.rs:73:5 [INFO] [stdout] | [INFO] [stdout] 3 | use tauri_api::app::show; [INFO] [stdout] | ^^^^^^^^^ use of unresolved module or unlinked crate `tauri_api` [INFO] [stdout] | [INFO] [stdout] help: there is a crate or module with a similar name [INFO] [stdout] | [INFO] [stdout] 3 - use tauri_api::app::show; [INFO] [stdout] 3 + use tauri_sys::app::show; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/app.rs:75:8 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_app_rs_72_0() { [INFO] [stdout] | ---------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 5 | show().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: E0433, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/dialog.rs - dialog::FileDialogBuilder<'a>::save (line 247) stdout ---- [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/dialog.rs:251:1 [INFO] [stdout] | [INFO] [stdout] 6 | async fn main() -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0752`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/dialog.rs - dialog::FileDialogBuilder<'a>::pick_file (line 140) stdout ---- [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/dialog.rs:144:1 [INFO] [stdout] | [INFO] [stdout] 6 | async fn main() -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0752`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/dialog.rs - dialog::MessageDialogBuilder<'a>::ask (line 345) stdout ---- [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/dialog.rs:349:1 [INFO] [stdout] | [INFO] [stdout] 6 | async fn main() -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0752`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/dialog.rs - dialog::FileDialogBuilder<'a>::pick_folder (line 189) stdout ---- [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/dialog.rs:193:1 [INFO] [stdout] | [INFO] [stdout] 6 | async fn main() -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0752`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/dialog.rs - dialog::FileDialogBuilder<'a>::pick_files (line 160) stdout ---- [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/dialog.rs:164:1 [INFO] [stdout] | [INFO] [stdout] 6 | async fn main() -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0752`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/dialog.rs - dialog::FileDialogBuilder<'a>::pick_folders (line 211) stdout ---- [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/dialog.rs:215:1 [INFO] [stdout] | [INFO] [stdout] 6 | async fn main() -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0752`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/dialog.rs - dialog::FileDialogBuilder<'a>::add_filters (line 115) stdout ---- [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/dialog.rs:120:93 [INFO] [stdout] | [INFO] [stdout] 7 | let _builder = FileDialogBuilder::new().add_filters(&[("Image", &["png", "jpeg"]),("Video", &["mp4"])]); [INFO] [stdout] | ^^^^^^^^ expected an array with a size of 2, found one with a size of 1 [INFO] [stdout] [INFO] [stdout] error[E0271]: type mismatch resolving `<&[(&str, &[&str; 2]); 2] as IntoIterator>::Item == (&str, &[&str])` [INFO] [stdout] --> src/dialog.rs:120:53 [INFO] [stdout] | [INFO] [stdout] 7 | let _builder = FileDialogBuilder::new().add_filters(&[("Image", &["png", "jpeg"]),("Video", &["mp4"])]); [INFO] [stdout] | ----------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `(&str, &[&str])`, found `&(&str, &[&str; 2])` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = note: expected tuple `(&_, &[&str])` [INFO] [stdout] found reference `&(&_, &[&str; 2])` [INFO] [stdout] note: required by a bound in `FileDialogBuilder::<'a>::add_filters` [INFO] [stdout] --> /opt/rustwide/workdir/src/dialog.rs:125:36 [INFO] [stdout] | [INFO] [stdout] 123 | pub fn add_filters( [INFO] [stdout] | ----------- required by a bound in this associated function [INFO] [stdout] 124 | &mut self, [INFO] [stdout] 125 | filters: impl IntoIterator, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `FileDialogBuilder::<'a>::add_filters` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0271, E0308. [INFO] [stdout] For more information about an error, try `rustc --explain E0271`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/event.rs - event::once (line 115) stdout ---- [INFO] [stdout] error: expected one of `!` or `::`, found `LoadedPayload` [INFO] [stdout] --> src/event.rs:121:11 [INFO] [stdout] | [INFO] [stdout] 6 | interface LoadedPayload { [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/dialog.rs - dialog::MessageDialogBuilder<'a>::message (line 327) stdout ---- [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/dialog.rs:331:1 [INFO] [stdout] | [INFO] [stdout] 6 | async fn main() -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0752`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/event.rs - event::listen (line 56) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tauri_api` [INFO] [stdout] --> src/event.rs:57:5 [INFO] [stdout] | [INFO] [stdout] 3 | use tauri_api::event::listen; [INFO] [stdout] | ^^^^^^^^^ use of unresolved module or unlinked crate `tauri_api` [INFO] [stdout] | [INFO] [stdout] help: there is a crate or module with a similar name [INFO] [stdout] | [INFO] [stdout] 3 - use tauri_api::event::listen; [INFO] [stdout] 3 + use tauri_sys::event::listen; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `web_sys` [INFO] [stdout] --> src/event.rs:58:5 [INFO] [stdout] | [INFO] [stdout] 4 | use web_sys::console; [INFO] [stdout] | ^^^^^^^ use of unresolved module or unlinked crate `web_sys` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `web_sys`, use `cargo add web_sys` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/event.rs:62:39 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_event_rs_56_0() { [INFO] [stdout] | ------------------------------------ this is not `async` [INFO] [stdout] ... [INFO] [stdout] 8 | while let Some(event) = events.next().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: E0432, E0433, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/dialog.rs - dialog::MessageDialogBuilder<'a>::confirm (line 365) stdout ---- [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/dialog.rs:369:1 [INFO] [stdout] | [INFO] [stdout] 6 | async fn main() -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0752`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/event.rs - event::emit (line 28) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tauri_api` [INFO] [stdout] --> src/event.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 3 | use tauri_api::event::emit; [INFO] [stdout] | ^^^^^^^^^ use of unresolved module or unlinked crate `tauri_api` [INFO] [stdout] | [INFO] [stdout] help: there is a crate or module with a similar name [INFO] [stdout] | [INFO] [stdout] 3 - use tauri_api::event::emit; [INFO] [stdout] 3 + use tauri_sys::event::emit; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/event.rs:38:75 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_event_rs_28_0() { [INFO] [stdout] | ------------------------------------ this is not `async` [INFO] [stdout] ... [INFO] [stdout] 12 | emit("frontend-loaded", &Payload { logged_in: true, token: "authToken" }).await; [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/event.rs:38:60 [INFO] [stdout] | [INFO] [stdout] 12 | emit("frontend-loaded", &Payload { logged_in: true, token: "authToken" }).await; [INFO] [stdout] | ^^^^^^^^^^^- help: try using a conversion method: `.to_string()` [INFO] [stdout] | | [INFO] [stdout] | expected `String`, found `&str` [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0433, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/fs.rs - fs::copy_file (line 90) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `source` in this scope [INFO] [stdout] --> src/fs.rs:94:15 [INFO] [stdout] | [INFO] [stdout] 7 | fs::copy_file(source, destination, BaseDirectory::Download).expect("could not copy file"); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `destination` in this scope [INFO] [stdout] --> src/fs.rs:94:23 [INFO] [stdout] | [INFO] [stdout] 7 | fs::copy_file(source, destination, BaseDirectory::Download).expect("could not copy file"); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BaseDirectory` [INFO] [stdout] --> src/fs.rs:94:36 [INFO] [stdout] | [INFO] [stdout] 7 | fs::copy_file(source, destination, BaseDirectory::Download).expect("could not copy file"); [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `BaseDirectory` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use tauri_sys::fs::BaseDirectory; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `expect` found for opaque type `impl Future>` in the current scope [INFO] [stdout] --> src/fs.rs:94:61 [INFO] [stdout] | [INFO] [stdout] 7 | fs::copy_file(source, destination, BaseDirectory::Download).expect("could not copy file"); [INFO] [stdout] | ^^^^^^ method not found in `impl Future>` [INFO] [stdout] | [INFO] [stdout] help: consider `await`ing on the `Future` and calling the method on its `Output` [INFO] [stdout] | [INFO] [stdout] 7 | fs::copy_file(source, destination, BaseDirectory::Download).await.expect("could not copy file"); [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433, E0599. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/fs.rs - fs::create_dir_all (line 149) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `dir` in this scope [INFO] [stdout] --> src/fs.rs:153:20 [INFO] [stdout] | [INFO] [stdout] 7 | fs::create_dir_all(dir, BaseDirectory::Download).expect("could not create directory"); [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BaseDirectory` [INFO] [stdout] --> src/fs.rs:153:25 [INFO] [stdout] | [INFO] [stdout] 7 | fs::create_dir_all(dir, BaseDirectory::Download).expect("could not create directory"); [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `BaseDirectory` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use tauri_sys::fs::BaseDirectory; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `expect` found for opaque type `impl Future>` in the current scope [INFO] [stdout] --> src/fs.rs:153:50 [INFO] [stdout] | [INFO] [stdout] 7 | fs::create_dir_all(dir, BaseDirectory::Download).expect("could not create directory"); [INFO] [stdout] | ^^^^^^ method not found in `impl Future>` [INFO] [stdout] | [INFO] [stdout] help: consider `await`ing on the `Future` and calling the method on its `Output` [INFO] [stdout] | [INFO] [stdout] 7 | fs::create_dir_all(dir, BaseDirectory::Download).await.expect("could not create directory"); [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433, E0599. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/fs.rs - fs::create_dir (line 121) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `dir` in this scope [INFO] [stdout] --> src/fs.rs:125:16 [INFO] [stdout] | [INFO] [stdout] 7 | fs::create_dir(dir, BaseDirectory::Download).expect("could not create directory"); [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BaseDirectory` [INFO] [stdout] --> src/fs.rs:125:21 [INFO] [stdout] | [INFO] [stdout] 7 | fs::create_dir(dir, BaseDirectory::Download).expect("could not create directory"); [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `BaseDirectory` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use tauri_sys::fs::BaseDirectory; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `expect` found for opaque type `impl Future>` in the current scope [INFO] [stdout] --> src/fs.rs:125:46 [INFO] [stdout] | [INFO] [stdout] 7 | fs::create_dir(dir, BaseDirectory::Download).expect("could not create directory"); [INFO] [stdout] | ^^^^^^ method not found in `impl Future>` [INFO] [stdout] | [INFO] [stdout] help: consider `await`ing on the `Future` and calling the method on its `Output` [INFO] [stdout] | [INFO] [stdout] 7 | fs::create_dir(dir, BaseDirectory::Download).await.expect("could not create directory"); [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433, E0599. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/fs.rs - fs::exists (line 177) stdout ---- [INFO] [stdout] error[E0423]: expected value, found built-in attribute `path` [INFO] [stdout] --> src/fs.rs:181:30 [INFO] [stdout] | [INFO] [stdout] 7 | let file_exists = fs::exists(path, BaseDirectory::Download).expect("could not check if path exists"); [INFO] [stdout] | ^^^^ not a value [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BaseDirectory` [INFO] [stdout] --> src/fs.rs:181:36 [INFO] [stdout] | [INFO] [stdout] 7 | let file_exists = fs::exists(path, BaseDirectory::Download).expect("could not check if path exists"); [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `BaseDirectory` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use tauri_sys::fs::BaseDirectory; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `expect` found for opaque type `impl Future>` in the current scope [INFO] [stdout] --> src/fs.rs:181:61 [INFO] [stdout] | [INFO] [stdout] 7 | let file_exists = fs::exists(path, BaseDirectory::Download).expect("could not check if path exists"); [INFO] [stdout] | ^^^^^^ method not found in `impl Future>` [INFO] [stdout] | [INFO] [stdout] help: consider `await`ing on the `Future` and calling the method on its `Output` [INFO] [stdout] | [INFO] [stdout] 7 | let file_exists = fs::exists(path, BaseDirectory::Download).await.expect("could not check if path exists"); [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0423, E0433, E0599. [INFO] [stdout] For more information about an error, try `rustc --explain E0423`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/fs.rs - fs::read_binary_file (line 202) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `filePath` in this scope [INFO] [stdout] --> src/fs.rs:206:37 [INFO] [stdout] | [INFO] [stdout] 7 | let contents = fs::read_binary_file(filePath, BaseDirectory::Download).expect("could not read file contents"); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BaseDirectory` [INFO] [stdout] --> src/fs.rs:206:47 [INFO] [stdout] | [INFO] [stdout] 7 | let contents = fs::read_binary_file(filePath, BaseDirectory::Download).expect("could not read file contents"); [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `BaseDirectory` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use tauri_sys::fs::BaseDirectory; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `expect` found for opaque type `impl Future, tauri_sys::Error>>` in the current scope [INFO] [stdout] --> src/fs.rs:206:72 [INFO] [stdout] | [INFO] [stdout] 7 | let contents = fs::read_binary_file(filePath, BaseDirectory::Download).expect("could not read file contents"); [INFO] [stdout] | ^^^^^^ method not found in `impl Future, tauri_sys::Error>>` [INFO] [stdout] | [INFO] [stdout] help: consider `await`ing on the `Future` and calling the method on its `Output` [INFO] [stdout] | [INFO] [stdout] 7 | let contents = fs::read_binary_file(filePath, BaseDirectory::Download).await.expect("could not read file contents"); [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433, E0599. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/fs.rs - fs::read_dir (line 227) stdout ---- [INFO] [stdout] error[E0423]: expected value, found built-in attribute `path` [INFO] [stdout] --> src/fs.rs:231:26 [INFO] [stdout] | [INFO] [stdout] 7 | let files = fs::read_dir(path, BaseDirectory::Download).expect("could not read directory"); [INFO] [stdout] | ^^^^ not a value [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BaseDirectory` [INFO] [stdout] --> src/fs.rs:231:32 [INFO] [stdout] | [INFO] [stdout] 7 | let files = fs::read_dir(path, BaseDirectory::Download).expect("could not read directory"); [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `BaseDirectory` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use tauri_sys::fs::BaseDirectory; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `expect` found for opaque type `impl Future, tauri_sys::Error>>` in the current scope [INFO] [stdout] --> src/fs.rs:231:57 [INFO] [stdout] | [INFO] [stdout] 7 | let files = fs::read_dir(path, BaseDirectory::Download).expect("could not read directory"); [INFO] [stdout] | ^^^^^^ method not found in `impl Future, tauri_sys::Error>>` [INFO] [stdout] | [INFO] [stdout] help: consider `await`ing on the `Future` and calling the method on its `Output` [INFO] [stdout] | [INFO] [stdout] 7 | let files = fs::read_dir(path, BaseDirectory::Download).await.expect("could not read directory"); [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0423, E0433, E0599. [INFO] [stdout] For more information about an error, try `rustc --explain E0423`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/fs.rs - fs::read_dir_all (line 256) stdout ---- [INFO] [stdout] error[E0423]: expected value, found built-in attribute `path` [INFO] [stdout] --> src/fs.rs:260:30 [INFO] [stdout] | [INFO] [stdout] 7 | let files = fs::read_dir_all(path, BaseDirectory::Download).expect("could not read directory"); [INFO] [stdout] | ^^^^ not a value [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BaseDirectory` [INFO] [stdout] --> src/fs.rs:260:36 [INFO] [stdout] | [INFO] [stdout] 7 | let files = fs::read_dir_all(path, BaseDirectory::Download).expect("could not read directory"); [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `BaseDirectory` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use tauri_sys::fs::BaseDirectory; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `expect` found for opaque type `impl Future, tauri_sys::Error>>` in the current scope [INFO] [stdout] --> src/fs.rs:260:61 [INFO] [stdout] | [INFO] [stdout] 7 | let files = fs::read_dir_all(path, BaseDirectory::Download).expect("could not read directory"); [INFO] [stdout] | ^^^^^^ method not found in `impl Future, tauri_sys::Error>>` [INFO] [stdout] | [INFO] [stdout] help: consider `await`ing on the `Future` and calling the method on its `Output` [INFO] [stdout] | [INFO] [stdout] 7 | let files = fs::read_dir_all(path, BaseDirectory::Download).await.expect("could not read directory"); [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0423, E0433, E0599. [INFO] [stdout] For more information about an error, try `rustc --explain E0423`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/fs.rs - fs::read_text_file (line 285) stdout ---- [INFO] [stdout] error[E0425]: cannot find function `readTextFile` in module `fs` [INFO] [stdout] --> src/fs.rs:289:20 [INFO] [stdout] | [INFO] [stdout] 7 | let contents = fs::readTextFile(path, BaseDirectory::Download).expect("could not read file as text"); [INFO] [stdout] | ^^^^^^^^^^^^ help: a function with a similar name exists: `read_text_file` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/fs.rs:292:1 [INFO] [stdout] | [INFO] [stdout] 292 | pub async fn read_text_file(path: &Path, dir: BaseDirectory) -> crate::Result { [INFO] [stdout] | ------------------------------------------------------------------------------------- similarly named function `read_text_file` defined here [INFO] [stdout] [INFO] [stdout] error[E0423]: expected value, found built-in attribute `path` [INFO] [stdout] --> src/fs.rs:289:33 [INFO] [stdout] | [INFO] [stdout] 7 | let contents = fs::readTextFile(path, BaseDirectory::Download).expect("could not read file as text"); [INFO] [stdout] | ^^^^ not a value [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BaseDirectory` [INFO] [stdout] --> src/fs.rs:289:39 [INFO] [stdout] | [INFO] [stdout] 7 | let contents = fs::readTextFile(path, BaseDirectory::Download).expect("could not read file as text"); [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `BaseDirectory` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use tauri_sys::fs::BaseDirectory; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0423, E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0423`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/fs.rs - fs::remove_file (line 365) stdout ---- [INFO] [stdout] error[E0423]: expected value, found built-in attribute `path` [INFO] [stdout] --> src/fs.rs:369:17 [INFO] [stdout] | [INFO] [stdout] 7 | fs::remove_file(path, BaseDirectory::Download).expect("could not remove file"); [INFO] [stdout] | ^^^^ not a value [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BaseDirectory` [INFO] [stdout] --> src/fs.rs:369:23 [INFO] [stdout] | [INFO] [stdout] 7 | fs::remove_file(path, BaseDirectory::Download).expect("could not remove file"); [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `BaseDirectory` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use tauri_sys::fs::BaseDirectory; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `expect` found for opaque type `impl Future>` in the current scope [INFO] [stdout] --> src/fs.rs:369:48 [INFO] [stdout] | [INFO] [stdout] 7 | fs::remove_file(path, BaseDirectory::Download).expect("could not remove file"); [INFO] [stdout] | ^^^^^^ method not found in `impl Future>` [INFO] [stdout] | [INFO] [stdout] help: consider `await`ing on the `Future` and calling the method on its `Output` [INFO] [stdout] | [INFO] [stdout] 7 | fs::remove_file(path, BaseDirectory::Download).await.expect("could not remove file"); [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0423, E0433, E0599. [INFO] [stdout] For more information about an error, try `rustc --explain E0423`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/fs.rs - fs::remove_dir_all (line 338) stdout ---- [INFO] [stdout] error[E0423]: expected value, found built-in attribute `path` [INFO] [stdout] --> src/fs.rs:342:20 [INFO] [stdout] | [INFO] [stdout] 7 | fs::remove_dir_all(path, BaseDirectory::Download).expect("could not remove directory"); [INFO] [stdout] | ^^^^ not a value [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BaseDirectory` [INFO] [stdout] --> src/fs.rs:342:26 [INFO] [stdout] | [INFO] [stdout] 7 | fs::remove_dir_all(path, BaseDirectory::Download).expect("could not remove directory"); [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `BaseDirectory` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use tauri_sys::fs::BaseDirectory; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `expect` found for opaque type `impl Future>` in the current scope [INFO] [stdout] --> src/fs.rs:342:51 [INFO] [stdout] | [INFO] [stdout] 7 | fs::remove_dir_all(path, BaseDirectory::Download).expect("could not remove directory"); [INFO] [stdout] | ^^^^^^ method not found in `impl Future>` [INFO] [stdout] | [INFO] [stdout] help: consider `await`ing on the `Future` and calling the method on its `Output` [INFO] [stdout] | [INFO] [stdout] 7 | fs::remove_dir_all(path, BaseDirectory::Download).await.expect("could not remove directory"); [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0423, E0433, E0599. [INFO] [stdout] For more information about an error, try `rustc --explain E0423`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/fs.rs - fs::remove_dir (line 311) stdout ---- [INFO] [stdout] error[E0423]: expected value, found built-in attribute `path` [INFO] [stdout] --> src/fs.rs:315:16 [INFO] [stdout] | [INFO] [stdout] 7 | fs::remove_dir(path, BaseDirectory::Download).expect("could not remove directory"); [INFO] [stdout] | ^^^^ not a value [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BaseDirectory` [INFO] [stdout] --> src/fs.rs:315:22 [INFO] [stdout] | [INFO] [stdout] 7 | fs::remove_dir(path, BaseDirectory::Download).expect("could not remove directory"); [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `BaseDirectory` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use tauri_sys::fs::BaseDirectory; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `expect` found for opaque type `impl Future>` in the current scope [INFO] [stdout] --> src/fs.rs:315:47 [INFO] [stdout] | [INFO] [stdout] 7 | fs::remove_dir(path, BaseDirectory::Download).expect("could not remove directory"); [INFO] [stdout] | ^^^^^^ method not found in `impl Future>` [INFO] [stdout] | [INFO] [stdout] help: consider `await`ing on the `Future` and calling the method on its `Output` [INFO] [stdout] | [INFO] [stdout] 7 | fs::remove_dir(path, BaseDirectory::Download).await.expect("could not remove directory"); [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0423, E0433, E0599. [INFO] [stdout] For more information about an error, try `rustc --explain E0423`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/global_shortcut.rs - global_shortcut::register (line 70) stdout ---- [INFO] [stdout] error: expected one of `=` or `|`, found keyword `in` [INFO] [stdout] --> src/global_shortcut.rs:78:19 [INFO] [stdout] | [INFO] [stdout] 10 | while let Some(_) in events.next().await { [INFO] [stdout] | ----- ^^ expected one of `=` or `|` [INFO] [stdout] | | [INFO] [stdout] | while parsing the condition of this `while` expression [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `web_sys` [INFO] [stdout] --> src/global_shortcut.rs:73:5 [INFO] [stdout] | [INFO] [stdout] 5 | use web_sys::console; [INFO] [stdout] | ^^^^^^^ use of unresolved module or unlinked crate `web_sys` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `web_sys`, use `cargo add web_sys` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/global_shortcut.rs:75:1 [INFO] [stdout] | [INFO] [stdout] 7 | async fn main() -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0752. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/fs.rs - fs::rename_file (line 388) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `old_path` in this scope [INFO] [stdout] --> src/fs.rs:392:17 [INFO] [stdout] | [INFO] [stdout] 7 | fs::rename_file(old_path, new_path, BaseDirectory::Download).expect("could not rename file"); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `new_path` in this scope [INFO] [stdout] --> src/fs.rs:392:27 [INFO] [stdout] | [INFO] [stdout] 7 | fs::rename_file(old_path, new_path, BaseDirectory::Download).expect("could not rename file"); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BaseDirectory` [INFO] [stdout] --> src/fs.rs:392:37 [INFO] [stdout] | [INFO] [stdout] 7 | fs::rename_file(old_path, new_path, BaseDirectory::Download).expect("could not rename file"); [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `BaseDirectory` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use tauri_sys::fs::BaseDirectory; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `expect` found for opaque type `impl Future>` in the current scope [INFO] [stdout] --> src/fs.rs:392:62 [INFO] [stdout] | [INFO] [stdout] 7 | fs::rename_file(old_path, new_path, BaseDirectory::Download).expect("could not rename file"); [INFO] [stdout] | ^^^^^^ method not found in `impl Future>` [INFO] [stdout] | [INFO] [stdout] help: consider `await`ing on the `Future` and calling the method on its `Output` [INFO] [stdout] | [INFO] [stdout] 7 | fs::rename_file(old_path, new_path, BaseDirectory::Download).await.expect("could not rename file"); [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433, E0599. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 106) stdout ---- [INFO] [stdout] error: expected expression, found `let` statement [INFO] [stdout] --> src/lib.rs:112:1 [INFO] [stdout] | [INFO] [stdout] 9 | let (events, abort_handle) = futures::stream::abortable(events); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: only supported directly in conditions of `if` and `while` expressions [INFO] [stdout] [INFO] [stdout] error: expected `;`, found keyword `let` [INFO] [stdout] --> src/lib.rs:110:47 [INFO] [stdout] | [INFO] [stdout] 7 | let events = listen::<()>("rust-event").await? [INFO] [stdout] | ^ help: add `;` here [INFO] [stdout] 8 | // abort handle behaves identical to the JavaScript `unlisten` function [INFO] [stdout] 9 | let (events, abort_handle) = futures::stream::abortable(events); [INFO] [stdout] | --- unexpected token [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/lib.rs:110:41 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_106_0() { [INFO] [stdout] | ----------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 7 | let events = listen::<()>("rust-event").await? [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/lib.rs:114:35 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_106_0() { [INFO] [stdout] | ----------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 11 | while let Some(_) = events.next().await { [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0728`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/global_shortcut.rs - global_shortcut::is_registered (line 49) stdout ---- [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/global_shortcut.rs:53:1 [INFO] [stdout] | [INFO] [stdout] 6 | async fn main() -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0752`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/fs.rs - fs::write_binary_file (line 420) stdout ---- [INFO] [stdout] error[E0423]: expected value, found built-in attribute `path` [INFO] [stdout] --> src/fs.rs:424:23 [INFO] [stdout] | [INFO] [stdout] 7 | fs::write_binary_file(path, contents, BaseDirectory::Download).expect("could not writes binary file"); [INFO] [stdout] | ^^^^ not a value [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `contents` in this scope [INFO] [stdout] --> src/fs.rs:424:29 [INFO] [stdout] | [INFO] [stdout] 7 | fs::write_binary_file(path, contents, BaseDirectory::Download).expect("could not writes binary file"); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BaseDirectory` [INFO] [stdout] --> src/fs.rs:424:39 [INFO] [stdout] | [INFO] [stdout] 7 | fs::write_binary_file(path, contents, BaseDirectory::Download).expect("could not writes binary file"); [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `BaseDirectory` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use tauri_sys::fs::BaseDirectory; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `expect` found for opaque type `impl Future>` in the current scope [INFO] [stdout] --> src/fs.rs:424:64 [INFO] [stdout] | [INFO] [stdout] 7 | fs::write_binary_file(path, contents, BaseDirectory::Download).expect("could not writes binary file"); [INFO] [stdout] | ^^^^^^ method not found in `impl Future>` [INFO] [stdout] | [INFO] [stdout] help: consider `await`ing on the `Future` and calling the method on its `Output` [INFO] [stdout] | [INFO] [stdout] 7 | fs::write_binary_file(path, contents, BaseDirectory::Download).await.expect("could not writes binary file"); [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0423, E0425, E0433, E0599. [INFO] [stdout] For more information about an error, try `rustc --explain E0423`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/fs.rs - fs::write_text_file (line 448) stdout ---- [INFO] [stdout] error[E0423]: expected value, found built-in attribute `path` [INFO] [stdout] --> src/fs.rs:452:21 [INFO] [stdout] | [INFO] [stdout] 7 | fs::write_text_file(path, contents, BaseDirectory::Download).expect("could not writes binary file"); [INFO] [stdout] | ^^^^ not a value [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `contents` in this scope [INFO] [stdout] --> src/fs.rs:452:27 [INFO] [stdout] | [INFO] [stdout] 7 | fs::write_text_file(path, contents, BaseDirectory::Download).expect("could not writes binary file"); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BaseDirectory` [INFO] [stdout] --> src/fs.rs:452:37 [INFO] [stdout] | [INFO] [stdout] 7 | fs::write_text_file(path, contents, BaseDirectory::Download).expect("could not writes binary file"); [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `BaseDirectory` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use tauri_sys::fs::BaseDirectory; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `expect` found for opaque type `impl Future>` in the current scope [INFO] [stdout] --> src/fs.rs:452:62 [INFO] [stdout] | [INFO] [stdout] 7 | fs::write_text_file(path, contents, BaseDirectory::Download).expect("could not writes binary file"); [INFO] [stdout] | ^^^^^^ method not found in `impl Future>` [INFO] [stdout] | [INFO] [stdout] help: consider `await`ing on the `Future` and calling the method on its `Output` [INFO] [stdout] | [INFO] [stdout] 7 | fs::write_text_file(path, contents, BaseDirectory::Download).await.expect("could not writes binary file"); [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0423, E0425, E0433, E0599. [INFO] [stdout] For more information about an error, try `rustc --explain E0423`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/global_shortcut.rs - global_shortcut::inner (line 125) stdout ---- [INFO] [stdout] error: expected one of `=` or `|`, found keyword `in` [INFO] [stdout] --> src/global_shortcut.rs:133:26 [INFO] [stdout] | [INFO] [stdout] 10 | while let Some(shortcut) in events.next().await { [INFO] [stdout] | ----- ^^ expected one of `=` or `|` [INFO] [stdout] | | [INFO] [stdout] | while parsing the condition of this `while` expression [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `web_sys` [INFO] [stdout] --> src/global_shortcut.rs:128:5 [INFO] [stdout] | [INFO] [stdout] 5 | use web_sys::console; [INFO] [stdout] | ^^^^^^^ use of unresolved module or unlinked crate `web_sys` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `web_sys`, use `cargo add web_sys` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `register_all` in this scope [INFO] [stdout] --> src/global_shortcut.rs:131:14 [INFO] [stdout] | [INFO] [stdout] 8 | let events = register_all(["CommandOrControl+Shift+C", "Ctrl+Alt+F12"]).await?; [INFO] [stdout] | ^^^^^^^^^^^^ help: a function with a similar name exists: `register` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/global_shortcut.rs:83:1 [INFO] [stdout] | [INFO] [stdout] 83 | pub async fn register(shortcut: &str) -> crate::Result> { [INFO] [stdout] | ------------------------------------------------------------------------------ similarly named function `register` defined here [INFO] [stdout] [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/global_shortcut.rs:130:1 [INFO] [stdout] | [INFO] [stdout] 7 | async fn main() -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0432, E0752. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/global_shortcut.rs - global_shortcut (line 7) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `global_shortcut` [INFO] [stdout] --> src/global_shortcut.rs:12:18 [INFO] [stdout] | [INFO] [stdout] 6 | let stream = global_shortcut::register(s).await?; [INFO] [stdout] | ^^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `global_shortcut` [INFO] [stdout] | [INFO] [stdout] help: to make use of source file src/global_shortcut.rs, use `mod global_shortcut` in this file to declare the module [INFO] [stdout] | [INFO] [stdout] 2 + mod global_shortcut; [INFO] [stdout] | [INFO] [stdout] help: consider importing this module [INFO] [stdout] | [INFO] [stdout] 2 + use tauri_sys::global_shortcut; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `anyhow` [INFO] [stdout] --> src/global_shortcut.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 8 | anyhow::Ok(stream.map(move |_| s)) [INFO] [stdout] | ^^^^^^ use of unresolved module or unlinked crate `anyhow` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `anyhow`, use `cargo add anyhow` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `next` found for struct `futures::stream::SelectAll` in the current scope [INFO] [stdout] --> src/global_shortcut.rs:20:35 [INFO] [stdout] | [INFO] [stdout] 14 | while let Some(shortcut) = events.next().await { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/futures-util-0.3.29/src/stream/stream/mod.rs:273:8 [INFO] [stdout] | [INFO] [stdout] 273 | fn next(&mut self) -> Next<'_, Self> [INFO] [stdout] | ---- the method is available for `futures::stream::SelectAll<_>` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `StreamExt` which provides `next` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 2 + use futures::StreamExt; [INFO] [stdout] | [INFO] [stdout] help: there is a method `try_next` with a similar name [INFO] [stdout] | [INFO] [stdout] 14 | while let Some(shortcut) = events.try_next().await { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/global_shortcut.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 2 | async fn main() -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0433, E0599, E0752. [INFO] [stdout] For more information about an error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/path.rs - path::app_config_dir (line 26) stdout ---- [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/path.rs:30:1 [INFO] [stdout] | [INFO] [stdout] 6 | async fn main() -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0752`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/notification.rs - notification::request_permission (line 43) stdout ---- [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/notification.rs:47:1 [INFO] [stdout] | [INFO] [stdout] 6 | async fn main() -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0752`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/notification.rs - notification::is_permission_granted (line 24) stdout ---- [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/notification.rs:28:1 [INFO] [stdout] | [INFO] [stdout] 6 | async fn main() -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0752`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 28) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `gloo_timers` [INFO] [stdout] --> src/lib.rs:45:19 [INFO] [stdout] | [INFO] [stdout] 20 | let timeout = gloo_timers::future::sleep(Duration::from_secs(20)); [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `gloo_timers` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `gloo_timers`, use `cargo add gloo_timers` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in an async function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/lib.rs:48:84 [INFO] [stdout] | [INFO] [stdout] 17 | async fn register_all() { [INFO] [stdout] | _________________________- [INFO] [stdout] 18 | | let shortcuts = ["CommandOrControl+Shift+C", "Ctrl+Alt+F12"]; [INFO] [stdout] 19 | | [INFO] [stdout] 20 | | let timeout = gloo_timers::future::sleep(Duration::from_secs(20)); [INFO] [stdout] ... | [INFO] [stdout] 23 | | let streams = future::try_join_all(shortcuts.map(register_with_shortcut)).await?; [INFO] [stdout] | | ^ cannot use the `?` operator in an async function that returns `()` [INFO] [stdout] ... | [INFO] [stdout] 31 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `anyhow` [INFO] [stdout] --> src/lib.rs:36:6 [INFO] [stdout] | [INFO] [stdout] 11 | ) -> anyhow::Result> { [INFO] [stdout] | ^^^^^^ use of unresolved module or unlinked crate `anyhow` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `anyhow`, use `cargo add anyhow` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/path.rs - path::app_cache_dir (line 89) stdout ---- [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/path.rs:93:1 [INFO] [stdout] | [INFO] [stdout] 6 | async fn main() -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0752`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/notification.rs - notification::Notification<'a>::show (line 104) stdout ---- [INFO] [stdout] error[E0599]: no method named `set_body` found for unit type `()` in the current scope [INFO] [stdout] --> src/notification.rs:111:6 [INFO] [stdout] | [INFO] [stdout] 7 | Notification::new() [INFO] [stdout] | ------------------- [INFO] [stdout] | | [INFO] [stdout] | _method `set_body` is available on `&mut Notification<'_>` [INFO] [stdout] | | [INFO] [stdout] 8 | | .set_title("Tauri") [INFO] [stdout] 9 | | .set_body("Tauri is awesome!") [INFO] [stdout] | | -^^^^^^^^ method not found in `()` [INFO] [stdout] | |_____| [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] note: method `set_title` modifies its receiver in-place [INFO] [stdout] --> src/notification.rs:110:6 [INFO] [stdout] | [INFO] [stdout] 8 | .set_title("Tauri") [INFO] [stdout] | ^^^^^^^^^ this call modifies its receiver in-place [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0599`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/path.rs - path::app_data_dir (line 47) stdout ---- [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/path.rs:51:1 [INFO] [stdout] | [INFO] [stdout] 6 | async fn main() -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0752`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 63) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `WebviewWindow` [INFO] [stdout] --> src/lib.rs:65:15 [INFO] [stdout] | [INFO] [stdout] 4 | let win = WebviewWindow::get_by_label("main").unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `WebviewWindow` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use tauri_sys::window::WebviewWindow; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in an async function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/lib.rs:67:51 [INFO] [stdout] | [INFO] [stdout] 3 | async fn process_some_errors() { [INFO] [stdout] | ________________________________- [INFO] [stdout] 4 | | let win = WebviewWindow::get_by_label("main").unwrap(); [INFO] [stdout] 5 | | [INFO] [stdout] 6 | | let errors = win.listen("tauri://error").await? [INFO] [stdout] | | ^ cannot use the `?` operator in an async function that returns `()` [INFO] [stdout] ... | [INFO] [stdout] 14 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/path.rs - path::app_local_data_dir (line 68) stdout ---- [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/path.rs:72:1 [INFO] [stdout] | [INFO] [stdout] 6 | async fn main() -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0752`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/path.rs - path::cache_dir (line 139) stdout ---- [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/path.rs:143:1 [INFO] [stdout] | [INFO] [stdout] 6 | async fn main() -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0752`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/path.rs - path::app_log_dir (line 556) stdout ---- [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/path.rs:560:1 [INFO] [stdout] | [INFO] [stdout] 6 | async fn main() -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0752`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/path.rs - path::audio_dir (line 114) stdout ---- [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/path.rs:118:1 [INFO] [stdout] | [INFO] [stdout] 6 | async fn main() -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0752`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/path.rs - path::basename (line 684) stdout ---- [INFO] [stdout] error: incorrect use of `await` [INFO] [stdout] --> src/path.rs:689:21 [INFO] [stdout] | [INFO] [stdout] 7 | let resource_path = await resolve_resource("app.conf").await?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: `await` is a postfix operation [INFO] [stdout] | [INFO] [stdout] 7 - let resource_path = await resolve_resource("app.conf").await?; [INFO] [stdout] 7 + let resource_path = resolve_resource("app.conf").await?.await; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 2 arguments but 1 argument was supplied [INFO] [stdout] --> src/path.rs:690:11 [INFO] [stdout] | [INFO] [stdout] 8 | let ext = basename(resource_path).await?; [INFO] [stdout] | ^^^^^^^^--------------- argument #2 of type `Option<&str>` is missing [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/path.rs:695:14 [INFO] [stdout] | [INFO] [stdout] 695 | pub async fn basename(path: &str, ext: Option<&str>) -> crate::Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 8 | let ext = basename(resource_path, /* Option<&str> */).await?; [INFO] [stdout] | ++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] error[E0277]: can't compare `PathBuf` with `&str` [INFO] [stdout] --> src/path.rs:691:1 [INFO] [stdout] | [INFO] [stdout] 9 | assert_eq!(ext, "app"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ no implementation for `PathBuf == &str` [INFO] [stdout] | [INFO] [stdout] = help: the trait `PartialEq<&str>` is not implemented for `PathBuf` [INFO] [stdout] = help: the following other types implement trait `PartialEq`: [INFO] [stdout] `PathBuf` implements `PartialEq<&OsStr>` [INFO] [stdout] `PathBuf` implements `PartialEq<&Path>` [INFO] [stdout] `PathBuf` implements `PartialEq>` [INFO] [stdout] `PathBuf` implements `PartialEq>` [INFO] [stdout] `PathBuf` implements `PartialEq` [INFO] [stdout] `PathBuf` implements `PartialEq` [INFO] [stdout] `PathBuf` implements `PartialEq` [INFO] [stdout] `PathBuf` implements `PartialEq` [INFO] [stdout] = note: this error originates in the macro `assert_eq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/path.rs:688:1 [INFO] [stdout] | [INFO] [stdout] 6 | async fn main() -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0277, E0752. [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/path.rs - path::data_dir (line 189) stdout ---- [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/path.rs:193:1 [INFO] [stdout] | [INFO] [stdout] 6 | async fn main() -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0752`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/path.rs - path::config_dir (line 164) stdout ---- [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/path.rs:168:1 [INFO] [stdout] | [INFO] [stdout] 6 | async fn main() -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0752`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/path.rs - path::document_dir (line 239) stdout ---- [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/path.rs:243:1 [INFO] [stdout] | [INFO] [stdout] 6 | async fn main() -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0752`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/path.rs - path::desktop_dir (line 214) stdout ---- [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/path.rs:218:1 [INFO] [stdout] | [INFO] [stdout] 6 | async fn main() -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0752`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/path.rs - path::font_dir (line 314) stdout ---- [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/path.rs:318:1 [INFO] [stdout] | [INFO] [stdout] 6 | async fn main() -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0752`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/path.rs - path::executable_dir (line 289) stdout ---- [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/path.rs:293:1 [INFO] [stdout] | [INFO] [stdout] 6 | async fn main() -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0752`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/path.rs - path::download_dir (line 264) stdout ---- [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/path.rs:268:1 [INFO] [stdout] | [INFO] [stdout] 6 | async fn main() -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0752`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/path.rs - path::is_absolute (line 709) stdout ---- [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/path.rs:713:1 [INFO] [stdout] | [INFO] [stdout] 6 | async fn main() -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0752`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/path.rs - path::home_dir (line 339) stdout ---- [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/path.rs:343:1 [INFO] [stdout] | [INFO] [stdout] 6 | async fn main() -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0752`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/path.rs - path::dirname (line 640) stdout ---- [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/path.rs:647:19 [INFO] [stdout] | [INFO] [stdout] 9 | let dir = dirname(app_data_dir_path).await?; [INFO] [stdout] | ------- ^^^^^^^^^^^^^^^^^ expected `&str`, found `PathBuf` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/path.rs:651:14 [INFO] [stdout] | [INFO] [stdout] 651 | pub async fn dirname(path: &str) -> crate::Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/path.rs:644:1 [INFO] [stdout] | [INFO] [stdout] 6 | async fn main() -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0752. [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/path.rs - path::extname (line 661) stdout ---- [INFO] [stdout] error: incorrect use of `await` [INFO] [stdout] --> src/path.rs:666:21 [INFO] [stdout] | [INFO] [stdout] 7 | let resource_path = await resolve_resource("app.conf").await?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: `await` is a postfix operation [INFO] [stdout] | [INFO] [stdout] 7 - let resource_path = await resolve_resource("app.conf").await?; [INFO] [stdout] 7 + let resource_path = resolve_resource("app.conf").await?.await; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0277]: can't compare `PathBuf` with `&str` [INFO] [stdout] --> src/path.rs:668:1 [INFO] [stdout] | [INFO] [stdout] 9 | assert_eq!(ext, "conf"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ no implementation for `PathBuf == &str` [INFO] [stdout] | [INFO] [stdout] = help: the trait `PartialEq<&str>` is not implemented for `PathBuf` [INFO] [stdout] = help: the following other types implement trait `PartialEq`: [INFO] [stdout] `PathBuf` implements `PartialEq<&OsStr>` [INFO] [stdout] `PathBuf` implements `PartialEq<&Path>` [INFO] [stdout] `PathBuf` implements `PartialEq>` [INFO] [stdout] `PathBuf` implements `PartialEq>` [INFO] [stdout] `PathBuf` implements `PartialEq` [INFO] [stdout] `PathBuf` implements `PartialEq` [INFO] [stdout] `PathBuf` implements `PartialEq` [INFO] [stdout] `PathBuf` implements `PartialEq` [INFO] [stdout] = note: this error originates in the macro `assert_eq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/path.rs:665:1 [INFO] [stdout] | [INFO] [stdout] 6 | async fn main() -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0752. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/path.rs - path::local_data_dir (line 364) stdout ---- [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/path.rs:368:1 [INFO] [stdout] | [INFO] [stdout] 6 | async fn main() -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0752`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/path.rs - path::public_dir (line 414) stdout ---- [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/path.rs:418:1 [INFO] [stdout] | [INFO] [stdout] 6 | async fn main() -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0752`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/path.rs - path::resolve_resource (line 456) stdout ---- [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/path.rs:460:1 [INFO] [stdout] | [INFO] [stdout] 6 | async fn main() -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0752`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/path.rs - path::picture_dir (line 389) stdout ---- [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/path.rs:393:1 [INFO] [stdout] | [INFO] [stdout] 6 | async fn main() -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0752`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/path.rs - path::join (line 618) stdout ---- [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/path.rs:625:37 [INFO] [stdout] | [INFO] [stdout] 9 | let path = join([app_data_dir_path, "..", "users", "tauri", "avatar.png"]).await?; [INFO] [stdout] | ^^^^ expected `PathBuf`, found `&str` [INFO] [stdout] | [INFO] [stdout] help: call `Into::into` on this expression to convert `&'static str` into `PathBuf` [INFO] [stdout] | [INFO] [stdout] 9 | let path = join([app_data_dir_path, "..".into(), "users", "tauri", "avatar.png"]).await?; [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/path.rs:622:1 [INFO] [stdout] | [INFO] [stdout] 6 | async fn main() -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0752. [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/path.rs - path::normalize (line 597) stdout ---- [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/path.rs:604:42 [INFO] [stdout] | [INFO] [stdout] 9 | let path = normalize([app_data_dir_path, "..", "users", "tauri", "avatar.png"]).await?; [INFO] [stdout] | ^^^^ expected `PathBuf`, found `&str` [INFO] [stdout] | [INFO] [stdout] help: call `Into::into` on this expression to convert `&'static str` into `PathBuf` [INFO] [stdout] | [INFO] [stdout] 9 | let path = normalize([app_data_dir_path, "..".into(), "users", "tauri", "avatar.png"]).await?; [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/path.rs:601:1 [INFO] [stdout] | [INFO] [stdout] 6 | async fn main() -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0752. [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/path.rs - path::resource_dir (line 435) stdout ---- [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/path.rs:439:1 [INFO] [stdout] | [INFO] [stdout] 6 | async fn main() -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0752`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/tauri.rs - tauri::invoke (line 52) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tauri_api` [INFO] [stdout] --> src/tauri.rs:53:5 [INFO] [stdout] | [INFO] [stdout] 3 | use tauri_api::tauri::invoke; [INFO] [stdout] | ^^^^^^^^^ use of unresolved module or unlinked crate `tauri_api` [INFO] [stdout] | [INFO] [stdout] help: there is a crate or module with a similar name [INFO] [stdout] | [INFO] [stdout] 3 - use tauri_api::tauri::invoke; [INFO] [stdout] 3 + use tauri_sys::tauri::invoke; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/tauri.rs:60:78 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_tauri_rs_52_0() { [INFO] [stdout] | ------------------------------------ this is not `async` [INFO] [stdout] ... [INFO] [stdout] 10 | invoke("login", &User { user: "tauri", password: "poiwe3h4r5ip3yrhtew9ty" }).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: E0433, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/path.rs - path::template_dir (line 506) stdout ---- [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/path.rs:510:1 [INFO] [stdout] | [INFO] [stdout] 6 | async fn main() -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0752`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/path.rs - path::resolve (line 575) stdout ---- [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/path.rs:582:40 [INFO] [stdout] | [INFO] [stdout] 9 | let path = resolve([app_data_dir_path, "..", "users", "tauri", "avatar.png"]).await?; [INFO] [stdout] | ^^^^ expected `PathBuf`, found `&str` [INFO] [stdout] | [INFO] [stdout] help: call `Into::into` on this expression to convert `&'static str` into `PathBuf` [INFO] [stdout] | [INFO] [stdout] 9 | let path = resolve([app_data_dir_path, "..".into(), "users", "tauri", "avatar.png"]).await?; [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/path.rs:579:1 [INFO] [stdout] | [INFO] [stdout] 6 | async fn main() -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0752. [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/path.rs - path::video_dir (line 531) stdout ---- [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/path.rs:535:1 [INFO] [stdout] | [INFO] [stdout] 6 | async fn main() -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0752`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/path.rs - path::runtime_dir (line 481) stdout ---- [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/path.rs:485:1 [INFO] [stdout] | [INFO] [stdout] 6 | async fn main() -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0752`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/tauri.rs - tauri::convert_file_src (line 19) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tauri_api` [INFO] [stdout] --> src/tauri.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 3 | use tauri_api::path::{app_data_dir, join}; [INFO] [stdout] | ^^^^^^^^^ use of unresolved module or unlinked crate `tauri_api` [INFO] [stdout] | [INFO] [stdout] help: there is a crate or module with a similar name [INFO] [stdout] | [INFO] [stdout] 3 - use tauri_api::path::{app_data_dir, join}; [INFO] [stdout] 3 + use tauri_sys::path::{app_data_dir, join}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tauri_api` [INFO] [stdout] --> src/tauri.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 4 | use tauri_api::tauri::convert_file_src; [INFO] [stdout] | ^^^^^^^^^ use of unresolved module or unlinked crate `tauri_api` [INFO] [stdout] | [INFO] [stdout] help: there is a crate or module with a similar name [INFO] [stdout] | [INFO] [stdout] 4 - use tauri_api::tauri::convert_file_src; [INFO] [stdout] 4 + use tauri_sys::tauri::convert_file_src; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `val` in this scope [INFO] [stdout] --> src/tauri.rs:37:21 [INFO] [stdout] | [INFO] [stdout] 20 | video.append_child(&val)?; [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/tauri.rs:23:42 [INFO] [stdout] | [INFO] [stdout] 6 | const app_data_dir_path = app_data_dir().await; [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/tauri.rs:24:63 [INFO] [stdout] | [INFO] [stdout] 7 | const file_path = join(app_data_dir_path, "assets/video.mp4").await; [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error: missing type for `const` item [INFO] [stdout] --> src/tauri.rs:23:24 [INFO] [stdout] | [INFO] [stdout] 6 | const app_data_dir_path = app_data_dir().await; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: provide a type for the item [INFO] [stdout] | [INFO] [stdout] 6 | const app_data_dir_path: = app_data_dir().await; [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] error: missing type for `const` item [INFO] [stdout] --> src/tauri.rs:24:16 [INFO] [stdout] | [INFO] [stdout] 7 | const file_path = join(app_data_dir_path, "assets/video.mp4").await; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: provide a type for the item [INFO] [stdout] | [INFO] [stdout] 7 | const file_path: = join(app_data_dir_path, "assets/video.mp4").await; [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] error: missing type for `const` item [INFO] [stdout] --> src/tauri.rs:25:16 [INFO] [stdout] | [INFO] [stdout] 8 | const asset_url = convert_file_src(file_path); [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: provide a type for the item [INFO] [stdout] | [INFO] [stdout] 8 | const asset_url: = convert_file_src(file_path); [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `web_sys` [INFO] [stdout] --> src/tauri.rs:27:14 [INFO] [stdout] | [INFO] [stdout] 10 | let window = web_sys::window().expect("no global `window` exists"); [INFO] [stdout] | ^^^^^^^ use of unresolved module or unlinked crate `web_sys` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `web_sys`, use `cargo add web_sys` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 9 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/updater.rs - updater::check_update (line 42) stdout ---- [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/updater.rs:46:1 [INFO] [stdout] | [INFO] [stdout] 6 | async fn main() -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0752`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/window.rs - window::all_windows (line 1042) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `web_sys` [INFO] [stdout] --> src/window.rs:1045:5 [INFO] [stdout] | [INFO] [stdout] 5 | use web_sys::console; [INFO] [stdout] | ^^^^^^^ use of unresolved module or unlinked crate `web_sys` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `web_sys`, use `cargo add web_sys` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0277]: `impl IntoIterator` is not a future [INFO] [stdout] --> src/window.rs:1048:29 [INFO] [stdout] | [INFO] [stdout] 8 | let windows = all_windows().await?; [INFO] [stdout] | ------------- ^^^^^ `impl IntoIterator` is not a future [INFO] [stdout] | | [INFO] [stdout] | this call returns `impl IntoIterator` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Future` is not implemented for `impl IntoIterator` [INFO] [stdout] = note: impl IntoIterator must be a future or must implement `IntoFuture` to be awaited [INFO] [stdout] = note: required for `impl IntoIterator` to implement `IntoFuture` [INFO] [stdout] help: remove the `.await` [INFO] [stdout] | [INFO] [stdout] 8 - let windows = all_windows().await?; [INFO] [stdout] 8 + let windows = all_windows()?; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/window.rs:1047:1 [INFO] [stdout] | [INFO] [stdout] 7 | async fn main() -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0432, E0752. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/window.rs - window::current_monitor (line 1067) stdout ---- [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/window.rs:1071:1 [INFO] [stdout] | [INFO] [stdout] 6 | async fn main() -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0752`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/updater.rs - updater::install_update (line 62) stdout ---- [INFO] [stdout] error[E0423]: expected function, found macro `log::info` [INFO] [stdout] --> src/updater.rs:70:5 [INFO] [stdout] | [INFO] [stdout] 10 | log::info("Installing update {:?}", update.manifest); [INFO] [stdout] | ^^^^^^^^^ not a function [INFO] [stdout] | [INFO] [stdout] help: use `!` to invoke the macro [INFO] [stdout] | [INFO] [stdout] 10 | log::info!("Installing update {:?}", update.manifest); [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/updater.rs:66:1 [INFO] [stdout] | [INFO] [stdout] 6 | async fn main() -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0423, E0752. [INFO] [stdout] For more information about an error, try `rustc --explain E0423`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/window.rs - window::available_monitors (line 1113) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `web_sys` [INFO] [stdout] --> src/window.rs:1116:5 [INFO] [stdout] | [INFO] [stdout] 5 | use web_sys::console; [INFO] [stdout] | ^^^^^^^ use of unresolved module or unlinked crate `web_sys` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `web_sys`, use `cargo add web_sys` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/window.rs:1118:1 [INFO] [stdout] | [INFO] [stdout] 7 | async fn main() -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0752. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] [stdout] ---- src/updater.rs - updater::updater_events (line 88) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `web_sys` [INFO] [stdout] --> src/updater.rs:91:5 [INFO] [stdout] | [INFO] [stdout] 5 | use web_sys::console; [INFO] [stdout] | ^^^^^^^ use of unresolved module or unlinked crate `web_sys` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `web_sys`, use `cargo add web_sys` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `next` found for opaque type `impl Future, ...>>` in the current scope [INFO] [stdout] --> src/updater.rs:96:32 [INFO] [stdout] | [INFO] [stdout] 10 | while let Some(event) = events.next().await { [INFO] [stdout] | ^^^^ method not found in `impl Future, ...>>` [INFO] [stdout] [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/updater.rs:93:1 [INFO] [stdout] | [INFO] [stdout] 7 | async fn main() -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0599, E0752. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/window.rs - window::primary_monitor (line 1091) stdout ---- [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/window.rs:1095:1 [INFO] [stdout] | [INFO] [stdout] 6 | async fn main() -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0752`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/window.rs - window::current_window (line 1026) stdout ---- [INFO] [stdout] error[E0277]: `WebviewWindow` is not a future [INFO] [stdout] --> src/window.rs:1031:28 [INFO] [stdout] | [INFO] [stdout] 7 | let win = current_window().await?; [INFO] [stdout] | ---------------- ^^^^^ `WebviewWindow` is not a future [INFO] [stdout] | | [INFO] [stdout] | this call returns `WebviewWindow` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Future` is not implemented for `WebviewWindow` [INFO] [stdout] = note: WebviewWindow must be a future or must implement `IntoFuture` to be awaited [INFO] [stdout] = note: required for `WebviewWindow` to implement `IntoFuture` [INFO] [stdout] help: remove the `.await` [INFO] [stdout] | [INFO] [stdout] 7 - let win = current_window().await?; [INFO] [stdout] 7 + let win = current_window()?; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/window.rs:1030:1 [INFO] [stdout] | [INFO] [stdout] 6 | async fn main() -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0752. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/app.rs - app::get_tauri_version (line 56) [INFO] [stdout] src/app.rs - app::get_version (line 40) [INFO] [stdout] src/app.rs - app::hide (line 88) [INFO] [stdout] src/app.rs - app::show (line 72) [INFO] [stdout] src/clipboard.rs - clipboard::read_text (line 23) [INFO] [stdout] src/clipboard.rs - clipboard::write_text (line 41) [INFO] [stdout] src/dialog.rs - dialog::FileDialogBuilder<'a>::add_filters (line 115) [INFO] [stdout] src/dialog.rs - dialog::FileDialogBuilder<'a>::pick_file (line 140) [INFO] [stdout] src/dialog.rs - dialog::FileDialogBuilder<'a>::pick_files (line 160) [INFO] [stdout] src/dialog.rs - dialog::FileDialogBuilder<'a>::pick_folder (line 189) [INFO] [stdout] src/dialog.rs - dialog::FileDialogBuilder<'a>::pick_folders (line 211) [INFO] [stdout] src/dialog.rs - dialog::FileDialogBuilder<'a>::save (line 247) [INFO] [stdout] src/dialog.rs - dialog::MessageDialogBuilder<'a>::ask (line 345) [INFO] [stdout] src/dialog.rs - dialog::MessageDialogBuilder<'a>::confirm (line 365) [INFO] [stdout] src/dialog.rs - dialog::MessageDialogBuilder<'a>::message (line 327) [INFO] [stdout] src/event.rs - event::emit (line 28) [INFO] [stdout] src/event.rs - event::listen (line 56) [INFO] [stdout] src/event.rs - event::once (line 115) [INFO] [stdout] src/fs.rs - fs::copy_file (line 90) [INFO] [stdout] src/fs.rs - fs::create_dir (line 121) [INFO] [stdout] src/fs.rs - fs::create_dir_all (line 149) [INFO] [stdout] src/fs.rs - fs::exists (line 177) [INFO] [stdout] src/fs.rs - fs::read_binary_file (line 202) [INFO] [stdout] src/fs.rs - fs::read_dir (line 227) [INFO] [stdout] src/fs.rs - fs::read_dir_all (line 256) [INFO] [stdout] src/fs.rs - fs::read_text_file (line 285) [INFO] [stdout] src/fs.rs - fs::remove_dir (line 311) [INFO] [stdout] src/fs.rs - fs::remove_dir_all (line 338) [INFO] [stdout] src/fs.rs - fs::remove_file (line 365) [INFO] [stdout] src/fs.rs - fs::rename_file (line 388) [INFO] [stdout] src/fs.rs - fs::write_binary_file (line 420) [INFO] [stdout] src/fs.rs - fs::write_text_file (line 448) [INFO] [stdout] src/global_shortcut.rs - global_shortcut (line 7) [INFO] [stdout] src/global_shortcut.rs - global_shortcut::inner (line 125) [INFO] [stdout] src/global_shortcut.rs - global_shortcut::is_registered (line 49) [INFO] [stdout] src/global_shortcut.rs - global_shortcut::register (line 70) [INFO] [stdout] src/lib.rs - (line 106) [INFO] [stdout] src/lib.rs - (line 28) [INFO] [stdout] src/lib.rs - (line 63) [INFO] [stdout] src/notification.rs - notification::Notification<'a>::show (line 104) [INFO] [stdout] src/notification.rs - notification::is_permission_granted (line 24) [INFO] [stdout] src/notification.rs - notification::request_permission (line 43) [INFO] [stdout] src/path.rs - path::app_cache_dir (line 89) [INFO] [stdout] src/path.rs - path::app_config_dir (line 26) [INFO] [stdout] src/path.rs - path::app_data_dir (line 47) [INFO] [stdout] src/path.rs - path::app_local_data_dir (line 68) [INFO] [stdout] src/path.rs - path::app_log_dir (line 556) [INFO] [stdout] src/path.rs - path::audio_dir (line 114) [INFO] [stdout] src/path.rs - path::basename (line 684) [INFO] [stdout] src/path.rs - path::cache_dir (line 139) [INFO] [stdout] src/path.rs - path::config_dir (line 164) [INFO] [stdout] src/path.rs - path::data_dir (line 189) [INFO] [stdout] src/path.rs - path::desktop_dir (line 214) [INFO] [stdout] src/path.rs - path::dirname (line 640) [INFO] [stdout] src/path.rs - path::document_dir (line 239) [INFO] [stdout] src/path.rs - path::download_dir (line 264) [INFO] [stdout] src/path.rs - path::executable_dir (line 289) [INFO] [stdout] src/path.rs - path::extname (line 661) [INFO] [stdout] src/path.rs - path::font_dir (line 314) [INFO] [stdout] src/path.rs - path::home_dir (line 339) [INFO] [stdout] src/path.rs - path::is_absolute (line 709) [INFO] [stdout] src/path.rs - path::join (line 618) [INFO] [stdout] src/path.rs - path::local_data_dir (line 364) [INFO] [stdout] src/path.rs - path::normalize (line 597) [INFO] [stdout] src/path.rs - path::picture_dir (line 389) [INFO] [stdout] src/path.rs - path::public_dir (line 414) [INFO] [stdout] src/path.rs - path::resolve (line 575) [INFO] [stdout] src/path.rs - path::resolve_resource (line 456) [INFO] [stdout] src/path.rs - path::resource_dir (line 435) [INFO] [stdout] src/path.rs - path::runtime_dir (line 481) [INFO] [stdout] src/path.rs - path::template_dir (line 506) [INFO] [stdout] src/path.rs - path::video_dir (line 531) [INFO] [stdout] src/tauri.rs - tauri::convert_file_src (line 19) [INFO] [stdout] src/tauri.rs - tauri::invoke (line 52) [INFO] [stdout] src/updater.rs - updater::check_update (line 42) [INFO] [stdout] src/updater.rs - updater::install_update (line 62) [INFO] [stdout] src/updater.rs - updater::updater_events (line 88) [INFO] [stdout] src/window.rs - window::all_windows (line 1042) [INFO] [stdout] src/window.rs - window::available_monitors (line 1113) [INFO] [stdout] src/window.rs - window::current_monitor (line 1067) [INFO] [stdout] src/window.rs - window::current_window (line 1026) [INFO] [stdout] src/window.rs - window::primary_monitor (line 1091) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 5 passed; 82 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.71s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "87cb7ecca35347c8f58415c985735080bf52bf98b211f32524ab50fe257b8483", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "87cb7ecca35347c8f58415c985735080bf52bf98b211f32524ab50fe257b8483", kill_on_drop: false }` [INFO] [stdout] 87cb7ecca35347c8f58415c985735080bf52bf98b211f32524ab50fe257b8483