[INFO] cloning repository https://github.com/SabariKameswaran/Rust-Warp-Authentication [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/SabariKameswaran/Rust-Warp-Authentication" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSabariKameswaran%2FRust-Warp-Authentication", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSabariKameswaran%2FRust-Warp-Authentication'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 69f6207bc4ea404aec84d0a4efd1b12e8658b1c8 [INFO] checking SabariKameswaran/Rust-Warp-Authentication against master#9f432d7b44d5c4ac0ce76fed8315ffac8dcab8f9 for pr-124108 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSabariKameswaran%2FRust-Warp-Authentication" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/SabariKameswaran/Rust-Warp-Authentication on toolchain 9f432d7b44d5c4ac0ce76fed8315ffac8dcab8f9 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+9f432d7b44d5c4ac0ce76fed8315ffac8dcab8f9" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/SabariKameswaran/Rust-Warp-Authentication [INFO] finished tweaking git repo https://github.com/SabariKameswaran/Rust-Warp-Authentication [INFO] tweaked toml for git repo https://github.com/SabariKameswaran/Rust-Warp-Authentication written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/SabariKameswaran/Rust-Warp-Authentication 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" "+9f432d7b44d5c4ac0ce76fed8315ffac8dcab8f9" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [ERROR] error running command: no output for 300 seconds [ERROR] this task or one of its parent failed! [ERROR] no output for 300 seconds [ERROR] note: run with `RUST_BACKTRACE=1` to display a backtrace. [INFO] checking SabariKameswaran/Rust-Warp-Authentication against try#2e5b7739e5167b731ad5eb628f04a54f932f1fe2 for pr-124108 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSabariKameswaran%2FRust-Warp-Authentication" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/SabariKameswaran/Rust-Warp-Authentication on toolchain 2e5b7739e5167b731ad5eb628f04a54f932f1fe2 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+2e5b7739e5167b731ad5eb628f04a54f932f1fe2" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/SabariKameswaran/Rust-Warp-Authentication [INFO] finished tweaking git repo https://github.com/SabariKameswaran/Rust-Warp-Authentication [INFO] tweaked toml for git repo https://github.com/SabariKameswaran/Rust-Warp-Authentication written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/SabariKameswaran/Rust-Warp-Authentication 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" "+2e5b7739e5167b731ad5eb628f04a54f932f1fe2" "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] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:99613afd962a8cfa530ec1899472a458bd015a1ab0af876cf7eb06f6006d81ea" "/opt/rustwide/cargo-home/bin/cargo" "+2e5b7739e5167b731ad5eb628f04a54f932f1fe2" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 88b518c432d0eb10db7dcd0f6845b2c21f65b9fe8a92cc2e93b35304f847e3fe [INFO] running `Command { std: "docker" "start" "-a" "88b518c432d0eb10db7dcd0f6845b2c21f65b9fe8a92cc2e93b35304f847e3fe", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "88b518c432d0eb10db7dcd0f6845b2c21f65b9fe8a92cc2e93b35304f847e3fe", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "88b518c432d0eb10db7dcd0f6845b2c21f65b9fe8a92cc2e93b35304f847e3fe", kill_on_drop: false }` [INFO] [stdout] 88b518c432d0eb10db7dcd0f6845b2c21f65b9fe8a92cc2e93b35304f847e3fe [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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" "-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:99613afd962a8cfa530ec1899472a458bd015a1ab0af876cf7eb06f6006d81ea" "/opt/rustwide/cargo-home/bin/cargo" "+2e5b7739e5167b731ad5eb628f04a54f932f1fe2" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 5a8d122fcea5ecec4664bd22cf37d168ae495e08ebe0cdbdd97f177dca1eac0a [INFO] running `Command { std: "docker" "start" "-a" "5a8d122fcea5ecec4664bd22cf37d168ae495e08ebe0cdbdd97f177dca1eac0a", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.79 [INFO] [stderr] Compiling serde v1.0.197 [INFO] [stderr] Compiling cc v1.0.92 [INFO] [stderr] Compiling getrandom v0.2.14 [INFO] [stderr] Checking subtle v2.5.0 [INFO] [stderr] Compiling thiserror v1.0.58 [INFO] [stderr] Compiling typenum v1.17.0 [INFO] [stderr] Checking log v0.4.21 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Compiling crossbeam-utils v0.8.19 [INFO] [stderr] Compiling serde_json v1.0.115 [INFO] [stderr] Compiling num-traits v0.2.18 [INFO] [stderr] Compiling once_cell v1.19.0 [INFO] [stderr] Compiling rustls v0.21.10 [INFO] [stderr] Checking mio v0.8.11 [INFO] [stderr] Compiling tinyvec_macros v0.1.1 [INFO] [stderr] Checking spin v0.9.8 [INFO] [stderr] Compiling tinyvec v1.6.0 [INFO] [stderr] Checking unicode-normalization v0.1.23 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Checking futures-io v0.3.30 [INFO] [stderr] Compiling quote v1.0.35 [INFO] [stderr] Compiling zerocopy v0.7.32 [INFO] [stderr] Compiling syn v2.0.58 [INFO] [stderr] Compiling untrusted v0.9.0 [INFO] [stderr] Checking unicode-bidi v0.3.15 [INFO] [stderr] Checking allocator-api2 v0.2.16 [INFO] [stderr] Compiling ring v0.17.8 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling futures-core v0.3.30 [INFO] [stderr] Checking hashbrown v0.14.3 [INFO] [stderr] Compiling ahash v0.8.11 [INFO] [stderr] Checking futures-util v0.3.30 [INFO] [stderr] Compiling memchr v2.7.2 [INFO] [stderr] Compiling smallvec v1.13.2 [INFO] [stderr] Compiling scopeguard v1.2.0 [INFO] [stderr] Compiling lock_api v0.4.11 [INFO] [stderr] Compiling parking_lot_core v0.9.9 [INFO] [stderr] Checking idna v0.5.0 [INFO] [stderr] Compiling socket2 v0.5.6 [INFO] [stderr] Compiling minimal-lexical v0.2.1 [INFO] [stderr] Compiling futures-sink v0.3.30 [INFO] [stderr] Compiling percent-encoding v2.3.1 [INFO] [stderr] Checking indexmap v2.2.6 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Compiling form_urlencoded v1.2.1 [INFO] [stderr] Compiling tokio v1.37.0 [INFO] [stderr] Checking url v2.5.0 [INFO] [stderr] Compiling parking_lot v0.12.1 [INFO] [stderr] Compiling tracing-core v0.1.32 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling pin-utils v0.1.0 [INFO] [stderr] Compiling bitflags v2.5.0 [INFO] [stderr] Compiling futures-task v0.3.30 [INFO] [stderr] Compiling crc-catalog v2.4.0 [INFO] [stderr] Compiling base64 v0.21.7 [INFO] [stderr] Compiling ppv-lite86 v0.2.17 [INFO] [stderr] Compiling rustix v0.38.32 [INFO] [stderr] Compiling rustls-webpki v0.101.7 [INFO] [stderr] Compiling sct v0.7.1 [INFO] [stderr] Compiling ryu v1.0.17 [INFO] [stderr] Compiling equivalent v1.0.1 [INFO] [stderr] Compiling iana-time-zone v0.1.60 [INFO] [stderr] Compiling cpufeatures v0.2.12 [INFO] [stderr] Compiling unicode_categories v0.1.1 [INFO] [stderr] Compiling sha2 v0.10.8 [INFO] [stderr] Compiling chrono v0.4.37 [INFO] [stderr] Compiling serde_derive v1.0.197 [INFO] [stderr] Compiling thiserror-impl v1.0.58 [INFO] [stderr] Compiling tracing-attributes v0.1.27 [INFO] [stderr] Compiling tokio-macros v2.2.0 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling tokio-stream v0.1.15 [INFO] [stderr] Compiling rustls-pemfile v1.0.4 [INFO] [stderr] Compiling crc v3.2.1 [INFO] [stderr] Checking tracing v0.1.40 [INFO] [stderr] Compiling crossbeam-queue v0.3.11 [INFO] [stderr] Compiling futures-intrusive v0.5.0 [INFO] [stderr] Compiling atoi v2.0.0 [INFO] [stderr] Compiling futures-channel v0.3.30 [INFO] [stderr] Compiling hashlink v0.8.4 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling webpki-roots v0.25.4 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling linux-raw-sys v0.4.13 [INFO] [stderr] Compiling byteorder v1.5.0 [INFO] [stderr] Compiling event-listener v2.5.3 [INFO] [stderr] Compiling uuid v1.8.0 [INFO] [stderr] Compiling hex v0.4.3 [INFO] [stderr] Compiling finl_unicode v1.2.0 [INFO] [stderr] Compiling time-macros v0.2.17 [INFO] [stderr] Compiling hkdf v0.12.4 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling stringprep v0.1.4 [INFO] [stderr] Compiling md-5 v0.10.6 [INFO] [stderr] Checking sha1 v0.10.6 [INFO] [stderr] Compiling num-bigint v0.4.4 [INFO] [stderr] Compiling unicode-segmentation v1.11.0 [INFO] [stderr] Compiling dotenvy v0.15.7 [INFO] [stderr] Compiling fastrand v2.0.2 [INFO] [stderr] Checking regex-syntax v0.8.3 [INFO] [stderr] Compiling whoami v1.5.1 [INFO] [stderr] Compiling home v0.5.9 [INFO] [stderr] Checking time v0.3.34 [INFO] [stderr] Checking tokio-util v0.7.10 [INFO] [stderr] Compiling tempfile v3.10.1 [INFO] [stderr] Compiling heck v0.4.1 [INFO] [stderr] Checking regex-automata v0.4.6 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Checking http v1.1.0 [INFO] [stderr] Checking either v1.10.0 [INFO] [stderr] Checking itertools v0.12.1 [INFO] [stderr] Compiling multer v2.1.0 [INFO] [stderr] Checking try-lock v0.2.5 [INFO] [stderr] Checking regex v1.10.4 [INFO] [stderr] Checking want v0.3.1 [INFO] [stderr] Checking tungstenite v0.21.0 [INFO] [stderr] Checking h2 v0.3.26 [INFO] [stderr] Compiling pin-project-internal v1.1.5 [INFO] [stderr] Checking sqlformat v0.2.3 [INFO] [stderr] Checking http-body v0.4.6 [INFO] [stderr] Checking headers-core v0.2.0 [INFO] [stderr] Checking encoding_rs v0.8.33 [INFO] [stderr] Compiling cookie v0.18.1 [INFO] [stderr] Checking base64 v0.22.0 [INFO] [stderr] Checking base64ct v1.6.0 [INFO] [stderr] Checking anstream v0.6.13 [INFO] [stderr] Checking password-hash v0.5.0 [INFO] [stderr] Checking pem v3.0.4 [INFO] [stderr] Checking simple_asn1 v0.6.2 [INFO] [stderr] Checking pin-project v1.1.5 [INFO] [stderr] Checking headers v0.3.9 [INFO] [stderr] Checking tokio-tungstenite v0.21.0 [INFO] [stderr] Checking env_filter v0.1.0 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking blake2 v0.10.6 [INFO] [stderr] Checking scoped-tls v1.0.1 [INFO] [stderr] Checking humantime v2.1.0 [INFO] [stderr] Checking jsonwebtoken v9.3.0 [INFO] [stderr] Checking env_logger v0.11.3 [INFO] [stderr] Checking argon2 v0.5.3 [INFO] [stderr] Checking dotenv v0.15.0 [INFO] [stderr] Checking sqlx-core v0.7.4 [INFO] [stderr] Checking hyper v0.14.28 [INFO] [stderr] Checking sqlx-postgres v0.7.4 [INFO] [stderr] Checking warp v0.3.7 [INFO] [stderr] Compiling sqlx-macros-core v0.7.4 [INFO] [stderr] Compiling sqlx-macros v0.7.4 [INFO] [stderr] Checking sqlx v0.7.4 [INFO] [stderr] Checking cookie_auth v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0252]: the name `HeaderValue` is defined multiple times [INFO] [stdout] --> src/main.rs:102:26 [INFO] [stdout] | [INFO] [stdout] 98 | use crate::HeaderValue; [INFO] [stdout] | ------------------ previous import of the type `HeaderValue` here [INFO] [stdout] ... [INFO] [stdout] 102 | http::header::{self, HeaderValue}, [INFO] [stdout] | ^^^^^^^^^^^ `HeaderValue` reimported here [INFO] [stdout] | [INFO] [stdout] = note: `HeaderValue` must be defined only once in the type namespace of this module [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0252]: the name `HeaderValue` is defined multiple times [INFO] [stdout] --> src/main.rs:102:26 [INFO] [stdout] | [INFO] [stdout] 98 | use crate::HeaderValue; [INFO] [stdout] | ------------------ previous import of the type `HeaderValue` here [INFO] [stdout] ... [INFO] [stdout] 102 | http::header::{self, HeaderValue}, [INFO] [stdout] | ^^^^^^^^^^^ `HeaderValue` reimported here [INFO] [stdout] | [INFO] [stdout] = note: `HeaderValue` must be defined only once in the type namespace of this module [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: error communicating with database: Connection refused (os error 111) [INFO] [stdout] --> src/jwt_auth.rs:64:28 [INFO] [stdout] | [INFO] [stdout] 64 | let is_valid = sqlx::query_as!( [INFO] [stdout] | ____________________________^ [INFO] [stdout] 65 | | User, [INFO] [stdout] 66 | | "SELECT * FROM users WHERE id = $1 AND token = $2", [INFO] [stdout] 67 | | user_id.to_string(), [INFO] [stdout] 68 | | token [INFO] [stdout] 69 | | ) [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_as` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: error communicating with database: Connection refused (os error 111) [INFO] [stdout] --> src/jwt_auth.rs:64:28 [INFO] [stdout] | [INFO] [stdout] 64 | let is_valid = sqlx::query_as!( [INFO] [stdout] | ____________________________^ [INFO] [stdout] 65 | | User, [INFO] [stdout] 66 | | "SELECT * FROM users WHERE id = $1 AND token = $2", [INFO] [stdout] 67 | | user_id.to_string(), [INFO] [stdout] 68 | | token [INFO] [stdout] 69 | | ) [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_as` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `warp::cookie::cookies` [INFO] [stdout] --> src/jwt_auth.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | cookie::cookies, http::header::SET_COOKIE, reject, reply, Filter, Rejection, Reply, [INFO] [stdout] | ^^^^^^^^------- [INFO] [stdout] | | | [INFO] [stdout] | | help: a similar name exists in the module: `cookie` [INFO] [stdout] | no `cookies` in `filters::cookie` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `crate::response::ErrorResponse` [INFO] [stdout] --> src/jwt_auth.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use crate::response::ErrorResponse; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^------------- [INFO] [stdout] | | | [INFO] [stdout] | | help: a similar name exists in the module: `UserResponse` [INFO] [stdout] | no `ErrorResponse` in `response` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `warp::cookie::cookies` [INFO] [stdout] --> src/jwt_auth.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | cookie::cookies, http::header::SET_COOKIE, reject, reply, Filter, Rejection, Reply, [INFO] [stdout] | ^^^^^^^^------- [INFO] [stdout] | | | [INFO] [stdout] | | help: a similar name exists in the module: `cookie` [INFO] [stdout] | no `cookies` in `filters::cookie` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `crate::response::ErrorResponse` [INFO] [stdout] --> src/jwt_auth.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use crate::response::ErrorResponse; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^------------- [INFO] [stdout] | | | [INFO] [stdout] | | help: a similar name exists in the module: `UserResponse` [INFO] [stdout] | no `ErrorResponse` in `response` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Duration` [INFO] [stdout] --> src/handler.rs:265:14 [INFO] [stdout] | [INFO] [stdout] 265 | use chrono::{Duration, Utc}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Duration` [INFO] [stdout] --> src/handler.rs:265:14 [INFO] [stdout] | [INFO] [stdout] 265 | use chrono::{Duration, Utc}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `EncodingKey`, `Header`, `encode` [INFO] [stdout] --> src/handler.rs:269:28 [INFO] [stdout] | [INFO] [stdout] 269 | use jsonwebtoken::{decode, encode, DecodingKey, EncodingKey, Header, Validation}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::convert::Infallible` [INFO] [stdout] --> src/handler.rs:272:5 [INFO] [stdout] | [INFO] [stdout] 272 | use std::convert::Infallible; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `reject` [INFO] [stdout] --> src/handler.rs:275:31 [INFO] [stdout] | [INFO] [stdout] 275 | http::header::SET_COOKIE, reject, reply, Filter, Rejection, Reply, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `EncodingKey`, `Header`, `encode` [INFO] [stdout] --> src/handler.rs:269:28 [INFO] [stdout] | [INFO] [stdout] 269 | use jsonwebtoken::{decode, encode, DecodingKey, EncodingKey, Header, Validation}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `User` [INFO] [stdout] --> src/handler.rs:279:33 [INFO] [stdout] | [INFO] [stdout] 279 | use crate::model::{TokenClaims, User}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Duration`, `Utc` [INFO] [stdout] --> src/jwt_auth.rs:1:14 [INFO] [stdout] | [INFO] [stdout] 1 | use chrono::{Duration, Utc}; [INFO] [stdout] | ^^^^^^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::convert::Infallible` [INFO] [stdout] --> src/handler.rs:272:5 [INFO] [stdout] | [INFO] [stdout] 272 | use std::convert::Infallible; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `reject` [INFO] [stdout] --> src/handler.rs:275:31 [INFO] [stdout] | [INFO] [stdout] 275 | http::header::SET_COOKIE, reject, reply, Filter, Rejection, Reply, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `EncodingKey`, `Header`, `encode` [INFO] [stdout] --> src/jwt_auth.rs:3:28 [INFO] [stdout] | [INFO] [stdout] 3 | use jsonwebtoken::{decode, encode, DecodingKey, EncodingKey, Header, TokenData, Validation}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Deserialize`, `Serialize` [INFO] [stdout] --> src/jwt_auth.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `User` [INFO] [stdout] --> src/handler.rs:279:33 [INFO] [stdout] | [INFO] [stdout] 279 | use crate::model::{TokenClaims, User}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::convert::Infallible` [INFO] [stdout] --> src/jwt_auth.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::convert::Infallible; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Duration`, `Utc` [INFO] [stdout] --> src/jwt_auth.rs:1:14 [INFO] [stdout] | [INFO] [stdout] 1 | use chrono::{Duration, Utc}; [INFO] [stdout] | ^^^^^^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Reply`, `http::header::SET_COOKIE`, `reject`, `reply` [INFO] [stdout] --> src/jwt_auth.rs:9:22 [INFO] [stdout] | [INFO] [stdout] 9 | cookie::cookies, http::header::SET_COOKIE, reject, reply, Filter, Rejection, Reply, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^ ^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `EncodingKey`, `Header`, `encode` [INFO] [stdout] --> src/jwt_auth.rs:3:28 [INFO] [stdout] | [INFO] [stdout] 3 | use jsonwebtoken::{decode, encode, DecodingKey, EncodingKey, Header, TokenData, Validation}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Deserialize`, `Serialize` [INFO] [stdout] --> src/jwt_auth.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `User` [INFO] [stdout] --> src/jwt_auth.rs:13:33 [INFO] [stdout] | [INFO] [stdout] 13 | use crate::model::{TokenClaims, User}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::convert::Infallible` [INFO] [stdout] --> src/jwt_auth.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::convert::Infallible; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::HeaderValue` [INFO] [stdout] --> src/main.rs:98:5 [INFO] [stdout] | [INFO] [stdout] 98 | use crate::HeaderValue; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Rejection` [INFO] [stdout] --> src/main.rs:103:20 [INFO] [stdout] | [INFO] [stdout] 103 | Filter, Reply, Rejection, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Reply`, `http::header::SET_COOKIE`, `reject`, `reply` [INFO] [stdout] --> src/jwt_auth.rs:9:22 [INFO] [stdout] | [INFO] [stdout] 9 | cookie::cookies, http::header::SET_COOKIE, reject, reply, Filter, Rejection, Reply, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^ ^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `User` [INFO] [stdout] --> src/jwt_auth.rs:13:33 [INFO] [stdout] | [INFO] [stdout] 13 | use crate::model::{TokenClaims, User}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::HeaderValue` [INFO] [stdout] --> src/main.rs:98:5 [INFO] [stdout] | [INFO] [stdout] 98 | use crate::HeaderValue; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Rejection` [INFO] [stdout] --> src/main.rs:103:20 [INFO] [stdout] | [INFO] [stdout] 103 | Filter, Reply, Rejection, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `app_state` [INFO] [stdout] --> src/main.rs:113:19 [INFO] [stdout] | [INFO] [stdout] 113 | async fn checking(app_state: AppState) -> Result { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_app_state` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `app_state` [INFO] [stdout] --> src/main.rs:113:19 [INFO] [stdout] | [INFO] [stdout] 113 | async fn checking(app_state: AppState) -> Result { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_app_state` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0423]: expected function, tuple struct or tuple variant, found struct `Cookie` [INFO] [stdout] --> src/handler.rs:292:5 [INFO] [stdout] | [INFO] [stdout] 292 | Cookie () [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/cookie-0.18.1/src/lib.rs:215:1 [INFO] [stdout] | [INFO] [stdout] 215 | pub struct Cookie<'c> { [INFO] [stdout] | --------------------- `Cookie` defined here [INFO] [stdout] | [INFO] [stdout] help: you might have meant to use an associated function to build this type [INFO] [stdout] | [INFO] [stdout] 292 | Cookie::new(_, _) [INFO] [stdout] | ~~~~~~~~~~~ [INFO] [stdout] 292 | Cookie::named(_) [INFO] [stdout] | ~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0423]: expected function, tuple struct or tuple variant, found struct `Cookie` [INFO] [stdout] --> src/handler.rs:292:5 [INFO] [stdout] | [INFO] [stdout] 292 | Cookie () [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/cookie-0.18.1/src/lib.rs:215:1 [INFO] [stdout] | [INFO] [stdout] 215 | pub struct Cookie<'c> { [INFO] [stdout] | --------------------- `Cookie` defined here [INFO] [stdout] | [INFO] [stdout] help: you might have meant to use an associated function to build this type [INFO] [stdout] | [INFO] [stdout] 292 | Cookie::new(_, _) [INFO] [stdout] | ~~~~~~~~~~~ [INFO] [stdout] 292 | Cookie::named(_) [INFO] [stdout] | ~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `config` [INFO] [stdout] --> src/handler.rs:330:5 [INFO] [stdout] | [INFO] [stdout] 330 | config: Config, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_config` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `config` [INFO] [stdout] --> src/handler.rs:330:5 [INFO] [stdout] | [INFO] [stdout] 330 | config: Config, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_config` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Method: TryFrom` is not satisfied [INFO] [stdout] --> src/main.rs:151:24 [INFO] [stdout] | [INFO] [stdout] 151 | .allow_methods(vec![ [INFO] [stdout] | __________-------------_^ [INFO] [stdout] | | | [INFO] [stdout] | | required by a bound introduced by this call [INFO] [stdout] 152 | | HeaderValue::from_static("GET"), [INFO] [stdout] 153 | | HeaderValue::from_static("POST"), [INFO] [stdout] 154 | | HeaderValue::from_static("DELETE"), [INFO] [stdout] 155 | | ]) [INFO] [stdout] | |_________^ the trait `From` is not implemented for `Method`, which is required by `Method: TryFrom` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `From`: [INFO] [stdout] > [INFO] [stdout] > [INFO] [stdout] = note: required for `HeaderValue` to implement `Into` [INFO] [stdout] = note: required for `Method` to implement `TryFrom` [INFO] [stdout] note: required by a bound in `warp::cors::Builder::allow_methods` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/warp-0.3.7/src/filters/cors.rs:105:23 [INFO] [stdout] | [INFO] [stdout] 102 | pub fn allow_methods(mut self, methods: I) -> Self [INFO] [stdout] | ------------- required by a bound in this associated function [INFO] [stdout] ... [INFO] [stdout] 105 | http::Method: TryFrom, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ required by this bound in `Builder::allow_methods` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Method: TryFrom` is not satisfied [INFO] [stdout] --> src/main.rs:151:24 [INFO] [stdout] | [INFO] [stdout] 151 | .allow_methods(vec![ [INFO] [stdout] | __________-------------_^ [INFO] [stdout] | | | [INFO] [stdout] | | required by a bound introduced by this call [INFO] [stdout] 152 | | HeaderValue::from_static("GET"), [INFO] [stdout] 153 | | HeaderValue::from_static("POST"), [INFO] [stdout] 154 | | HeaderValue::from_static("DELETE"), [INFO] [stdout] 155 | | ]) [INFO] [stdout] | |_________^ the trait `From` is not implemented for `Method`, which is required by `Method: TryFrom` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `From`: [INFO] [stdout] > [INFO] [stdout] > [INFO] [stdout] = note: required for `HeaderValue` to implement `Into` [INFO] [stdout] = note: required for `Method` to implement `TryFrom` [INFO] [stdout] note: required by a bound in `warp::cors::Builder::allow_methods` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/warp-0.3.7/src/filters/cors.rs:105:23 [INFO] [stdout] | [INFO] [stdout] 102 | pub fn allow_methods(mut self, methods: I) -> Self [INFO] [stdout] | ------------- required by a bound in this associated function [INFO] [stdout] ... [INFO] [stdout] 105 | http::Method: TryFrom, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ required by this bound in `Builder::allow_methods` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `warp::cors::Builder: warp::filter::FilterBase` is not satisfied [INFO] [stdout] --> src/main.rs:168:10 [INFO] [stdout] | [INFO] [stdout] 168 | .and(cors) [INFO] [stdout] | ^^^ the trait `warp::filter::FilterBase` is not implemented for `warp::cors::Builder` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `warp::filter::FilterBase`: [INFO] [stdout] BoxedFilter [INFO] [stdout] Exact

