[INFO] cloning repository https://github.com/EvilGenius1010/unstop_hackathon_otp_service [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/EvilGenius1010/unstop_hackathon_otp_service" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FEvilGenius1010%2Funstop_hackathon_otp_service", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FEvilGenius1010%2Funstop_hackathon_otp_service'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] e28dc66ebf3e1879a5f1ba2f4a25e3e0e89b932e [INFO] checking EvilGenius1010/unstop_hackathon_otp_service against try#c0a9760914bada211f4924ee16d41ae1a366d2ba for pr-148545 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FEvilGenius1010%2Funstop_hackathon_otp_service" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/EvilGenius1010/unstop_hackathon_otp_service [INFO] finished tweaking git repo https://github.com/EvilGenius1010/unstop_hackathon_otp_service [INFO] tweaked toml for git repo https://github.com/EvilGenius1010/unstop_hackathon_otp_service written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/EvilGenius1010/unstop_hackathon_otp_service on toolchain c0a9760914bada211f4924ee16d41ae1a366d2ba [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c0a9760914bada211f4924ee16d41ae1a366d2ba" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/EvilGenius1010/unstop_hackathon_otp_service 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" "+c0a9760914bada211f4924ee16d41ae1a366d2ba" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded dsl_auto_type v0.1.2 [INFO] [stderr] Downloaded route-recognizer v0.2.0 [INFO] [stderr] Downloaded diesel_derives v2.2.3 [INFO] [stderr] Downloaded pq-sys v0.6.3 [INFO] [stderr] Downloaded cc v1.2.3 [INFO] [stderr] Downloaded diesel v2.2.6 [INFO] [stderr] Downloaded aws-sdk-sns v1.51.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+c0a9760914bada211f4924ee16d41ae1a366d2ba" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 52d4755eb3aa7ab9ce46c058a6b937b9fe4bc606eb978441c9c0fa124fb6cc93 [INFO] running `Command { std: "docker" "start" "-a" "52d4755eb3aa7ab9ce46c058a6b937b9fe4bc606eb978441c9c0fa124fb6cc93", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "52d4755eb3aa7ab9ce46c058a6b937b9fe4bc606eb978441c9c0fa124fb6cc93", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "52d4755eb3aa7ab9ce46c058a6b937b9fe4bc606eb978441c9c0fa124fb6cc93", kill_on_drop: false }` [INFO] [stdout] 52d4755eb3aa7ab9ce46c058a6b937b9fe4bc606eb978441c9c0fa124fb6cc93 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+c0a9760914bada211f4924ee16d41ae1a366d2ba" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] bda938bc2248d9d39354120c66538cc771bee2dd6b6d734364958bee0e4098b4 [INFO] running `Command { std: "docker" "start" "-a" "bda938bc2248d9d39354120c66538cc771bee2dd6b6d734364958bee0e4098b4", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.168 [INFO] [stderr] Checking either v1.13.0 [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Checking outref v0.5.1 [INFO] [stderr] Compiling cc v1.2.3 [INFO] [stderr] Checking tracing v0.1.41 [INFO] [stderr] Checking time v0.3.37 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Checking indexmap v2.7.0 [INFO] [stderr] Checking tinystr v0.7.6 [INFO] [stderr] Compiling aws-types v1.3.3 [INFO] [stderr] Checking icu_collections v1.5.0 [INFO] [stderr] Checking uuid v1.11.0 [INFO] [stderr] Compiling darling_core v0.20.10 [INFO] [stderr] Compiling pin-project-internal v1.1.7 [INFO] [stderr] Checking urlencoding v2.1.3 [INFO] [stderr] Checking base64-simd v0.8.0 [INFO] [stderr] Checking bytes-utils v0.1.4 [INFO] [stderr] Checking xmlparser v0.13.6 [INFO] [stderr] Compiling pq-sys v0.6.3 [INFO] [stderr] Compiling serde v1.0.216 [INFO] [stderr] Checking indexmap v1.9.3 [INFO] [stderr] Compiling serde_derive v1.0.216 [INFO] [stderr] Checking icu_locid v1.5.0 [INFO] [stderr] Compiling diesel_table_macro_syntax v0.2.0 [INFO] [stderr] Compiling serde_json v1.0.133 [INFO] [stderr] Checking http-body v0.3.1 [INFO] [stderr] Checking futures-io v0.3.31 [INFO] [stderr] Checking route-recognizer v0.2.0 [INFO] [stderr] Checking queues v1.1.0 [INFO] [stderr] Checking aws-smithy-xml v0.60.9 [INFO] [stderr] Checking parking_lot_core v0.9.10 [INFO] [stderr] Checking mio v1.0.3 [INFO] [stderr] Checking socket2 v0.5.8 [INFO] [stderr] Checking signal-hook-registry v1.4.2 [INFO] [stderr] Checking getrandom v0.2.15 [INFO] [stderr] Checking iovec v0.1.4 [INFO] [stderr] Checking net2 v0.2.39 [INFO] [stderr] Checking socket2 v0.3.19 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking icu_provider v1.5.0 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking parking_lot v0.12.3 [INFO] [stderr] Compiling ring v0.17.8 [INFO] [stderr] Checking mio v0.6.23 [INFO] [stderr] Checking http-body-util v0.1.2 [INFO] [stderr] Checking futures v0.3.31 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking icu_locid_transform v1.5.0 [INFO] [stderr] Checking pin-project v1.1.7 [INFO] [stderr] Checking tokio v1.42.0 [INFO] [stderr] Checking tracing-futures v0.2.5 [INFO] [stderr] Checking icu_properties v1.5.1 [INFO] [stderr] Checking tokio v0.2.25 [INFO] [stderr] Compiling darling_macro v0.20.10 [INFO] [stderr] Compiling darling v0.20.10 [INFO] [stderr] Compiling dsl_auto_type v0.1.2 [INFO] [stderr] Compiling diesel_derives v2.2.3 [INFO] [stderr] Compiling rustls v0.21.12 [INFO] [stderr] Checking icu_normalizer v1.5.0 [INFO] [stderr] Checking tokio-util v0.3.1 [INFO] [stderr] Checking idna_adapter v1.2.0 [INFO] [stderr] Checking h2 v0.2.7 [INFO] [stderr] Checking idna v1.0.3 [INFO] [stderr] Checking url v2.5.4 [INFO] [stderr] Checking rustls-webpki v0.101.7 [INFO] [stderr] Checking sct v0.7.1 [INFO] [stderr] Checking tokio-util v0.7.13 [INFO] [stderr] Checking aws-smithy-async v1.2.1 [INFO] [stderr] Checking aws-smithy-types v1.2.9 [INFO] [stderr] Checking h2 v0.3.26 [INFO] [stderr] Checking aws-smithy-runtime-api v1.7.3 [INFO] [stderr] Checking aws-smithy-json v0.61.1 [INFO] [stderr] Checking aws-smithy-query v0.60.7 [INFO] [stderr] Checking aws-smithy-json v0.60.7 [INFO] [stderr] Checking tokio-rustls v0.24.1 [INFO] [stderr] Checking diesel v2.2.6 [INFO] [stderr] Checking aws-smithy-http v0.60.11 [INFO] [stderr] Checking aws-credential-types v1.2.1 [INFO] [stderr] Checking hyper v0.13.10 [INFO] [stderr] Checking aws-sigv4 v1.2.6 [INFO] [stderr] Checking hyper v0.14.31 [INFO] [stderr] Checking hyper-rustls v0.24.2 [INFO] [stderr] Checking aws-smithy-runtime v1.7.4 [INFO] [stderr] Checking aws-runtime v1.4.4 [INFO] [stderr] Checking aws-sdk-sso v1.50.0 [INFO] [stderr] Checking aws-sdk-ssooidc v1.51.0 [INFO] [stderr] Checking aws-sdk-sts v1.51.0 [INFO] [stderr] Checking aws-sdk-sns v1.51.0 [INFO] [stderr] Checking aws-config v1.5.10 [INFO] [stderr] Checking otp_service v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error: expected identifier, found `` [INFO] [stdout] --> src/errors.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | pub struct [INFO] [stdout] | ^^^^^^ expected identifier [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected identifier, found `` [INFO] [stdout] --> src/errors.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | pub struct [INFO] [stdout] | ^^^^^^ expected identifier [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `crate::handler` [INFO] [stdout] --> src/utils.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::handler::GeneratedOTP; [INFO] [stdout] | ^^^^^^^ could not find `handler` in the crate root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `crate::handler` [INFO] [stdout] --> src/threadpool.rs:57:12 [INFO] [stdout] | [INFO] [stdout] 57 | use crate::handler::Context; [INFO] [stdout] | ^^^^^^^ could not find `handler` in the crate root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `NaiveDateTime` in this scope [INFO] [stdout] --> src/utils.rs:12:15 [INFO] [stdout] | [INFO] [stdout] 12 | timestamp:NaiveDateTime, [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `naive_timestamp` in this scope [INFO] [stdout] --> src/utils.rs:46:20 [INFO] [stdout] | [INFO] [stdout] 46 | timestamp: naive_timestamp, [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `NonZeroU32` in this scope [INFO] [stdout] --> src/threadpool.rs:47:15 [INFO] [stdout] | [INFO] [stdout] 47 | pool_size:NonZeroU32, [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 55 + use std::num::NonZeroU32; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `num::NonZeroU32` [INFO] [stdout] --> src/httpserver.rs:111:33 [INFO] [stdout] | [INFO] [stdout] 111 | use std::{collections::HashMap, num::NonZeroU32}; //Custom datatype to ensure u32 is nonzero. [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `diesel::insert_into` [INFO] [stdout] --> src/utils.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use diesel::insert_into; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::schema::OTP` [INFO] [stdout] --> src/utils.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::schema::OTP; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Error` [INFO] [stdout] --> src/utils.rs:59:27 [INFO] [stdout] | [INFO] [stdout] 59 | use aws_sdk_sns::{Client, Error}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `crate::handler` [INFO] [stdout] --> src/utils.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::handler::GeneratedOTP; [INFO] [stdout] | ^^^^^^^ could not find `handler` in the crate root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `crate::handler` [INFO] [stdout] --> src/threadpool.rs:57:12 [INFO] [stdout] | [INFO] [stdout] 57 | use crate::handler::Context; [INFO] [stdout] | ^^^^^^^ could not find `handler` in the crate root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `aws_config::from_env`: Use the `aws_config::defaults` function. If you don't care about future default behavior changes, you can continue to use this function by enabling the `behavior-version-latest` feature. Doing so will make this deprecation notice go away. [INFO] [stdout] --> src/utils.rs:79:30 [INFO] [stdout] | [INFO] [stdout] 79 | let config = aws_config::from_env().region(region_provider).load().await; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `NaiveDateTime` in this scope [INFO] [stdout] --> src/utils.rs:12:15 [INFO] [stdout] | [INFO] [stdout] 12 | timestamp:NaiveDateTime, [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `naive_timestamp` in this scope [INFO] [stdout] --> src/utils.rs:46:20 [INFO] [stdout] | [INFO] [stdout] 46 | timestamp: naive_timestamp, [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `NonZeroU32` in this scope [INFO] [stdout] --> src/threadpool.rs:47:15 [INFO] [stdout] | [INFO] [stdout] 47 | pool_size:NonZeroU32, [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 55 + use std::num::NonZeroU32; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `num::NonZeroU32` [INFO] [stdout] --> src/httpserver.rs:111:33 [INFO] [stdout] | [INFO] [stdout] 111 | use std::{collections::HashMap, num::NonZeroU32}; //Custom datatype to ensure u32 is nonzero. [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `diesel::insert_into` [INFO] [stdout] --> src/utils.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use diesel::insert_into; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::schema::OTP` [INFO] [stdout] --> src/utils.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::schema::OTP; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Error` [INFO] [stdout] --> src/utils.rs:59:27 [INFO] [stdout] | [INFO] [stdout] 59 | use aws_sdk_sns::{Client, Error}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `aws_config::from_env`: Use the `aws_config::defaults` function. If you don't care about future default behavior changes, you can continue to use this function by enabling the `behavior-version-latest` feature. Doing so will make this deprecation notice go away. [INFO] [stdout] --> src/utils.rs:79:30 [INFO] [stdout] | [INFO] [stdout] 79 | let config = aws_config::from_env().region(region_provider).load().await; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/httpserver.rs:167:5 [INFO] [stdout] | [INFO] [stdout] 147 | pub async fn send_OTP(ctx:Context)-> impl IntoResponse{ [INFO] [stdout] | ----------------- expected `hyper::Response` because of return type [INFO] [stdout] ... [INFO] [stdout] 167 | "OTP sent successfully".to_string() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Response`, found `String` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `hyper::Response` [INFO] [stdout] found struct `std::string::String` [INFO] [stdout] note: return type inferred to be `hyper::Response` here [INFO] [stdout] --> src/httpserver.rs:151:20 [INFO] [stdout] | [INFO] [stdout] 151 | return hyper::Response::builder() [INFO] [stdout] | ____________________^ [INFO] [stdout] 152 | | .status(StatusCode::BAD_REQUEST) [INFO] [stdout] 153 | | .body(format!("could not parse JSON: {}", e).into()) [INFO] [stdout] 154 | | .unwrap() [INFO] [stdout] | |_____________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0004]: non-exhaustive patterns: type `Method` is non-empty [INFO] [stdout] --> src/httpserver.rs:197:19 [INFO] [stdout] | [INFO] [stdout] 197 | match item.method{ [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Method` defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/http-0.2.12/src/method.rs:46:1 [INFO] [stdout] | [INFO] [stdout] 46 | pub struct Method(Inner); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: the matched value is of type `Method` [INFO] [stdout] help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern as shown [INFO] [stdout] | [INFO] [stdout] 197 ~ match item.method { [INFO] [stdout] 198 + _ => todo!(), [INFO] [stdout] 199 + } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `hyper::Request: Clone` is not satisfied [INFO] [stdout] --> src/httpserver.rs:74:5 [INFO] [stdout] | [INFO] [stdout] 71 | #[derive(Clone,Debug)] [INFO] [stdout] | ----- in this derive macro expansion [INFO] [stdout] ... [INFO] [stdout] 74 | pub req:Request, //req body [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ the trait `Clone` is not implemented for `hyper::Request` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/utils.rs:31:23 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn send_otp_to_db(phone_no:&str){ [INFO] [stdout] | ^^^^^^^^ ---- expected due to this [INFO] [stdout] | | [INFO] [stdout] | expected `str`, found `phone_no` [INFO] [stdout] | `phone_no` is interpreted as a unit struct, not a new binding [INFO] [stdout] | help: introduce a new binding instead: `other_phone_no` [INFO] [stdout] | [INFO] [stdout] ::: src/schema.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | phone_no -> Text, [INFO] [stdout] | -------- unit struct defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 1 argument but 0 arguments were supplied [INFO] [stdout] --> src/utils.rs:36:23 [INFO] [stdout] | [INFO] [stdout] 36 | let connection = establish_connection(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^-- argument #1 of type `&str` is missing [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> src/utils.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn establish_connection(connection_url: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ -------------------- [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 36 | let connection = establish_connection(/* &str */); [INFO] [stdout] | ++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/utils.rs:48:19 [INFO] [stdout] | [INFO] [stdout] 48 | mainUser: phone_no, [INFO] [stdout] | ^^^^^^^^ expected `&str`, found `phone_no` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:57:41 [INFO] [stdout] | [INFO] [stdout] 57 | let mut router:Router = Router::new(routes_array); //define new router [INFO] [stdout] | ----------- ^^^^^^^^^^^^ expected `[&RoutesStruct; 3]`, found `[RoutesStruct; 3]` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected array `[&RoutesStruct; 3]` [INFO] [stdout] found array `[RoutesStruct; 3]` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> src/httpserver.rs:195:18 [INFO] [stdout] | [INFO] [stdout] 195 | pub async fn new(routes:[&RoutesStruct;3]){ [INFO] [stdout] | ^^^ ------------------------ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:57:29 [INFO] [stdout] | [INFO] [stdout] 57 | let mut router:Router = Router::new(routes_array); //define new router [INFO] [stdout] | ------ ^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Router`, found future [INFO] [stdout] | | [INFO] [stdout] | expected due to this [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `()` is not a future [INFO] [stdout] --> src/main.rs:63:22 [INFO] [stdout] | [INFO] [stdout] 63 | let service_fn = make_service_fn(|_|{ [INFO] [stdout] | ______________________^ [INFO] [stdout] 64 | | [INFO] [stdout] 65 | | }); [INFO] [stdout] | |______^ `()` is not a future [INFO] [stdout] | [INFO] [stdout] = help: the trait `futures::Future` is not implemented for `()` [INFO] [stdout] note: required by a bound in `make_service_fn` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/hyper-0.13.10/src/service/make.rs:141:10 [INFO] [stdout] | [INFO] [stdout] 138 | pub fn make_service_fn(f: F) -> MakeServiceFn [INFO] [stdout] | --------------- required by a bound in this function [INFO] [stdout] ... [INFO] [stdout] 141 | Ret: Future, [INFO] [stdout] | ^^^^^^ required by this bound in `make_service_fn` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `()` is not a future [INFO] [stdout] --> src/main.rs:69:44 [INFO] [stdout] | [INFO] [stdout] 69 | let server = Server::bind(&addr).serve(service_fn); [INFO] [stdout] | ----- ^^^^^^^^^^ `()` is not a future [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = help: the trait `futures::Future` is not implemented for `()` [INFO] [stdout] = note: required for `hyper::service::make::MakeServiceFn<{closure@src/main.rs:63:38: 63:41}>` to implement `for<'a> Service<&'a AddrStream>` [INFO] [stdout] = note: required for `hyper::service::make::MakeServiceFn<{closure@src/main.rs:63:38: 63:41}>` to implement `hyper::service::make::MakeServiceRef` [INFO] [stdout] note: required by a bound in `hyper::server::Builder::::serve` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/hyper-0.13.10/src/server/mod.rs:447:12 [INFO] [stdout] | [INFO] [stdout] 442 | pub fn serve(self, new_service: S) -> Server [INFO] [stdout] | ----- required by a bound in this associated function [INFO] [stdout] ... [INFO] [stdout] 447 | S: MakeServiceRef, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `Builder::::serve` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/httpserver.rs:167:5 [INFO] [stdout] | [INFO] [stdout] 147 | pub async fn send_OTP(ctx:Context)-> impl IntoResponse{ [INFO] [stdout] | ----------------- expected `hyper::Response` because of return type [INFO] [stdout] ... [INFO] [stdout] 167 | "OTP sent successfully".to_string() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Response`, found `String` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `hyper::Response` [INFO] [stdout] found struct `std::string::String` [INFO] [stdout] note: return type inferred to be `hyper::Response` here [INFO] [stdout] --> src/httpserver.rs:151:20 [INFO] [stdout] | [INFO] [stdout] 151 | return hyper::Response::builder() [INFO] [stdout] | ____________________^ [INFO] [stdout] 152 | | .status(StatusCode::BAD_REQUEST) [INFO] [stdout] 153 | | .body(format!("could not parse JSON: {}", e).into()) [INFO] [stdout] 154 | | .unwrap() [INFO] [stdout] | |_____________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const method `::to_string` in constants [INFO] [stdout] --> src/main.rs:42:30 [INFO] [stdout] | [INFO] [stdout] 42 | route:"/sendOTP".to_string(), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: method `to_string` is not const because trait `ToString` is not const [INFO] [stdout] --> /rustc/c0a9760914bada211f4924ee16d41ae1a366d2ba/library/alloc/src/string.rs:2868:0 [INFO] [stdout] | [INFO] [stdout] = note: this trait is not const [INFO] [stdout] ::: /rustc/c0a9760914bada211f4924ee16d41ae1a366d2ba/library/alloc/src/string.rs:2882:4 [INFO] [stdout] | [INFO] [stdout] = note: this method is not const [INFO] [stdout] = note: calls in constants are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const associated function `Box:: impl futures::Future {send_OTP}>::new` in constants [INFO] [stdout] --> src/main.rs:43:21 [INFO] [stdout] | [INFO] [stdout] 43 | handler:Box::new(send_OTP) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constants are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const method `::to_string` in constants [INFO] [stdout] --> src/main.rs:47:32 [INFO] [stdout] | [INFO] [stdout] 47 | route:"/resendOTP".to_string(), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: method `to_string` is not const because trait `ToString` is not const [INFO] [stdout] --> /rustc/c0a9760914bada211f4924ee16d41ae1a366d2ba/library/alloc/src/string.rs:2868:0 [INFO] [stdout] | [INFO] [stdout] = note: this trait is not const [INFO] [stdout] ::: /rustc/c0a9760914bada211f4924ee16d41ae1a366d2ba/library/alloc/src/string.rs:2882:4 [INFO] [stdout] | [INFO] [stdout] = note: this method is not const [INFO] [stdout] = note: calls in constants are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const associated function `Box:: impl futures::Future {resend_OTP}>::new` in constants [INFO] [stdout] --> src/main.rs:48:21 [INFO] [stdout] | [INFO] [stdout] 48 | handler:Box::new(resend_OTP) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constants are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const method `::to_string` in constants [INFO] [stdout] --> src/main.rs:52:32 [INFO] [stdout] | [INFO] [stdout] 52 | route:"/verifyOTP".to_string(), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: method `to_string` is not const because trait `ToString` is not const [INFO] [stdout] --> /rustc/c0a9760914bada211f4924ee16d41ae1a366d2ba/library/alloc/src/string.rs:2868:0 [INFO] [stdout] | [INFO] [stdout] = note: this trait is not const [INFO] [stdout] ::: /rustc/c0a9760914bada211f4924ee16d41ae1a366d2ba/library/alloc/src/string.rs:2882:4 [INFO] [stdout] | [INFO] [stdout] = note: this method is not const [INFO] [stdout] = note: calls in constants are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const associated function `Box:: impl futures::Future {verify_OTP}>::new` in constants [INFO] [stdout] --> src/main.rs:53:21 [INFO] [stdout] | [INFO] [stdout] 53 | handler:Box::new(verify_OTP) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constants are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0004]: non-exhaustive patterns: type `Method` is non-empty [INFO] [stdout] --> src/httpserver.rs:197:19 [INFO] [stdout] | [INFO] [stdout] 197 | match item.method{ [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Method` defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/http-0.2.12/src/method.rs:46:1 [INFO] [stdout] | [INFO] [stdout] 46 | pub struct Method(Inner); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: the matched value is of type `Method` [INFO] [stdout] help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern as shown [INFO] [stdout] | [INFO] [stdout] 197 ~ match item.method { [INFO] [stdout] 198 + _ => todo!(), [INFO] [stdout] 199 + } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `hyper::Request: Clone` is not satisfied [INFO] [stdout] --> src/httpserver.rs:74:5 [INFO] [stdout] | [INFO] [stdout] 71 | #[derive(Clone,Debug)] [INFO] [stdout] | ----- in this derive macro expansion [INFO] [stdout] ... [INFO] [stdout] 74 | pub req:Request, //req body [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ the trait `Clone` is not implemented for `hyper::Request` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/utils.rs:31:23 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn send_otp_to_db(phone_no:&str){ [INFO] [stdout] | ^^^^^^^^ ---- expected due to this [INFO] [stdout] | | [INFO] [stdout] | expected `str`, found `phone_no` [INFO] [stdout] | `phone_no` is interpreted as a unit struct, not a new binding [INFO] [stdout] | help: introduce a new binding instead: `other_phone_no` [INFO] [stdout] | [INFO] [stdout] ::: src/schema.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | phone_no -> Text, [INFO] [stdout] | -------- unit struct defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 1 argument but 0 arguments were supplied [INFO] [stdout] --> src/utils.rs:36:23 [INFO] [stdout] | [INFO] [stdout] 36 | let connection = establish_connection(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^-- argument #1 of type `&str` is missing [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> src/utils.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn establish_connection(connection_url: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ -------------------- [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 36 | let connection = establish_connection(/* &str */); [INFO] [stdout] | ++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/httpserver.rs:171:25 [INFO] [stdout] | [INFO] [stdout] 171 | pub async fn resend_OTP(ctx:Context)-> impl IntoResponse{ [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/utils.rs:48:19 [INFO] [stdout] | [INFO] [stdout] 48 | mainUser: phone_no, [INFO] [stdout] | ^^^^^^^^ expected `&str`, found `phone_no` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/httpserver.rs:177:25 [INFO] [stdout] | [INFO] [stdout] 177 | pub async fn verify_OTP(ctx:Context)-> impl IntoResponse{ [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `api_key` [INFO] [stdout] --> src/utils.rs:71:9 [INFO] [stdout] | [INFO] [stdout] 71 | let api_key = env::var("AWS_ACCESS_KEY_ID").expect("AWS_ACCESS_KEY_ID must be set"); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_api_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `api_secret_key` [INFO] [stdout] --> src/utils.rs:72:9 [INFO] [stdout] | [INFO] [stdout] 72 | let api_secret_key = env::var("AWS_SECRET_ACCESS_KEY").expect("AWS_SECRET_ACCESS_KEY must be set"); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_api_secret_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:57:41 [INFO] [stdout] | [INFO] [stdout] 57 | let mut router:Router = Router::new(routes_array); //define new router [INFO] [stdout] | ----------- ^^^^^^^^^^^^ expected `[&RoutesStruct; 3]`, found `[RoutesStruct; 3]` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected array `[&RoutesStruct; 3]` [INFO] [stdout] found array `[RoutesStruct; 3]` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> src/httpserver.rs:195:18 [INFO] [stdout] | [INFO] [stdout] 195 | pub async fn new(routes:[&RoutesStruct;3]){ [INFO] [stdout] | ^^^ ------------------------ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:57:29 [INFO] [stdout] | [INFO] [stdout] 57 | let mut router:Router = Router::new(routes_array); //define new router [INFO] [stdout] | ------ ^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Router`, found future [INFO] [stdout] | | [INFO] [stdout] | expected due to this [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `()` is not a future [INFO] [stdout] --> src/main.rs:63:22 [INFO] [stdout] | [INFO] [stdout] 63 | let service_fn = make_service_fn(|_|{ [INFO] [stdout] | ______________________^ [INFO] [stdout] 64 | | [INFO] [stdout] 65 | | }); [INFO] [stdout] | |______^ `()` is not a future [INFO] [stdout] | [INFO] [stdout] = help: the trait `futures::Future` is not implemented for `()` [INFO] [stdout] note: required by a bound in `make_service_fn` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/hyper-0.13.10/src/service/make.rs:141:10 [INFO] [stdout] | [INFO] [stdout] 138 | pub fn make_service_fn(f: F) -> MakeServiceFn [INFO] [stdout] | --------------- required by a bound in this function [INFO] [stdout] ... [INFO] [stdout] 141 | Ret: Future, [INFO] [stdout] | ^^^^^^ required by this bound in `make_service_fn` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `()` is not a future [INFO] [stdout] --> src/main.rs:69:44 [INFO] [stdout] | [INFO] [stdout] 69 | let server = Server::bind(&addr).serve(service_fn); [INFO] [stdout] | ----- ^^^^^^^^^^ `()` is not a future [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = help: the trait `futures::Future` is not implemented for `()` [INFO] [stdout] = note: required for `hyper::service::make::MakeServiceFn<{closure@src/main.rs:63:38: 63:41}>` to implement `for<'a> Service<&'a AddrStream>` [INFO] [stdout] = note: required for `hyper::service::make::MakeServiceFn<{closure@src/main.rs:63:38: 63:41}>` to implement `hyper::service::make::MakeServiceRef` [INFO] [stdout] note: required by a bound in `hyper::server::Builder::::serve` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/hyper-0.13.10/src/server/mod.rs:447:12 [INFO] [stdout] | [INFO] [stdout] 442 | pub fn serve(self, new_service: S) -> Server [INFO] [stdout] | ----- required by a bound in this associated function [INFO] [stdout] ... [INFO] [stdout] 447 | S: MakeServiceRef, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `Builder::::serve` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const method `::to_string` in constants [INFO] [stdout] --> src/main.rs:42:30 [INFO] [stdout] | [INFO] [stdout] 42 | route:"/sendOTP".to_string(), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: method `to_string` is not const because trait `ToString` is not const [INFO] [stdout] --> /rustc/c0a9760914bada211f4924ee16d41ae1a366d2ba/library/alloc/src/string.rs:2868:0 [INFO] [stdout] | [INFO] [stdout] = note: this trait is not const [INFO] [stdout] ::: /rustc/c0a9760914bada211f4924ee16d41ae1a366d2ba/library/alloc/src/string.rs:2882:4 [INFO] [stdout] | [INFO] [stdout] = note: this method is not const [INFO] [stdout] = note: calls in constants are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const associated function `Box:: impl futures::Future {send_OTP}>::new` in constants [INFO] [stdout] --> src/main.rs:43:21 [INFO] [stdout] | [INFO] [stdout] 43 | handler:Box::new(send_OTP) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constants are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const method `::to_string` in constants [INFO] [stdout] --> src/main.rs:47:32 [INFO] [stdout] | [INFO] [stdout] 47 | route:"/resendOTP".to_string(), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: method `to_string` is not const because trait `ToString` is not const [INFO] [stdout] --> /rustc/c0a9760914bada211f4924ee16d41ae1a366d2ba/library/alloc/src/string.rs:2868:0 [INFO] [stdout] | [INFO] [stdout] = note: this trait is not const [INFO] [stdout] ::: /rustc/c0a9760914bada211f4924ee16d41ae1a366d2ba/library/alloc/src/string.rs:2882:4 [INFO] [stdout] | [INFO] [stdout] = note: this method is not const [INFO] [stdout] = note: calls in constants are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const associated function `Box:: impl futures::Future {resend_OTP}>::new` in constants [INFO] [stdout] --> src/main.rs:48:21 [INFO] [stdout] | [INFO] [stdout] 48 | handler:Box::new(resend_OTP) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constants are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const method `::to_string` in constants [INFO] [stdout] --> src/main.rs:52:32 [INFO] [stdout] | [INFO] [stdout] 52 | route:"/verifyOTP".to_string(), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: method `to_string` is not const because trait `ToString` is not const [INFO] [stdout] --> /rustc/c0a9760914bada211f4924ee16d41ae1a366d2ba/library/alloc/src/string.rs:2868:0 [INFO] [stdout] | [INFO] [stdout] = note: this trait is not const [INFO] [stdout] ::: /rustc/c0a9760914bada211f4924ee16d41ae1a366d2ba/library/alloc/src/string.rs:2882:4 [INFO] [stdout] | [INFO] [stdout] = note: this method is not const [INFO] [stdout] = note: calls in constants are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const associated function `Box:: impl futures::Future {verify_OTP}>::new` in constants [INFO] [stdout] --> src/main.rs:53:21 [INFO] [stdout] | [INFO] [stdout] 53 | handler:Box::new(verify_OTP) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constants are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0004, E0015, E0061, E0277, E0308, E0425, E0432. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0004`. [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/httpserver.rs:171:25 [INFO] [stdout] | [INFO] [stdout] 171 | pub async fn resend_OTP(ctx:Context)-> impl IntoResponse{ [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/httpserver.rs:177:25 [INFO] [stdout] | [INFO] [stdout] 177 | pub async fn verify_OTP(ctx:Context)-> impl IntoResponse{ [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `otp_service` (bin "otp_service") due to 22 previous errors; 9 warnings emitted [INFO] [stdout] warning: unused variable: `api_key` [INFO] [stdout] --> src/utils.rs:71:9 [INFO] [stdout] | [INFO] [stdout] 71 | let api_key = env::var("AWS_ACCESS_KEY_ID").expect("AWS_ACCESS_KEY_ID must be set"); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_api_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: unused variable: `api_secret_key` [INFO] [stdout] --> src/utils.rs:72:9 [INFO] [stdout] | [INFO] [stdout] 72 | let api_secret_key = env::var("AWS_SECRET_ACCESS_KEY").expect("AWS_SECRET_ACCESS_KEY must be set"); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_api_secret_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0004, E0015, E0061, E0277, E0308, E0425, E0432. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0004`. [INFO] [stdout] [INFO] [stderr] error: could not compile `otp_service` (bin "otp_service" test) due to 22 previous errors; 9 warnings emitted [INFO] running `Command { std: "docker" "inspect" "bda938bc2248d9d39354120c66538cc771bee2dd6b6d734364958bee0e4098b4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bda938bc2248d9d39354120c66538cc771bee2dd6b6d734364958bee0e4098b4", kill_on_drop: false }` [INFO] [stdout] bda938bc2248d9d39354120c66538cc771bee2dd6b6d734364958bee0e4098b4