[INFO] fetching crate salvo 0.16.8... [INFO] testing salvo-0.16.8 against 1.59.0 for beta-1.60-1 [INFO] extracting crate salvo 0.16.8 into /workspace/builds/worker-37/source [INFO] validating manifest of crates.io crate salvo 0.16.8 on toolchain 1.59.0 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.59.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate salvo 0.16.8 [INFO] finished tweaking crates.io crate salvo 0.16.8 [INFO] tweaked toml for crates.io crate salvo 0.16.8 written to /workspace/builds/worker-37/source/Cargo.toml [INFO] crate crates.io crate salvo 0.16.8 already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.59.0" "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-37/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-37/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:0cd99ca24d8e8c98e67c542213511d985b8778b5bdcbb160e038429496686047" "/opt/rustwide/cargo-home/bin/cargo" "+1.59.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] bd354a60ab589d58c3244518f2c3bf8d5afd1a267ab4cb2cffd9dedd64a0f579 [INFO] running `Command { std: "docker" "start" "-a" "bd354a60ab589d58c3244518f2c3bf8d5afd1a267ab4cb2cffd9dedd64a0f579", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "bd354a60ab589d58c3244518f2c3bf8d5afd1a267ab4cb2cffd9dedd64a0f579", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bd354a60ab589d58c3244518f2c3bf8d5afd1a267ab4cb2cffd9dedd64a0f579", kill_on_drop: false }` [INFO] [stdout] bd354a60ab589d58c3244518f2c3bf8d5afd1a267ab4cb2cffd9dedd64a0f579 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-37/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-37/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:0cd99ca24d8e8c98e67c542213511d985b8778b5bdcbb160e038429496686047" "/opt/rustwide/cargo-home/bin/cargo" "+1.59.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 962de855f12365528bc0c81ee3997c1b5b4f5a8911124be4de6b673c42b485ab [INFO] running `Command { std: "docker" "start" "-a" "962de855f12365528bc0c81ee3997c1b5b4f5a8911124be4de6b673c42b485ab", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling libc v0.2.107 [INFO] [stderr] Compiling proc-macro2 v1.0.32 [INFO] [stderr] Compiling syn v1.0.81 [INFO] [stderr] Compiling version_check v0.9.3 [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling memchr v2.4.1 [INFO] [stderr] Compiling pin-project-lite v0.2.7 [INFO] [stderr] Compiling futures-core v0.3.17 [INFO] [stderr] Compiling itoa v0.4.8 [INFO] [stderr] Compiling parking_lot_core v0.8.5 [INFO] [stderr] Compiling smallvec v1.7.0 [INFO] [stderr] Compiling typenum v1.14.0 [INFO] [stderr] Compiling futures-task v0.3.17 [INFO] [stderr] Compiling once_cell v1.8.0 [INFO] [stderr] Compiling getrandom v0.1.16 [INFO] [stderr] Compiling ppv-lite86 v0.2.15 [INFO] [stderr] Compiling proc-macro-hack v0.5.19 [INFO] [stderr] Compiling serde v1.0.130 [INFO] [stderr] Compiling serde_derive v1.0.130 [INFO] [stderr] Compiling alloc-no-stdlib v2.0.3 [INFO] [stderr] Compiling httparse v1.5.1 [INFO] [stderr] Compiling crc32fast v1.2.1 [INFO] [stderr] Compiling ryu v1.0.5 [INFO] [stderr] Compiling futures-sink v0.3.17 [INFO] [stderr] Compiling futures-channel v0.3.17 [INFO] [stderr] Compiling encoding_rs v0.8.29 [INFO] [stderr] Compiling adler v1.0.2 [INFO] [stderr] Compiling serde_json v1.0.69 [INFO] [stderr] Compiling httpdate v1.0.1 [INFO] [stderr] Compiling time-macros v0.2.3 [INFO] [stderr] Compiling async-trait v0.1.51 [INFO] [stderr] Compiling unchecked-index v0.2.2 [INFO] [stderr] Compiling spin v0.9.2 [INFO] [stderr] Compiling base64 v0.12.3 [INFO] [stderr] Compiling remove_dir_all v0.5.3 [INFO] [stderr] Compiling fastrand v1.5.0 [INFO] [stderr] Compiling instant v0.1.12 [INFO] [stderr] Compiling lock_api v0.4.5 [INFO] [stderr] Compiling tracing-core v0.1.21 [INFO] [stderr] Compiling tokio v1.13.0 [INFO] [stderr] Compiling futures-util v0.3.17 [INFO] [stderr] Compiling miniz_oxide v0.4.4 [INFO] [stderr] Compiling indexmap v1.7.0 [INFO] [stderr] Compiling alloc-stdlib v0.2.1 [INFO] [stderr] Compiling http v0.2.5 [INFO] [stderr] Compiling generic-array v0.14.4 [INFO] [stderr] Compiling unicase v2.6.0 [INFO] [stderr] Compiling cookie v0.16.0 [INFO] [stderr] Compiling multer v2.0.1 [INFO] [stderr] Compiling aho-corasick v0.7.18 [INFO] [stderr] Compiling twoway v0.2.2 [INFO] [stderr] Compiling quote v1.0.10 [INFO] [stderr] Compiling signal-hook-registry v1.4.0 [INFO] [stderr] Compiling mio v0.7.14 [INFO] [stderr] Compiling num_cpus v1.13.0 [INFO] [stderr] Compiling getrandom v0.2.3 [INFO] [stderr] Compiling time v0.3.5 [INFO] [stderr] Compiling socket2 v0.4.2 [INFO] [stderr] Compiling rand v0.4.6 [INFO] [stderr] Compiling toml v0.5.8 [INFO] [stderr] Compiling flate2 v1.0.22 [INFO] [stderr] Compiling brotli-decompressor v2.3.2 [INFO] [stderr] Compiling http-body v0.4.4 [INFO] [stderr] Compiling headers-core v0.2.0 [INFO] [stderr] Compiling mime_guess v2.0.3 [INFO] [stderr] Compiling rand_core v0.6.3 [INFO] [stderr] Compiling parking_lot v0.11.2 [INFO] [stderr] Compiling block-buffer v0.9.0 [INFO] [stderr] Compiling digest v0.9.0 [INFO] [stderr] Compiling rand_core v0.5.1 [INFO] [stderr] Compiling tempdir v0.3.7 [INFO] [stderr] Compiling proc-quote-impl v0.3.2 [INFO] [stderr] Compiling rand_chacha v0.2.2 [INFO] [stderr] Compiling sha-1 v0.9.8 [INFO] [stderr] Compiling headers v0.3.5 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.4 [INFO] [stderr] Compiling regex v1.5.4 [INFO] [stderr] Compiling rand v0.7.3 [INFO] [stderr] Compiling brotli v3.3.2 [INFO] [stderr] Compiling textnonce v1.0.0 [INFO] [stderr] Compiling proc-quote v0.4.0 [INFO] [stderr] Compiling tokio-macros v1.5.1 [INFO] [stderr] Compiling thiserror-impl v1.0.30 [INFO] [stderr] Compiling tracing-attributes v0.1.18 [INFO] [stderr] Compiling tracing v0.1.29 [INFO] [stderr] Compiling thiserror v1.0.30 [INFO] [stderr] Compiling proc-macro-crate v1.1.0 [INFO] [stderr] Compiling salvo_macros v0.16.0 [INFO] [stderr] Compiling tokio-util v0.6.9 [INFO] [stderr] Compiling async-compression v0.3.8 [INFO] [stderr] Compiling tokio-stream v0.1.8 [INFO] [stderr] Compiling h2 v0.3.7 [INFO] [stderr] Compiling multimap v0.8.3 [INFO] [stderr] Compiling hyper v0.14.14 [INFO] [stderr] Compiling salvo_core v0.16.8 [INFO] [stderr] Compiling salvo v0.16.8 (/opt/rustwide/workdir) [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 2m 16s [INFO] running `Command { std: "docker" "inspect" "962de855f12365528bc0c81ee3997c1b5b4f5a8911124be4de6b673c42b485ab", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "962de855f12365528bc0c81ee3997c1b5b4f5a8911124be4de6b673c42b485ab", kill_on_drop: false }` [INFO] [stdout] 962de855f12365528bc0c81ee3997c1b5b4f5a8911124be4de6b673c42b485ab [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-37/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-37/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:0cd99ca24d8e8c98e67c542213511d985b8778b5bdcbb160e038429496686047" "/opt/rustwide/cargo-home/bin/cargo" "+1.59.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 60d43aa88c6ed1aece33dbe4b6b5f499cfa02945d14f3e4d9685c5354ae89ac0 [INFO] running `Command { std: "docker" "start" "-a" "60d43aa88c6ed1aece33dbe4b6b5f499cfa02945d14f3e4d9685c5354ae89ac0", 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] Compiling cc v1.0.72 [INFO] [stderr] Compiling untrusted v0.7.1 [INFO] [stderr] Compiling spin v0.5.2 [INFO] [stderr] Compiling ansi_term v0.12.1 [INFO] [stderr] Compiling tower-layer v0.3.1 [INFO] [stderr] Compiling tracing-core v0.1.21 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling num-bigint v0.2.6 [INFO] [stderr] Compiling sharded-slab v0.1.4 [INFO] [stderr] Compiling thread_local v1.1.3 [INFO] [stderr] Compiling time v0.1.43 [INFO] [stderr] Compiling mio v0.7.14 [INFO] [stderr] Compiling want v0.3.0 [INFO] [stderr] Compiling multer v2.0.1 [INFO] [stderr] Compiling pin-project-internal v1.0.8 [INFO] [stderr] Compiling async-stream-impl v0.3.2 [INFO] [stderr] Compiling pem v0.8.3 [INFO] [stderr] Compiling tracing v0.1.29 [INFO] [stderr] Compiling tracing-log v0.1.2 [INFO] [stderr] Compiling tokio v1.13.0 [INFO] [stderr] Compiling ring v0.16.20 [INFO] [stderr] Compiling tracing-subscriber v0.3.1 [INFO] [stderr] Compiling async-stream v0.3.2 [INFO] [stderr] Compiling chrono v0.4.19 [INFO] [stderr] Compiling pin-project v1.0.8 [INFO] [stderr] Compiling simple_asn1 v0.4.1 [INFO] [stderr] Compiling tokio-util v0.6.9 [INFO] [stderr] Compiling tokio-stream v0.1.8 [INFO] [stderr] Compiling async-compression v0.3.8 [INFO] [stderr] Compiling h2 v0.3.7 [INFO] [stderr] Compiling tower v0.4.10 [INFO] [stderr] Compiling jsonwebtoken v7.2.0 [INFO] [stderr] Compiling hyper v0.14.14 [INFO] [stderr] Compiling salvo_core v0.16.8 [INFO] [stderr] Compiling salvo v0.16.8 (/opt/rustwide/workdir) [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `salvo_extra` [INFO] [stdout] --> examples/file_list.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use salvo_extra::serve::{Options, StaticDir}; [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared crate or module `salvo_extra` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `extra` in `salvo` [INFO] [stdout] --> examples/jwt_auth.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | use salvo::extra::jwt_auth::{JwtAuthDepotExt, JwtAuthHandler, JwtAuthState, QueryExtractor}; [INFO] [stdout] | ^^^^^ could not find `extra` in `salvo` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `salvo::anyhow` [INFO] [stdout] --> examples/jwt_auth.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use salvo::anyhow; [INFO] [stdout] | ^^^^^^^^^^^^^ no `anyhow` in the root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `StaticDir` [INFO] [stdout] --> examples/file_list.rs:8:52 [INFO] [stdout] | [INFO] [stdout] 8 | let router = Router::with_path("<**path>").get(StaticDir::width_options( [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `StaticDir` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Options` in this scope [INFO] [stdout] --> examples/file_list.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | Options { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `extra` in `salvo` [INFO] [stdout] --> examples/basic_auth.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | use salvo::extra::basic_auth::{BasicAuthHandler, BasicAuthValidator}; [INFO] [stdout] | ^^^^^ could not find `extra` in `salvo` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `salvo::anyhow` [INFO] [stdout] --> examples/handle_error.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use salvo::anyhow; [INFO] [stdout] | ^^^^^^^^^^^^^ no `anyhow` in the root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the macro `anyhow::anyhow` [INFO] [stdout] --> examples/handle_error.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 15 | Err(anyhow::anyhow!("anyhow error")) [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0422, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0422`. [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `extra` in `salvo` [INFO] [stdout] --> examples/ws_chat.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | use salvo::extra::ws::{Message, WsHandler}; [INFO] [stdout] | ^^^^^ could not find `extra` in `salvo` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `salvo_extra` [INFO] [stdout] --> examples/proxy.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use salvo_extra::proxy::ProxyHandler; [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared crate or module `salvo_extra` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `salvo` due to 4 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `JwtAuthHandler` [INFO] [stdout] --> examples/jwt_auth.rs:22:51 [INFO] [stdout] | [INFO] [stdout] 22 | let auth_handler: JwtAuthHandler = JwtAuthHandler::new(SECRET_KEY.to_owned()) [INFO] [stdout] | ^^^^^^^^^^^^^^ use of undeclared type `JwtAuthHandler` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `QueryExtractor` [INFO] [stdout] --> examples/jwt_auth.rs:25:22 [INFO] [stdout] | [INFO] [stdout] 25 | Box::new(QueryExtractor::new("jwt_token")), [INFO] [stdout] | ^^^^^^^^^^^^^^ use of undeclared type `QueryExtractor` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `JwtAuthState` [INFO] [stdout] --> examples/jwt_auth.rs:58:13 [INFO] [stdout] | [INFO] [stdout] 58 | JwtAuthState::Authorized => { [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `JwtAuthState` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `JwtAuthState` [INFO] [stdout] --> examples/jwt_auth.rs:62:13 [INFO] [stdout] | [INFO] [stdout] 62 | JwtAuthState::Unauthorized => { [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `JwtAuthState` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `JwtAuthState` [INFO] [stdout] --> examples/jwt_auth.rs:65:13 [INFO] [stdout] | [INFO] [stdout] 65 | JwtAuthState::Forbidden => { [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `JwtAuthState` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `JwtAuthHandler` in this scope [INFO] [stdout] --> examples/jwt_auth.rs:22:23 [INFO] [stdout] | [INFO] [stdout] 22 | let auth_handler: JwtAuthHandler = JwtAuthHandler::new(SECRET_KEY.to_owned()) [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BasicAuthHandler` [INFO] [stdout] --> examples/basic_auth.rs:8:24 [INFO] [stdout] | [INFO] [stdout] 8 | let auth_handler = BasicAuthHandler::new(Validator); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ use of undeclared type `BasicAuthHandler` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0405]: cannot find trait `BasicAuthValidator` in this scope [INFO] [stdout] --> examples/basic_auth.rs:21:6 [INFO] [stdout] | [INFO] [stdout] 21 | impl BasicAuthValidator for Validator { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0698]: type inside `async` block must be known in this context [INFO] [stdout] --> examples/handle_error.rs:13:1 [INFO] [stdout] | [INFO] [stdout] 13 | #[fn_handler] [INFO] [stdout] | ^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] | [INFO] [stdout] note: the type is part of the `async` block because of this `await` [INFO] [stdout] --> examples/handle_error.rs:13:1 [INFO] [stdout] | [INFO] [stdout] 13 | #[fn_handler] [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] = note: this error originates in the attribute macro `fn_handler` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0405, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0405`. [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `WsHandler` [INFO] [stdout] --> examples/ws_chat.rs:34:15 [INFO] [stdout] | [INFO] [stdout] 34 | let fut = WsHandler::new().handle(req, res)?; [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `WsHandler` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Message` [INFO] [stdout] --> examples/ws_chat.rs:89:52 [INFO] [stdout] | [INFO] [stdout] 89 | if let Err(_disconnected) = tx.send(Ok(Message::text(new_msg.clone()))) { [INFO] [stdout] | ^^^^^^^ use of undeclared type `Message` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Message` in this scope [INFO] [stdout] --> examples/ws_chat.rs:17:65 [INFO] [stdout] | [INFO] [stdout] 17 | type Users = RwLock>>>; [INFO] [stdout] | - ^^^^^^^ not found in this scope [INFO] [stdout] | | [INFO] [stdout] | help: you might be missing a type parameter: `` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `extra` in `salvo` [INFO] [stdout] --> examples/size_limiter.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | use salvo::extra::size_limiter::max_size; [INFO] [stdout] | ^^^^^ could not find `extra` in `salvo` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Message` in this scope [INFO] [stdout] --> examples/ws_chat.rs:77:42 [INFO] [stdout] | [INFO] [stdout] 77 | async fn user_message(my_id: usize, msg: Message) { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ProxyHandler` [INFO] [stdout] --> examples/proxy.rs:9:59 [INFO] [stdout] | [INFO] [stdout] 9 | .push(Router::with_path("google/<**rest>").handle(ProxyHandler::new(vec!["https://www.google.com".into()]))) [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `ProxyHandler` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ProxyHandler` [INFO] [stdout] --> examples/proxy.rs:10:58 [INFO] [stdout] | [INFO] [stdout] 10 | .push(Router::with_path("baidu/<**rest>").handle(ProxyHandler::new(vec!["https://www.baidu.com".into()]))); [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `ProxyHandler` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `salvo_extra` [INFO] [stdout] --> examples/sse.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use salvo_extra::sse::{self, SseEvent}; [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared crate or module `salvo_extra` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `salvo_extra` [INFO] [stdout] --> examples/sse.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use salvo_extra::sse::{self, SseEvent}; [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared crate or module `salvo_extra` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0698. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `salvo::listener::rustls` [INFO] [stdout] --> examples/tls_reload.rs:3:22 [INFO] [stdout] | [INFO] [stdout] 3 | use salvo::listener::rustls::RustlsConfig; [INFO] [stdout] | ^^^^^^ could not find `rustls` in `listener` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `SseEvent` [INFO] [stdout] --> examples/sse.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 16 | Ok(SseEvent::default().data(counter.to_string())) [INFO] [stdout] | ^^^^^^^^ use of undeclared type `SseEvent` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `SseEvent` in this scope [INFO] [stdout] --> examples/sse.rs:15:40 [INFO] [stdout] | [INFO] [stdout] 15 | fn sse_counter(counter: u64) -> Result { [INFO] [stdout] | - ^^^^^^^^ not found in this scope [INFO] [stdout] | | [INFO] [stdout] | help: you might be missing a type parameter: `` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `salvo_extra` [INFO] [stdout] --> examples/cors.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use salvo_extra::cors::CorsHandler; [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared crate or module `salvo_extra` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `extra` in `salvo` [INFO] [stdout] --> examples/sse_chat.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | use salvo::extra::sse::{SseEvent, SseKeepAlive}; [INFO] [stdout] | ^^^^^ could not find `extra` in `salvo` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `RustlsListener` [INFO] [stdout] --> examples/tls_reload.rs:16:20 [INFO] [stdout] | [INFO] [stdout] 16 | let listener = RustlsListener::with_config_stream(async_stream::stream! { [INFO] [stdout] | ^^^^^^^^^^^^^^ use of undeclared type `RustlsListener` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `extra` in `salvo` [INFO] [stdout] --> examples/ws.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | use salvo::extra::ws::WsHandler; [INFO] [stdout] | ^^^^^ could not find `extra` in `salvo` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `salvo::listener::rustls` [INFO] [stdout] --> examples/tls.rs:1:22 [INFO] [stdout] | [INFO] [stdout] 1 | use salvo::listener::rustls::RustlsConfig; [INFO] [stdout] | ^^^^^^ could not find `rustls` in `listener` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `jwt_auth_state` found for mutable reference `&mut salvo::Depot` in the current scope [INFO] [stdout] --> examples/jwt_auth.rs:57:21 [INFO] [stdout] | [INFO] [stdout] 57 | match depot.jwt_auth_state() { [INFO] [stdout] | ^^^^^^^^^^^^^^ method not found in `&mut salvo::Depot` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `max_size` in this scope [INFO] [stdout] --> examples/size_limiter.rs:38:23 [INFO] [stdout] | [INFO] [stdout] 38 | .hoop(max_size(1024 * 1024 * 10)) [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `extra` in `salvo` [INFO] [stdout] --> examples/logging.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | use salvo::extra::logging::LogHandler; [INFO] [stdout] | ^^^^^ could not find `extra` in `salvo` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `extra` in `salvo` [INFO] [stdout] --> examples/unix_socket.rs:4:16 [INFO] [stdout] | [INFO] [stdout] 4 | use salvo::extra::serve::StaticDir; [INFO] [stdout] | ^^^^^ could not find `extra` in `salvo` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `jwt_auth_data` found for mutable reference `&mut salvo::Depot` in the current scope [INFO] [stdout] --> examples/jwt_auth.rs:59:34 [INFO] [stdout] | [INFO] [stdout] 59 | let data = depot.jwt_auth_data::().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^ method not found in `&mut salvo::Depot` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `RustlsListener` [INFO] [stdout] --> examples/tls.rs:18:20 [INFO] [stdout] | [INFO] [stdout] 18 | let listener = RustlsListener::with_rustls_config(config).bind("127.0.0.1:7878"); [INFO] [stdout] | ^^^^^^^^^^^^^^ use of undeclared type `RustlsListener` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `SseEvent` [INFO] [stdout] --> examples/sse_chat.rs:71:62 [INFO] [stdout] | [INFO] [stdout] 71 | Message::UserId(my_id) => Ok::<_, salvo_core::Error>(SseEvent::default().name("user").data(my_id.to_string())), [INFO] [stdout] | ^^^^^^^^ use of undeclared type `SseEvent` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `SseEvent` [INFO] [stdout] --> examples/sse_chat.rs:72:37 [INFO] [stdout] | [INFO] [stdout] 72 | Message::Reply(reply) => Ok(SseEvent::default().data(reply)), [INFO] [stdout] | ^^^^^^^^ use of undeclared type `SseEvent` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `CorsHandler` [INFO] [stdout] --> examples/cors.rs:13:24 [INFO] [stdout] | [INFO] [stdout] 13 | let cors_handler = CorsHandler::builder() [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `CorsHandler` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `SseKeepAlive` [INFO] [stdout] --> examples/sse_chat.rs:74:5 [INFO] [stdout] | [INFO] [stdout] 74 | SseKeepAlive::new(stream).streaming(res); [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `SseKeepAlive` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `WsHandler` [INFO] [stdout] --> examples/ws.rs:8:15 [INFO] [stdout] | [INFO] [stdout] 8 | let fut = WsHandler::new().handle(req, res)?; [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `WsHandler` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `forward` found for struct `UnboundedReceiverStream` in the current scope [INFO] [stdout] --> examples/ws_chat.rs:49:26 [INFO] [stdout] | [INFO] [stdout] 49 | let fut = rx.forward(user_ws_tx).map(|result| { [INFO] [stdout] | ^^^^^^^ method not found in `UnboundedReceiverStream<_>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0432, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `LogHandler` in this scope [INFO] [stdout] --> examples/logging.rs:30:15 [INFO] [stdout] | [INFO] [stdout] 30 | .hoop(LogHandler) [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `StaticDir` [INFO] [stdout] --> examples/unix_socket.rs:7:57 [INFO] [stdout] | [INFO] [stdout] 7 | let router = Router::with_path("files/<*path>").get(StaticDir::new("./static")); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `StaticDir` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `extra` in `salvo` [INFO] [stdout] --> examples/compression.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | use salvo::extra::serve::*; [INFO] [stdout] | ^^^^^ could not find `extra` in `salvo` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `salvo::extra` [INFO] [stdout] --> examples/compression.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | use salvo::extra::compression; [INFO] [stdout] | ^^^^^ could not find `extra` in `salvo` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0698]: type inside `async` block must be known in this context [INFO] [stdout] --> examples/jwt_auth.rs:34:1 [INFO] [stdout] | [INFO] [stdout] 34 | #[fn_handler] [INFO] [stdout] | ^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] | [INFO] [stdout] note: the type is part of the `async` block because of this `await` [INFO] [stdout] --> examples/jwt_auth.rs:34:1 [INFO] [stdout] | [INFO] [stdout] 34 | #[fn_handler] [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] = note: this error originates in the attribute macro `fn_handler` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 11 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0432, E0433, E0599, E0698. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `StaticFile` [INFO] [stdout] --> examples/compression.rs:10:48 [INFO] [stdout] | [INFO] [stdout] 10 | .push(Router::with_path("ws_chat").get(StaticFile::new("examples/ws_chat.rs"))) [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `StaticFile` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `StaticFile` [INFO] [stdout] --> examples/compression.rs:15:22 [INFO] [stdout] | [INFO] [stdout] 15 | .get(StaticFile::new("examples/sse_chat.rs")), [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `StaticFile` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `FutureExt` [INFO] [stdout] --> examples/ws_chat.rs:9:20 [INFO] [stdout] | [INFO] [stdout] 9 | use futures_util::{FutureExt, StreamExt}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `StaticFile` [INFO] [stdout] --> examples/compression.rs:21:22 [INFO] [stdout] | [INFO] [stdout] 21 | .get(StaticFile::new("examples/todos.rs")), [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `StaticFile` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `StreamExt` [INFO] [stdout] --> examples/ws_chat.rs:9:31 [INFO] [stdout] | [INFO] [stdout] 9 | use futures_util::{FutureExt, StreamExt}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `StaticDir` [INFO] [stdout] --> examples/compression.rs:27:22 [INFO] [stdout] | [INFO] [stdout] 27 | .get(StaticDir::new("examples/")), [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `StaticDir` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors; 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0433, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] [INFO] [stdout] warning: unused import: `FutureExt` [INFO] [stdout] --> examples/ws.rs:1:20 [INFO] [stdout] | [INFO] [stdout] 1 | use futures_util::{FutureExt, StreamExt}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `StreamExt` [INFO] [stdout] --> examples/ws.rs:1:31 [INFO] [stdout] | [INFO] [stdout] 1 | use futures_util::{FutureExt, StreamExt}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors; 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "60d43aa88c6ed1aece33dbe4b6b5f499cfa02945d14f3e4d9685c5354ae89ac0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "60d43aa88c6ed1aece33dbe4b6b5f499cfa02945d14f3e4d9685c5354ae89ac0", kill_on_drop: false }` [INFO] [stdout] 60d43aa88c6ed1aece33dbe4b6b5f499cfa02945d14f3e4d9685c5354ae89ac0