[INFO] [stdout] FormOptions [INFO] [stdout] cors::internal::CorsFilter [INFO] [stdout] log::internal::WithLog [INFO] [stdout] trace::internal::WithTrace [INFO] [stdout] warp::filter::and::And [INFO] [stdout] warp::filter::and_then::AndThen [INFO] [stdout] and 8 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `warp::cors::Builder: warp::filter::FilterBase` is not satisfied [INFO] [stdout] --> src/main.rs:168:10 [INFO] [stdout] | [INFO] [stdout] 168 | .and(cors) [INFO] [stdout] | ^^^ the trait `warp::filter::FilterBase` is not implemented for `warp::cors::Builder` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `warp::filter::FilterBase`: [INFO] [stdout] BoxedFilter [INFO] [stdout] Exact

[INFO] [stdout] FormOptions [INFO] [stdout] cors::internal::CorsFilter [INFO] [stdout] log::internal::WithLog [INFO] [stdout] trace::internal::WithTrace [INFO] [stdout] warp::filter::and::And [INFO] [stdout] warp::filter::and_then::AndThen [INFO] [stdout] and 8 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `and` exists for struct `And>, impl Filter + FilterBase + Clone>, ...>`, but its trait bounds were not satisfied [INFO] [stdout] --> src/main.rs:169:10 [INFO] [stdout] | [INFO] [stdout] 163 | let routes = warp::path("api") [INFO] [stdout] | __________________- [INFO] [stdout] 164 | | .and(with_appstate(AppState { [INFO] [stdout] 165 | | db: pool, [INFO] [stdout] 166 | | env: config, [INFO] [stdout] 167 | | })) [INFO] [stdout] 168 | | .and(cors) [INFO] [stdout] 169 | | .and(routes(pool, config)); [INFO] [stdout] | | -^^^ method cannot be called due to unsatisfied trait bounds [INFO] [stdout] | |_________| [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/warp-0.3.7/src/filter/and.rs:13:1 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct And { [INFO] [stdout] | -------------------- doesn't satisfy `_: FilterBase` or `_: Filter` [INFO] [stdout] | [INFO] [stdout] = note: the full type name has been written to '/opt/rustwide/target/debug/deps/cookie_auth-2a1bb5871da5e344.long-type-2412179268539706611.txt' [INFO] [stdout] = note: consider using `--verbose` to print the full type name to the console [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `warp::filter::and::And>, impl warp::Filter + warp::filter::FilterBase + Clone>, warp::cors::Builder>: warp::filter::FilterBase` [INFO] [stdout] which is required by `warp::filter::and::And>, impl warp::Filter + warp::filter::FilterBase + Clone>, warp::cors::Builder>: warp::Filter` [INFO] [stdout] `&warp::filter::and::And>, impl warp::Filter + warp::filter::FilterBase + Clone>, warp::cors::Builder>: warp::filter::FilterBase` [INFO] [stdout] which is required by `&warp::filter::and::And>, impl warp::Filter + warp::filter::FilterBase + Clone>, warp::cors::Builder>: warp::Filter` [INFO] [stdout] `&mut warp::filter::and::And>, impl warp::Filter + warp::filter::FilterBase + Clone>, warp::cors::Builder>: warp::filter::FilterBase` [INFO] [stdout] which is required by `&mut warp::filter::and::And>, impl warp::Filter + warp::filter::FilterBase + Clone>, warp::cors::Builder>: warp::Filter` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `and` exists for struct `And>, impl Filter + FilterBase + Clone>, ...>`, but its trait bounds were not satisfied [INFO] [stdout] --> src/main.rs:169:10 [INFO] [stdout] | [INFO] [stdout] 163 | let routes = warp::path("api") [INFO] [stdout] | __________________- [INFO] [stdout] 164 | | .and(with_appstate(AppState { [INFO] [stdout] 165 | | db: pool, [INFO] [stdout] 166 | | env: config, [INFO] [stdout] 167 | | })) [INFO] [stdout] 168 | | .and(cors) [INFO] [stdout] 169 | | .and(routes(pool, config)); [INFO] [stdout] | | -^^^ method cannot be called due to unsatisfied trait bounds [INFO] [stdout] | |_________| [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/warp-0.3.7/src/filter/and.rs:13:1 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct And { [INFO] [stdout] | -------------------- doesn't satisfy `_: FilterBase` or `_: Filter` [INFO] [stdout] | [INFO] [stdout] = note: the full type name has been written to '/opt/rustwide/target/debug/deps/cookie_auth-6bcd5d210af04977.long-type-7085151375248044428.txt' [INFO] [stdout] = note: consider using `--verbose` to print the full type name to the console [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `warp::filter::and::And>, impl warp::Filter + warp::filter::FilterBase + Clone>, warp::cors::Builder>: warp::filter::FilterBase` [INFO] [stdout] which is required by `warp::filter::and::And>, impl warp::Filter + warp::filter::FilterBase + Clone>, warp::cors::Builder>: warp::Filter` [INFO] [stdout] `&warp::filter::and::And>, impl warp::Filter + warp::filter::FilterBase + Clone>, warp::cors::Builder>: warp::filter::FilterBase` [INFO] [stdout] which is required by `&warp::filter::and::And>, impl warp::Filter + warp::filter::FilterBase + Clone>, warp::cors::Builder>: warp::Filter` [INFO] [stdout] `&mut warp::filter::and::And>, impl warp::Filter + warp::filter::FilterBase + Clone>, warp::cors::Builder>: warp::filter::FilterBase` [INFO] [stdout] which is required by `&mut warp::filter::and::And>, impl warp::Filter + warp::filter::FilterBase + Clone>, warp::cors::Builder>: warp::Filter` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 8 previous errors; 15 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0252, E0277, E0423, E0432, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0252`. [INFO] [stdout] [INFO] [stdout] error: aborting due to 8 previous errors; 15 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0252, E0277, E0423, E0432, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0252`. [INFO] [stdout] [INFO] [stderr] error: could not compile `cookie_auth` (bin "cookie_auth" test) due to 9 previous errors; 15 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `cookie_auth` (bin "cookie_auth") due to 9 previous errors; 15 warnings emitted [INFO] running `Command { std: "docker" "inspect" "5a8d122fcea5ecec4664bd22cf37d168ae495e08ebe0cdbdd97f177dca1eac0a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5a8d122fcea5ecec4664bd22cf37d168ae495e08ebe0cdbdd97f177dca1eac0a", kill_on_drop: false }` [INFO] [stdout] 5a8d122fcea5ecec4664bd22cf37d168ae495e08ebe0cdbdd97f177dca1eac0a