[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] 574acd64a7b6ca93e096946fb6a9a2d944fdc428 [INFO] testing Speccy-Rom/rust_rocket_mongo against beta-2022-04-10 for beta-1.61-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSpeccy-Rom%2Frust_rocket_mongo" "/workspace/builds/worker-13/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-13/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Speccy-Rom/rust_rocket_mongo on toolchain beta-2022-04-10 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "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-13/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: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 2849b7cd057ab3af849353f753e3d92c1680a0322c0ae1d288100eaadc6b7241 [INFO] running `Command { std: "docker" "start" "-a" "2849b7cd057ab3af849353f753e3d92c1680a0322c0ae1d288100eaadc6b7241", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2849b7cd057ab3af849353f753e3d92c1680a0322c0ae1d288100eaadc6b7241", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2849b7cd057ab3af849353f753e3d92c1680a0322c0ae1d288100eaadc6b7241", kill_on_drop: false }` [INFO] [stdout] 2849b7cd057ab3af849353f753e3d92c1680a0322c0ae1d288100eaadc6b7241 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] c2983a9d4c20562c2cee95a79d1bab0e7c6478458e6d5ec4ebf6d53b461113b6 [INFO] running `Command { std: "docker" "start" "-a" "c2983a9d4c20562c2cee95a79d1bab0e7c6478458e6d5ec4ebf6d53b461113b6", kill_on_drop: false }` [INFO] [stderr] Compiling rust_rocket_mongo_ v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0583]: file not found for module `users` [INFO] [stdout] --> src/controllers/mod.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | pub mod users; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: to create the module `users`, create file "src/controllers/users.rs" or "src/controllers/users/mod.rs" [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[E0706]: functions in traits cannot be declared `async` [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] | _____`async` because of this [INFO] [stdout] | | [INFO] [stdout] 24 | | let ua = request.headers().get("user-agent").next().unwrap(); [INFO] [stdout] 25 | | let browser_info = if ua.is_empty() { [INFO] [stdout] 26 | | "".to_string() [INFO] [stdout] ... | [INFO] [stdout] 48 | | } [INFO] [stdout] 49 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: `async` trait functions are not currently supported [INFO] [stdout] = note: consider using the `async-trait` crate: https://crates.io/crates/async-trait [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0706]: functions in traits cannot be declared `async` [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] | _____`async` because of this [INFO] [stdout] | | [INFO] [stdout] 25 | | let backend = try_outcome!(request [INFO] [stdout] 26 | | .guard::<&State>() [INFO] [stdout] 27 | | .await [INFO] [stdout] ... | [INFO] [stdout] 33 | | .into_outcome(Status::BadRequest) [INFO] [stdout] 34 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: `async` trait functions are not currently supported [INFO] [stdout] = note: consider using the `async-trait` crate: https://crates.io/crates/async-trait [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0706]: functions in traits cannot be declared `async` [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] | _____`async` because of this [INFO] [stdout] | | [INFO] [stdout] 42 | | let backend = try_outcome!(request [INFO] [stdout] 43 | | .guard::<&State>() [INFO] [stdout] 44 | | .await [INFO] [stdout] ... | [INFO] [stdout] 56 | | .into_outcome(Status::BadRequest) [INFO] [stdout] 57 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: `async` trait functions are not currently supported [INFO] [stdout] = note: consider using the `async-trait` crate: https://crates.io/crates/async-trait [INFO] [stdout] [INFO] [stdout] [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] [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] [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] [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] [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] [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] [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 determine resolution for the derive macro `Deserialize` [INFO] [stdout] --> src/server/config.rs:24:10 [INFO] [stdout] | [INFO] [stdout] 24 | #[derive(Deserialize, Clone, Debug, Default)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [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 determine resolution for the derive macro `Deserialize` [INFO] [stdout] --> src/server/config.rs:61:10 [INFO] [stdout] | [INFO] [stdout] 61 | #[derive(Deserialize, Clone, Debug)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [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: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: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: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 determine resolution for the derive macro `Deserialize` [INFO] [stdout] --> src/server/config.rs:97:10 [INFO] [stdout] | [INFO] [stdout] 97 | #[derive(Deserialize, Clone, Debug)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [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:109:7 [INFO] [stdout] | [INFO] [stdout] 109 | #[serde(default = "default_ssl_cert_file")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the derive macro `Deserialize` [INFO] [stdout] --> src/server/config.rs:132:10 [INFO] [stdout] | [INFO] [stdout] 132 | #[derive(Deserialize, Clone, Debug)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [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: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: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: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:142:7 [INFO] [stdout] | [INFO] [stdout] 142 | #[serde(default = "default_mongo_db")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the derive macro `Parser` [INFO] [stdout] --> src/server/mod.rs:15:10 [INFO] [stdout] | [INFO] [stdout] 15 | #[derive(Parser, Debug)] [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [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 `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: cannot determine resolution for the derive macro `Serialize` [INFO] [stdout] --> src/secure/guards/user.rs:14:10 [INFO] [stdout] | [INFO] [stdout] 14 | #[derive(Serialize, Deserialize, Deref)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the derive macro `Deserialize` [INFO] [stdout] --> src/secure/guards/user.rs:14:21 [INFO] [stdout] | [INFO] [stdout] 14 | #[derive(Serialize, Deserialize, Deref)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the derive macro `Deref` [INFO] [stdout] --> src/secure/guards/user.rs:14:34 [INFO] [stdout] | [INFO] [stdout] 14 | #[derive(Serialize, Deserialize, Deref)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the derive macro `Serialize` [INFO] [stdout] --> src/secure/guards/user.rs:17:10 [INFO] [stdout] | [INFO] [stdout] 17 | #[derive(Serialize, Deserialize, Deref)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the derive macro `Deserialize` [INFO] [stdout] --> src/secure/guards/user.rs:17:21 [INFO] [stdout] | [INFO] [stdout] 17 | #[derive(Serialize, Deserialize, Deref)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the derive macro `Deref` [INFO] [stdout] --> src/secure/guards/user.rs:17:34 [INFO] [stdout] | [INFO] [stdout] 17 | #[derive(Serialize, Deserialize, Deref)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `try_outcome` in this scope [INFO] [stdout] --> src/secure/guards/user.rs:25:23 [INFO] [stdout] | [INFO] [stdout] 25 | let backend = try_outcome!(request [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `try_outcome` in this scope [INFO] [stdout] --> src/secure/guards/user.rs:42:23 [INFO] [stdout] | [INFO] [stdout] 42 | let backend = try_outcome!(request [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the derive macro `Serialize` [INFO] [stdout] --> src/secure/guards/mod.rs:13:10 [INFO] [stdout] | [INFO] [stdout] 13 | #[derive(Serialize, Deserialize, Deref)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the derive macro `Deserialize` [INFO] [stdout] --> src/secure/guards/mod.rs:13:21 [INFO] [stdout] | [INFO] [stdout] 13 | #[derive(Serialize, Deserialize, Deref)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the derive macro `Deref` [INFO] [stdout] --> src/secure/guards/mod.rs:13:34 [INFO] [stdout] | [INFO] [stdout] 13 | #[derive(Serialize, Deserialize, Deref)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [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] [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 determine resolution for the derive macro `Serialize` [INFO] [stdout] --> src/models/user.rs:4:33 [INFO] [stdout] | [INFO] [stdout] 4 | #[derive(Clone, Debug, Default, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the derive macro `Deserialize` [INFO] [stdout] --> src/models/user.rs:4:44 [INFO] [stdout] | [INFO] [stdout] 4 | #[derive(Clone, Debug, Default, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the derive macro `Serialize` [INFO] [stdout] --> src/models/user.rs:13:24 [INFO] [stdout] | [INFO] [stdout] 13 | #[derive(Clone, Debug, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the derive macro `Deserialize` [INFO] [stdout] --> src/models/user.rs:13:35 [INFO] [stdout] | [INFO] [stdout] 13 | #[derive(Clone, Debug, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `doc` in this scope [INFO] [stdout] --> src/db/mod.rs:71:23 [INFO] [stdout] | [INFO] [stdout] 71 | .find_one(doc! { "email": &user.email }, None) [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `doc` in this scope [INFO] [stdout] --> src/db/mod.rs:90:17 [INFO] [stdout] | [INFO] [stdout] 90 | doc! { "email": &user.email}, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `doc` in this scope [INFO] [stdout] --> src/db/mod.rs:91:17 [INFO] [stdout] | [INFO] [stdout] 91 | doc! { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `doc` in this scope [INFO] [stdout] --> src/db/mod.rs:109:23 [INFO] [stdout] | [INFO] [stdout] 109 | .find_one(doc! {"api_key": api_key}, None) [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `doc` in this scope [INFO] [stdout] --> src/db/mod.rs:127:25 [INFO] [stdout] | [INFO] [stdout] 127 | .delete_one(doc! {"email": email}, None) [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 type `Limits` [INFO] [stdout] --> src/server/mod.rs:61:18 [INFO] [stdout] | [INFO] [stdout] 61 | let limits = Limits::new() [INFO] [stdout] | ^^^^^^ use of undeclared type `Limits` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Config` [INFO] [stdout] --> src/server/mod.rs:65:22 [INFO] [stdout] | [INFO] [stdout] 65 | let rocket_cfg = Config::figment() [INFO] [stdout] | ^^^^^^ use of undeclared type `Config` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Rsa` [INFO] [stdout] --> src/secure/cert.rs:40:15 [INFO] [stdout] | [INFO] [stdout] 40 | let rsa = Rsa::generate(4096).unwrap(); [INFO] [stdout] | ^^^ use of undeclared type `Rsa` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PKey` [INFO] [stdout] --> src/secure/cert.rs:41:16 [INFO] [stdout] | [INFO] [stdout] 41 | let pkey = PKey::from_rsa(rsa).unwrap(); [INFO] [stdout] | ^^^^ use of undeclared type `PKey` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `X509Name` [INFO] [stdout] --> src/secure/cert.rs:43:20 [INFO] [stdout] | [INFO] [stdout] 43 | let mut name = X509Name::builder().unwrap(); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `X509Name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Nid` [INFO] [stdout] --> src/secure/cert.rs:44:30 [INFO] [stdout] | [INFO] [stdout] 44 | name.append_entry_by_nid(Nid::COMMONNAME, CN).unwrap(); [INFO] [stdout] | ^^^ use of undeclared type `Nid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Nid` [INFO] [stdout] --> src/secure/cert.rs:45:30 [INFO] [stdout] | [INFO] [stdout] 45 | name.append_entry_by_nid(Nid::DISTINGUISHEDNAME, DN) [INFO] [stdout] | ^^^ use of undeclared type `Nid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Nid` [INFO] [stdout] --> src/secure/cert.rs:47:30 [INFO] [stdout] | [INFO] [stdout] 47 | name.append_entry_by_nid(Nid::SUBJECT_ALT_NAME, SUB_ALT_NAME) [INFO] [stdout] | ^^^ use of undeclared type `Nid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Nid` [INFO] [stdout] --> src/secure/cert.rs:49:30 [INFO] [stdout] | [INFO] [stdout] 49 | name.append_entry_by_nid(Nid::COUNTRYNAME, ISO_COUNTRY) [INFO] [stdout] | ^^^ use of undeclared type `Nid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Nid` [INFO] [stdout] --> src/secure/cert.rs:51:30 [INFO] [stdout] | [INFO] [stdout] 51 | name.append_entry_by_nid(Nid::ORGANIZATIONNAME, ORG_NAME) [INFO] [stdout] | ^^^ use of undeclared type `Nid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Nid` [INFO] [stdout] --> src/secure/cert.rs:53:30 [INFO] [stdout] | [INFO] [stdout] 53 | name.append_entry_by_nid(Nid::CERTIFICATE_ISSUER, ISSUER) [INFO] [stdout] | ^^^ use of undeclared type `Nid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Nid` [INFO] [stdout] --> src/secure/cert.rs:55:30 [INFO] [stdout] | [INFO] [stdout] 55 | name.append_entry_by_nid(Nid::ISSUER_ALT_NAME, ISSUER_ALT) [INFO] [stdout] | ^^^ use of undeclared type `Nid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Asn1Time` [INFO] [stdout] --> src/secure/cert.rs:58:23 [INFO] [stdout] | [INFO] [stdout] 58 | let time_before = Asn1Time::days_from_now(0).unwrap(); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Asn1Time` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Asn1Time` [INFO] [stdout] --> src/secure/cert.rs:59:22 [INFO] [stdout] | [INFO] [stdout] 59 | let time_after = Asn1Time::days_from_now(VALIDITY).unwrap(); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Asn1Time` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `X509` [INFO] [stdout] --> src/secure/cert.rs:60:23 [INFO] [stdout] | [INFO] [stdout] 60 | let mut builder = X509::builder().unwrap(); [INFO] [stdout] | ^^^^ use of undeclared type `X509` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `MessageDigest` [INFO] [stdout] --> src/secure/cert.rs:67:25 [INFO] [stdout] | [INFO] [stdout] 67 | builder.sign(&pkey, MessageDigest::sha256()).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `MessageDigest` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `request` [INFO] [stdout] --> src/secure/guards/client.rs:23:56 [INFO] [stdout] | [INFO] [stdout] 23 | async fn from_request(request: &'r Request<'_>) -> request::Outcome { [INFO] [stdout] | ^^^^^^^ use of undeclared crate or module `request` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Outcome` [INFO] [stdout] --> src/secure/guards/client.rs:34:17 [INFO] [stdout] | [INFO] [stdout] 34 | Outcome::Success(state) [INFO] [stdout] | ^^^^^^^ use of undeclared type `Outcome` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Outcome` [INFO] [stdout] --> src/secure/guards/client.rs:40:21 [INFO] [stdout] | [INFO] [stdout] 40 | Outcome::Success(state) [INFO] [stdout] | ^^^^^^^ use of undeclared type `Outcome` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Outcome` [INFO] [stdout] --> src/secure/guards/client.rs:45:21 [INFO] [stdout] | [INFO] [stdout] 45 | Outcome::Success(state) [INFO] [stdout] | ^^^^^^^ use of undeclared type `Outcome` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Status` [INFO] [stdout] --> src/secure/guards/user.rs:33:27 [INFO] [stdout] | [INFO] [stdout] 33 | .into_outcome(Status::BadRequest) [INFO] [stdout] | ^^^^^^ use of undeclared type `Status` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Status` [INFO] [stdout] --> src/secure/guards/user.rs:56:27 [INFO] [stdout] | [INFO] [stdout] 56 | .into_outcome(Status::BadRequest) [INFO] [stdout] | ^^^^^^ use of undeclared type `Status` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ContentType` [INFO] [stdout] --> src/controllers/index.rs:6:6 [INFO] [stdout] | [INFO] [stdout] 6 | (ContentType::HTML, " src/db/mod.rs:54:24 [INFO] [stdout] | [INFO] [stdout] 54 | let datetime = Utc::now(); [INFO] [stdout] | ^^^ use of undeclared type `Utc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `FindOneAndUpdateOptions` [INFO] [stdout] --> src/db/mod.rs:99:17 [INFO] [stdout] | [INFO] [stdout] 99 | FindOneAndUpdateOptions::builder() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ use of undeclared type `FindOneAndUpdateOptions` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ReturnDocument` [INFO] [stdout] --> src/db/mod.rs:100:43 [INFO] [stdout] | [INFO] [stdout] 100 | .return_document(Some(ReturnDocument::After)) [INFO] [stdout] | ^^^^^^^^^^^^^^ use of undeclared type `ReturnDocument` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Request` in this scope [INFO] [stdout] --> src/server/catchers.rs:4:32 [INFO] [stdout] | [INFO] [stdout] 4 | pub async fn bad_request(req: &Request<'_>) -> (Status, Value) { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Status` in this scope [INFO] [stdout] --> src/server/catchers.rs:4:49 [INFO] [stdout] | [INFO] [stdout] 4 | pub async fn bad_request(req: &Request<'_>) -> (Status, Value) { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Value` in this scope [INFO] [stdout] --> src/server/catchers.rs:4:57 [INFO] [stdout] | [INFO] [stdout] 4 | pub async fn bad_request(req: &Request<'_>) -> (Status, Value) { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Request` in this scope [INFO] [stdout] --> src/server/catchers.rs:13:35 [INFO] [stdout] | [INFO] [stdout] 13 | pub async fn not_authorized(req: &Request<'_>) -> (Status, Value) { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Status` in this scope [INFO] [stdout] --> src/server/catchers.rs:13:52 [INFO] [stdout] | [INFO] [stdout] 13 | pub async fn not_authorized(req: &Request<'_>) -> (Status, Value) { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Value` in this scope [INFO] [stdout] --> src/server/catchers.rs:13:60 [INFO] [stdout] | [INFO] [stdout] 13 | pub async fn not_authorized(req: &Request<'_>) -> (Status, Value) { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Request` in this scope [INFO] [stdout] --> src/server/catchers.rs:22:30 [INFO] [stdout] | [INFO] [stdout] 22 | pub async fn forbidden(req: &Request<'_>) -> (Status, Value) { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Status` in this scope [INFO] [stdout] --> src/server/catchers.rs:22:47 [INFO] [stdout] | [INFO] [stdout] 22 | pub async fn forbidden(req: &Request<'_>) -> (Status, Value) { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Value` in this scope [INFO] [stdout] --> src/server/catchers.rs:22:55 [INFO] [stdout] | [INFO] [stdout] 22 | pub async fn forbidden(req: &Request<'_>) -> (Status, Value) { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Request` in this scope [INFO] [stdout] --> src/server/catchers.rs:31:30 [INFO] [stdout] | [INFO] [stdout] 31 | pub async fn not_found(req: &Request<'_>) -> (Status, Value) { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Status` in this scope [INFO] [stdout] --> src/server/catchers.rs:31:47 [INFO] [stdout] | [INFO] [stdout] 31 | pub async fn not_found(req: &Request<'_>) -> (Status, Value) { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Value` in this scope [INFO] [stdout] --> src/server/catchers.rs:31:55 [INFO] [stdout] | [INFO] [stdout] 31 | pub async fn not_found(req: &Request<'_>) -> (Status, Value) { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Request` in this scope [INFO] [stdout] --> src/server/catchers.rs:40:40 [INFO] [stdout] | [INFO] [stdout] 40 | pub async fn unprocessed_entity(_req: &Request<'_>) -> (Status, Value) { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Status` in this scope [INFO] [stdout] --> src/server/catchers.rs:40:57 [INFO] [stdout] | [INFO] [stdout] 40 | pub async fn unprocessed_entity(_req: &Request<'_>) -> (Status, Value) { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Value` in this scope [INFO] [stdout] --> src/server/catchers.rs:40:65 [INFO] [stdout] | [INFO] [stdout] 40 | pub async fn unprocessed_entity(_req: &Request<'_>) -> (Status, Value) { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Request` in this scope [INFO] [stdout] --> src/server/catchers.rs:45:42 [INFO] [stdout] | [INFO] [stdout] 45 | pub async fn internal_server_error(req: &Request<'_>) -> (Status, Value) { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Status` in this scope [INFO] [stdout] --> src/server/catchers.rs:45:59 [INFO] [stdout] | [INFO] [stdout] 45 | pub async fn internal_server_error(req: &Request<'_>) -> (Status, Value) { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Value` in this scope [INFO] [stdout] --> src/server/catchers.rs:45:67 [INFO] [stdout] | [INFO] [stdout] 45 | pub async fn internal_server_error(req: &Request<'_>) -> (Status, Value) { [INFO] [stdout] | ^^^^^ not found in this scope [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:27 [INFO] [stdout] | [INFO] [stdout] 49 | cfg.merge(config::File::with_name(path.as_ref().to_str().unwrap()))?; [INFO] [stdout] | ^^^^ not found in `config` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use std::fs::File; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Rocket` in this scope [INFO] [stdout] --> src/server/mod.rs:48:38 [INFO] [stdout] | [INFO] [stdout] 48 | pub async fn init_server() -> Result> { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Build` in this scope [INFO] [stdout] --> src/server/mod.rs:48:45 [INFO] [stdout] | [INFO] [stdout] 48 | pub async fn init_server() -> Result> { [INFO] [stdout] | - ^^^^^ not found in this scope [INFO] [stdout] | | [INFO] [stdout] | help: you might be missing a type parameter: `` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `X509` in this scope [INFO] [stdout] --> src/secure/cert.rs:11:27 [INFO] [stdout] | [INFO] [stdout] 11 | pub x509_certificate: X509, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PKey` in this scope [INFO] [stdout] --> src/secure/cert.rs:12:22 [INFO] [stdout] | [INFO] [stdout] 12 | pub private_key: PKey, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Private` in this scope [INFO] [stdout] --> src/secure/cert.rs:12:27 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct ResultCert { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] 11 | pub x509_certificate: X509, [INFO] [stdout] 12 | pub private_key: PKey, [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `X509` in this scope [INFO] [stdout] --> src/secure/cert.rs:69:22 [INFO] [stdout] | [INFO] [stdout] 69 | let certificate: X509 = builder.build(); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0405]: cannot find trait `FromRequest` in this scope [INFO] [stdout] --> src/secure/guards/client.rs:20:10 [INFO] [stdout] | [INFO] [stdout] 20 | impl<'r> FromRequest<'r> for ClientInfo { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Request` in this scope [INFO] [stdout] --> src/secure/guards/client.rs:23:40 [INFO] [stdout] | [INFO] [stdout] 23 | async fn from_request(request: &'r Request<'_>) -> request::Outcome { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0405]: cannot find trait `FromRequest` in this scope [INFO] [stdout] --> src/secure/guards/user.rs:21:10 [INFO] [stdout] | [INFO] [stdout] 21 | impl<'r> FromRequest<'r> for UserGuard { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Request` in this scope [INFO] [stdout] --> src/secure/guards/user.rs:24:40 [INFO] [stdout] | [INFO] [stdout] 24 | async fn from_request(request: &'r Request<'_>) -> Outcome { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Outcome` in this scope [INFO] [stdout] --> src/secure/guards/user.rs:24:56 [INFO] [stdout] | [INFO] [stdout] 24 | async fn from_request(request: &'r Request<'_>) -> Outcome { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0405]: cannot find trait `FromRequest` in this scope [INFO] [stdout] --> src/secure/guards/user.rs:38:10 [INFO] [stdout] | [INFO] [stdout] 38 | impl<'r> FromRequest<'r> for AdminGuard { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Request` in this scope [INFO] [stdout] --> src/secure/guards/user.rs:41:40 [INFO] [stdout] | [INFO] [stdout] 41 | async fn from_request(request: &'r Request<'_>) -> Outcome { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Outcome` in this scope [INFO] [stdout] --> src/secure/guards/user.rs:41:56 [INFO] [stdout] | [INFO] [stdout] 41 | async fn from_request(request: &'r Request<'_>) -> Outcome { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Request` in this scope [INFO] [stdout] --> src/secure/guards/mod.rs:21:15 [INFO] [stdout] | [INFO] [stdout] 21 | request: &Request<'_>, [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `ContentType` in this scope [INFO] [stdout] --> src/controllers/index.rs:4:25 [INFO] [stdout] | [INFO] [stdout] 4 | pub async fn home() -> (ContentType, &'static str) { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Status` in this scope [INFO] [stdout] --> src/controllers/mod.rs:9:65 [INFO] [stdout] | [INFO] [stdout] 9 | fn generic_response(result: Result) -> (Status, Value) { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Value` in this scope [INFO] [stdout] --> src/controllers/mod.rs:9:73 [INFO] [stdout] | [INFO] [stdout] 9 | fn generic_response(result: Result) -> (Status, Value) { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Utc` in this scope [INFO] [stdout] --> src/models/user.rs:17:37 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct User { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 17 | pub(crate) created_at: DateTime, [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `DeleteResult` in this scope [INFO] [stdout] --> src/db/mod.rs:131:17 [INFO] [stdout] | [INFO] [stdout] 131 | DeleteResult { deleted_count, .. } if deleted_count > 0 => Ok(()), [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [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::fmt::Error; [INFO] [stdout] | [INFO] [stdout] 1 | use std::error::Error; [INFO] [stdout] | [INFO] [stdout] 1 | use std::fmt::Error; [INFO] [stdout] | [INFO] [stdout] 1 | use std::io::Error; [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: aborting due to 150 previous errors; 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0405, E0412, E0422, E0432, E0433, E0463, E0583, E0706. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0405`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rust_rocket_mongo_` due to 151 previous errors; 2 warnings emitted [INFO] running `Command { std: "docker" "inspect" "c2983a9d4c20562c2cee95a79d1bab0e7c6478458e6d5ec4ebf6d53b461113b6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c2983a9d4c20562c2cee95a79d1bab0e7c6478458e6d5ec4ebf6d53b461113b6", kill_on_drop: false }` [INFO] [stdout] c2983a9d4c20562c2cee95a79d1bab0e7c6478458e6d5ec4ebf6d53b461113b6