[INFO] cloning repository https://github.com/amanraghuvanshi/application-server [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/amanraghuvanshi/application-server" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Famanraghuvanshi%2Fapplication-server", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Famanraghuvanshi%2Fapplication-server'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 4170af8f19a9026a96887c60f46e5cab3fdad89b [INFO] checking amanraghuvanshi/application-server against try#e90f1ff63e694965281f833819a486da29772bdf for pr-146167 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Famanraghuvanshi%2Fapplication-server" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/amanraghuvanshi/application-server [INFO] finished tweaking git repo https://github.com/amanraghuvanshi/application-server [INFO] tweaked toml for git repo https://github.com/amanraghuvanshi/application-server written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/amanraghuvanshi/application-server on toolchain e90f1ff63e694965281f833819a486da29772bdf [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+e90f1ff63e694965281f833819a486da29772bdf" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/amanraghuvanshi/application-server 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" "+e90f1ff63e694965281f833819a486da29772bdf" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [ERROR] error running command: no output for 300 seconds [INFO] checking amanraghuvanshi/application-server against try#e90f1ff63e694965281f833819a486da29772bdf for pr-146167 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Famanraghuvanshi%2Fapplication-server" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/amanraghuvanshi/application-server [INFO] finished tweaking git repo https://github.com/amanraghuvanshi/application-server [INFO] tweaked toml for git repo https://github.com/amanraghuvanshi/application-server written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/amanraghuvanshi/application-server on toolchain e90f1ff63e694965281f833819a486da29772bdf [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+e90f1ff63e694965281f833819a486da29772bdf" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/amanraghuvanshi/application-server 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" "+e90f1ff63e694965281f833819a486da29772bdf" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded rusqlite v0.31.0 [INFO] [stderr] Downloaded libsqlite3-sys v0.28.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+e90f1ff63e694965281f833819a486da29772bdf" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 101b19c313ad83e7b98ac602e9082573c4994c76f9d17d9a54de1401be6e4925 [INFO] running `Command { std: "docker" "start" "-a" "101b19c313ad83e7b98ac602e9082573c4994c76f9d17d9a54de1401be6e4925", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "101b19c313ad83e7b98ac602e9082573c4994c76f9d17d9a54de1401be6e4925", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "101b19c313ad83e7b98ac602e9082573c4994c76f9d17d9a54de1401be6e4925", kill_on_drop: false }` [INFO] [stdout] 101b19c313ad83e7b98ac602e9082573c4994c76f9d17d9a54de1401be6e4925 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+e90f1ff63e694965281f833819a486da29772bdf" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 90a9430232f8a13548844580150580327db0b5dad80af66e3fcce1f597316cb9 [INFO] running `Command { std: "docker" "start" "-a" "90a9430232f8a13548844580150580327db0b5dad80af66e3fcce1f597316cb9", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.85 [INFO] [stderr] Checking zerocopy v0.7.34 [INFO] [stderr] Checking http v0.2.12 [INFO] [stderr] Compiling unicase v2.7.0 [INFO] [stderr] Checking log v0.4.21 [INFO] [stderr] Compiling httparse v1.9.3 [INFO] [stderr] Checking mio v0.8.11 [INFO] [stderr] Checking socket2 v0.5.7 [INFO] [stderr] Checking futures-util v0.3.30 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Compiling serde v1.0.203 [INFO] [stderr] Checking ahash v0.8.11 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking hashbrown v0.14.5 [INFO] [stderr] Checking sha1 v0.10.6 [INFO] [stderr] Checking tokio v1.38.0 [INFO] [stderr] Compiling libsqlite3-sys v0.28.0 [INFO] [stderr] Compiling mime_guess v2.0.4 [INFO] [stderr] Checking tracing v0.1.40 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking http v1.1.0 [INFO] [stderr] Checking indexmap v2.2.6 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Compiling syn v2.0.66 [INFO] [stderr] Compiling multer v2.1.0 [INFO] [stderr] Compiling serde_json v1.0.117 [INFO] [stderr] Checking headers-core v0.2.0 [INFO] [stderr] Checking http-body v0.4.6 [INFO] [stderr] Checking headers v0.3.9 [INFO] [stderr] Checking hashlink v0.9.1 [INFO] [stderr] Checking fallible-iterator v0.3.0 [INFO] [stderr] Checking bitflags v2.5.0 [INFO] [stderr] Checking rusqlite v0.31.0 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking tokio-util v0.7.11 [INFO] [stderr] Checking h2 v0.3.26 [INFO] [stderr] Compiling synstructure v0.13.1 [INFO] [stderr] Compiling zerovec-derive v0.10.2 [INFO] [stderr] Compiling displaydoc v0.2.4 [INFO] [stderr] Compiling icu_provider_macros v1.5.0 [INFO] [stderr] Compiling thiserror-impl v1.0.61 [INFO] [stderr] Compiling pin-project-internal v1.1.5 [INFO] [stderr] Compiling zerofrom-derive v0.1.4 [INFO] [stderr] Compiling yoke-derive v0.7.4 [INFO] [stderr] Checking pin-project v1.1.5 [INFO] [stderr] Checking zerofrom v0.1.4 [INFO] [stderr] Checking thiserror v1.0.61 [INFO] [stderr] Checking yoke v0.7.4 [INFO] [stderr] Checking zerovec v0.10.2 [INFO] [stderr] Checking hyper v0.14.29 [INFO] [stderr] Checking tinystr v0.7.6 [INFO] [stderr] Checking icu_collections v1.5.0 [INFO] [stderr] Checking icu_locid v1.5.0 [INFO] [stderr] Checking icu_provider v1.5.0 [INFO] [stderr] Checking icu_locid_transform v1.5.0 [INFO] [stderr] Checking icu_properties v1.5.0 [INFO] [stderr] Checking icu_normalizer v1.5.0 [INFO] [stderr] Checking idna v1.0.0 [INFO] [stderr] Checking url v2.5.1 [INFO] [stderr] Checking tungstenite v0.21.0 [INFO] [stderr] Checking tokio-tungstenite v0.21.0 [INFO] [stderr] Checking warp v0.3.7 [INFO] [stderr] Checking application-server v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0433]: failed to resolve: could not find `main` in `tokio` [INFO] [stdout] --> src/main.rs:7:10 [INFO] [stdout] | [INFO] [stdout] 7 | #[tokio::main] [INFO] [stdout] | ^^^^ could not find `main` in `tokio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Serialize` in this scope [INFO] [stdout] --> src/models.rs:7:17 [INFO] [stdout] | [INFO] [stdout] 7 | #[derive(Debug, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Serialize` is imported here, but it is only a trait, without a derive macro [INFO] [stdout] --> src/models.rs:4:26 [INFO] [stdout] | [INFO] [stdout] 4 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Deserialize` in this scope [INFO] [stdout] --> src/models.rs:7:28 [INFO] [stdout] | [INFO] [stdout] 7 | #[derive(Debug, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Deserialize` is imported here, but it is only a trait, without a derive macro [INFO] [stdout] --> src/models.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `serde` in this scope [INFO] [stdout] --> src/models.rs:9:7 [INFO] [stdout] | [INFO] [stdout] 9 | #[serde(skip)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `serde` is imported here, but it is a crate, not an attribute [INFO] [stdout] --> src/models.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use serde; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Serialize` in this scope [INFO] [stdout] --> src/models.rs:13:17 [INFO] [stdout] | [INFO] [stdout] 13 | #[derive(Debug, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Serialize` is imported here, but it is only a trait, without a derive macro [INFO] [stdout] --> src/models.rs:4:26 [INFO] [stdout] | [INFO] [stdout] 4 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Deserialize` in this scope [INFO] [stdout] --> src/models.rs:13:28 [INFO] [stdout] | [INFO] [stdout] 13 | #[derive(Debug, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Deserialize` is imported here, but it is only a trait, without a derive macro [INFO] [stdout] --> src/models.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Serialize` in this scope [INFO] [stdout] --> src/models.rs:18:17 [INFO] [stdout] | [INFO] [stdout] 18 | #[derive(Debug, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Serialize` is imported here, but it is only a trait, without a derive macro [INFO] [stdout] --> src/models.rs:4:26 [INFO] [stdout] | [INFO] [stdout] 4 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Deserialize` in this scope [INFO] [stdout] --> src/models.rs:18:28 [INFO] [stdout] | [INFO] [stdout] 18 | #[derive(Debug, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Deserialize` is imported here, but it is only a trait, without a derive macro [INFO] [stdout] --> src/models.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `serde` in this scope [INFO] [stdout] --> src/models.rs:20:7 [INFO] [stdout] | [INFO] [stdout] 20 | #[serde(skip)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `serde` is imported here, but it is a crate, not an attribute [INFO] [stdout] --> src/models.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use serde; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Serialize` in this scope [INFO] [stdout] --> src/models.rs:24:17 [INFO] [stdout] | [INFO] [stdout] 24 | #[derive(Debug, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Serialize` is imported here, but it is only a trait, without a derive macro [INFO] [stdout] --> src/models.rs:4:26 [INFO] [stdout] | [INFO] [stdout] 4 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Deserialize` in this scope [INFO] [stdout] --> src/models.rs:24:28 [INFO] [stdout] | [INFO] [stdout] 24 | #[derive(Debug, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Deserialize` is imported here, but it is only a trait, without a derive macro [INFO] [stdout] --> src/models.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Serialize` in this scope [INFO] [stdout] --> src/models.rs:29:17 [INFO] [stdout] | [INFO] [stdout] 29 | #[derive(Debug, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Serialize` is imported here, but it is only a trait, without a derive macro [INFO] [stdout] --> src/models.rs:4:26 [INFO] [stdout] | [INFO] [stdout] 4 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Deserialize` in this scope [INFO] [stdout] --> src/models.rs:29:28 [INFO] [stdout] | [INFO] [stdout] 29 | #[derive(Debug, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Deserialize` is imported here, but it is only a trait, without a derive macro [INFO] [stdout] --> src/models.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Serialize` in this scope [INFO] [stdout] --> src/models.rs:34:17 [INFO] [stdout] | [INFO] [stdout] 34 | #[derive(Debug, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Serialize` is imported here, but it is only a trait, without a derive macro [INFO] [stdout] --> src/models.rs:4:26 [INFO] [stdout] | [INFO] [stdout] 4 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Deserialize` in this scope [INFO] [stdout] --> src/models.rs:34:28 [INFO] [stdout] | [INFO] [stdout] 34 | #[derive(Debug, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Deserialize` is imported here, but it is only a trait, without a derive macro [INFO] [stdout] --> src/models.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Serialize` in this scope [INFO] [stdout] --> src/models.rs:42:17 [INFO] [stdout] | [INFO] [stdout] 42 | #[derive(Debug, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Serialize` is imported here, but it is only a trait, without a derive macro [INFO] [stdout] --> src/models.rs:4:26 [INFO] [stdout] | [INFO] [stdout] 4 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Deserialize` in this scope [INFO] [stdout] --> src/models.rs:42:28 [INFO] [stdout] | [INFO] [stdout] 42 | #[derive(Debug, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Deserialize` is imported here, but it is only a trait, without a derive macro [INFO] [stdout] --> src/models.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `serde` in this scope [INFO] [stdout] --> src/models.rs:44:7 [INFO] [stdout] | [INFO] [stdout] 44 | #[serde(skip)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `serde` is imported here, but it is a crate, not an attribute [INFO] [stdout] --> src/models.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use serde; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Serialize` in this scope [INFO] [stdout] --> src/models.rs:50:17 [INFO] [stdout] | [INFO] [stdout] 50 | #[derive(Debug, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Serialize` is imported here, but it is only a trait, without a derive macro [INFO] [stdout] --> src/models.rs:4:26 [INFO] [stdout] | [INFO] [stdout] 4 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Deserialize` in this scope [INFO] [stdout] --> src/models.rs:50:28 [INFO] [stdout] | [INFO] [stdout] 50 | #[derive(Debug, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Deserialize` is imported here, but it is only a trait, without a derive macro [INFO] [stdout] --> src/models.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `main` in `tokio` [INFO] [stdout] --> src/main.rs:7:10 [INFO] [stdout] | [INFO] [stdout] 7 | #[tokio::main] [INFO] [stdout] | ^^^^ could not find `main` in `tokio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `reply_with_status` in crate `warp` [INFO] [stdout] --> src/routes.rs:27:18 [INFO] [stdout] | [INFO] [stdout] 27 | Ok(warp::reply_with_status( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in `warp` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0423]: expected value, found builtin type `i64` [INFO] [stdout] --> src/routes.rs:54:34 [INFO] [stdout] | [INFO] [stdout] 54 | return warp::path("orders" / i64 / "items" / i64) [INFO] [stdout] | ^^^ not a value [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0423]: expected value, found builtin type `i64` [INFO] [stdout] --> src/routes.rs:54:50 [INFO] [stdout] | [INFO] [stdout] 54 | return warp::path("orders" / i64 / "items" / i64) [INFO] [stdout] | ^^^ not a value [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0423]: expected value, found builtin type `i64` [INFO] [stdout] --> src/routes.rs:76:34 [INFO] [stdout] | [INFO] [stdout] 76 | return warp::path("tables" / i64 / "items") [INFO] [stdout] | ^^^ not a value [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0423]: expected value, found builtin type `i64` [INFO] [stdout] --> src/routes.rs:83:34 [INFO] [stdout] | [INFO] [stdout] 83 | return warp::path("tables" / i64 / "items" / i64) [INFO] [stdout] | ^^^ not a value [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0423]: expected value, found builtin type `i64` [INFO] [stdout] --> src/routes.rs:83:50 [INFO] [stdout] | [INFO] [stdout] 83 | return warp::path("tables" / i64 / "items" / i64) [INFO] [stdout] | ^^^ not a value [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `MenuResponse`, `Menu`, `OrderItemResponse`, `OrderItem`, `OrderRequestBody`, and `OrderResponseBody` [INFO] [stdout] --> src/handlers.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | Menu, [INFO] [stdout] | ^^^^ [INFO] [stdout] 5 | TableResponse, [INFO] [stdout] 6 | MenuResponse, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 7 | OrderItem, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 8 | OrderItemResponse, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 9 | OrderResponseBody, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 10 | OrderRequestBody, [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: `rand::Rng` [INFO] [stdout] --> src/handlers.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use rand::Rng; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rusqlite::Params` [INFO] [stdout] --> src/handlers.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use rusqlite::Params; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json::json` [INFO] [stdout] --> src/handlers.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use serde_json::json; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `get_order_item_for_table_handler` [INFO] [stdout] --> src/routes.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | get_order_item_for_table_handler, list_menu_handler, list_order_handler, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `clone` [INFO] [stdout] --> src/routes.rs:10:11 [INFO] [stdout] | [INFO] [stdout] 10 | use std::{clone, convert::Infallible}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rusqlite::params` [INFO] [stdout] --> src/models.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use rusqlite::params; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rusqlite::Connection` [INFO] [stdout] --> src/models.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use rusqlite::Connection; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `list` found for struct `Table` in the current scope [INFO] [stdout] --> src/handlers.rs:19:18 [INFO] [stdout] | [INFO] [stdout] 19 | match Table::list(&conn) { [INFO] [stdout] | ^^^^ function or associated item not found in `Table` [INFO] [stdout] | [INFO] [stdout] ::: src/models.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Table { [INFO] [stdout] | ---------------- function or associated item `list` not found for this struct [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Serialize` in this scope [INFO] [stdout] --> src/models.rs:7:17 [INFO] [stdout] | [INFO] [stdout] 7 | #[derive(Debug, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Serialize` is imported here, but it is only a trait, without a derive macro [INFO] [stdout] --> src/models.rs:4:26 [INFO] [stdout] | [INFO] [stdout] 4 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Deserialize` in this scope [INFO] [stdout] --> src/models.rs:7:28 [INFO] [stdout] | [INFO] [stdout] 7 | #[derive(Debug, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Deserialize` is imported here, but it is only a trait, without a derive macro [INFO] [stdout] --> src/models.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `TableResponse: Serialize` is not satisfied [INFO] [stdout] --> src/handlers.rs:26:41 [INFO] [stdout] | [INFO] [stdout] 26 | warp::reply::json::>(&vec![]), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ unsatisfied trait bound [INFO] [stdout] | [INFO] [stdout] help: the trait `Serialize` is not implemented for `TableResponse` [INFO] [stdout] --> src/models.rs:14:1 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct TableResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: the following other types implement trait `Serialize`: [INFO] [stdout] &'a T [INFO] [stdout] &'a mut T [INFO] [stdout] () [INFO] [stdout] (T,) [INFO] [stdout] (T0, T1) [INFO] [stdout] (T0, T1, T2) [INFO] [stdout] (T0, T1, T2, T3) [INFO] [stdout] (T0, T1, T2, T3, T4) [INFO] [stdout] and 131 others [INFO] [stdout] = note: required for `Vec` to implement `Serialize` [INFO] [stdout] note: required by a bound in `warp::reply::json` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/warp-0.3.7/src/reply.rs:101:8 [INFO] [stdout] | [INFO] [stdout] 99 | pub fn json(val: &T) -> Json [INFO] [stdout] | ---- required by a bound in this function [INFO] [stdout] 100 | where [INFO] [stdout] 101 | T: Serialize, [INFO] [stdout] | ^^^^^^^^^ required by this bound in `json` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `serde` in this scope [INFO] [stdout] --> src/models.rs:9:7 [INFO] [stdout] | [INFO] [stdout] 9 | #[serde(skip)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `serde` is imported here, but it is a crate, not an attribute [INFO] [stdout] --> src/models.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use serde; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `warp_reply_json` in this scope [INFO] [stdout] --> src/routes.rs:28:13 [INFO] [stdout] | [INFO] [stdout] 28 | warp_reply_json(&format!("Error: {:?}", err)), [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Serialize` in this scope [INFO] [stdout] --> src/models.rs:13:17 [INFO] [stdout] | [INFO] [stdout] 13 | #[derive(Debug, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Serialize` is imported here, but it is only a trait, without a derive macro [INFO] [stdout] --> src/models.rs:4:26 [INFO] [stdout] | [INFO] [stdout] 4 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Deserialize` in this scope [INFO] [stdout] --> src/models.rs:13:28 [INFO] [stdout] | [INFO] [stdout] 13 | #[derive(Debug, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Deserialize` is imported here, but it is only a trait, without a derive macro [INFO] [stdout] --> src/models.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 0 arguments but 1 argument was supplied [INFO] [stdout] --> src/routes.rs:42:26 [INFO] [stdout] | [INFO] [stdout] 42 | .and_then(|conn| list_order_handler(conn)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ ---- unexpected argument [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> src/handlers.rs:38:8 [INFO] [stdout] | [INFO] [stdout] 38 | pub fn list_order_handler() {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: remove the extra argument [INFO] [stdout] | [INFO] [stdout] 42 - .and_then(|conn| list_order_handler(conn)); [INFO] [stdout] 42 + .and_then(|conn| list_order_handler()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Serialize` in this scope [INFO] [stdout] --> src/models.rs:18:17 [INFO] [stdout] | [INFO] [stdout] 18 | #[derive(Debug, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Serialize` is imported here, but it is only a trait, without a derive macro [INFO] [stdout] --> src/models.rs:4:26 [INFO] [stdout] | [INFO] [stdout] 4 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `()` is not a future [INFO] [stdout] --> src/routes.rs:42:10 [INFO] [stdout] | [INFO] [stdout] 42 | .and_then(|conn| list_order_handler(conn)); [INFO] [stdout] | ^^^^^^^^ `()` is not a future [INFO] [stdout] | [INFO] [stdout] = help: the trait `Future` is not implemented for `()` [INFO] [stdout] = note: required for `()` to implement `futures_core::future::TryFuture` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `()` is not a future [INFO] [stdout] --> src/routes.rs:38:36 [INFO] [stdout] | [INFO] [stdout] 38 | pub fn list_all_orders_routes() -> impl Filter + Clone { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `()` is not a future [INFO] [stdout] | [INFO] [stdout] = help: the trait `Future` is not implemented for `()` [INFO] [stdout] = help: the trait `warp::filter::FilterBase` is implemented for `warp::filter::and_then::AndThen` [INFO] [stdout] = note: required for `()` to implement `futures_core::future::TryFuture` [INFO] [stdout] = note: required for `AndThen>, ...>, ...>, ...>` to implement `warp::filter::FilterBase` [INFO] [stdout] = note: the full name for the type has been written to '/opt/rustwide/target/debug/deps/application_server-8deaae284a9f2326.long-type-13965299301335822395.txt' [INFO] [stdout] = note: consider using `--verbose` to print the full type name to the console [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Deserialize` in this scope [INFO] [stdout] --> src/models.rs:18:28 [INFO] [stdout] | [INFO] [stdout] 18 | #[derive(Debug, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Deserialize` is imported here, but it is only a trait, without a derive macro [INFO] [stdout] --> src/models.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0369]: cannot divide `&str` by `&str` [INFO] [stdout] --> src/routes.rs:46:32 [INFO] [stdout] | [INFO] [stdout] 46 | return warp::path("orders" / "create") [INFO] [stdout] | -------- ^ -------- &str [INFO] [stdout] | | [INFO] [stdout] | &str [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `serde` in this scope [INFO] [stdout] --> src/models.rs:20:7 [INFO] [stdout] | [INFO] [stdout] 20 | #[serde(skip)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `serde` is imported here, but it is a crate, not an attribute [INFO] [stdout] --> src/models.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use serde; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Serialize` in this scope [INFO] [stdout] --> src/models.rs:24:17 [INFO] [stdout] | [INFO] [stdout] 24 | #[derive(Debug, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Serialize` is imported here, but it is only a trait, without a derive macro [INFO] [stdout] --> src/models.rs:4:26 [INFO] [stdout] | [INFO] [stdout] 4 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Deserialize` in this scope [INFO] [stdout] --> src/models.rs:24:28 [INFO] [stdout] | [INFO] [stdout] 24 | #[derive(Debug, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Deserialize` is imported here, but it is only a trait, without a derive macro [INFO] [stdout] --> src/models.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 0 arguments but 2 arguments were supplied [INFO] [stdout] --> src/routes.rs:49:36 [INFO] [stdout] | [INFO] [stdout] 49 | .and_then(|conn, req_body| create_order_handler(conn, req_body)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ ---- -------- unexpected argument #2 [INFO] [stdout] | | [INFO] [stdout] | unexpected argument #1 [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> src/handlers.rs:34:8 [INFO] [stdout] | [INFO] [stdout] 34 | pub fn create_order_handler() {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: remove the extra arguments [INFO] [stdout] | [INFO] [stdout] 49 - .and_then(|conn, req_body| create_order_handler(conn, req_body)); [INFO] [stdout] 49 + .and_then(|conn, req_body| create_order_handler()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0369]: cannot divide `str` by `&str` [INFO] [stdout] --> src/routes.rs:54:38 [INFO] [stdout] | [INFO] [stdout] 54 | return warp::path("orders" / i64 / "items" / i64) [INFO] [stdout] | -------------- ^ ------- &str [INFO] [stdout] | | [INFO] [stdout] | str [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Serialize` in this scope [INFO] [stdout] --> src/models.rs:29:17 [INFO] [stdout] | [INFO] [stdout] 29 | #[derive(Debug, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Serialize` is imported here, but it is only a trait, without a derive macro [INFO] [stdout] --> src/models.rs:4:26 [INFO] [stdout] | [INFO] [stdout] 4 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Deserialize` in this scope [INFO] [stdout] --> src/models.rs:29:28 [INFO] [stdout] | [INFO] [stdout] 29 | #[derive(Debug, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Deserialize` is imported here, but it is only a trait, without a derive macro [INFO] [stdout] --> src/models.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Serialize` in this scope [INFO] [stdout] --> src/models.rs:34:17 [INFO] [stdout] | [INFO] [stdout] 34 | #[derive(Debug, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Serialize` is imported here, but it is only a trait, without a derive macro [INFO] [stdout] --> src/models.rs:4:26 [INFO] [stdout] | [INFO] [stdout] 4 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 0 arguments but 3 arguments were supplied [INFO] [stdout] --> src/routes.rs:57:45 [INFO] [stdout] | [INFO] [stdout] 57 | .and_then(|table_id, menu_id, conn| delete_order_item_handler(conn, table_id, menu_id)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ ---- -------- ------- unexpected argument #3 [INFO] [stdout] | | | [INFO] [stdout] | | unexpected argument #2 [INFO] [stdout] | unexpected argument #1 [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> src/handlers.rs:39:8 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn delete_order_item_handler() {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: remove the extra arguments [INFO] [stdout] | [INFO] [stdout] 57 - .and_then(|table_id, menu_id, conn| delete_order_item_handler(conn, table_id, menu_id)); [INFO] [stdout] 57 + .and_then(|table_id, menu_id, conn| delete_order_item_handler()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Deserialize` in this scope [INFO] [stdout] --> src/models.rs:34:28 [INFO] [stdout] | [INFO] [stdout] 34 | #[derive(Debug, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Deserialize` is imported here, but it is only a trait, without a derive macro [INFO] [stdout] --> src/models.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `Result` is not a future [INFO] [stdout] --> src/routes.rs:64:10 [INFO] [stdout] | [INFO] [stdout] 64 | .and_then(|conn| list_table_handler(conn)); [INFO] [stdout] | ^^^^^^^^ `Result` is not a future [INFO] [stdout] | [INFO] [stdout] = help: the trait `Future` is not implemented for `Result` [INFO] [stdout] = note: required for `Result` to implement `futures_core::future::TryFuture` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Serialize` in this scope [INFO] [stdout] --> src/models.rs:42:17 [INFO] [stdout] | [INFO] [stdout] 42 | #[derive(Debug, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Serialize` is imported here, but it is only a trait, without a derive macro [INFO] [stdout] --> src/models.rs:4:26 [INFO] [stdout] | [INFO] [stdout] 4 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0369]: cannot divide `&str` by `&str` [INFO] [stdout] --> src/routes.rs:68:32 [INFO] [stdout] | [INFO] [stdout] 68 | return warp::path("tables" / "create") [INFO] [stdout] | -------- ^ -------- &str [INFO] [stdout] | | [INFO] [stdout] | &str [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Deserialize` in this scope [INFO] [stdout] --> src/models.rs:42:28 [INFO] [stdout] | [INFO] [stdout] 42 | #[derive(Debug, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Deserialize` is imported here, but it is only a trait, without a derive macro [INFO] [stdout] --> src/models.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `serde` in this scope [INFO] [stdout] --> src/models.rs:44:7 [INFO] [stdout] | [INFO] [stdout] 44 | #[serde(skip)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `serde` is imported here, but it is a crate, not an attribute [INFO] [stdout] --> src/models.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use serde; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Serialize` in this scope [INFO] [stdout] --> src/models.rs:50:17 [INFO] [stdout] | [INFO] [stdout] 50 | #[derive(Debug, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Serialize` is imported here, but it is only a trait, without a derive macro [INFO] [stdout] --> src/models.rs:4:26 [INFO] [stdout] | [INFO] [stdout] 4 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Deserialize` in this scope [INFO] [stdout] --> src/models.rs:50:28 [INFO] [stdout] | [INFO] [stdout] 50 | #[derive(Debug, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Deserialize` is imported here, but it is only a trait, without a derive macro [INFO] [stdout] --> src/models.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 0 arguments but 2 arguments were supplied [INFO] [stdout] --> src/routes.rs:71:36 [INFO] [stdout] | [INFO] [stdout] 71 | .and_then(|req_body, conn| create_table_handler(conn, req_body)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ ---- -------- unexpected argument #2 [INFO] [stdout] | | [INFO] [stdout] | unexpected argument #1 [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> src/handlers.rs:33:8 [INFO] [stdout] | [INFO] [stdout] 33 | pub fn create_table_handler() {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: remove the extra arguments [INFO] [stdout] | [INFO] [stdout] 71 - .and_then(|req_body, conn| create_table_handler(conn, req_body)); [INFO] [stdout] 71 + .and_then(|req_body, conn| create_table_handler()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0369]: cannot divide `str` by `&str` [INFO] [stdout] --> src/routes.rs:76:38 [INFO] [stdout] | [INFO] [stdout] 76 | return warp::path("tables" / i64 / "items") [INFO] [stdout] | -------------- ^ ------- &str [INFO] [stdout] | | [INFO] [stdout] | str [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 0 arguments but 2 arguments were supplied [INFO] [stdout] --> src/routes.rs:79:36 [INFO] [stdout] | [INFO] [stdout] 79 | .and_then(|table_id, conn| list_order_items_for_table_handler(conn, table_id)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ---- -------- unexpected argument #2 [INFO] [stdout] | | [INFO] [stdout] | unexpected argument #1 [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> src/handlers.rs:40:8 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn list_order_items_for_table_handler() {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: remove the extra arguments [INFO] [stdout] | [INFO] [stdout] 79 - .and_then(|table_id, conn| list_order_items_for_table_handler(conn, table_id)); [INFO] [stdout] 79 + .and_then(|table_id, conn| list_order_items_for_table_handler()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0369]: cannot divide `str` by `&str` [INFO] [stdout] --> src/routes.rs:83:38 [INFO] [stdout] | [INFO] [stdout] 83 | return warp::path("tables" / i64 / "items" / i64) [INFO] [stdout] | -------------- ^ ------- &str [INFO] [stdout] | | [INFO] [stdout] | str [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 0 arguments but 3 arguments were supplied [INFO] [stdout] --> src/routes.rs:86:45 [INFO] [stdout] | [INFO] [stdout] 86 | .and_then(|table_id, menu_id, conn| get_item_from_order_route(conn, table_id, menu_id)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ ---- -------- ------- unexpected argument #3 [INFO] [stdout] | | | [INFO] [stdout] | | unexpected argument #2 [INFO] [stdout] | unexpected argument #1 [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> src/routes.rs:82:8 [INFO] [stdout] | [INFO] [stdout] 82 | pub fn get_item_from_order_route() -> impl Filter + Clone { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: remove the extra arguments [INFO] [stdout] | [INFO] [stdout] 86 - .and_then(|table_id, menu_id, conn| get_item_from_order_route(conn, table_id, menu_id)); [INFO] [stdout] 86 + .and_then(|table_id, menu_id, conn| get_item_from_order_route()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `reply_with_status` in crate `warp` [INFO] [stdout] --> src/routes.rs:27:18 [INFO] [stdout] | [INFO] [stdout] 27 | Ok(warp::reply_with_status( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in `warp` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0423]: expected value, found builtin type `i64` [INFO] [stdout] --> src/routes.rs:54:34 [INFO] [stdout] | [INFO] [stdout] 54 | return warp::path("orders" / i64 / "items" / i64) [INFO] [stdout] | ^^^ not a value [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0423]: expected value, found builtin type `i64` [INFO] [stdout] --> src/routes.rs:54:50 [INFO] [stdout] | [INFO] [stdout] 54 | return warp::path("orders" / i64 / "items" / i64) [INFO] [stdout] | ^^^ not a value [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0423]: expected value, found builtin type `i64` [INFO] [stdout] --> src/routes.rs:76:34 [INFO] [stdout] | [INFO] [stdout] 76 | return warp::path("tables" / i64 / "items") [INFO] [stdout] | ^^^ not a value [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0423]: expected value, found builtin type `i64` [INFO] [stdout] --> src/routes.rs:83:34 [INFO] [stdout] | [INFO] [stdout] 83 | return warp::path("tables" / i64 / "items" / i64) [INFO] [stdout] | ^^^ not a value [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0423]: expected value, found builtin type `i64` [INFO] [stdout] --> src/routes.rs:83:50 [INFO] [stdout] | [INFO] [stdout] 83 | return warp::path("tables" / i64 / "items" / i64) [INFO] [stdout] | ^^^ not a value [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `MenuResponse`, `Menu`, `OrderItemResponse`, `OrderItem`, `OrderRequestBody`, and `OrderResponseBody` [INFO] [stdout] --> src/handlers.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | Menu, [INFO] [stdout] | ^^^^ [INFO] [stdout] 5 | TableResponse, [INFO] [stdout] 6 | MenuResponse, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 7 | OrderItem, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 8 | OrderItemResponse, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 9 | OrderResponseBody, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 10 | OrderRequestBody, [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: `rand::Rng` [INFO] [stdout] --> src/handlers.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use rand::Rng; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `application-server` (bin "application-server" test) due to 47 previous errors; 8 warnings emitted [INFO] [stdout] error[E0277]: `()` is not a future [INFO] [stdout] --> src/routes.rs:93:10 [INFO] [stdout] | [INFO] [stdout] 93 | .and_then(|conn| list_menu_handler()); [INFO] [stdout] | ^^^^^^^^ `()` is not a future [INFO] [stdout] | [INFO] [stdout] = help: the trait `Future` is not implemented for `()` [INFO] [stdout] = note: required for `()` to implement `futures_core::future::TryFuture` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: unused import: `rusqlite::Params` [INFO] [stdout] --> src/handlers.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use rusqlite::Params; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json::json` [INFO] [stdout] --> src/handlers.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use serde_json::json; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `get_order_item_for_table_handler` [INFO] [stdout] --> src/routes.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | get_order_item_for_table_handler, list_menu_handler, list_order_handler, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `clone` [INFO] [stdout] --> src/routes.rs:10:11 [INFO] [stdout] | [INFO] [stdout] 10 | use std::{clone, convert::Infallible}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rusqlite::params` [INFO] [stdout] --> src/models.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use rusqlite::params; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rusqlite::Connection` [INFO] [stdout] --> src/models.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use rusqlite::Connection; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `()` is not a future [INFO] [stdout] --> src/routes.rs:89:31 [INFO] [stdout] | [INFO] [stdout] 89 | pub fn list_menus_routes() -> impl Filter + Clone { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `()` is not a future [INFO] [stdout] | [INFO] [stdout] = help: the trait `Future` is not implemented for `()` [INFO] [stdout] = help: the trait `warp::filter::FilterBase` is implemented for `warp::filter::and_then::AndThen` [INFO] [stdout] = note: required for `()` to implement `futures_core::future::TryFuture` [INFO] [stdout] = note: required for `AndThen>, ...>, ...>, ...>` to implement `warp::filter::FilterBase` [INFO] [stdout] = note: the full name for the type has been written to '/opt/rustwide/target/debug/deps/application_server-8deaae284a9f2326.long-type-2459053455076020372.txt' [INFO] [stdout] = note: consider using `--verbose` to print the full type name to the console [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0369]: cannot divide `&str` by `&str` [INFO] [stdout] --> src/routes.rs:97:31 [INFO] [stdout] | [INFO] [stdout] 97 | return warp::path("menus" / "create") [INFO] [stdout] | ------- ^ -------- &str [INFO] [stdout] | | [INFO] [stdout] | &str [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 0 arguments but 2 arguments were supplied [INFO] [stdout] --> src/routes.rs:100:36 [INFO] [stdout] | [INFO] [stdout] 100 | .and_then(|req_body, conn| create_menu_handler(conn, req_body)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ ---- -------- unexpected argument #2 [INFO] [stdout] | | [INFO] [stdout] | unexpected argument #1 [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> src/handlers.rs:37:8 [INFO] [stdout] | [INFO] [stdout] 37 | pub fn create_menu_handler() {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: remove the extra arguments [INFO] [stdout] | [INFO] [stdout] 100 - .and_then(|req_body, conn| create_menu_handler(conn, req_body)); [INFO] [stdout] 100 + .and_then(|req_body, conn| create_menu_handler()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `list` found for struct `Table` in the current scope [INFO] [stdout] --> src/handlers.rs:19:18 [INFO] [stdout] | [INFO] [stdout] 19 | match Table::list(&conn) { [INFO] [stdout] | ^^^^ function or associated item not found in `Table` [INFO] [stdout] | [INFO] [stdout] ::: src/models.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Table { [INFO] [stdout] | ---------------- function or associated item `list` not found for this struct [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `TableResponse: Serialize` is not satisfied [INFO] [stdout] --> src/handlers.rs:26:41 [INFO] [stdout] | [INFO] [stdout] 26 | warp::reply::json::>(&vec![]), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ unsatisfied trait bound [INFO] [stdout] | [INFO] [stdout] help: the trait `Serialize` is not implemented for `TableResponse` [INFO] [stdout] --> src/models.rs:14:1 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct TableResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: the following other types implement trait `Serialize`: [INFO] [stdout] &'a T [INFO] [stdout] &'a mut T [INFO] [stdout] () [INFO] [stdout] (T,) [INFO] [stdout] (T0, T1) [INFO] [stdout] (T0, T1, T2) [INFO] [stdout] (T0, T1, T2, T3) [INFO] [stdout] (T0, T1, T2, T3, T4) [INFO] [stdout] and 131 others [INFO] [stdout] = note: required for `Vec` to implement `Serialize` [INFO] [stdout] note: required by a bound in `warp::reply::json` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/warp-0.3.7/src/reply.rs:101:8 [INFO] [stdout] | [INFO] [stdout] 99 | pub fn json(val: &T) -> Json [INFO] [stdout] | ---- required by a bound in this function [INFO] [stdout] 100 | where [INFO] [stdout] 101 | T: Serialize, [INFO] [stdout] | ^^^^^^^^^ required by this bound in `json` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `warp_reply_json` in this scope [INFO] [stdout] --> src/routes.rs:28:13 [INFO] [stdout] | [INFO] [stdout] 28 | warp_reply_json(&format!("Error: {:?}", err)), [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 0 arguments but 1 argument was supplied [INFO] [stdout] --> src/routes.rs:42:26 [INFO] [stdout] | [INFO] [stdout] 42 | .and_then(|conn| list_order_handler(conn)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ ---- unexpected argument [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> src/handlers.rs:38:8 [INFO] [stdout] | [INFO] [stdout] 38 | pub fn list_order_handler() {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: remove the extra argument [INFO] [stdout] | [INFO] [stdout] 42 - .and_then(|conn| list_order_handler(conn)); [INFO] [stdout] 42 + .and_then(|conn| list_order_handler()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `()` is not a future [INFO] [stdout] --> src/routes.rs:42:10 [INFO] [stdout] | [INFO] [stdout] 42 | .and_then(|conn| list_order_handler(conn)); [INFO] [stdout] | ^^^^^^^^ `()` is not a future [INFO] [stdout] | [INFO] [stdout] = help: the trait `Future` is not implemented for `()` [INFO] [stdout] = note: required for `()` to implement `futures_core::future::TryFuture` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `()` is not a future [INFO] [stdout] --> src/routes.rs:38:36 [INFO] [stdout] | [INFO] [stdout] 38 | pub fn list_all_orders_routes() -> impl Filter + Clone { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `()` is not a future [INFO] [stdout] | [INFO] [stdout] = help: the trait `Future` is not implemented for `()` [INFO] [stdout] = help: the trait `warp::filter::FilterBase` is implemented for `warp::filter::and_then::AndThen` [INFO] [stdout] = note: required for `()` to implement `futures_core::future::TryFuture` [INFO] [stdout] = note: required for `AndThen>, ...>, ...>, ...>` to implement `warp::filter::FilterBase` [INFO] [stdout] = note: the full name for the type has been written to '/opt/rustwide/target/debug/deps/application_server-53d501762c5e8414.long-type-10421742261051857683.txt' [INFO] [stdout] = note: consider using `--verbose` to print the full type name to the console [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0369]: cannot divide `&str` by `&str` [INFO] [stdout] --> src/routes.rs:46:32 [INFO] [stdout] | [INFO] [stdout] 46 | return warp::path("orders" / "create") [INFO] [stdout] | -------- ^ -------- &str [INFO] [stdout] | | [INFO] [stdout] | &str [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0277, E0369, E0423, E0425, E0433, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 0 arguments but 2 arguments were supplied [INFO] [stdout] --> src/routes.rs:49:36 [INFO] [stdout] | [INFO] [stdout] 49 | .and_then(|conn, req_body| create_order_handler(conn, req_body)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ ---- -------- unexpected argument #2 [INFO] [stdout] | | [INFO] [stdout] | unexpected argument #1 [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> src/handlers.rs:34:8 [INFO] [stdout] | [INFO] [stdout] 34 | pub fn create_order_handler() {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: remove the extra arguments [INFO] [stdout] | [INFO] [stdout] 49 - .and_then(|conn, req_body| create_order_handler(conn, req_body)); [INFO] [stdout] 49 + .and_then(|conn, req_body| create_order_handler()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0369]: cannot divide `str` by `&str` [INFO] [stdout] --> src/routes.rs:54:38 [INFO] [stdout] | [INFO] [stdout] 54 | return warp::path("orders" / i64 / "items" / i64) [INFO] [stdout] | -------------- ^ ------- &str [INFO] [stdout] | | [INFO] [stdout] | str [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 0 arguments but 3 arguments were supplied [INFO] [stdout] --> src/routes.rs:57:45 [INFO] [stdout] | [INFO] [stdout] 57 | .and_then(|table_id, menu_id, conn| delete_order_item_handler(conn, table_id, menu_id)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ ---- -------- ------- unexpected argument #3 [INFO] [stdout] | | | [INFO] [stdout] | | unexpected argument #2 [INFO] [stdout] | unexpected argument #1 [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> src/handlers.rs:39:8 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn delete_order_item_handler() {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: remove the extra arguments [INFO] [stdout] | [INFO] [stdout] 57 - .and_then(|table_id, menu_id, conn| delete_order_item_handler(conn, table_id, menu_id)); [INFO] [stdout] 57 + .and_then(|table_id, menu_id, conn| delete_order_item_handler()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `Result` is not a future [INFO] [stdout] --> src/routes.rs:64:10 [INFO] [stdout] | [INFO] [stdout] 64 | .and_then(|conn| list_table_handler(conn)); [INFO] [stdout] | ^^^^^^^^ `Result` is not a future [INFO] [stdout] | [INFO] [stdout] = help: the trait `Future` is not implemented for `Result` [INFO] [stdout] = note: required for `Result` to implement `futures_core::future::TryFuture` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0369]: cannot divide `&str` by `&str` [INFO] [stdout] --> src/routes.rs:68:32 [INFO] [stdout] | [INFO] [stdout] 68 | return warp::path("tables" / "create") [INFO] [stdout] | -------- ^ -------- &str [INFO] [stdout] | | [INFO] [stdout] | &str [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 0 arguments but 2 arguments were supplied [INFO] [stdout] --> src/routes.rs:71:36 [INFO] [stdout] | [INFO] [stdout] 71 | .and_then(|req_body, conn| create_table_handler(conn, req_body)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ ---- -------- unexpected argument #2 [INFO] [stdout] | | [INFO] [stdout] | unexpected argument #1 [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> src/handlers.rs:33:8 [INFO] [stdout] | [INFO] [stdout] 33 | pub fn create_table_handler() {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: remove the extra arguments [INFO] [stdout] | [INFO] [stdout] 71 - .and_then(|req_body, conn| create_table_handler(conn, req_body)); [INFO] [stdout] 71 + .and_then(|req_body, conn| create_table_handler()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0369]: cannot divide `str` by `&str` [INFO] [stdout] --> src/routes.rs:76:38 [INFO] [stdout] | [INFO] [stdout] 76 | return warp::path("tables" / i64 / "items") [INFO] [stdout] | -------------- ^ ------- &str [INFO] [stdout] | | [INFO] [stdout] | str [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 0 arguments but 2 arguments were supplied [INFO] [stdout] --> src/routes.rs:79:36 [INFO] [stdout] | [INFO] [stdout] 79 | .and_then(|table_id, conn| list_order_items_for_table_handler(conn, table_id)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ---- -------- unexpected argument #2 [INFO] [stdout] | | [INFO] [stdout] | unexpected argument #1 [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> src/handlers.rs:40:8 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn list_order_items_for_table_handler() {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: remove the extra arguments [INFO] [stdout] | [INFO] [stdout] 79 - .and_then(|table_id, conn| list_order_items_for_table_handler(conn, table_id)); [INFO] [stdout] 79 + .and_then(|table_id, conn| list_order_items_for_table_handler()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0369]: cannot divide `str` by `&str` [INFO] [stdout] --> src/routes.rs:83:38 [INFO] [stdout] | [INFO] [stdout] 83 | return warp::path("tables" / i64 / "items" / i64) [INFO] [stdout] | -------------- ^ ------- &str [INFO] [stdout] | | [INFO] [stdout] | str [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 0 arguments but 3 arguments were supplied [INFO] [stdout] --> src/routes.rs:86:45 [INFO] [stdout] | [INFO] [stdout] 86 | .and_then(|table_id, menu_id, conn| get_item_from_order_route(conn, table_id, menu_id)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ ---- -------- ------- unexpected argument #3 [INFO] [stdout] | | | [INFO] [stdout] | | unexpected argument #2 [INFO] [stdout] | unexpected argument #1 [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> src/routes.rs:82:8 [INFO] [stdout] | [INFO] [stdout] 82 | pub fn get_item_from_order_route() -> impl Filter + Clone { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: remove the extra arguments [INFO] [stdout] | [INFO] [stdout] 86 - .and_then(|table_id, menu_id, conn| get_item_from_order_route(conn, table_id, menu_id)); [INFO] [stdout] 86 + .and_then(|table_id, menu_id, conn| get_item_from_order_route()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `()` is not a future [INFO] [stdout] --> src/routes.rs:93:10 [INFO] [stdout] | [INFO] [stdout] 93 | .and_then(|conn| list_menu_handler()); [INFO] [stdout] | ^^^^^^^^ `()` is not a future [INFO] [stdout] | [INFO] [stdout] = help: the trait `Future` is not implemented for `()` [INFO] [stdout] = note: required for `()` to implement `futures_core::future::TryFuture` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `()` is not a future [INFO] [stdout] --> src/routes.rs:89:31 [INFO] [stdout] | [INFO] [stdout] 89 | pub fn list_menus_routes() -> impl Filter + Clone { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `()` is not a future [INFO] [stdout] | [INFO] [stdout] = help: the trait `Future` is not implemented for `()` [INFO] [stdout] = help: the trait `warp::filter::FilterBase` is implemented for `warp::filter::and_then::AndThen` [INFO] [stdout] = note: required for `()` to implement `futures_core::future::TryFuture` [INFO] [stdout] = note: required for `AndThen>, ...>, ...>, ...>` to implement `warp::filter::FilterBase` [INFO] [stdout] = note: the full name for the type has been written to '/opt/rustwide/target/debug/deps/application_server-53d501762c5e8414.long-type-14245225407121662540.txt' [INFO] [stdout] = note: consider using `--verbose` to print the full type name to the console [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0369]: cannot divide `&str` by `&str` [INFO] [stdout] --> src/routes.rs:97:31 [INFO] [stdout] | [INFO] [stdout] 97 | return warp::path("menus" / "create") [INFO] [stdout] | ------- ^ -------- &str [INFO] [stdout] | | [INFO] [stdout] | &str [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 0 arguments but 2 arguments were supplied [INFO] [stdout] --> src/routes.rs:100:36 [INFO] [stdout] | [INFO] [stdout] 100 | .and_then(|req_body, conn| create_menu_handler(conn, req_body)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ ---- -------- unexpected argument #2 [INFO] [stdout] | | [INFO] [stdout] | unexpected argument #1 [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> src/handlers.rs:37:8 [INFO] [stdout] | [INFO] [stdout] 37 | pub fn create_menu_handler() {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: remove the extra arguments [INFO] [stdout] | [INFO] [stdout] 100 - .and_then(|req_body, conn| create_menu_handler(conn, req_body)); [INFO] [stdout] 100 + .and_then(|req_body, conn| create_menu_handler()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/main.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | async fn main() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0277, E0369, E0423, E0425, E0433, E0599, E0752. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] [INFO] [stderr] error: could not compile `application-server` (bin "application-server") due to 48 previous errors; 8 warnings emitted [INFO] running `Command { std: "docker" "inspect" "90a9430232f8a13548844580150580327db0b5dad80af66e3fcce1f597316cb9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "90a9430232f8a13548844580150580327db0b5dad80af66e3fcce1f597316cb9", kill_on_drop: false }` [INFO] [stdout] 90a9430232f8a13548844580150580327db0b5dad80af66e3fcce1f597316cb9