[INFO] cloning repository https://github.com/Speccy-Rom/rust_rocket_mongo [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Speccy-Rom/rust_rocket_mongo" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSpeccy-Rom%2Frust_rocket_mongo", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSpeccy-Rom%2Frust_rocket_mongo'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] f28c6810ce12dd55176a1c6d1ec420742f1365ef [INFO] checking Speccy-Rom/rust_rocket_mongo against master#bd71213cf0a765705e7d72a099151bd4eb465ccb for pr-123864 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSpeccy-Rom%2Frust_rocket_mongo" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Speccy-Rom/rust_rocket_mongo on toolchain bd71213cf0a765705e7d72a099151bd4eb465ccb [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+bd71213cf0a765705e7d72a099151bd4eb465ccb" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Speccy-Rom/rust_rocket_mongo [INFO] finished tweaking git repo https://github.com/Speccy-Rom/rust_rocket_mongo [INFO] tweaked toml for git repo https://github.com/Speccy-Rom/rust_rocket_mongo written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/Speccy-Rom/rust_rocket_mongo 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" "+bd71213cf0a765705e7d72a099151bd4eb465ccb" "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 [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 Speccy-Rom/rust_rocket_mongo against try#c0f799aeda763fc507814da0dc46c2dde7ca9133 for pr-123864 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSpeccy-Rom%2Frust_rocket_mongo" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Speccy-Rom/rust_rocket_mongo on toolchain c0f799aeda763fc507814da0dc46c2dde7ca9133 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c0f799aeda763fc507814da0dc46c2dde7ca9133" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Speccy-Rom/rust_rocket_mongo [INFO] finished tweaking git repo https://github.com/Speccy-Rom/rust_rocket_mongo [INFO] tweaked toml for git repo https://github.com/Speccy-Rom/rust_rocket_mongo written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/Speccy-Rom/rust_rocket_mongo 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" "+c0f799aeda763fc507814da0dc46c2dde7ca9133" "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-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+c0f799aeda763fc507814da0dc46c2dde7ca9133" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 982bb59e2081b5ab230977ab279e1c69f383dd38544b637cb754d1198c7d45de [INFO] running `Command { std: "docker" "start" "-a" "982bb59e2081b5ab230977ab279e1c69f383dd38544b637cb754d1198c7d45de", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "982bb59e2081b5ab230977ab279e1c69f383dd38544b637cb754d1198c7d45de", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "982bb59e2081b5ab230977ab279e1c69f383dd38544b637cb754d1198c7d45de", kill_on_drop: false }` [INFO] [stdout] 982bb59e2081b5ab230977ab279e1c69f383dd38544b637cb754d1198c7d45de [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+c0f799aeda763fc507814da0dc46c2dde7ca9133" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6e8c0c4625fe003b4904c0b8a8e3e0a58fb6bff2075caae851a0785cebda49d2 [INFO] running `Command { std: "docker" "start" "-a" "6e8c0c4625fe003b4904c0b8a8e3e0a58fb6bff2075caae851a0785cebda49d2", kill_on_drop: false }` [INFO] [stderr] Checking rust_rocket_mongo_ v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0463]: can't find crate for `rocket` [INFO] [stdout] --> src/lib.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | extern crate rocket; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ can't find crate [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `crate::error::Error` [INFO] [stdout] --> src/server/mod.rs:5:46 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::{controllers, db::MongodbBackend, error::Error, Result}; [INFO] [stdout] | ^^^^^^^^^^^^ no `Error` in `error` [INFO] [stdout] | [INFO] [stdout] = help: consider importing one of these items instead: [INFO] [stdout] core::error::Error [INFO] [stdout] core::fmt::Error [INFO] [stdout] std::error::Error [INFO] [stdout] std::fmt::Error [INFO] [stdout] std::io::Error [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `openssl` [INFO] [stdout] --> src/secure/cert.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use openssl::{ [INFO] [stdout] | ^^^^^^^ use of undeclared crate or module `openssl` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `crate::error::Error` [INFO] [stdout] --> src/server/config.rs:2:13 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::{error::Error, secure::cert::generate_cert}; [INFO] [stdout] | ^^^^^^^^^^^^ no `Error` in `error` [INFO] [stdout] | [INFO] [stdout] = help: consider importing one of these items instead: [INFO] [stdout] core::error::Error [INFO] [stdout] core::fmt::Error [INFO] [stdout] crate::server::Error [INFO] [stdout] std::error::Error [INFO] [stdout] std::fmt::Error [INFO] [stdout] std::io::Error [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `crate::error::Error` [INFO] [stdout] --> src/secure/guards/user.rs:12:33 [INFO] [stdout] | [INFO] [stdout] 12 | use crate::{db::MongodbBackend, error::Error, models::user::User}; [INFO] [stdout] | ^^^^^^^^^^^^ no `Error` in `error` [INFO] [stdout] | [INFO] [stdout] = help: consider importing one of these items instead: [INFO] [stdout] core::error::Error [INFO] [stdout] core::fmt::Error [INFO] [stdout] std::error::Error [INFO] [stdout] std::fmt::Error [INFO] [stdout] std::io::Error [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `crate::error::Error` [INFO] [stdout] --> src/secure/guards/mod.rs:11:33 [INFO] [stdout] | [INFO] [stdout] 11 | use crate::{db::MongodbBackend, error::Error, models::user::User}; [INFO] [stdout] | ^^^^^^^^^^^^ no `Error` in `error` [INFO] [stdout] | [INFO] [stdout] = help: consider importing one of these items instead: [INFO] [stdout] core::error::Error [INFO] [stdout] core::fmt::Error [INFO] [stdout] std::error::Error [INFO] [stdout] std::fmt::Error [INFO] [stdout] std::io::Error [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0463]: can't find crate for `rocket` [INFO] [stdout] --> src/lib.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | extern crate rocket; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ can't find crate [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `serde` [INFO] [stdout] --> src/controllers/mod.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use serde::Serialize; [INFO] [stdout] | ^^^^^ use of undeclared crate or module `serde` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `crate::error::Error` [INFO] [stdout] --> src/controllers/mod.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::error::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ no `Error` in `error` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items instead [INFO] [stdout] | [INFO] [stdout] 7 | use core::error::Error; [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~ [INFO] [stdout] 7 | use core::fmt::Error; [INFO] [stdout] | ~~~~~~~~~~~~~~~~ [INFO] [stdout] 7 | use std::error::Error; [INFO] [stdout] | ~~~~~~~~~~~~~~~~~ [INFO] [stdout] 7 | use std::fmt::Error; [INFO] [stdout] | ~~~~~~~~~~~~~~~ [INFO] [stdout] and 1 other candidate [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `chrono` [INFO] [stdout] --> src/db/mod.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use chrono::offset::Utc; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `chrono` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `mongodb` [INFO] [stdout] --> src/db/mod.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use mongodb::{bson::doc, results::DeleteResult, Client, Collection}; [INFO] [stdout] | ^^^^^^^ use of undeclared crate or module `mongodb` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `crate::error::Error` [INFO] [stdout] --> src/db/mod.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | error::Error, [INFO] [stdout] | ^^^^^^^^^^^^ no `Error` in `error` [INFO] [stdout] | [INFO] [stdout] = help: consider importing one of these items instead: [INFO] [stdout] core::error::Error [INFO] [stdout] core::fmt::Error [INFO] [stdout] std::error::Error [INFO] [stdout] std::fmt::Error [INFO] [stdout] std::io::Error [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `mongodb` [INFO] [stdout] --> src/db/mod.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use mongodb::{bson::doc, results::DeleteResult, Client, Collection}; [INFO] [stdout] | ^^^^^^^ use of undeclared crate or module `mongodb` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `mongodb` [INFO] [stdout] --> src/db/mod.rs:86:13 [INFO] [stdout] | [INFO] [stdout] 86 | use mongodb::options::{FindOneAndUpdateOptions, ReturnDocument}; [INFO] [stdout] | ^^^^^^^ use of undeclared crate or module `mongodb` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `futures` [INFO] [stdout] --> src/db/mod.rs:115:13 [INFO] [stdout] | [INFO] [stdout] 115 | use futures::stream::TryStreamExt; [INFO] [stdout] | ^^^^^^^ use of undeclared crate or module `futures` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `uuid` [INFO] [stdout] --> src/db/mod.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use uuid::Uuid; [INFO] [stdout] | ^^^^ use of undeclared crate or module `uuid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `clap` [INFO] [stdout] --> src/server/mod.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use clap::Parser; [INFO] [stdout] | ^^^^ use of undeclared crate or module `clap` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `serde` [INFO] [stdout] --> src/server/config.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use serde::{de, Deserialize, Deserializer}; [INFO] [stdout] | ^^^^^ use of undeclared crate or module `serde` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `derive_more` [INFO] [stdout] --> src/secure/guards/user.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use derive_more::Deref; [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared crate or module `derive_more` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `serde` [INFO] [stdout] --> src/secure/guards/user.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^ use of undeclared crate or module `serde` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `derive_more` [INFO] [stdout] --> src/secure/guards/mod.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use derive_more::Deref; [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared crate or module `derive_more` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `chrono` [INFO] [stdout] --> src/models/user.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use chrono::{offset::Utc, DateTime}; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `chrono` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `serde` [INFO] [stdout] --> src/secure/guards/mod.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^ use of undeclared crate or module `serde` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `chrono` [INFO] [stdout] --> src/models/user.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use chrono::{offset::Utc, DateTime}; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `chrono` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `serde` [INFO] [stdout] --> src/models/user.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^ use of undeclared crate or module `serde` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `catch` in this scope [INFO] [stdout] --> src/server/catchers.rs:3:3 [INFO] [stdout] | [INFO] [stdout] 3 | #[catch(400)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `catch` in this scope [INFO] [stdout] --> src/server/catchers.rs:12:3 [INFO] [stdout] | [INFO] [stdout] 12 | #[catch(401)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `catch` in this scope [INFO] [stdout] --> src/server/catchers.rs:21:3 [INFO] [stdout] | [INFO] [stdout] 21 | #[catch(403)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `catch` in this scope [INFO] [stdout] --> src/server/catchers.rs:30:3 [INFO] [stdout] | [INFO] [stdout] 30 | #[catch(404)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `catch` in this scope [INFO] [stdout] --> src/server/catchers.rs:39:3 [INFO] [stdout] | [INFO] [stdout] 39 | #[catch(422)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `catch` in this scope [INFO] [stdout] --> src/server/catchers.rs:44:3 [INFO] [stdout] | [INFO] [stdout] 44 | #[catch(500)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `serde` in this scope [INFO] [stdout] --> src/server/config.rs:27:7 [INFO] [stdout] | [INFO] [stdout] 27 | #[serde(default)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `serde` in this scope [INFO] [stdout] --> src/server/config.rs:31:7 [INFO] [stdout] | [INFO] [stdout] 31 | #[serde(default, deserialize_with = "configure_ssl")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `serde` in this scope [INFO] [stdout] --> src/server/config.rs:35:7 [INFO] [stdout] | [INFO] [stdout] 35 | #[serde(default, deserialize_with = "configure_mongodb")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `serde` in this scope [INFO] [stdout] --> src/server/config.rs:64:7 [INFO] [stdout] | [INFO] [stdout] 64 | #[serde(default = "default_server_host")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `crate::error::Error` [INFO] [stdout] --> src/server/mod.rs:5:46 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::{controllers, db::MongodbBackend, error::Error, Result}; [INFO] [stdout] | ^^^^^^^^^^^^ no `Error` in `error` [INFO] [stdout] | [INFO] [stdout] = help: consider importing one of these items instead: [INFO] [stdout] core::error::Error [INFO] [stdout] core::fmt::Error [INFO] [stdout] std::error::Error [INFO] [stdout] std::fmt::Error [INFO] [stdout] std::io::Error [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `openssl` [INFO] [stdout] --> src/secure/cert.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use openssl::{ [INFO] [stdout] | ^^^^^^^ use of undeclared crate or module `openssl` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `crate::error::Error` [INFO] [stdout] --> src/server/config.rs:2:13 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::{error::Error, secure::cert::generate_cert}; [INFO] [stdout] | ^^^^^^^^^^^^ no `Error` in `error` [INFO] [stdout] | [INFO] [stdout] = help: consider importing one of these items instead: [INFO] [stdout] core::error::Error [INFO] [stdout] core::fmt::Error [INFO] [stdout] crate::server::Error [INFO] [stdout] std::error::Error [INFO] [stdout] std::fmt::Error [INFO] [stdout] std::io::Error [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `crate::error::Error` [INFO] [stdout] --> src/secure/guards/user.rs:12:33 [INFO] [stdout] | [INFO] [stdout] 12 | use crate::{db::MongodbBackend, error::Error, models::user::User}; [INFO] [stdout] | ^^^^^^^^^^^^ no `Error` in `error` [INFO] [stdout] | [INFO] [stdout] = help: consider importing one of these items instead: [INFO] [stdout] core::error::Error [INFO] [stdout] core::fmt::Error [INFO] [stdout] std::error::Error [INFO] [stdout] std::fmt::Error [INFO] [stdout] std::io::Error [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `crate::error::Error` [INFO] [stdout] --> src/secure/guards/mod.rs:11:33 [INFO] [stdout] | [INFO] [stdout] 11 | use crate::{db::MongodbBackend, error::Error, models::user::User}; [INFO] [stdout] | ^^^^^^^^^^^^ no `Error` in `error` [INFO] [stdout] | [INFO] [stdout] = help: consider importing one of these items instead: [INFO] [stdout] core::error::Error [INFO] [stdout] core::fmt::Error [INFO] [stdout] std::error::Error [INFO] [stdout] std::fmt::Error [INFO] [stdout] std::io::Error [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `serde` [INFO] [stdout] --> src/controllers/mod.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use serde::Serialize; [INFO] [stdout] | ^^^^^ use of undeclared crate or module `serde` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `crate::error::Error` [INFO] [stdout] --> src/controllers/mod.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::error::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ no `Error` in `error` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items instead [INFO] [stdout] | [INFO] [stdout] 7 | use core::error::Error; [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~ [INFO] [stdout] 7 | use core::fmt::Error; [INFO] [stdout] | ~~~~~~~~~~~~~~~~ [INFO] [stdout] 7 | use std::error::Error; [INFO] [stdout] | ~~~~~~~~~~~~~~~~~ [INFO] [stdout] 7 | use std::fmt::Error; [INFO] [stdout] | ~~~~~~~~~~~~~~~ [INFO] [stdout] and 1 other candidate [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `chrono` [INFO] [stdout] --> src/db/mod.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use chrono::offset::Utc; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `chrono` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `mongodb` [INFO] [stdout] --> src/db/mod.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use mongodb::{bson::doc, results::DeleteResult, Client, Collection}; [INFO] [stdout] | ^^^^^^^ use of undeclared crate or module `mongodb` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `crate::error::Error` [INFO] [stdout] --> src/db/mod.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | error::Error, [INFO] [stdout] | ^^^^^^^^^^^^ no `Error` in `error` [INFO] [stdout] | [INFO] [stdout] = help: consider importing one of these items instead: [INFO] [stdout] core::error::Error [INFO] [stdout] core::fmt::Error [INFO] [stdout] std::error::Error [INFO] [stdout] std::fmt::Error [INFO] [stdout] std::io::Error [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `mongodb` [INFO] [stdout] --> src/db/mod.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use mongodb::{bson::doc, results::DeleteResult, Client, Collection}; [INFO] [stdout] | ^^^^^^^ use of undeclared crate or module `mongodb` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `mongodb` [INFO] [stdout] --> src/db/mod.rs:86:13 [INFO] [stdout] | [INFO] [stdout] 86 | use mongodb::options::{FindOneAndUpdateOptions, ReturnDocument}; [INFO] [stdout] | ^^^^^^^ use of undeclared crate or module `mongodb` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `futures` [INFO] [stdout] --> src/db/mod.rs:115:13 [INFO] [stdout] | [INFO] [stdout] 115 | use futures::stream::TryStreamExt; [INFO] [stdout] | ^^^^^^^ use of undeclared crate or module `futures` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `uuid` [INFO] [stdout] --> src/db/mod.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use uuid::Uuid; [INFO] [stdout] | ^^^^ use of undeclared crate or module `uuid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `clap` [INFO] [stdout] --> src/server/mod.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use clap::Parser; [INFO] [stdout] | ^^^^ use of undeclared crate or module `clap` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `serde` [INFO] [stdout] --> src/server/config.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use serde::{de, Deserialize, Deserializer}; [INFO] [stdout] | ^^^^^ use of undeclared crate or module `serde` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `derive_more` [INFO] [stdout] --> src/secure/guards/user.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use derive_more::Deref; [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared crate or module `derive_more` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `serde` [INFO] [stdout] --> src/secure/guards/user.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^ use of undeclared crate or module `serde` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `derive_more` [INFO] [stdout] --> src/secure/guards/mod.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use derive_more::Deref; [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared crate or module `derive_more` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `chrono` [INFO] [stdout] --> src/models/user.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use chrono::{offset::Utc, DateTime}; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `chrono` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `serde` [INFO] [stdout] --> src/secure/guards/mod.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^ use of undeclared crate or module `serde` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `chrono` [INFO] [stdout] --> src/models/user.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use chrono::{offset::Utc, DateTime}; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `chrono` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `serde` [INFO] [stdout] --> src/models/user.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^ use of undeclared crate or module `serde` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `serde` in this scope [INFO] [stdout] --> src/server/config.rs:67:7 [INFO] [stdout] | [INFO] [stdout] 67 | #[serde(default = "default_server_port")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `catch` in this scope [INFO] [stdout] --> src/server/catchers.rs:3:3 [INFO] [stdout] | [INFO] [stdout] 3 | #[catch(400)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `serde` in this scope [INFO] [stdout] --> src/server/config.rs:70:7 [INFO] [stdout] | [INFO] [stdout] 70 | #[serde(default = "default_server_keep_alive")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `catch` in this scope [INFO] [stdout] --> src/server/catchers.rs:12:3 [INFO] [stdout] | [INFO] [stdout] 12 | #[catch(401)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `serde` in this scope [INFO] [stdout] --> src/server/config.rs:73:7 [INFO] [stdout] | [INFO] [stdout] 73 | #[serde(default = "default_server_forms_limit")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `catch` in this scope [INFO] [stdout] --> src/server/catchers.rs:21:3 [INFO] [stdout] | [INFO] [stdout] 21 | #[catch(403)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `serde` in this scope [INFO] [stdout] --> src/server/config.rs:76:7 [INFO] [stdout] | [INFO] [stdout] 76 | #[serde(default = "default_server_json_limit")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `catch` in this scope [INFO] [stdout] --> src/server/catchers.rs:30:3 [INFO] [stdout] | [INFO] [stdout] 30 | #[catch(404)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `serde` in this scope [INFO] [stdout] --> src/server/config.rs:79:7 [INFO] [stdout] | [INFO] [stdout] 79 | #[serde(default = "default_server_secret_key")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `catch` in this scope [INFO] [stdout] --> src/server/catchers.rs:39:3 [INFO] [stdout] | [INFO] [stdout] 39 | #[catch(422)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `serde` in this scope [INFO] [stdout] --> src/server/config.rs:100:7 [INFO] [stdout] | [INFO] [stdout] 100 | #[serde(default = "default_ssl_enabled")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `catch` in this scope [INFO] [stdout] --> src/server/catchers.rs:44:3 [INFO] [stdout] | [INFO] [stdout] 44 | #[catch(500)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `serde` in this scope [INFO] [stdout] --> src/server/config.rs:103:7 [INFO] [stdout] | [INFO] [stdout] 103 | #[serde(default = "default_ssl_self_signed")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `serde` in this scope [INFO] [stdout] --> src/server/config.rs:27:7 [INFO] [stdout] | [INFO] [stdout] 27 | #[serde(default)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `serde` in this scope [INFO] [stdout] --> src/server/config.rs:106:7 [INFO] [stdout] | [INFO] [stdout] 106 | #[serde(default = "default_ssl_key_file")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `serde` in this scope [INFO] [stdout] --> src/server/config.rs:31:7 [INFO] [stdout] | [INFO] [stdout] 31 | #[serde(default, deserialize_with = "configure_ssl")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `serde` in this scope [INFO] [stdout] --> src/server/config.rs:109:7 [INFO] [stdout] | [INFO] [stdout] 109 | #[serde(default = "default_ssl_cert_file")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `serde` in this scope [INFO] [stdout] --> src/server/config.rs:35:7 [INFO] [stdout] | [INFO] [stdout] 35 | #[serde(default, deserialize_with = "configure_mongodb")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `serde` in this scope [INFO] [stdout] --> src/server/config.rs:134:7 [INFO] [stdout] | [INFO] [stdout] 134 | #[serde(default = "default_mongo_host")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `serde` in this scope [INFO] [stdout] --> src/server/config.rs:64:7 [INFO] [stdout] | [INFO] [stdout] 64 | #[serde(default = "default_server_host")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `serde` in this scope [INFO] [stdout] --> src/server/config.rs:136:7 [INFO] [stdout] | [INFO] [stdout] 136 | #[serde(default = "default_mongo_port")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `serde` in this scope [INFO] [stdout] --> src/server/config.rs:67:7 [INFO] [stdout] | [INFO] [stdout] 67 | #[serde(default = "default_server_port")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `serde` in this scope [INFO] [stdout] --> src/server/config.rs:138:7 [INFO] [stdout] | [INFO] [stdout] 138 | #[serde(default = "default_mongo_user")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `serde` in this scope [INFO] [stdout] --> src/server/config.rs:70:7 [INFO] [stdout] | [INFO] [stdout] 70 | #[serde(default = "default_server_keep_alive")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `serde` in this scope [INFO] [stdout] --> src/server/config.rs:140:7 [INFO] [stdout] | [INFO] [stdout] 140 | #[serde(default = "default_mongo_pass")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `serde` in this scope [INFO] [stdout] --> src/server/config.rs:73:7 [INFO] [stdout] | [INFO] [stdout] 73 | #[serde(default = "default_server_forms_limit")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `serde` in this scope [INFO] [stdout] --> src/server/config.rs:76:7 [INFO] [stdout] | [INFO] [stdout] 76 | #[serde(default = "default_server_json_limit")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `serde` in this scope [INFO] [stdout] --> src/server/config.rs:79:7 [INFO] [stdout] | [INFO] [stdout] 79 | #[serde(default = "default_server_secret_key")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `serde` in this scope [INFO] [stdout] --> src/server/config.rs:100:7 [INFO] [stdout] | [INFO] [stdout] 100 | #[serde(default = "default_ssl_enabled")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `serde` in this scope [INFO] [stdout] --> src/server/config.rs:103:7 [INFO] [stdout] | [INFO] [stdout] 103 | #[serde(default = "default_ssl_self_signed")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `serde` in this scope [INFO] [stdout] --> src/server/config.rs:106:7 [INFO] [stdout] | [INFO] [stdout] 106 | #[serde(default = "default_ssl_key_file")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `serde` in this scope [INFO] [stdout] --> src/server/config.rs:142:7 [INFO] [stdout] | [INFO] [stdout] 142 | #[serde(default = "default_mongo_db")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `serde` in this scope [INFO] [stdout] --> src/server/config.rs:109:7 [INFO] [stdout] | [INFO] [stdout] 109 | #[serde(default = "default_ssl_cert_file")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `clap` in this scope [INFO] [stdout] --> src/server/mod.rs:16:3 [INFO] [stdout] | [INFO] [stdout] 16 | #[clap(author, version, about)] [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `serde` in this scope [INFO] [stdout] --> src/server/config.rs:134:7 [INFO] [stdout] | [INFO] [stdout] 134 | #[serde(default = "default_mongo_host")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `clap` in this scope [INFO] [stdout] --> src/server/mod.rs:19:7 [INFO] [stdout] | [INFO] [stdout] 19 | #[clap(short = 'c', long)] [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `serde` in this scope [INFO] [stdout] --> src/server/config.rs:136:7 [INFO] [stdout] | [INFO] [stdout] 136 | #[serde(default = "default_mongo_port")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `routes` in this scope [INFO] [stdout] --> src/server/mod.rs:111:30 [INFO] [stdout] | [INFO] [stdout] 111 | let app = app.mount("/", routes![controllers::index::home,]); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `serde` in this scope [INFO] [stdout] --> src/server/config.rs:138:7 [INFO] [stdout] | [INFO] [stdout] 138 | #[serde(default = "default_mongo_user")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `routes` in this scope [INFO] [stdout] --> src/server/mod.rs:115:9 [INFO] [stdout] | [INFO] [stdout] 115 | routes![ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `serde` in this scope [INFO] [stdout] --> src/server/config.rs:140:7 [INFO] [stdout] | [INFO] [stdout] 140 | #[serde(default = "default_mongo_pass")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `deref` in this scope [INFO] [stdout] --> src/secure/guards/mod.rs:15:7 [INFO] [stdout] | [INFO] [stdout] 15 | #[deref] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `deref` is in scope, but it is a function-like macro [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `serde` in this scope [INFO] [stdout] --> src/server/config.rs:142:7 [INFO] [stdout] | [INFO] [stdout] 142 | #[serde(default = "default_mongo_db")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `get` in this scope [INFO] [stdout] --> src/controllers/index.rs:3:3 [INFO] [stdout] | [INFO] [stdout] 3 | #[get("/")] [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `clap` in this scope [INFO] [stdout] --> src/server/mod.rs:16:3 [INFO] [stdout] | [INFO] [stdout] 16 | #[clap(author, version, about)] [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `get` in this scope [INFO] [stdout] --> src/controllers/users.rs:13:3 [INFO] [stdout] | [INFO] [stdout] 13 | #[get("/my")] [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `post` in this scope [INFO] [stdout] --> src/controllers/users.rs:19:3 [INFO] [stdout] | [INFO] [stdout] 19 | #[post("/", format = "json", data = "")] [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `get` in this scope [INFO] [stdout] --> src/controllers/users.rs:36:3 [INFO] [stdout] | [INFO] [stdout] 36 | #[get("/")] [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `put` in this scope [INFO] [stdout] --> src/controllers/users.rs:41:3 [INFO] [stdout] | [INFO] [stdout] 41 | #[put("/", format = "json", data = "")] [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `delete` in this scope [INFO] [stdout] --> src/controllers/users.rs:50:3 [INFO] [stdout] | [INFO] [stdout] 50 | #[delete("/")] [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `clap` in this scope [INFO] [stdout] --> src/server/mod.rs:19:7 [INFO] [stdout] | [INFO] [stdout] 19 | #[clap(short = 'c', long)] [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `routes` in this scope [INFO] [stdout] --> src/server/mod.rs:111:30 [INFO] [stdout] | [INFO] [stdout] 111 | let app = app.mount("/", routes![controllers::index::home,]); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `routes` in this scope [INFO] [stdout] --> src/server/mod.rs:115:9 [INFO] [stdout] | [INFO] [stdout] 115 | routes![ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `config` [INFO] [stdout] --> src/server/config.rs:48:23 [INFO] [stdout] | [INFO] [stdout] 48 | let mut cfg = config::Config::default(); [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `config` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `deref` in this scope [INFO] [stdout] --> src/secure/guards/mod.rs:15:7 [INFO] [stdout] | [INFO] [stdout] 15 | #[deref] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `deref` is in scope, but it is a function-like macro [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `get` in this scope [INFO] [stdout] --> src/controllers/index.rs:3:3 [INFO] [stdout] | [INFO] [stdout] 3 | #[get("/")] [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `get` in this scope [INFO] [stdout] --> src/controllers/users.rs:13:3 [INFO] [stdout] | [INFO] [stdout] 13 | #[get("/my")] [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `post` in this scope [INFO] [stdout] --> src/controllers/users.rs:19:3 [INFO] [stdout] | [INFO] [stdout] 19 | #[post("/", format = "json", data = "")] [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `get` in this scope [INFO] [stdout] --> src/controllers/users.rs:36:3 [INFO] [stdout] | [INFO] [stdout] 36 | #[get("/")] [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `put` in this scope [INFO] [stdout] --> src/controllers/users.rs:41:3 [INFO] [stdout] | [INFO] [stdout] 41 | #[put("/", format = "json", data = "")] [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `delete` in this scope [INFO] [stdout] --> src/controllers/users.rs:50:3 [INFO] [stdout] | [INFO] [stdout] 50 | #[delete("/")] [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `config` [INFO] [stdout] --> src/server/config.rs:49:19 [INFO] [stdout] | [INFO] [stdout] 49 | cfg.merge(config::File::with_name(path.as_ref().to_str().unwrap()))?; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `config` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use std::fs::File; [INFO] [stdout] | [INFO] [stdout] help: if you import `File`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 49 - cfg.merge(config::File::with_name(path.as_ref().to_str().unwrap()))?; [INFO] [stdout] 49 + cfg.merge(File::with_name(path.as_ref().to_str().unwrap()))?; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Error` in module `error` [INFO] [stdout] --> src/lib.rs:24:52 [INFO] [stdout] | [INFO] [stdout] 24 | pub type Result = std::result::Result; [INFO] [stdout] | ^^^^^ not found in `error` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 + use core::error::Error; [INFO] [stdout] | [INFO] [stdout] 1 + use core::fmt::Error; [INFO] [stdout] | [INFO] [stdout] 1 + use std::error::Error; [INFO] [stdout] | [INFO] [stdout] 1 + use std::fmt::Error; [INFO] [stdout] | [INFO] [stdout] and 1 other candidate [INFO] [stdout] help: if you import `Error`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 24 - pub type Result = std::result::Result; [INFO] [stdout] 24 + pub type Result = std::result::Result; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `controllers` [INFO] [stdout] --> src/server/mod.rs:5:13 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::{controllers, db::MongodbBackend, error::Error, Result}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `db::MongodbBackend` [INFO] [stdout] --> src/secure/guards/user.rs:12:13 [INFO] [stdout] | [INFO] [stdout] 12 | use crate::{db::MongodbBackend, error::Error, models::user::User}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `config` [INFO] [stdout] --> src/server/config.rs:48:23 [INFO] [stdout] | [INFO] [stdout] 48 | let mut cfg = config::Config::default(); [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `config` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `config` [INFO] [stdout] --> src/server/config.rs:49:19 [INFO] [stdout] | [INFO] [stdout] 49 | cfg.merge(config::File::with_name(path.as_ref().to_str().unwrap()))?; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `config` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use std::fs::File; [INFO] [stdout] | [INFO] [stdout] help: if you import `File`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 49 - cfg.merge(config::File::with_name(path.as_ref().to_str().unwrap()))?; [INFO] [stdout] 49 + cfg.merge(File::with_name(path.as_ref().to_str().unwrap()))?; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Error` in module `error` [INFO] [stdout] --> src/lib.rs:24:52 [INFO] [stdout] | [INFO] [stdout] 24 | pub type Result = std::result::Result; [INFO] [stdout] | ^^^^^ not found in `error` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 + use core::error::Error; [INFO] [stdout] | [INFO] [stdout] 1 + use core::fmt::Error; [INFO] [stdout] | [INFO] [stdout] 1 + use std::error::Error; [INFO] [stdout] | [INFO] [stdout] 1 + use std::fmt::Error; [INFO] [stdout] | [INFO] [stdout] and 1 other candidate [INFO] [stdout] help: if you import `Error`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 24 - pub type Result = std::result::Result; [INFO] [stdout] 24 + pub type Result = std::result::Result; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `controllers` [INFO] [stdout] --> src/server/mod.rs:5:13 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::{controllers, db::MongodbBackend, error::Error, Result}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `db::MongodbBackend` [INFO] [stdout] --> src/secure/guards/user.rs:12:13 [INFO] [stdout] | [INFO] [stdout] 12 | use crate::{db::MongodbBackend, error::Error, models::user::User}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0581]: return type references an anonymous lifetime, which is not constrained by the fn input types [INFO] [stdout] --> src/server/catchers.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | pub async fn bad_request(req: &Request<'_>) -> (Status, Value) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: lifetimes appearing in an associated or opaque type are not considered constrained [INFO] [stdout] = note: consider introducing a named lifetime parameter [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0581]: return type references an anonymous lifetime, which is not constrained by the fn input types [INFO] [stdout] --> src/server/catchers.rs:13:1 [INFO] [stdout] | [INFO] [stdout] 13 | pub async fn not_authorized(req: &Request<'_>) -> (Status, Value) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: lifetimes appearing in an associated or opaque type are not considered constrained [INFO] [stdout] = note: consider introducing a named lifetime parameter [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0581]: return type references an anonymous lifetime, which is not constrained by the fn input types [INFO] [stdout] --> src/server/catchers.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22 | pub async fn forbidden(req: &Request<'_>) -> (Status, Value) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: lifetimes appearing in an associated or opaque type are not considered constrained [INFO] [stdout] = note: consider introducing a named lifetime parameter [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0581]: return type references an anonymous lifetime, which is not constrained by the fn input types [INFO] [stdout] --> src/server/catchers.rs:31:1 [INFO] [stdout] | [INFO] [stdout] 31 | pub async fn not_found(req: &Request<'_>) -> (Status, Value) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: lifetimes appearing in an associated or opaque type are not considered constrained [INFO] [stdout] = note: consider introducing a named lifetime parameter [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0581]: return type references an anonymous lifetime, which is not constrained by the fn input types [INFO] [stdout] --> src/server/catchers.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | pub async fn bad_request(req: &Request<'_>) -> (Status, Value) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: lifetimes appearing in an associated or opaque type are not considered constrained [INFO] [stdout] = note: consider introducing a named lifetime parameter [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0581]: return type references an anonymous lifetime, which is not constrained by the fn input types [INFO] [stdout] --> src/server/catchers.rs:40:1 [INFO] [stdout] | [INFO] [stdout] 40 | pub async fn unprocessed_entity(_req: &Request<'_>) -> (Status, Value) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: lifetimes appearing in an associated or opaque type are not considered constrained [INFO] [stdout] = note: consider introducing a named lifetime parameter [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0581]: return type references an anonymous lifetime, which is not constrained by the fn input types [INFO] [stdout] --> src/server/catchers.rs:45:1 [INFO] [stdout] | [INFO] [stdout] 45 | pub async fn internal_server_error(req: &Request<'_>) -> (Status, Value) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: lifetimes appearing in an associated or opaque type are not considered constrained [INFO] [stdout] = note: consider introducing a named lifetime parameter [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0581]: return type references an anonymous lifetime, which is not constrained by the fn input types [INFO] [stdout] --> src/server/catchers.rs:13:1 [INFO] [stdout] | [INFO] [stdout] 13 | pub async fn not_authorized(req: &Request<'_>) -> (Status, Value) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: lifetimes appearing in an associated or opaque type are not considered constrained [INFO] [stdout] = note: consider introducing a named lifetime parameter [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0581]: return type references an anonymous lifetime, which is not constrained by the fn input types [INFO] [stdout] --> src/server/catchers.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22 | pub async fn forbidden(req: &Request<'_>) -> (Status, Value) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: lifetimes appearing in an associated or opaque type are not considered constrained [INFO] [stdout] = note: consider introducing a named lifetime parameter [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0581]: return type references an anonymous lifetime, which is not constrained by the fn input types [INFO] [stdout] --> src/server/catchers.rs:31:1 [INFO] [stdout] | [INFO] [stdout] 31 | pub async fn not_found(req: &Request<'_>) -> (Status, Value) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: lifetimes appearing in an associated or opaque type are not considered constrained [INFO] [stdout] = note: consider introducing a named lifetime parameter [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0581]: return type references an anonymous lifetime, which is not constrained by the fn input types [INFO] [stdout] --> src/server/catchers.rs:40:1 [INFO] [stdout] | [INFO] [stdout] 40 | pub async fn unprocessed_entity(_req: &Request<'_>) -> (Status, Value) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: lifetimes appearing in an associated or opaque type are not considered constrained [INFO] [stdout] = note: consider introducing a named lifetime parameter [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0581]: return type references an anonymous lifetime, which is not constrained by the fn input types [INFO] [stdout] --> src/server/catchers.rs:45:1 [INFO] [stdout] | [INFO] [stdout] 45 | pub async fn internal_server_error(req: &Request<'_>) -> (Status, Value) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: lifetimes appearing in an associated or opaque type are not considered constrained [INFO] [stdout] = note: consider introducing a named lifetime parameter [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0220]: associated type `Error` not found for `D` [INFO] [stdout] --> src/server/config.rs:226:75 [INFO] [stdout] | [INFO] [stdout] 226 | fn configure_ssl<'de, D>(deserializer: D) -> Result, D::Error> [INFO] [stdout] | ^^^^^ associated type `Error` not found [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0220]: associated type `Error` not found for `D` [INFO] [stdout] --> src/server/config.rs:268:75 [INFO] [stdout] | [INFO] [stdout] 268 | fn configure_mongodb<'de, D>(deserializer: D) -> Result [INFO] [stdout] | ^^^^^ associated type `Error` not found [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0581]: return type references an anonymous lifetime, which is not constrained by the fn input types [INFO] [stdout] --> src/secure/guards/client.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | async fn from_request(request: &'r Request<'_>) -> request::Outcome { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: lifetimes appearing in an associated or opaque type are not considered constrained [INFO] [stdout] = note: consider introducing a named lifetime parameter [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0581]: return type references an anonymous lifetime, which is not constrained by the fn input types [INFO] [stdout] --> src/secure/guards/user.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | async fn from_request(request: &'r Request<'_>) -> Outcome { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: lifetimes appearing in an associated or opaque type are not considered constrained [INFO] [stdout] = note: consider introducing a named lifetime parameter [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0581]: return type references an anonymous lifetime, which is not constrained by the fn input types [INFO] [stdout] --> src/secure/guards/user.rs:41:5 [INFO] [stdout] | [INFO] [stdout] 41 | async fn from_request(request: &'r Request<'_>) -> Outcome { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: lifetimes appearing in an associated or opaque type are not considered constrained [INFO] [stdout] = note: consider introducing a named lifetime parameter [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0581]: return type references an anonymous lifetime, which is not constrained by the fn input types [INFO] [stdout] --> src/secure/guards/mod.rs:20:1 [INFO] [stdout] | [INFO] [stdout] 20 | / pub(crate) async fn get_user_from_request( [INFO] [stdout] 21 | | request: &Request<'_>, [INFO] [stdout] 22 | | backend: &MongodbBackend, [INFO] [stdout] 23 | | ) -> Result, Error> { [INFO] [stdout] | |_____________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: lifetimes appearing in an associated or opaque type are not considered constrained [INFO] [stdout] = note: consider introducing a named lifetime parameter [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0220]: associated type `Error` not found for `D` [INFO] [stdout] --> src/server/config.rs:226:75 [INFO] [stdout] | [INFO] [stdout] 226 | fn configure_ssl<'de, D>(deserializer: D) -> Result, D::Error> [INFO] [stdout] | ^^^^^ associated type `Error` not found [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0220]: associated type `Error` not found for `D` [INFO] [stdout] --> src/server/config.rs:268:75 [INFO] [stdout] | [INFO] [stdout] 268 | fn configure_mongodb<'de, D>(deserializer: D) -> Result [INFO] [stdout] | ^^^^^ associated type `Error` not found [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0581]: return type references an anonymous lifetime, which is not constrained by the fn input types [INFO] [stdout] --> src/secure/guards/client.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | async fn from_request(request: &'r Request<'_>) -> request::Outcome { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: lifetimes appearing in an associated or opaque type are not considered constrained [INFO] [stdout] = note: consider introducing a named lifetime parameter [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0581]: return type references an anonymous lifetime, which is not constrained by the fn input types [INFO] [stdout] --> src/secure/guards/user.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | async fn from_request(request: &'r Request<'_>) -> Outcome { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: lifetimes appearing in an associated or opaque type are not considered constrained [INFO] [stdout] = note: consider introducing a named lifetime parameter [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0581]: return type references an anonymous lifetime, which is not constrained by the fn input types [INFO] [stdout] --> src/secure/guards/user.rs:41:5 [INFO] [stdout] | [INFO] [stdout] 41 | async fn from_request(request: &'r Request<'_>) -> Outcome { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: lifetimes appearing in an associated or opaque type are not considered constrained [INFO] [stdout] = note: consider introducing a named lifetime parameter [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0581]: return type references an anonymous lifetime, which is not constrained by the fn input types [INFO] [stdout] --> src/secure/guards/mod.rs:20:1 [INFO] [stdout] | [INFO] [stdout] 20 | / pub(crate) async fn get_user_from_request( [INFO] [stdout] 21 | | request: &Request<'_>, [INFO] [stdout] 22 | | backend: &MongodbBackend, [INFO] [stdout] 23 | | ) -> Result, Error> { [INFO] [stdout] | |_____________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: lifetimes appearing in an associated or opaque type are not considered constrained [INFO] [stdout] = note: consider introducing a named lifetime parameter [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 74 previous errors; 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0220, E0412, E0432, E0433, E0463, E0581. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0220`. [INFO] [stdout] [INFO] [stdout] error: aborting due to 74 previous errors; 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0220, E0412, E0432, E0433, E0463, E0581. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0220`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rust_rocket_mongo_` (lib) due to 75 previous errors; 2 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `rust_rocket_mongo_` (lib test) due to 75 previous errors; 2 warnings emitted [INFO] running `Command { std: "docker" "inspect" "6e8c0c4625fe003b4904c0b8a8e3e0a58fb6bff2075caae851a0785cebda49d2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6e8c0c4625fe003b4904c0b8a8e3e0a58fb6bff2075caae851a0785cebda49d2", kill_on_drop: false }` [INFO] [stdout] 6e8c0c4625fe003b4904c0b8a8e3e0a58fb6bff2075caae851a0785cebda49d2