[INFO] fetching crate axum_sessions_auth 1.0.1... [INFO] testing axum_sessions_auth-1.0.1 against 1.60.0 for beta-1.61-1 [INFO] extracting crate axum_sessions_auth 1.0.1 into /workspace/builds/worker-12/source [INFO] validating manifest of crates.io crate axum_sessions_auth 1.0.1 on toolchain 1.60.0 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate axum_sessions_auth 1.0.1 [INFO] finished tweaking crates.io crate axum_sessions_auth 1.0.1 [INFO] tweaked toml for crates.io crate axum_sessions_auth 1.0.1 written to /workspace/builds/worker-12/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded axum-core v0.2.1 [INFO] [stderr] Downloaded crypto-bigint v0.2.11 [INFO] [stderr] Downloaded base64ct v1.1.1 [INFO] [stderr] Downloaded ipnetwork v0.17.0 [INFO] [stderr] Downloaded axum_database_sessions v1.0.1 [INFO] [stderr] Downloaded bigdecimal v0.2.2 [INFO] [stderr] Downloaded mac_address v1.1.3 [INFO] [stderr] Downloaded num-bigint-dig v0.7.0 [INFO] [stderr] Downloaded rsa v0.5.0 [INFO] [stderr] Downloaded pem-rfc7468 v0.2.4 [INFO] [stderr] Downloaded pkcs1 v0.2.4 [INFO] [stderr] Downloaded const-oid v0.6.2 [INFO] [stderr] Downloaded pkcs8 v0.7.6 [INFO] [stderr] Downloaded spki v0.4.1 [INFO] [stderr] Downloaded der v0.4.5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 4cd9bb3f2f899d323c0967a16f56b5e87aadc7fb399b527da14aac02d4cff22a [INFO] running `Command { std: "docker" "start" "-a" "4cd9bb3f2f899d323c0967a16f56b5e87aadc7fb399b527da14aac02d4cff22a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "4cd9bb3f2f899d323c0967a16f56b5e87aadc7fb399b527da14aac02d4cff22a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4cd9bb3f2f899d323c0967a16f56b5e87aadc7fb399b527da14aac02d4cff22a", kill_on_drop: false }` [INFO] [stdout] 4cd9bb3f2f899d323c0967a16f56b5e87aadc7fb399b527da14aac02d4cff22a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/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=warn" "-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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 0e8eca3227c265e957481a1ffd90512fb42991b71332bc76c913b03e262b7bc0 [INFO] running `Command { std: "docker" "start" "-a" "0e8eca3227c265e957481a1ffd90512fb42991b71332bc76c913b03e262b7bc0", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.123 [INFO] [stderr] Compiling serde v1.0.136 [INFO] [stderr] Compiling serde_json v1.0.79 [INFO] [stderr] Compiling rust_decimal v1.23.1 [INFO] [stderr] Compiling crossbeam-queue v0.3.5 [INFO] [stderr] Compiling futures-sink v0.3.21 [INFO] [stderr] Compiling crc-catalog v1.1.1 [INFO] [stderr] Compiling arrayvec v0.7.2 [INFO] [stderr] Compiling unicode_categories v0.1.1 [INFO] [stderr] Compiling futures-util v0.3.21 [INFO] [stderr] Compiling bit-vec v0.6.3 [INFO] [stderr] Compiling whoami v1.2.1 [INFO] [stderr] Compiling ipnetwork v0.17.0 [INFO] [stderr] Compiling byteorder v1.4.3 [INFO] [stderr] Compiling uuid v0.8.2 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling num-bigint v0.3.3 [INFO] [stderr] Compiling cookie v0.16.0 [INFO] [stderr] Compiling crc v2.1.0 [INFO] [stderr] Compiling nom v7.1.1 [INFO] [stderr] Compiling bstr v0.2.17 [INFO] [stderr] Compiling futures-channel v0.3.21 [INFO] [stderr] Compiling stringprep v0.1.2 [INFO] [stderr] Compiling digest v0.9.0 [INFO] [stderr] Compiling crypto-mac v0.11.1 [INFO] [stderr] Compiling atoi v0.4.0 [INFO] [stderr] Compiling time-macros-impl v0.1.2 [INFO] [stderr] Compiling async-recursion v1.0.0 [INFO] [stderr] Compiling md-5 v0.9.1 [INFO] [stderr] Compiling sha-1 v0.9.8 [INFO] [stderr] Compiling hmac v0.11.0 [INFO] [stderr] Compiling sha2 v0.9.9 [INFO] [stderr] Compiling time-macros v0.1.1 [INFO] [stderr] Compiling sqlformat v0.1.8 [INFO] [stderr] Compiling jobserver v0.1.24 [INFO] [stderr] Compiling getrandom v0.2.6 [INFO] [stderr] Compiling mio v0.8.2 [INFO] [stderr] Compiling num_cpus v1.13.1 [INFO] [stderr] Compiling socket2 v0.4.4 [INFO] [stderr] Compiling parking_lot_core v0.9.2 [INFO] [stderr] Compiling parking_lot_core v0.8.5 [INFO] [stderr] Compiling signal-hook-registry v1.4.0 [INFO] [stderr] Compiling dirs-sys v0.3.7 [INFO] [stderr] Compiling nix v0.23.1 [INFO] [stderr] Compiling time v0.2.27 [INFO] [stderr] Compiling chrono v0.4.19 [INFO] [stderr] Compiling time v0.1.43 [INFO] [stderr] Compiling time v0.3.9 [INFO] [stderr] Compiling ahash v0.7.6 [INFO] [stderr] Compiling rand_core v0.6.3 [INFO] [stderr] Compiling parking_lot v0.12.0 [INFO] [stderr] Compiling dirs v4.0.0 [INFO] [stderr] Compiling parking_lot v0.11.2 [INFO] [stderr] Compiling cc v1.0.73 [INFO] [stderr] Compiling bigdecimal v0.2.2 [INFO] [stderr] Compiling tokio v1.17.0 [INFO] [stderr] Compiling hashbrown v0.11.2 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling futures-intrusive v0.4.0 [INFO] [stderr] Compiling futures-executor v0.3.21 [INFO] [stderr] Compiling axum-core v0.2.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling futures v0.3.21 [INFO] [stderr] Compiling hashlink v0.7.0 [INFO] [stderr] Compiling indexmap v1.8.1 [INFO] [stderr] Compiling ring v0.16.20 [INFO] [stderr] Compiling libz-sys v1.1.5 [INFO] [stderr] Compiling libgit2-sys v0.12.26+1.3.0 [INFO] [stderr] Compiling mac_address v1.1.3 [INFO] [stderr] Compiling tokio-stream v0.1.8 [INFO] [stderr] Compiling webpki v0.21.4 [INFO] [stderr] Compiling sct v0.6.1 [INFO] [stderr] Compiling git2 v0.13.25 [INFO] [stderr] Compiling rustls v0.19.1 [INFO] [stderr] Compiling webpki-roots v0.21.1 [INFO] [stderr] Compiling tokio-rustls v0.22.0 [INFO] [stderr] Compiling sqlx-rt v0.5.11 [INFO] [stderr] Compiling sqlx-core v0.5.11 [INFO] [stderr] Compiling sqlx-macros v0.5.11 [INFO] [stderr] Compiling sqlx v0.5.11 [INFO] [stderr] Compiling axum_database_sessions v1.0.1 [INFO] [stderr] Compiling axum_sessions_auth v1.0.1 (/opt/rustwide/workdir) [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 3m 02s [INFO] running `Command { std: "docker" "inspect" "0e8eca3227c265e957481a1ffd90512fb42991b71332bc76c913b03e262b7bc0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0e8eca3227c265e957481a1ffd90512fb42991b71332bc76c913b03e262b7bc0", kill_on_drop: false }` [INFO] [stdout] 0e8eca3227c265e957481a1ffd90512fb42991b71332bc76c913b03e262b7bc0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/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=warn" "-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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1e0b61f8f261c71072239005adbd8a1477f648cad647c3742cd57a3051c77247 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "1e0b61f8f261c71072239005adbd8a1477f648cad647c3742cd57a3051c77247", kill_on_drop: false }` [INFO] [stderr] Compiling axum_sessions_auth v1.0.1 (/opt/rustwide/workdir) [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 1.76s [INFO] running `Command { std: "docker" "inspect" "1e0b61f8f261c71072239005adbd8a1477f648cad647c3742cd57a3051c77247", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1e0b61f8f261c71072239005adbd8a1477f648cad647c3742cd57a3051c77247", kill_on_drop: false }` [INFO] [stdout] 1e0b61f8f261c71072239005adbd8a1477f648cad647c3742cd57a3051c77247 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/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=warn" "-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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] eaf04d51372ec27714798fff5314980ba9632f61514bfee4b8fe1e3cb6e7c23d [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "eaf04d51372ec27714798fff5314980ba9632f61514bfee4b8fe1e3cb6e7c23d", kill_on_drop: false }` [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.22s [INFO] [stdout] [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/axum_sessions_auth-5be65a396996def6) [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 axum_sessions_auth [INFO] [stdout] [INFO] [stdout] running 1 test [INFO] [stdout] test src/lib.rs - (line 39) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - (line 39) stdout ---- [INFO] [stdout] error: expected expression, found `]` [INFO] [stdout] --> src/lib.rs:92:73 [INFO] [stdout] | [INFO] [stdout] 55 | return format!("No Permissions! for {}", cur_user.username)[]; [INFO] [stdout] | ^ expected expression [INFO] [stdout] [INFO] [stdout] error[E0706]: functions in traits cannot be declared `async` [INFO] [stdout] --> src/lib.rs:130:5 [INFO] [stdout] | [INFO] [stdout] 93 | async fn has(&self, perm: &String, pool: &Option<&AxumDatabasePool>) -> bool { [INFO] [stdout] | ^---- [INFO] [stdout] | | [INFO] [stdout] | _____`async` because of this [INFO] [stdout] | | [INFO] [stdout] 94 | | match &perm[..] { [INFO] [stdout] 95 | | "Token::UseAdmin" => true, [INFO] [stdout] 96 | | "Token::ModifyUser" => true, [INFO] [stdout] 97 | | _ => false, [INFO] [stdout] 98 | | } [INFO] [stdout] 99 | | } [INFO] [stdout] | |_____^ [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] [INFO] [stdout] error[E0706]: functions in traits cannot be declared `async` [INFO] [stdout] --> src/lib.rs:141:5 [INFO] [stdout] | [INFO] [stdout] 104 | async fn load_user(userid: i64, _pool: Option<&AxumDatabasePool>) -> Result { [INFO] [stdout] | ^---- [INFO] [stdout] | | [INFO] [stdout] | _____`async` because of this [INFO] [stdout] | | [INFO] [stdout] 105 | | Ok(User { [INFO] [stdout] 106 | | id: userid, [INFO] [stdout] 107 | | anonymous: true, [INFO] [stdout] 108 | | username: "Guest".to_string(), [INFO] [stdout] 109 | | }) [INFO] [stdout] 110 | | } [INFO] [stdout] | |_____^ [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] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `axum` [INFO] [stdout] --> src/lib.rs:44:5 [INFO] [stdout] | [INFO] [stdout] 7 | 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:44:5 [INFO] [stdout] | [INFO] [stdout] 7 | 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:68:5 [INFO] [stdout] | [INFO] [stdout] 31 | 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:128:3 [INFO] [stdout] | [INFO] [stdout] 91 | #[async_trait] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this attribute macro: [INFO] [stdout] async_trait::async_trait [INFO] [stdout] = note: `async_trait` is in scope, but it is a crate, not an attribute [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `async_trait` in this scope [INFO] [stdout] --> src/lib.rs:139:3 [INFO] [stdout] | [INFO] [stdout] 102 | #[async_trait] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this attribute macro: [INFO] [stdout] async_trait::async_trait [INFO] [stdout] = note: `async_trait` is in scope, but it is a crate, not an attribute [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `axum` [INFO] [stdout] --> src/lib.rs:69:5 [INFO] [stdout] | [INFO] [stdout] 32 | 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 `Method` [INFO] [stdout] --> src/lib.rs:84:35 [INFO] [stdout] | [INFO] [stdout] 47 | if !Auth::::build(&[Method::Get], false) [INFO] [stdout] | ^^^^^^ use of undeclared type `Method` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `AxumSessionStore` [INFO] [stdout] --> src/lib.rs:58:25 [INFO] [stdout] | [INFO] [stdout] 21 | let session_store = AxumSessionStore::new(Some(poll.clone().into()), session_config); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/github.com-1ecc6299db9ec823/axum_database_sessions-1.0.1/src/session.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct AxumSession { [INFO] [stdout] | ---------------------- similarly named struct `AxumSession` defined here [INFO] [stdout] | [INFO] [stdout] help: a struct with a similar name exists [INFO] [stdout] | [INFO] [stdout] 21 | let session_store = AxumSession::new(Some(poll.clone().into()), session_config); [INFO] [stdout] | ~~~~~~~~~~~ [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 3 | use axum_database_sessions::AxumSessionStore; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `get` in this scope [INFO] [stdout] --> src/lib.rs:62:32 [INFO] [stdout] | [INFO] [stdout] 25 | .route("/greet/:name", get(greet)) [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Method` in this scope [INFO] [stdout] --> src/lib.rs:78:24 [INFO] [stdout] | [INFO] [stdout] 41 | async fn greet(method: Method, session: AxumSession, auth: AuthSession) -> &'static str { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 3 | use http::Method; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `current_user` in this scope [INFO] [stdout] --> src/lib.rs:83:29 [INFO] [stdout] | [INFO] [stdout] 46 | 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:84:13 [INFO] [stdout] | [INFO] [stdout] 47 | if !Auth::::build(&[Method::Get], false) [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 3 | use axum_sessions_auth::Auth; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Rights` [INFO] [stdout] --> src/lib.rs:85:23 [INFO] [stdout] | [INFO] [stdout] 48 | .requires(Rights::none(&[ [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 3 | 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:86:17 [INFO] [stdout] | [INFO] [stdout] 49 | Rights::Permission("Token::UseAdmin".into()), [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 3 | 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:87:17 [INFO] [stdout] | [INFO] [stdout] 50 | Rights::Permission("Token::ModifyPerms".into()), [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 3 | 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:129:6 [INFO] [stdout] | [INFO] [stdout] 92 | impl HasPermission for User { [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this trait [INFO] [stdout] | [INFO] [stdout] 3 | use axum_sessions_auth::HasPermission; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 19 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] [INFO] [stdout] failures: [INFO] [stdout] src/lib.rs - (line 39) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.41s [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass '--doc' [INFO] running `Command { std: "docker" "inspect" "eaf04d51372ec27714798fff5314980ba9632f61514bfee4b8fe1e3cb6e7c23d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "eaf04d51372ec27714798fff5314980ba9632f61514bfee4b8fe1e3cb6e7c23d", kill_on_drop: false }` [INFO] [stdout] eaf04d51372ec27714798fff5314980ba9632f61514bfee4b8fe1e3cb6e7c23d