[INFO] fetching crate axum_csrf 0.1.1... [INFO] testing axum_csrf-0.1.1 against master#62efba8a050c64249dab942951bb28f710208bc8 for pr-90799 [INFO] extracting crate axum_csrf 0.1.1 into /workspace/builds/worker-55/source [INFO] validating manifest of crates.io crate axum_csrf 0.1.1 on toolchain 62efba8a050c64249dab942951bb28f710208bc8 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+62efba8a050c64249dab942951bb28f710208bc8" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate axum_csrf 0.1.1 [INFO] finished tweaking crates.io crate axum_csrf 0.1.1 [INFO] tweaked toml for crates.io crate axum_csrf 0.1.1 written to /workspace/builds/worker-55/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+62efba8a050c64249dab942951bb28f710208bc8" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+62efba8a050c64249dab942951bb28f710208bc8" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-55/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-55/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:5736fa189c1c60b01babf4b8b698fe57b6ecc41933a7ff2e0b8d7a221459412b" "/opt/rustwide/cargo-home/bin/cargo" "+62efba8a050c64249dab942951bb28f710208bc8" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] afebfab9dfc94353cb26882774af2802c9fe0e3f491dbccdc9960909ef33c292 [INFO] running `Command { std: "docker" "start" "-a" "afebfab9dfc94353cb26882774af2802c9fe0e3f491dbccdc9960909ef33c292", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "afebfab9dfc94353cb26882774af2802c9fe0e3f491dbccdc9960909ef33c292", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "afebfab9dfc94353cb26882774af2802c9fe0e3f491dbccdc9960909ef33c292", kill_on_drop: false }` [INFO] [stdout] afebfab9dfc94353cb26882774af2802c9fe0e3f491dbccdc9960909ef33c292 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-55/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-55/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:5736fa189c1c60b01babf4b8b698fe57b6ecc41933a7ff2e0b8d7a221459412b" "/opt/rustwide/cargo-home/bin/cargo" "+62efba8a050c64249dab942951bb28f710208bc8" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 120f549fc1f51518f9d7c867c6a606dd67dd544407c43c7c825849eb392c8122 [INFO] running `Command { std: "docker" "start" "-a" "120f549fc1f51518f9d7c867c6a606dd67dd544407c43c7c825849eb392c8122", kill_on_drop: false }` [INFO] [stderr] Compiling version_check v0.9.3 [INFO] [stderr] Compiling proc-macro2 v1.0.32 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling libc v0.2.108 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling pin-project-lite v0.2.7 [INFO] [stderr] Compiling futures-core v0.3.18 [INFO] [stderr] Compiling bytes v1.1.0 [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling itoa v0.4.8 [INFO] [stderr] Compiling proc-macro-hack v0.5.19 [INFO] [stderr] Compiling futures-util v0.3.18 [INFO] [stderr] Compiling serde v1.0.130 [INFO] [stderr] Compiling const_fn v0.4.8 [INFO] [stderr] Compiling tower-service v0.3.1 [INFO] [stderr] Compiling httparse v1.5.1 [INFO] [stderr] Compiling futures-channel v0.3.18 [INFO] [stderr] Compiling matches v0.1.9 [INFO] [stderr] Compiling tower-layer v0.3.1 [INFO] [stderr] Compiling try-lock v0.2.3 [INFO] [stderr] Compiling subtle v2.4.1 [INFO] [stderr] Compiling futures-sink v0.3.18 [INFO] [stderr] Compiling ppv-lite86 v0.2.15 [INFO] [stderr] Compiling scopeguard v1.1.0 [INFO] [stderr] Compiling httpdate v1.0.2 [INFO] [stderr] Compiling matchit v0.4.4 [INFO] [stderr] Compiling bitflags v1.3.2 [INFO] [stderr] Compiling byteorder v1.4.3 [INFO] [stderr] Compiling mime v0.3.16 [INFO] [stderr] Compiling sync_wrapper v0.1.1 [INFO] [stderr] Compiling tracing-core v0.1.21 [INFO] [stderr] Compiling instant v0.1.12 [INFO] [stderr] Compiling form_urlencoded v1.0.1 [INFO] [stderr] Compiling lock_api v0.4.5 [INFO] [stderr] Compiling http v0.2.5 [INFO] [stderr] Compiling generic-array v0.14.4 [INFO] [stderr] Compiling standback v0.2.17 [INFO] [stderr] Compiling time v0.2.27 [INFO] [stderr] Compiling cookie v0.15.1 [INFO] [stderr] Compiling want v0.3.0 [INFO] [stderr] Compiling tokio v1.14.0 [INFO] [stderr] Compiling quote v1.0.10 [INFO] [stderr] Compiling digest v0.9.0 [INFO] [stderr] Compiling block-buffer v0.9.0 [INFO] [stderr] Compiling crypto-mac v0.10.1 [INFO] [stderr] Compiling cipher v0.2.5 [INFO] [stderr] Compiling mio v0.7.14 [INFO] [stderr] Compiling getrandom v0.2.3 [INFO] [stderr] Compiling socket2 v0.4.2 [INFO] [stderr] Compiling parking_lot_core v0.8.5 [INFO] [stderr] Compiling syn v1.0.82 [INFO] [stderr] Compiling sha2 v0.9.8 [INFO] [stderr] Compiling hmac v0.10.1 [INFO] [stderr] Compiling rand_core v0.6.3 [INFO] [stderr] Compiling blowfish v0.7.0 [INFO] [stderr] Compiling parking_lot v0.11.2 [INFO] [stderr] Compiling bcrypt v0.9.0 [INFO] [stderr] Compiling http-body v0.4.4 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.4 [INFO] [stderr] Compiling serde_json v1.0.72 [INFO] [stderr] Compiling serde_urlencoded v0.7.0 [INFO] [stderr] Compiling tokio-util v0.6.9 [INFO] [stderr] Compiling futures-macro v0.3.18 [INFO] [stderr] Compiling tracing-attributes v0.1.18 [INFO] [stderr] Compiling pin-project-internal v1.0.8 [INFO] [stderr] Compiling time-macros-impl v0.1.2 [INFO] [stderr] Compiling async-trait v0.1.51 [INFO] [stderr] Compiling time-macros v0.1.1 [INFO] [stderr] Compiling tracing v0.1.29 [INFO] [stderr] Compiling pin-project v1.0.8 [INFO] [stderr] Compiling tower v0.4.11 [INFO] [stderr] Compiling tower-http v0.1.2 [INFO] [stderr] Compiling hyper v0.14.15 [INFO] [stderr] Compiling axum v0.3.4 [INFO] [stderr] Compiling tower-cookies v0.3.0 [INFO] [stderr] Compiling axum_csrf v0.1.1 (/opt/rustwide/workdir) [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 26.53s [INFO] running `Command { std: "docker" "inspect" "120f549fc1f51518f9d7c867c6a606dd67dd544407c43c7c825849eb392c8122", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "120f549fc1f51518f9d7c867c6a606dd67dd544407c43c7c825849eb392c8122", kill_on_drop: false }` [INFO] [stdout] 120f549fc1f51518f9d7c867c6a606dd67dd544407c43c7c825849eb392c8122 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-55/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-55/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:5736fa189c1c60b01babf4b8b698fe57b6ecc41933a7ff2e0b8d7a221459412b" "/opt/rustwide/cargo-home/bin/cargo" "+62efba8a050c64249dab942951bb28f710208bc8" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 490cc752dba8ef5978979e6c79cfce5ffa4501ee33b4ac78c0a9cb0138b70a58 [INFO] running `Command { std: "docker" "start" "-a" "490cc752dba8ef5978979e6c79cfce5ffa4501ee33b4ac78c0a9cb0138b70a58", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling axum_csrf v0.1.1 (/opt/rustwide/workdir) [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 3.13s [INFO] running `Command { std: "docker" "inspect" "490cc752dba8ef5978979e6c79cfce5ffa4501ee33b4ac78c0a9cb0138b70a58", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "490cc752dba8ef5978979e6c79cfce5ffa4501ee33b4ac78c0a9cb0138b70a58", kill_on_drop: false }` [INFO] [stdout] 490cc752dba8ef5978979e6c79cfce5ffa4501ee33b4ac78c0a9cb0138b70a58 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-55/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-55/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:5736fa189c1c60b01babf4b8b698fe57b6ecc41933a7ff2e0b8d7a221459412b" "/opt/rustwide/cargo-home/bin/cargo" "+62efba8a050c64249dab942951bb28f710208bc8" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] a9766634acaafce5059cd678a0d3b5baca25b3f973132cff57ef8510710b5b6a [INFO] running `Command { std: "docker" "start" "-a" "a9766634acaafce5059cd678a0d3b5baca25b3f973132cff57ef8510710b5b6a", kill_on_drop: false }` [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.24s [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/axum_csrf-63c4ed0051a26b95) [INFO] [stdout] [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 axum_csrf [INFO] [stdout] [INFO] [stdout] running 4 tests [INFO] [stdout] test src/lib.rs - (line 64) ... FAILED [INFO] [stdout] test src/lib.rs - (line 45) ... FAILED [INFO] [stdout] test src/lib.rs - (line 74) ... FAILED [INFO] [stdout] test src/lib.rs - (line 11) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - (line 64) stdout ---- [INFO] [stdout] error: cannot find derive macro `Template` in this scope [INFO] [stdout] --> src/lib.rs:65:10 [INFO] [stdout] | [INFO] [stdout] 3 | #[derive(Template, Deserialize, Serialize)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Deserialize` in this scope [INFO] [stdout] --> src/lib.rs:65:20 [INFO] [stdout] | [INFO] [stdout] 3 | #[derive(Template, Deserialize, Serialize)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Serialize` in this scope [INFO] [stdout] --> src/lib.rs:65:33 [INFO] [stdout] | [INFO] [stdout] 3 | #[derive(Template, Deserialize, Serialize)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `template` in this scope [INFO] [stdout] --> src/lib.rs:66:3 [INFO] [stdout] | [INFO] [stdout] 4 | #[template(path = "hello.html")] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 45) stdout ---- [INFO] [stdout] error: expected `;`, found `HtmlTemplate` [INFO] [stdout] --> src/lib.rs:49:6 [INFO] [stdout] | [INFO] [stdout] 6 | } [INFO] [stdout] | ^ help: add `;` here [INFO] [stdout] 7 | [INFO] [stdout] 8 | HtmlTemplate(keys) [INFO] [stdout] | ------------ unexpected token [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `CsrfToken` in this scope [INFO] [stdout] --> src/lib.rs:46:23 [INFO] [stdout] | [INFO] [stdout] 3 | async fn greet(token: CsrfToken) -> impl IntoResponse { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use axum_csrf::CsrfToken; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0405]: cannot find trait `IntoResponse` in this scope [INFO] [stdout] --> src/lib.rs:46:42 [INFO] [stdout] | [INFO] [stdout] 3 | async fn greet(token: CsrfToken) -> impl IntoResponse { [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this trait [INFO] [stdout] | [INFO] [stdout] 2 | use axum::response::IntoResponse; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Keys` in this scope [INFO] [stdout] --> src/lib.rs:47:16 [INFO] [stdout] | [INFO] [stdout] 4 | let keys = Keys { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::btree_map::Keys; [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::hash_map::Keys; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `HtmlTemplate` in this scope [INFO] [stdout] --> src/lib.rs:51:5 [INFO] [stdout] | [INFO] [stdout] 8 | HtmlTemplate(keys) [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0405, E0412, E0422, E0425. [INFO] [stdout] For more information about an error, try `rustc --explain E0405`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 74) stdout ---- [INFO] [stdout] error[E0412]: cannot find type `CsrfToken` in this scope [INFO] [stdout] --> src/lib.rs:75:27 [INFO] [stdout] | [INFO] [stdout] 3 | async fn check_key(token: CsrfToken, Form(payload): Form,) -> &'static str { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use axum_csrf::CsrfToken; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0531]: cannot find tuple struct or tuple variant `Form` in this scope [INFO] [stdout] --> src/lib.rs:75:38 [INFO] [stdout] | [INFO] [stdout] 3 | async fn check_key(token: CsrfToken, Form(payload): Form,) -> &'static str { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple struct [INFO] [stdout] | [INFO] [stdout] 2 | use axum::extract::Form; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Form` in this scope [INFO] [stdout] --> src/lib.rs:75:53 [INFO] [stdout] | [INFO] [stdout] 3 | async fn check_key(token: CsrfToken, Form(payload): Form,) -> &'static str { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use axum::extract::Form; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Keys` in this scope [INFO] [stdout] --> src/lib.rs:75:58 [INFO] [stdout] | [INFO] [stdout] 3 | async fn check_key(token: CsrfToken, Form(payload): Form,) -> &'static str { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::btree_map::Keys; [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::hash_map::Keys; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0531. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 11) stdout ---- [INFO] [stdout] error: expected `;`, found keyword `let` [INFO] [stdout] --> src/lib.rs:32:54 [INFO] [stdout] | [INFO] [stdout] 22 | .layer(CsrfLayer::new(CsrfConfig::default())) [INFO] [stdout] | ^ help: add `;` here [INFO] [stdout] ... [INFO] [stdout] 25 | let addr = SocketAddr::from(([127, 0, 0, 1], 3000)); [INFO] [stdout] | --- unexpected token [INFO] [stdout] [INFO] [stdout] error: `let` expressions are not supported here [INFO] [stdout] --> src/lib.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 11 | let poll = init_pool(&config).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: only supported directly in conditions of `if`- and `while`-expressions [INFO] [stdout] = note: as well as when nested within `&&` and parentheses in those conditions [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `tokio` [INFO] [stdout] --> src/lib.rs:12:3 [INFO] [stdout] | [INFO] [stdout] 2 | #[tokio::main] [INFO] [stdout] | ^^^^^ use of undeclared crate or module `tokio` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `tracing` [INFO] [stdout] --> src/lib.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 26 | tracing::debug!("listening on {}", addr); [INFO] [stdout] | ^^^^^^^ use of undeclared crate or module `tracing` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `tracing_subscriber` [INFO] [stdout] --> src/lib.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 8 | tracing_subscriber::fmt::init(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ use of undeclared crate or module `tracing_subscriber` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `SqlxSessionConfig` [INFO] [stdout] --> src/lib.rs:23:26 [INFO] [stdout] | [INFO] [stdout] 13 | let session_config = SqlxSessionConfig::default() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ use of undeclared type `SqlxSessionConfig` [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `init_pool` in this scope [INFO] [stdout] --> src/lib.rs:21:16 [INFO] [stdout] | [INFO] [stdout] 11 | let poll = init_pool(&config).unwrap(); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `config` in this scope [INFO] [stdout] --> src/lib.rs:21:27 [INFO] [stdout] | [INFO] [stdout] 11 | let poll = init_pool(&config).unwrap(); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Router` [INFO] [stdout] --> src/lib.rs:28:15 [INFO] [stdout] | [INFO] [stdout] 18 | let app = Router::new() [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use axum::Router; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `get` in this scope [INFO] [stdout] --> src/lib.rs:29:26 [INFO] [stdout] | [INFO] [stdout] 19 | .route("/greet", get(greet)) [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 2 | use axum::routing::get; [INFO] [stdout] | [INFO] [stdout] 2 | use axum::routing::service_method_routing::get; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `greet` in this scope [INFO] [stdout] --> src/lib.rs:29:30 [INFO] [stdout] | [INFO] [stdout] 19 | .route("/greet", get(greet)) [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `post` in this scope [INFO] [stdout] --> src/lib.rs:30:30 [INFO] [stdout] | [INFO] [stdout] 20 | .route("/check_key", post(check_key)) [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 2 | use axum::routing::post; [INFO] [stdout] | [INFO] [stdout] 2 | use axum::routing::service_method_routing::post; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `check_key` in this scope [INFO] [stdout] --> src/lib.rs:30:35 [INFO] [stdout] | [INFO] [stdout] 20 | .route("/check_key", post(check_key)) [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `CsrfLayer` [INFO] [stdout] --> src/lib.rs:32:16 [INFO] [stdout] | [INFO] [stdout] 22 | .layer(CsrfLayer::new(CsrfConfig::default())) [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use axum_csrf::CsrfLayer; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `CsrfConfig` [INFO] [stdout] --> src/lib.rs:32:31 [INFO] [stdout] | [INFO] [stdout] 22 | .layer(CsrfLayer::new(CsrfConfig::default())) [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use axum_csrf::CsrfConfig; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `SocketAddr` [INFO] [stdout] --> src/lib.rs:35:16 [INFO] [stdout] | [INFO] [stdout] 25 | let addr = SocketAddr::from(([127, 0, 0, 1], 3000)); [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 2 | use std::net::SocketAddr; [INFO] [stdout] | [INFO] [stdout] 2 | use std::os::unix::net::SocketAddr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0658]: `let` expressions in this position are experimental [INFO] [stdout] --> src/lib.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 11 | let poll = init_pool(&config).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #53667 for more information [INFO] [stdout] = help: add `#![feature(let_chains)]` to the crate attributes to enable [INFO] [stdout] = help: you can write `matches!(, )` instead of `let = ` [INFO] [stdout] [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/lib.rs:13:1 [INFO] [stdout] | [INFO] [stdout] 3 | async fn main() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 18 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433, E0658, E0752. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/lib.rs - (line 11) [INFO] [stdout] src/lib.rs - (line 45) [INFO] [stdout] src/lib.rs - (line 64) [INFO] [stdout] src/lib.rs - (line 74) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 4 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.28s [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass '--doc' [INFO] running `Command { std: "docker" "inspect" "a9766634acaafce5059cd678a0d3b5baca25b3f973132cff57ef8510710b5b6a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a9766634acaafce5059cd678a0d3b5baca25b3f973132cff57ef8510710b5b6a", kill_on_drop: false }` [INFO] [stdout] a9766634acaafce5059cd678a0d3b5baca25b3f973132cff57ef8510710b5b6a