[INFO] fetching crate darpi-middleware 0.1.0-beta.1... [INFO] testing darpi-middleware-0.1.0-beta.1 against try#d2e9fff28e244f1ea4927194f1f9b77f93e2ffe2 for pr-86479 [INFO] extracting crate darpi-middleware 0.1.0-beta.1 into /workspace/builds/worker-7/source [INFO] validating manifest of crates.io crate darpi-middleware 0.1.0-beta.1 on toolchain d2e9fff28e244f1ea4927194f1f9b77f93e2ffe2 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+d2e9fff28e244f1ea4927194f1f9b77f93e2ffe2" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate darpi-middleware 0.1.0-beta.1 [INFO] finished tweaking crates.io crate darpi-middleware 0.1.0-beta.1 [INFO] tweaked toml for crates.io crate darpi-middleware 0.1.0-beta.1 written to /workspace/builds/worker-7/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+d2e9fff28e244f1ea4927194f1f9b77f93e2ffe2" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+d2e9fff28e244f1ea4927194f1f9b77f93e2ffe2" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded darpi-headers v0.1.0-beta.1 [INFO] [stderr] Downloaded darpi v0.1.5 [INFO] [stderr] Downloaded darpi-web v0.1.0-beta.1 [INFO] [stderr] Downloaded shaku v0.5.0 [INFO] [stderr] Downloaded shaku_derive v0.5.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+d2e9fff28e244f1ea4927194f1f9b77f93e2ffe2" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] ad0280f1d70b8c137b5533951e56ce604b83975fd7c848a534ab5092cd9e672f [INFO] running `Command { std: "docker" "start" "-a" "ad0280f1d70b8c137b5533951e56ce604b83975fd7c848a534ab5092cd9e672f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ad0280f1d70b8c137b5533951e56ce604b83975fd7c848a534ab5092cd9e672f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ad0280f1d70b8c137b5533951e56ce604b83975fd7c848a534ab5092cd9e672f", kill_on_drop: false }` [INFO] [stdout] ad0280f1d70b8c137b5533951e56ce604b83975fd7c848a534ab5092cd9e672f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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" "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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+d2e9fff28e244f1ea4927194f1f9b77f93e2ffe2" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a24508e8212bd25def06be0b840da7c68cb545bd13a5af61bfb878ff306195e1 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "a24508e8212bd25def06be0b840da7c68cb545bd13a5af61bfb878ff306195e1", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.28 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling serde_derive v1.0.127 [INFO] [stderr] Compiling futures-channel v0.3.16 [INFO] [stderr] Compiling serde v1.0.127 [INFO] [stderr] Compiling typenum v1.13.0 [INFO] [stderr] Compiling version_check v0.9.3 [INFO] [stderr] Compiling futures-task v0.3.16 [INFO] [stderr] Compiling proc-macro-nested v0.1.7 [INFO] [stderr] Compiling futures-io v0.3.16 [INFO] [stderr] Compiling beef v0.4.4 [INFO] [stderr] Compiling cpufeatures v0.1.5 [INFO] [stderr] Compiling opaque-debug v0.3.0 [INFO] [stderr] Compiling utf-8 v0.7.6 [INFO] [stderr] Compiling zstd-safe v3.1.0+zstd.1.4.9 [INFO] [stderr] Compiling alloc-no-stdlib v2.0.3 [INFO] [stderr] Compiling either v1.6.1 [INFO] [stderr] Compiling bytes v0.5.6 [INFO] [stderr] Compiling spin v0.5.2 [INFO] [stderr] Compiling pin-project-lite v0.1.12 [INFO] [stderr] Compiling base64 v0.12.3 [INFO] [stderr] Compiling futures-macro v0.3.16 [INFO] [stderr] Compiling tokio v1.9.0 [INFO] [stderr] Compiling futures-util v0.3.16 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling indexmap v1.7.0 [INFO] [stderr] Compiling num-bigint v0.2.6 [INFO] [stderr] Compiling tokio v0.3.7 [INFO] [stderr] Compiling instant v0.1.10 [INFO] [stderr] Compiling lock_api v0.4.4 [INFO] [stderr] Compiling tracing-core v0.1.18 [INFO] [stderr] Compiling input_buffer v0.4.0 [INFO] [stderr] Compiling regex v1.5.4 [INFO] [stderr] Compiling http v0.2.4 [INFO] [stderr] Compiling alloc-stdlib v0.2.1 [INFO] [stderr] Compiling tokio v0.2.25 [INFO] [stderr] Compiling crc32fast v1.2.1 [INFO] [stderr] Compiling jobserver v0.1.22 [INFO] [stderr] Compiling parking_lot_core v0.8.3 [INFO] [stderr] Compiling signal-hook-registry v1.4.0 [INFO] [stderr] Compiling time v0.1.43 [INFO] [stderr] Compiling socket2 v0.4.1 [INFO] [stderr] Compiling brotli-decompressor v2.3.2 [INFO] [stderr] Compiling generic-array v0.14.4 [INFO] [stderr] Compiling mio v0.7.13 [INFO] [stderr] Compiling want v0.3.0 [INFO] [stderr] Compiling cc v1.0.69 [INFO] [stderr] Compiling flate2 v1.0.20 [INFO] [stderr] Compiling tracing v0.1.26 [INFO] [stderr] Compiling parking_lot v0.11.1 [INFO] [stderr] Compiling chrono v0.4.19 [INFO] [stderr] Compiling rayon v1.5.1 [INFO] [stderr] Compiling quote v1.0.9 [INFO] [stderr] Compiling pem v0.8.3 [INFO] [stderr] Compiling syn v1.0.74 [INFO] [stderr] Compiling zstd-sys v1.5.0+zstd.1.4.9 [INFO] [stderr] Compiling lzma-sys v0.1.17 [INFO] [stderr] Compiling bzip2-sys v0.1.11+1.0.8 [INFO] [stderr] Compiling ring v0.16.20 [INFO] [stderr] Compiling brotli v3.3.2 [INFO] [stderr] Compiling simple_asn1 v0.4.1 [INFO] [stderr] Compiling digest v0.9.0 [INFO] [stderr] Compiling block-buffer v0.9.0 [INFO] [stderr] Compiling sha-1 v0.9.7 [INFO] [stderr] Compiling http-body v0.4.2 [INFO] [stderr] Compiling xz2 v0.1.6 [INFO] [stderr] Compiling bzip2 v0.4.3 [INFO] [stderr] Compiling tokio-macros v1.3.0 [INFO] [stderr] Compiling thiserror-impl v1.0.26 [INFO] [stderr] Compiling logos-derive v0.11.5 [INFO] [stderr] Compiling pin-project-internal v1.0.8 [INFO] [stderr] Compiling shaku_derive v0.5.0 [INFO] [stderr] Compiling async-trait v0.1.51 [INFO] [stderr] Compiling derive_more v0.99.16 [INFO] [stderr] Compiling shaku v0.5.0 [INFO] [stderr] Compiling thiserror v1.0.26 [INFO] [stderr] Compiling pin-project v1.0.8 [INFO] [stderr] Compiling tungstenite v0.13.0 [INFO] [stderr] Compiling logos v0.11.4 [INFO] [stderr] Compiling darpi-route v0.1.0 [INFO] [stderr] Compiling futures-executor v0.3.16 [INFO] [stderr] Compiling futures v0.3.16 [INFO] [stderr] Compiling tokio-util v0.6.7 [INFO] [stderr] Compiling tokio-tungstenite v0.14.0 [INFO] [stderr] Compiling h2 v0.3.3 [INFO] [stderr] Compiling serde_json v1.0.66 [INFO] [stderr] Compiling serde_yaml v0.8.17 [INFO] [stderr] Compiling serde-xml-rs v0.4.1 [INFO] [stderr] Compiling serde_urlencoded v0.7.0 [INFO] [stderr] Compiling jsonwebtoken v7.2.0 [INFO] [stderr] Compiling darpi-code-gen v0.1.1-beta.1 [INFO] [stderr] Compiling hyper v0.14.11 [INFO] [stderr] Compiling zstd v0.7.0+zstd.1.4.9 [INFO] [stderr] Compiling async-compression v0.3.8 [INFO] [stderr] Compiling darpi-web v0.1.0-beta.1 [INFO] [stderr] Compiling darpi v0.1.5 [INFO] [stderr] Compiling darpi-headers v0.1.0-beta.1 [INFO] [stderr] Compiling darpi-middleware v0.1.0-beta.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `RequestParts` [INFO] [stdout] --> src/compression.rs:7:58 [INFO] [stdout] | [INFO] [stdout] 7 | middleware, response::ResponderError, Body, Request, RequestParts, Response, StatusCode, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 2m 12s [INFO] running `Command { std: "docker" "inspect" "a24508e8212bd25def06be0b840da7c68cb545bd13a5af61bfb878ff306195e1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a24508e8212bd25def06be0b840da7c68cb545bd13a5af61bfb878ff306195e1", kill_on_drop: false }` [INFO] [stdout] a24508e8212bd25def06be0b840da7c68cb545bd13a5af61bfb878ff306195e1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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" "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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+d2e9fff28e244f1ea4927194f1f9b77f93e2ffe2" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] accae6861fe3b8dc1258b9f696f79985b06e138474f57c23955e58e07b67e22f [INFO] running `Command { std: "docker" "start" "-a" "accae6861fe3b8dc1258b9f696f79985b06e138474f57c23955e58e07b67e22f", kill_on_drop: false }` [INFO] [stderr] Compiling darpi-middleware v0.1.0-beta.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `RequestParts` [INFO] [stdout] --> src/compression.rs:7:58 [INFO] [stdout] | [INFO] [stdout] 7 | middleware, response::ResponderError, Body, Request, RequestParts, Response, StatusCode, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `RequestParts` [INFO] [stdout] --> src/compression.rs:7:58 [INFO] [stdout] | [INFO] [stdout] 7 | middleware, response::ResponderError, Body, Request, RequestParts, Response, StatusCode, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 2.22s [INFO] running `Command { std: "docker" "inspect" "accae6861fe3b8dc1258b9f696f79985b06e138474f57c23955e58e07b67e22f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "accae6861fe3b8dc1258b9f696f79985b06e138474f57c23955e58e07b67e22f", kill_on_drop: false }` [INFO] [stdout] accae6861fe3b8dc1258b9f696f79985b06e138474f57c23955e58e07b67e22f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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" "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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+d2e9fff28e244f1ea4927194f1f9b77f93e2ffe2" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 63cfaba990103e1702625616fcb4b4603d3563e7c35d86ae42e92f6e84123f38 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "63cfaba990103e1702625616fcb4b4603d3563e7c35d86ae42e92f6e84123f38", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `RequestParts` [INFO] [stderr] --> src/compression.rs:7:58 [INFO] [stderr] | [INFO] [stderr] 7 | middleware, response::ResponderError, Body, Request, RequestParts, Response, StatusCode, [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: `darpi-middleware` (lib) generated 1 warning [INFO] [stderr] warning: `darpi-middleware` (lib test) generated 1 warning (1 duplicate) [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.17s [INFO] [stdout] [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/darpi_middleware-c85510f91b5c5f9e) [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Doc-tests darpi-middleware [INFO] [stdout] [INFO] [stdout] running 5 tests [INFO] [stdout] test src/compression.rs - compression::decompress::decompress (line 103) ... FAILED [INFO] [stdout] test src/auth.rs - auth::UserRole (line 71) - compile ... FAILED [INFO] [stdout] test src/auth.rs - auth::authorize::authorize (line 33) ... FAILED [INFO] [stdout] test src/compression.rs - compression::compress::compress (line 21) ... FAILED [INFO] [stdout] test src/lib.rs - body_size_limit::body_size_limit (line 15) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/compression.rs - compression::decompress::decompress (line 103) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `tokio` [INFO] [stdout] --> src/compression.rs:104:3 [INFO] [stdout] | [INFO] [stdout] 2 | #[tokio::test] [INFO] [stdout] | ^^^^^ use of undeclared crate or module `tokio` [INFO] [stdout] [INFO] [stdout] error: cannot find macro `app` in this scope [INFO] [stdout] --> src/compression.rs:107:6 [INFO] [stdout] | [INFO] [stdout] 5 | app!({ [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] darpi::app [INFO] [stdout] [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/compression.rs:105:2 [INFO] [stdout] | [INFO] [stdout] 3 | async fn main() -> Result<(), darpi::Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0433, E0752. [INFO] [stdout] For more information about an error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/auth.rs - auth::UserRole (line 71) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `fmt` [INFO] [stdout] --> src/auth.rs:96:6 [INFO] [stdout] | [INFO] [stdout] 27 | impl fmt::Display for Role { [INFO] [stdout] | ^^^ use of undeclared crate or module `fmt` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `fmt` [INFO] [stdout] --> src/auth.rs:97:27 [INFO] [stdout] | [INFO] [stdout] 28 | fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { [INFO] [stdout] | ^^^ use of undeclared crate or module `fmt` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `fmt` [INFO] [stdout] --> src/auth.rs:97:50 [INFO] [stdout] | [INFO] [stdout] 28 | fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { [INFO] [stdout] | ^^^ use of undeclared crate or module `fmt` [INFO] [stdout] [INFO] [stdout] error[E0405]: cannot find trait `UserRole` in this scope [INFO] [stdout] --> src/auth.rs:89:6 [INFO] [stdout] | [INFO] [stdout] 20 | impl UserRole for Role { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this trait [INFO] [stdout] | [INFO] [stdout] 2 | use darpi_middleware::auth::UserRole; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Claims` in this scope [INFO] [stdout] --> src/auth.rs:90:38 [INFO] [stdout] | [INFO] [stdout] 21 | fn is_authorized(&self, claims: &Claims) -> bool { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use darpi_middleware::auth::Claims; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0405, E0412, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0405`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/auth.rs - auth::authorize::authorize (line 33) stdout ---- [INFO] [stdout] error: cannot find attribute `handler` in this scope [INFO] [stdout] --> src/auth.rs:34:3 [INFO] [stdout] | [INFO] [stdout] 3 | #[handler(Container, [authorize(Role::Admin)])] [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/compression.rs - compression::compress::compress (line 21) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `tokio` [INFO] [stdout] --> src/compression.rs:22:3 [INFO] [stdout] | [INFO] [stdout] 2 | #[tokio::test] [INFO] [stdout] | ^^^^^ use of undeclared crate or module `tokio` [INFO] [stdout] [INFO] [stdout] error: cannot find macro `app` in this scope [INFO] [stdout] --> src/compression.rs:25:6 [INFO] [stdout] | [INFO] [stdout] 5 | app!({ [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] darpi::app [INFO] [stdout] [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/compression.rs:23:2 [INFO] [stdout] | [INFO] [stdout] 3 | async fn main() -> Result<(), darpi::Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0433, E0752. [INFO] [stdout] For more information about an error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - body_size_limit::body_size_limit (line 15) stdout ---- [INFO] [stdout] error: allow, cfg, cfg_attr, deny, forbid, and warn are the only allowed built-in attributes in function parameters [INFO] [stdout] --> src/lib.rs:17:20 [INFO] [stdout] | [INFO] [stdout] 4 | async fn say_hello(#[path] p: Name, #[body] payload: Json) -> impl Responder { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] error: malformed `path` attribute input [INFO] [stdout] --> src/lib.rs:17:20 [INFO] [stdout] | [INFO] [stdout] 4 | async fn say_hello(#[path] p: Name, #[body] payload: Json) -> impl Responder { [INFO] [stdout] | ^^^^^^^ help: must be of the form: `#[path = "file"]` [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `handler` in this scope [INFO] [stdout] --> src/lib.rs:16:3 [INFO] [stdout] | [INFO] [stdout] 3 | #[handler([body_size_limit(64)])] [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `body` in this scope [INFO] [stdout] --> src/lib.rs:17:39 [INFO] [stdout] | [INFO] [stdout] 4 | async fn say_hello(#[path] p: Name, #[body] payload: Json) -> impl Responder { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Name` in this scope [INFO] [stdout] --> src/lib.rs:17:31 [INFO] [stdout] | [INFO] [stdout] 4 | async fn say_hello(#[path] p: Name, #[body] payload: Json) -> impl Responder { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Json` in this scope [INFO] [stdout] --> src/lib.rs:17:54 [INFO] [stdout] | [INFO] [stdout] 4 | async fn say_hello(#[path] p: Name, #[body] payload: Json) -> impl Responder { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use darpi::Json; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Name` in this scope [INFO] [stdout] --> src/lib.rs:17:59 [INFO] [stdout] | [INFO] [stdout] 4 | async fn say_hello(#[path] p: Name, #[body] payload: Json) -> impl Responder { [INFO] [stdout] | - ^^^^ not found in this scope [INFO] [stdout] | | [INFO] [stdout] | help: you might be missing a type parameter: `` [INFO] [stdout] [INFO] [stdout] error[E0405]: cannot find trait `Responder` in this scope [INFO] [stdout] --> src/lib.rs:17:74 [INFO] [stdout] | [INFO] [stdout] 4 | async fn say_hello(#[path] p: Name, #[body] payload: Json) -> impl Responder { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this trait [INFO] [stdout] | [INFO] [stdout] 2 | use darpi::response::Responder; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 8 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0405, E0412. [INFO] [stdout] For more information about an error, try `rustc --explain E0405`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/auth.rs - auth::UserRole (line 71) [INFO] [stdout] src/auth.rs - auth::authorize::authorize (line 33) [INFO] [stdout] src/compression.rs - compression::compress::compress (line 21) [INFO] [stdout] src/compression.rs - compression::decompress::decompress (line 103) [INFO] [stdout] src/lib.rs - body_size_limit::body_size_limit (line 15) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 5 failed; 0 ignored; 0 measured; 0 filtered out; finished in 1.84s [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass '--doc' [INFO] running `Command { std: "docker" "inspect" "63cfaba990103e1702625616fcb4b4603d3563e7c35d86ae42e92f6e84123f38", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "63cfaba990103e1702625616fcb4b4603d3563e7c35d86ae42e92f6e84123f38", kill_on_drop: false }` [INFO] [stdout] 63cfaba990103e1702625616fcb4b4603d3563e7c35d86ae42e92f6e84123f38