[INFO] fetching crate axum_sessions_auth 7.0.0... [INFO] testing axum_sessions_auth-7.0.0 against master#d3515155216e98c23440ea92c3f49c6a0d7101fc for pr-113843 [INFO] extracting crate axum_sessions_auth 7.0.0 into /workspace/builds/worker-5-tc1/source [INFO] validating manifest of crates.io crate axum_sessions_auth 7.0.0 on toolchain d3515155216e98c23440ea92c3f49c6a0d7101fc [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+d3515155216e98c23440ea92c3f49c6a0d7101fc" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate axum_sessions_auth 7.0.0 [INFO] finished tweaking crates.io crate axum_sessions_auth 7.0.0 [INFO] tweaked toml for crates.io crate axum_sessions_auth 7.0.0 written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+d3515155216e98c23440ea92c3f49c6a0d7101fc" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+d3515155216e98c23440ea92c3f49c6a0d7101fc" "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 stringprep v0.1.3 [INFO] [stderr] Downloaded sqlx-rt v0.6.3 [INFO] [stderr] Downloaded async-recursion v1.0.4 [INFO] [stderr] Downloaded ghash v0.5.0 [INFO] [stderr] Downloaded axum_database_sessions v7.0.2 [INFO] [stderr] Downloaded whoami v1.4.1 [INFO] [stderr] Downloaded polyval v0.6.1 [INFO] [stderr] Downloaded ctr v0.9.2 [INFO] [stderr] Downloaded atoi v1.0.0 [INFO] [stderr] Downloaded cookie v0.17.0 [INFO] [stderr] Downloaded hashlink v0.8.3 [INFO] [stderr] Downloaded sqlformat v0.2.1 [INFO] [stderr] Downloaded const-oid v0.7.1 [INFO] [stderr] Downloaded pem-rfc7468 v0.3.1 [INFO] [stderr] Downloaded spki v0.5.4 [INFO] [stderr] Downloaded pkcs8 v0.8.0 [INFO] [stderr] Downloaded allocator-api2 v0.2.16 [INFO] [stderr] Downloaded aes v0.8.3 [INFO] [stderr] Downloaded sqlx v0.6.3 [INFO] [stderr] Downloaded sqlx-core v0.6.3 [INFO] [stderr] Downloaded aes-gcm v0.10.2 [INFO] [stderr] Downloaded redis v0.22.3 [INFO] [stderr] Downloaded hkdf v0.12.3 [INFO] [stderr] Downloaded futures-intrusive v0.4.2 [INFO] [stderr] Downloaded pkcs1 v0.3.3 [INFO] [stderr] Downloaded crypto-bigint v0.3.2 [INFO] [stderr] Downloaded libsqlite3-sys v0.24.2 [INFO] [stderr] Downloaded der v0.5.1 [INFO] [stderr] Downloaded rsa v0.6.1 [INFO] [stderr] Downloaded dotenvy v0.15.7 [INFO] [stderr] Downloaded sqlx-macros v0.6.3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:5c16f4e6c37141f9fef0bc86f7a492d732943053e42aab8461035881e3f53823" "/opt/rustwide/cargo-home/bin/cargo" "+d3515155216e98c23440ea92c3f49c6a0d7101fc" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 565a416fbb5fa21ed4c22e77f24faf2ca19d1274a25365bdd8c2875abfe3ab29 [INFO] running `Command { std: "docker" "start" "-a" "565a416fbb5fa21ed4c22e77f24faf2ca19d1274a25365bdd8c2875abfe3ab29", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "565a416fbb5fa21ed4c22e77f24faf2ca19d1274a25365bdd8c2875abfe3ab29", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "565a416fbb5fa21ed4c22e77f24faf2ca19d1274a25365bdd8c2875abfe3ab29", kill_on_drop: false }` [INFO] [stdout] 565a416fbb5fa21ed4c22e77f24faf2ca19d1274a25365bdd8c2875abfe3ab29 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:5c16f4e6c37141f9fef0bc86f7a492d732943053e42aab8461035881e3f53823" "/opt/rustwide/cargo-home/bin/cargo" "+d3515155216e98c23440ea92c3f49c6a0d7101fc" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c5c43c2a2f4ba2574123694bf6006a53431d4354e6c570032e6d3f07697e9a29 [INFO] running `Command { std: "docker" "start" "-a" "c5c43c2a2f4ba2574123694bf6006a53431d4354e6c570032e6d3f07697e9a29", 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] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling once_cell v1.18.0 [INFO] [stderr] Compiling smallvec v1.11.0 [INFO] [stderr] Compiling scopeguard v1.2.0 [INFO] [stderr] Compiling subtle v2.5.0 [INFO] [stderr] Compiling lock_api v0.4.10 [INFO] [stderr] Compiling futures-channel v0.3.28 [INFO] [stderr] Compiling rustls v0.20.8 [INFO] [stderr] Compiling getrandom v0.2.10 [INFO] [stderr] Compiling parking_lot_core v0.9.8 [INFO] [stderr] Compiling num-traits v0.2.15 [INFO] [stderr] Compiling ahash v0.8.3 [INFO] [stderr] Compiling serde v1.0.171 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling tinyvec_macros v0.1.1 [INFO] [stderr] Compiling serde_derive v1.0.171 [INFO] [stderr] Compiling tinyvec v1.6.0 [INFO] [stderr] Compiling tokio v1.29.1 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling parking_lot_core v0.8.6 [INFO] [stderr] Compiling futures-task v0.3.28 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling ring v0.16.20 [INFO] [stderr] Compiling minimal-lexical v0.2.1 [INFO] [stderr] Compiling ppv-lite86 v0.2.17 [INFO] [stderr] Compiling instant v0.1.12 [INFO] [stderr] Compiling allocator-api2 v0.2.16 [INFO] [stderr] Compiling unicode-bidi v0.3.13 [INFO] [stderr] Compiling futures-sink v0.3.28 [INFO] [stderr] Compiling crossbeam-utils v0.8.16 [INFO] [stderr] Compiling memchr v2.5.0 [INFO] [stderr] Compiling futures-util v0.3.28 [INFO] [stderr] Compiling itertools v0.10.5 [INFO] [stderr] Compiling hashbrown v0.14.0 [INFO] [stderr] Compiling parking_lot v0.12.1 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling tokio-macros v2.1.0 [INFO] [stderr] Compiling futures-macro v0.3.28 [INFO] [stderr] Compiling signal-hook-registry v1.4.1 [INFO] [stderr] Compiling indexmap v1.9.3 [INFO] [stderr] Compiling ahash v0.7.6 [INFO] [stderr] Compiling unicode_categories v0.1.1 [INFO] [stderr] Compiling unicode-normalization v0.1.22 [INFO] [stderr] Compiling iana-time-zone v0.1.57 [INFO] [stderr] Compiling crossbeam-queue v0.3.8 [INFO] [stderr] Compiling paste v1.0.14 [INFO] [stderr] Compiling serde_json v1.0.103 [INFO] [stderr] Compiling futures-io v0.3.28 [INFO] [stderr] Compiling thiserror v1.0.43 [INFO] [stderr] Compiling webpki v0.22.0 [INFO] [stderr] Compiling sct v0.7.0 [INFO] [stderr] Compiling idna v0.4.0 [INFO] [stderr] Compiling parking_lot v0.11.2 [INFO] [stderr] Compiling thiserror-impl v1.0.43 [INFO] [stderr] Compiling inout v0.1.3 [INFO] [stderr] Compiling dirs-sys v0.3.7 [INFO] [stderr] Compiling rustversion v1.0.14 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Compiling url v2.4.0 [INFO] [stderr] Compiling dirs v4.0.0 [INFO] [stderr] Compiling futures-intrusive v0.4.2 [INFO] [stderr] Compiling cipher v0.4.4 [INFO] [stderr] Compiling webpki-roots v0.22.6 [INFO] [stderr] Compiling atoi v1.0.0 [INFO] [stderr] Compiling stringprep v0.1.3 [INFO] [stderr] Compiling hashlink v0.8.3 [INFO] [stderr] Compiling universal-hash v0.5.1 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling bitflags v1.3.2 [INFO] [stderr] Compiling event-listener v2.5.3 [INFO] [stderr] Compiling byteorder v1.4.3 [INFO] [stderr] Compiling base64 v0.13.1 [INFO] [stderr] Compiling dotenvy v0.15.7 [INFO] [stderr] Compiling opaque-debug v0.3.0 [INFO] [stderr] Compiling whoami v1.4.1 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling polyval v0.6.1 [INFO] [stderr] Compiling hkdf v0.12.3 [INFO] [stderr] Compiling chrono v0.4.26 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling sha2 v0.10.7 [INFO] [stderr] Compiling md-5 v0.10.5 [INFO] [stderr] Compiling sqlformat v0.2.1 [INFO] [stderr] Compiling sha1 v0.10.5 [INFO] [stderr] Compiling time v0.1.45 [INFO] [stderr] Compiling unicode-segmentation v1.10.1 [INFO] [stderr] Compiling async-trait v0.1.71 [INFO] [stderr] Compiling uuid v1.4.1 [INFO] [stderr] Compiling axum-core v0.3.4 [INFO] [stderr] Compiling heck v0.4.1 [INFO] [stderr] Compiling tokio-rustls v0.23.4 [INFO] [stderr] Compiling tokio-stream v0.1.14 [INFO] [stderr] Compiling time-macros v0.2.10 [INFO] [stderr] Compiling ghash v0.5.0 [INFO] [stderr] Compiling aes v0.8.3 [INFO] [stderr] Compiling ctr v0.9.2 [INFO] [stderr] Compiling sqlx-rt v0.6.3 [INFO] [stderr] Compiling aead v0.5.2 [INFO] [stderr] Compiling cookie v0.17.0 [INFO] [stderr] Compiling aes-gcm v0.10.2 [INFO] [stderr] Compiling futures-executor v0.3.28 [INFO] [stderr] Compiling tracing-core v0.1.31 [INFO] [stderr] Compiling mime v0.3.17 [INFO] [stderr] Compiling anyhow v1.0.72 [INFO] [stderr] Compiling futures v0.3.28 [INFO] [stderr] Compiling dashmap v5.5.0 [INFO] [stderr] Compiling async-recursion v1.0.4 [INFO] [stderr] Compiling tracing v0.1.37 [INFO] [stderr] Compiling time v0.3.23 [INFO] [stderr] Compiling sqlx-core v0.6.3 [INFO] [stderr] Compiling sqlx-macros v0.6.3 [INFO] [stderr] Compiling sqlx v0.6.3 [INFO] [stderr] Compiling axum_database_sessions v7.0.2 [INFO] [stderr] Compiling axum_sessions_auth v7.0.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 31.42s [INFO] running `Command { std: "docker" "inspect" "c5c43c2a2f4ba2574123694bf6006a53431d4354e6c570032e6d3f07697e9a29", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c5c43c2a2f4ba2574123694bf6006a53431d4354e6c570032e6d3f07697e9a29", kill_on_drop: false }` [INFO] [stdout] c5c43c2a2f4ba2574123694bf6006a53431d4354e6c570032e6d3f07697e9a29 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:5c16f4e6c37141f9fef0bc86f7a492d732943053e42aab8461035881e3f53823" "/opt/rustwide/cargo-home/bin/cargo" "+d3515155216e98c23440ea92c3f49c6a0d7101fc" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3a31e29cae83d40dab676c537a5f10f6fdd43d1a31815e3f522343d9c8367269 [INFO] running `Command { std: "docker" "start" "-a" "3a31e29cae83d40dab676c537a5f10f6fdd43d1a31815e3f522343d9c8367269", kill_on_drop: false }` [INFO] [stderr] Compiling axum_sessions_auth v7.0.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.99s [INFO] running `Command { std: "docker" "inspect" "3a31e29cae83d40dab676c537a5f10f6fdd43d1a31815e3f522343d9c8367269", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3a31e29cae83d40dab676c537a5f10f6fdd43d1a31815e3f522343d9c8367269", kill_on_drop: false }` [INFO] [stdout] 3a31e29cae83d40dab676c537a5f10f6fdd43d1a31815e3f522343d9c8367269 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:5c16f4e6c37141f9fef0bc86f7a492d732943053e42aab8461035881e3f53823" "/opt/rustwide/cargo-home/bin/cargo" "+d3515155216e98c23440ea92c3f49c6a0d7101fc" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] d1f16bad8dd2a8ae3f4afe6148a496241dc7de711512632348bc5f2d37b7c9bc [INFO] running `Command { std: "docker" "start" "-a" "d1f16bad8dd2a8ae3f4afe6148a496241dc7de711512632348bc5f2d37b7c9bc", kill_on_drop: false }` [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.29s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/axum_sessions_auth-e6ec41ed3b0295ab) [INFO] [stderr] Doc-tests axum_sessions_auth [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] [stdout] [INFO] [stdout] running 19 tests [INFO] [stdout] test src/auth.rs - auth::Auth (line 117) - compile ... FAILED [INFO] [stdout] test src/session.rs - session::AuthSession::is_anonymous (line 103) - compile ... FAILED [INFO] [stdout] test src/session.rs - session::AuthSession::is_authenticated (line 75) - compile ... FAILED [INFO] [stdout] test src/config.rs - config::AuthConfig::with_max_age (line 91) ... FAILED [INFO] [stdout] test src/session.rs - session::AuthSession::is_active (line 89) - compile ... FAILED [INFO] [stdout] test src/session.rs - session::AuthSession::cache_clear_user (line 140) - compile ... FAILED [INFO] [stdout] test src/session.rs - session::AuthSession::cache_clear_all (line 151) - compile ... FAILED [INFO] [stdout] test src/layer.rs - layer::AuthSessionLayer::new (line 34) - compile ... FAILED [INFO] [stdout] test src/auth.rs - auth::Auth::build (line 153) - compile ... FAILED [INFO] [stdout] test src/auth.rs - auth::Auth::validate (line 206) - compile ... FAILED [INFO] [stdout] test src/session.rs - session::AuthSession::logout_user (line 162) - compile ... FAILED [INFO] [stdout] test src/session.rs - session::AuthSession::login_user (line 128) - compile ... FAILED [INFO] [stdout] test src/lib.rs - (line 57) ... FAILED [INFO] [stdout] test src/session.rs - session::AuthSession::remember_user (line 117) - compile ... FAILED [INFO] [stdout] test src/auth.rs - auth::Auth::requires (line 183) - compile ... FAILED [INFO] [stdout] test src/config.rs - config::AuthConfig::with_session_id (line 107) ... ok [INFO] [stdout] test src/config.rs - config::AuthConfig (line 9) ... ok [INFO] [stdout] test src/config.rs - config::AuthConfig::set_cache (line 58) ... ok [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] [stdout] test src/config.rs - config::AuthConfig::with_anonymous_user_id (line 74) ... ok [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/auth.rs - auth::Auth (line 117) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Auth` [INFO] [stdout] --> src/auth.rs:118:5 [INFO] [stdout] | [INFO] [stdout] 3 | if !Auth::::build([Method::POST], true) [INFO] [stdout] | ^^^^ use of undeclared type `Auth` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use axum_sessions_auth::Auth; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `User` in this scope [INFO] [stdout] --> src/auth.rs:118:12 [INFO] [stdout] | [INFO] [stdout] 3 | if !Auth::::build([Method::POST], true) [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_auth_rs_117_0() { [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Pool` in this scope [INFO] [stdout] --> src/auth.rs:118:23 [INFO] [stdout] | [INFO] [stdout] 3 | if !Auth::::build([Method::POST], true) [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] help: a builtin type with a similar name exists [INFO] [stdout] | [INFO] [stdout] 3 | if !Auth::::build([Method::POST], true) [INFO] [stdout] | ~~~~ [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_auth_rs_117_0() { [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Method` [INFO] [stdout] --> src/auth.rs:118:37 [INFO] [stdout] | [INFO] [stdout] 3 | if !Auth::::build([Method::POST], true) [INFO] [stdout] | ^^^^^^ use of undeclared type `Method` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use http::Method; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Rights` [INFO] [stdout] --> src/auth.rs:119:15 [INFO] [stdout] | [INFO] [stdout] 4 | .requires(Rights::all([ [INFO] [stdout] | ^^^^^^ use of undeclared type `Rights` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use axum_sessions_auth::Rights; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Rights` [INFO] [stdout] --> src/auth.rs:120:9 [INFO] [stdout] | [INFO] [stdout] 5 | Rights::permission("admin:view"), [INFO] [stdout] | ^^^^^^ use of undeclared type `Rights` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use axum_sessions_auth::Rights; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Rights` [INFO] [stdout] --> src/auth.rs:121:9 [INFO] [stdout] | [INFO] [stdout] 6 | Rights::permission("form:editreports"), [INFO] [stdout] | ^^^^^^ use of undeclared type `Rights` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use axum_sessions_auth::Rights; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `current_user` in this scope [INFO] [stdout] --> src/auth.rs:123:16 [INFO] [stdout] | [INFO] [stdout] 8 | .validate(¤t_user, &state.method, None) [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `state` in this scope [INFO] [stdout] --> src/auth.rs:123:31 [INFO] [stdout] | [INFO] [stdout] 8 | .validate(¤t_user, &state.method, None) [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `state` in this scope [INFO] [stdout] --> src/auth.rs:126:24 [INFO] [stdout] | [INFO] [stdout] 11 | return handler_404(state).await.into_response(); [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/auth.rs:124:6 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_auth_rs_117_0() { [INFO] [stdout] | ------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 9 | .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/auth.rs:126:31 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_auth_rs_117_0() { [INFO] [stdout] | ------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 11 | return handler_404(state).await.into_response(); [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `handler_404` in this scope [INFO] [stdout] --> src/auth.rs:126:12 [INFO] [stdout] | [INFO] [stdout] 11 | return handler_404(state).await.into_response(); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 13 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0425, E0433, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/session.rs - session::AuthSession::is_anonymous (line 103) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `auth` in this scope [INFO] [stdout] --> src/session.rs:104:1 [INFO] [stdout] | [INFO] [stdout] 3 | auth.is_anonymous(); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/session.rs - session::AuthSession::is_authenticated (line 75) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `auth` in this scope [INFO] [stdout] --> src/session.rs:76:1 [INFO] [stdout] | [INFO] [stdout] 3 | auth.is_authenticated(); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/config.rs - config::AuthConfig::with_max_age (line 91) stdout ---- [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/config.rs:96:56 [INFO] [stdout] | [INFO] [stdout] 8 | let config = AuthConfig::::default().with_max_age(Some(Duration::days(2))); [INFO] [stdout] | ------------ ^^^^^^^^^^^^^^^^^^^^^^^ expected `Duration`, found `Option` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected struct `chrono::Duration` [INFO] [stdout] found enum `Option` [INFO] [stdout] note: method defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/config.rs:99:12 [INFO] [stdout] | [INFO] [stdout] 99 | pub fn with_max_age(mut self, time: Duration) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/session.rs - session::AuthSession::is_active (line 89) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `auth` in this scope [INFO] [stdout] --> src/session.rs:90:1 [INFO] [stdout] | [INFO] [stdout] 3 | auth.is_active(); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/session.rs - session::AuthSession::cache_clear_user (line 140) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `auth` in this scope [INFO] [stdout] --> src/session.rs:141:1 [INFO] [stdout] | [INFO] [stdout] 3 | auth.cache_clear_user(user.id); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `user` in this scope [INFO] [stdout] --> src/session.rs:141:23 [INFO] [stdout] | [INFO] [stdout] 3 | auth.cache_clear_user(user.id); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/session.rs - session::AuthSession::cache_clear_all (line 151) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `auth` in this scope [INFO] [stdout] --> src/session.rs:152:1 [INFO] [stdout] | [INFO] [stdout] 3 | auth.cache_clear_all(); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/layer.rs - layer::AuthSessionLayer::new (line 34) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `AuthSessionLayer` [INFO] [stdout] --> src/layer.rs:35:13 [INFO] [stdout] | [INFO] [stdout] 3 | let layer = AuthSessionLayer::::new(None); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ use of undeclared type `AuthSessionLayer` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use axum_sessions_auth::AuthSessionLayer; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `User` in this scope [INFO] [stdout] --> src/layer.rs:35:32 [INFO] [stdout] | [INFO] [stdout] 3 | let layer = AuthSessionLayer::::new(None); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_layer_rs_34_0() { [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Sess` in this scope [INFO] [stdout] --> src/layer.rs:35:43 [INFO] [stdout] | [INFO] [stdout] 3 | let layer = AuthSessionLayer::::new(None); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_layer_rs_34_0() { [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Pool` in this scope [INFO] [stdout] --> src/layer.rs:35:49 [INFO] [stdout] | [INFO] [stdout] 3 | let layer = AuthSessionLayer::::new(None); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] help: a builtin type with a similar name exists [INFO] [stdout] | [INFO] [stdout] 3 | let layer = AuthSessionLayer::::new(None); [INFO] [stdout] | ~~~~ [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_layer_rs_34_0() { [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/auth.rs - auth::Auth::build (line 153) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Auth` [INFO] [stdout] --> src/auth.rs:154:5 [INFO] [stdout] | [INFO] [stdout] 3 | if !Auth::::build([Method::POST], true) [INFO] [stdout] | ^^^^ use of undeclared type `Auth` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use axum_sessions_auth::Auth; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `User` in this scope [INFO] [stdout] --> src/auth.rs:154:12 [INFO] [stdout] | [INFO] [stdout] 3 | if !Auth::::build([Method::POST], true) [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_auth_rs_153_0() { [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Pool` in this scope [INFO] [stdout] --> src/auth.rs:154:23 [INFO] [stdout] | [INFO] [stdout] 3 | if !Auth::::build([Method::POST], true) [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] help: a builtin type with a similar name exists [INFO] [stdout] | [INFO] [stdout] 3 | if !Auth::::build([Method::POST], true) [INFO] [stdout] | ~~~~ [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_auth_rs_153_0() { [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Method` [INFO] [stdout] --> src/auth.rs:154:37 [INFO] [stdout] | [INFO] [stdout] 3 | if !Auth::::build([Method::POST], true) [INFO] [stdout] | ^^^^^^ use of undeclared type `Method` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use http::Method; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Rights` [INFO] [stdout] --> src/auth.rs:155:15 [INFO] [stdout] | [INFO] [stdout] 4 | .requires(Rights::all([ [INFO] [stdout] | ^^^^^^ use of undeclared type `Rights` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use axum_sessions_auth::Rights; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Rights` [INFO] [stdout] --> src/auth.rs:156:9 [INFO] [stdout] | [INFO] [stdout] 5 | Rights::permission("admin:view"), [INFO] [stdout] | ^^^^^^ use of undeclared type `Rights` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use axum_sessions_auth::Rights; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Rights` [INFO] [stdout] --> src/auth.rs:157:9 [INFO] [stdout] | [INFO] [stdout] 6 | Rights::permission("form:editreports"), [INFO] [stdout] | ^^^^^^ use of undeclared type `Rights` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use axum_sessions_auth::Rights; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `current_user` in this scope [INFO] [stdout] --> src/auth.rs:159:16 [INFO] [stdout] | [INFO] [stdout] 8 | .validate(¤t_user, &state.method, None) [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `state` in this scope [INFO] [stdout] --> src/auth.rs:159:31 [INFO] [stdout] | [INFO] [stdout] 8 | .validate(¤t_user, &state.method, None) [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `state` in this scope [INFO] [stdout] --> src/auth.rs:162:24 [INFO] [stdout] | [INFO] [stdout] 11 | return handler_404(state).await.into_response(); [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/auth.rs:160:6 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_auth_rs_153_0() { [INFO] [stdout] | ------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 9 | .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/auth.rs:162:31 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_auth_rs_153_0() { [INFO] [stdout] | ------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 11 | return handler_404(state).await.into_response(); [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `handler_404` in this scope [INFO] [stdout] --> src/auth.rs:162:12 [INFO] [stdout] | [INFO] [stdout] 11 | return handler_404(state).await.into_response(); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 13 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0425, E0433, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/auth.rs - auth::Auth::validate (line 206) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Auth` [INFO] [stdout] --> src/auth.rs:207:5 [INFO] [stdout] | [INFO] [stdout] 3 | if !Auth::::build([Method::POST], true) [INFO] [stdout] | ^^^^ use of undeclared type `Auth` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use axum_sessions_auth::Auth; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `User` in this scope [INFO] [stdout] --> src/auth.rs:207:12 [INFO] [stdout] | [INFO] [stdout] 3 | if !Auth::::build([Method::POST], true) [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_auth_rs_206_0() { [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Pool` in this scope [INFO] [stdout] --> src/auth.rs:207:23 [INFO] [stdout] | [INFO] [stdout] 3 | if !Auth::::build([Method::POST], true) [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] help: a builtin type with a similar name exists [INFO] [stdout] | [INFO] [stdout] 3 | if !Auth::::build([Method::POST], true) [INFO] [stdout] | ~~~~ [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_auth_rs_206_0() { [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Method` [INFO] [stdout] --> src/auth.rs:207:37 [INFO] [stdout] | [INFO] [stdout] 3 | if !Auth::::build([Method::POST], true) [INFO] [stdout] | ^^^^^^ use of undeclared type `Method` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use http::Method; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Rights` [INFO] [stdout] --> src/auth.rs:208:15 [INFO] [stdout] | [INFO] [stdout] 4 | .requires(Rights::all([ [INFO] [stdout] | ^^^^^^ use of undeclared type `Rights` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use axum_sessions_auth::Rights; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Rights` [INFO] [stdout] --> src/auth.rs:209:9 [INFO] [stdout] | [INFO] [stdout] 5 | Rights::permission("admin:view"), [INFO] [stdout] | ^^^^^^ use of undeclared type `Rights` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use axum_sessions_auth::Rights; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Rights` [INFO] [stdout] --> src/auth.rs:210:9 [INFO] [stdout] | [INFO] [stdout] 6 | Rights::permission("form:editreports"), [INFO] [stdout] | ^^^^^^ use of undeclared type `Rights` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use axum_sessions_auth::Rights; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `current_user` in this scope [INFO] [stdout] --> src/auth.rs:212:16 [INFO] [stdout] | [INFO] [stdout] 8 | .validate(¤t_user, &state.method, None) [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `state` in this scope [INFO] [stdout] --> src/auth.rs:212:31 [INFO] [stdout] | [INFO] [stdout] 8 | .validate(¤t_user, &state.method, None) [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `state` in this scope [INFO] [stdout] --> src/auth.rs:215:24 [INFO] [stdout] | [INFO] [stdout] 11 | return handler_404(state).await.into_response(); [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/auth.rs:213:6 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_auth_rs_206_0() { [INFO] [stdout] | ------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 9 | .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/auth.rs:215:31 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_auth_rs_206_0() { [INFO] [stdout] | ------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 11 | return handler_404(state).await.into_response(); [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `handler_404` in this scope [INFO] [stdout] --> src/auth.rs:215:12 [INFO] [stdout] | [INFO] [stdout] 11 | return handler_404(state).await.into_response(); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 13 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0425, E0433, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/session.rs - session::AuthSession::logout_user (line 162) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `auth` in this scope [INFO] [stdout] --> src/session.rs:163:1 [INFO] [stdout] | [INFO] [stdout] 3 | auth.logout_user(); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/session.rs - session::AuthSession::login_user (line 128) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `auth` in this scope [INFO] [stdout] --> src/session.rs:129:1 [INFO] [stdout] | [INFO] [stdout] 3 | auth.login_user(user.id); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `user` in this scope [INFO] [stdout] --> src/session.rs:129:17 [INFO] [stdout] | [INFO] [stdout] 3 | auth.login_user(user.id); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 57) stdout ---- [INFO] [stdout] error: expected expression, found `]` [INFO] [stdout] --> src/lib.rs:120:73 [INFO] [stdout] | [INFO] [stdout] 65 | return format!("No Permissions! for {}", cur_user.username)[]; [INFO] [stdout] | ^ expected expression [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `sqlx` [INFO] [stdout] --> src/lib.rs:59:5 [INFO] [stdout] | [INFO] [stdout] 4 | use sqlx::{PgPool, ConnectOptions, postgres::{PgPoolOptions, PgConnectOptions}}; [INFO] [stdout] | ^^^^ use of undeclared crate or module `sqlx` [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `sqlx` [INFO] [stdout] --> src/lib.rs:59:5 [INFO] [stdout] | [INFO] [stdout] 4 | use sqlx::{PgPool, ConnectOptions, postgres::{PgPoolOptions, PgConnectOptions}}; [INFO] [stdout] | ^^^^ use of undeclared crate or module `sqlx` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `axum` [INFO] [stdout] --> src/lib.rs:63:5 [INFO] [stdout] | [INFO] [stdout] 8 | use axum::{ [INFO] [stdout] | ^^^^ use of undeclared crate or module `axum` [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `axum` [INFO] [stdout] --> src/lib.rs:63:5 [INFO] [stdout] | [INFO] [stdout] 8 | use axum::{ [INFO] [stdout] | ^^^^ use of undeclared crate or module `axum` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `tracing` [INFO] [stdout] --> src/lib.rs:87:5 [INFO] [stdout] | [INFO] [stdout] 32 | tracing::debug!("listening on {}", addr); [INFO] [stdout] | ^^^^^^^ use of undeclared crate or module `tracing` [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `async_trait` in this scope [INFO] [stdout] --> src/lib.rs:158:3 [INFO] [stdout] | [INFO] [stdout] 103 | #[async_trait] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `async_trait` is in scope, but it is a crate, not an attribute [INFO] [stdout] help: consider importing this attribute macro [INFO] [stdout] | [INFO] [stdout] 4 + use async_trait::async_trait; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `async_trait` in this scope [INFO] [stdout] --> src/lib.rs:169:3 [INFO] [stdout] | [INFO] [stdout] 114 | #[async_trait] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `async_trait` is in scope, but it is a crate, not an attribute [INFO] [stdout] help: consider importing this attribute macro [INFO] [stdout] | [INFO] [stdout] 4 + use async_trait::async_trait; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `axum` [INFO] [stdout] --> src/lib.rs:88:5 [INFO] [stdout] | [INFO] [stdout] 33 | axum::Server::bind(&addr) [INFO] [stdout] | ^^^^ use of undeclared crate or module `axum` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `SessionStore` [INFO] [stdout] --> src/lib.rs:77:25 [INFO] [stdout] | [INFO] [stdout] 22 | let session_store = SessionStore::::new(Some(poll.clone().into()), session_config); [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `SessionStore` [INFO] [stdout] | [INFO] [stdout] help: a struct with a similar name exists [INFO] [stdout] | [INFO] [stdout] 22 | let session_store = SessionLayer::::new(Some(poll.clone().into()), session_config); [INFO] [stdout] | ~~~~~~~~~~~~ [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 4 + use axum_database_sessions::SessionStore; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Method` in this scope [INFO] [stdout] --> src/lib.rs:97:24 [INFO] [stdout] | [INFO] [stdout] 42 | async fn greet(method: Method, auth: AuthSession) -> &'static str { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 4 + use http::Method; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `session` in this scope [INFO] [stdout] --> src/lib.rs:98:28 [INFO] [stdout] | [INFO] [stdout] 43 | let mut count: usize = session.get("count").unwrap_or(0); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `current_user` in this scope [INFO] [stdout] --> src/lib.rs:111:29 [INFO] [stdout] | [INFO] [stdout] 56 | if let Some(cur_user) = current_user { [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Auth` [INFO] [stdout] --> src/lib.rs:112:13 [INFO] [stdout] | [INFO] [stdout] 57 | if !Auth::::build([Method::Get], false) [INFO] [stdout] | ^^^^ use of undeclared type `Auth` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 4 + use axum_sessions_auth::Auth; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Method` [INFO] [stdout] --> src/lib.rs:112:47 [INFO] [stdout] | [INFO] [stdout] 57 | if !Auth::::build([Method::Get], false) [INFO] [stdout] | ^^^^^^ use of undeclared type `Method` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 4 + use http::Method; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Rights` [INFO] [stdout] --> src/lib.rs:113:23 [INFO] [stdout] | [INFO] [stdout] 58 | .requires(Rights::none([ [INFO] [stdout] | ^^^^^^ use of undeclared type `Rights` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 4 + use axum_sessions_auth::Rights; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Rights` [INFO] [stdout] --> src/lib.rs:114:17 [INFO] [stdout] | [INFO] [stdout] 59 | Rights::permission("Token::UseAdmin"), [INFO] [stdout] | ^^^^^^ use of undeclared type `Rights` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 4 + use axum_sessions_auth::Rights; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Rights` [INFO] [stdout] --> src/lib.rs:115:17 [INFO] [stdout] | [INFO] [stdout] 60 | Rights::permission("Token::ModifyPerms"), [INFO] [stdout] | ^^^^^^ use of undeclared type `Rights` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 4 + use axum_sessions_auth::Rights; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0405]: cannot find trait `HasPermission` in this scope [INFO] [stdout] --> src/lib.rs:159:6 [INFO] [stdout] | [INFO] [stdout] 104 | impl HasPermission for User { [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this trait [INFO] [stdout] | [INFO] [stdout] 4 + use axum_sessions_auth::HasPermission; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0706]: functions in traits cannot be declared `async` [INFO] [stdout] --> src/lib.rs:160:5 [INFO] [stdout] | [INFO] [stdout] 105 | async fn has(&self, perm: &String, _pool: &Option<&PgPool>) -> bool { [INFO] [stdout] | -----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | `async` because of this [INFO] [stdout] | [INFO] [stdout] = note: `async` trait functions are not currently supported [INFO] [stdout] = note: consider using the `async-trait` crate: https://crates.io/crates/async-trait [INFO] [stdout] = note: see issue #91611 for more information [INFO] [stdout] = help: add `#![feature(async_fn_in_trait)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] error[E0706]: functions in traits cannot be declared `async` [INFO] [stdout] --> src/lib.rs:171:5 [INFO] [stdout] | [INFO] [stdout] 116 | async fn load_user(userid: i64, _pool: Option<&PgPool>) -> Result { [INFO] [stdout] | -----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | `async` because of this [INFO] [stdout] | [INFO] [stdout] = note: `async` trait functions are not currently supported [INFO] [stdout] = note: consider using the `async-trait` crate: https://crates.io/crates/async-trait [INFO] [stdout] = note: see issue #91611 for more information [INFO] [stdout] = help: add `#![feature(async_fn_in_trait)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `sqlx` [INFO] [stdout] --> src/lib.rs:192:50 [INFO] [stdout] | [INFO] [stdout] 137 | async fn connect_to_database() -> anyhow::Result> { [INFO] [stdout] | ^^^^ use of undeclared crate or module `sqlx` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `sqlx` [INFO] [stdout] --> src/lib.rs:192:61 [INFO] [stdout] | [INFO] [stdout] 137 | async fn connect_to_database() -> anyhow::Result> { [INFO] [stdout] | ^^^^ use of undeclared crate or module `sqlx` [INFO] [stdout] [INFO] [stdout] error: aborting due to 23 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0405, E0412, E0425, E0432, E0433, E0706. [INFO] [stdout] For more information about an error, try `rustc --explain E0405`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/session.rs - session::AuthSession::remember_user (line 117) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `auth` in this scope [INFO] [stdout] --> src/session.rs:118:1 [INFO] [stdout] | [INFO] [stdout] 3 | auth.remember_user(true); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/auth.rs - auth::Auth::requires (line 183) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Auth` [INFO] [stdout] --> src/auth.rs:184:5 [INFO] [stdout] | [INFO] [stdout] 3 | if !Auth::::build([Method::POST], true) [INFO] [stdout] | ^^^^ use of undeclared type `Auth` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use axum_sessions_auth::Auth; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `User` in this scope [INFO] [stdout] --> src/auth.rs:184:12 [INFO] [stdout] | [INFO] [stdout] 3 | if !Auth::::build([Method::POST], true) [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_auth_rs_183_0() { [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Pool` in this scope [INFO] [stdout] --> src/auth.rs:184:23 [INFO] [stdout] | [INFO] [stdout] 3 | if !Auth::::build([Method::POST], true) [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] help: a builtin type with a similar name exists [INFO] [stdout] | [INFO] [stdout] 3 | if !Auth::::build([Method::POST], true) [INFO] [stdout] | ~~~~ [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_auth_rs_183_0() { [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Method` [INFO] [stdout] --> src/auth.rs:184:37 [INFO] [stdout] | [INFO] [stdout] 3 | if !Auth::::build([Method::POST], true) [INFO] [stdout] | ^^^^^^ use of undeclared type `Method` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use http::Method; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Rights` [INFO] [stdout] --> src/auth.rs:185:15 [INFO] [stdout] | [INFO] [stdout] 4 | .requires(Rights::all([ [INFO] [stdout] | ^^^^^^ use of undeclared type `Rights` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use axum_sessions_auth::Rights; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Rights` [INFO] [stdout] --> src/auth.rs:186:9 [INFO] [stdout] | [INFO] [stdout] 5 | Rights::permission("admin:view"), [INFO] [stdout] | ^^^^^^ use of undeclared type `Rights` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use axum_sessions_auth::Rights; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Rights` [INFO] [stdout] --> src/auth.rs:187:9 [INFO] [stdout] | [INFO] [stdout] 6 | Rights::permission("form:editreports"), [INFO] [stdout] | ^^^^^^ use of undeclared type `Rights` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use axum_sessions_auth::Rights; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `current_user` in this scope [INFO] [stdout] --> src/auth.rs:189:16 [INFO] [stdout] | [INFO] [stdout] 8 | .validate(¤t_user, &state.method, None) [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `state` in this scope [INFO] [stdout] --> src/auth.rs:189:31 [INFO] [stdout] | [INFO] [stdout] 8 | .validate(¤t_user, &state.method, None) [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `state` in this scope [INFO] [stdout] --> src/auth.rs:192:24 [INFO] [stdout] | [INFO] [stdout] 11 | return handler_404(state).await.into_response(); [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/auth.rs:190:6 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_auth_rs_183_0() { [INFO] [stdout] | ------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 9 | .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/auth.rs:192:31 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_auth_rs_183_0() { [INFO] [stdout] | ------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 11 | return handler_404(state).await.into_response(); [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `handler_404` in this scope [INFO] [stdout] --> src/auth.rs:192:12 [INFO] [stdout] | [INFO] [stdout] 11 | return handler_404(state).await.into_response(); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 13 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0425, E0433, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/auth.rs - auth::Auth (line 117) [INFO] [stdout] src/auth.rs - auth::Auth::build (line 153) [INFO] [stdout] src/auth.rs - auth::Auth::requires (line 183) [INFO] [stdout] src/auth.rs - auth::Auth::validate (line 206) [INFO] [stdout] src/config.rs - config::AuthConfig::with_max_age (line 91) [INFO] [stdout] src/layer.rs - layer::AuthSessionLayer::new (line 34) [INFO] [stdout] src/lib.rs - (line 57) [INFO] [stdout] src/session.rs - session::AuthSession::cache_clear_all (line 151) [INFO] [stdout] src/session.rs - session::AuthSession::cache_clear_user (line 140) [INFO] [stdout] src/session.rs - session::AuthSession::is_active (line 89) [INFO] [stdout] src/session.rs - session::AuthSession::is_anonymous (line 103) [INFO] [stdout] src/session.rs - session::AuthSession::is_authenticated (line 75) [INFO] [stdout] src/session.rs - session::AuthSession::login_user (line 128) [INFO] [stdout] src/session.rs - session::AuthSession::logout_user (line 162) [INFO] [stdout] src/session.rs - session::AuthSession::remember_user (line 117) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 4 passed; 15 failed; 0 ignored; 0 measured; 0 filtered out; finished in 1.50s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "d1f16bad8dd2a8ae3f4afe6148a496241dc7de711512632348bc5f2d37b7c9bc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d1f16bad8dd2a8ae3f4afe6148a496241dc7de711512632348bc5f2d37b7c9bc", kill_on_drop: false }` [INFO] [stdout] d1f16bad8dd2a8ae3f4afe6148a496241dc7de711512632348bc5f2d37b7c9bc