[INFO] fetching crate wsforge 0.1.1... [INFO] testing wsforge-0.1.1 against beta-2025-10-28 for beta-1.92-2 [INFO] extracting crate wsforge 0.1.1 into /workspace/builds/worker-0-tc2/source [INFO] started tweaking crates.io crate wsforge 0.1.1 [INFO] finished tweaking crates.io crate wsforge 0.1.1 [INFO] tweaked toml for crates.io crate wsforge 0.1.1 written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate wsforge 0.1.1 on toolchain beta-2025-10-28 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+beta-2025-10-28" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate wsforge 0.1.1 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" "+beta-2025-10-28" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2025-10-28" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 6ffce5bdfc853ac2775d2c7c1390d84b00ca7fdb4b4a94550272ea8a18e5f81e [INFO] running `Command { std: "docker" "start" "-a" "6ffce5bdfc853ac2775d2c7c1390d84b00ca7fdb4b4a94550272ea8a18e5f81e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "6ffce5bdfc853ac2775d2c7c1390d84b00ca7fdb4b4a94550272ea8a18e5f81e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6ffce5bdfc853ac2775d2c7c1390d84b00ca7fdb4b4a94550272ea8a18e5f81e", kill_on_drop: false }` [INFO] [stdout] 6ffce5bdfc853ac2775d2c7c1390d84b00ca7fdb4b4a94550272ea8a18e5f81e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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=warn" "-e" "RUSTDOCFLAGS=--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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2025-10-28" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 7d19ccf9817bf961d35c578d21134aa5ac18d9e91b2c3bd8ca60608720473a87 [INFO] running `Command { std: "docker" "start" "-a" "7d19ccf9817bf961d35c578d21134aa5ac18d9e91b2c3bd8ca60608720473a87", kill_on_drop: false }` [INFO] [stderr] Compiling cookie v0.18.1 [INFO] [stderr] Compiling parking_lot_core v0.9.12 [INFO] [stderr] Compiling time-macros v0.2.24 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling tokio-macros v2.6.0 [INFO] [stderr] Compiling futures-sink v0.3.31 [INFO] [stderr] Compiling sha1 v0.10.6 [INFO] [stderr] Compiling hashbrown v0.14.5 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Compiling async-trait v0.1.89 [INFO] [stderr] Compiling wsforge-macros v0.1.1 [INFO] [stderr] Compiling parking_lot v0.12.5 [INFO] [stderr] Compiling dashmap v6.1.0 [INFO] [stderr] Compiling tokio v1.48.0 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling time v0.3.44 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling tungstenite v0.24.0 [INFO] [stderr] Compiling tokio-tungstenite v0.24.0 [INFO] [stderr] Compiling wsforge-core v0.1.1 [INFO] [stderr] Compiling wsforge v0.1.1 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 12.06s [INFO] running `Command { std: "docker" "inspect" "7d19ccf9817bf961d35c578d21134aa5ac18d9e91b2c3bd8ca60608720473a87", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7d19ccf9817bf961d35c578d21134aa5ac18d9e91b2c3bd8ca60608720473a87", kill_on_drop: false }` [INFO] [stdout] 7d19ccf9817bf961d35c578d21134aa5ac18d9e91b2c3bd8ca60608720473a87 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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=warn" "-e" "RUSTDOCFLAGS=--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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2025-10-28" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 7c728b268ef4b697e9d4e25c6f2d7462cc0945fbe7ae64e3e35b403b2bff69fd [INFO] running `Command { std: "docker" "start" "-a" "7c728b268ef4b697e9d4e25c6f2d7462cc0945fbe7ae64e3e35b403b2bff69fd", kill_on_drop: false }` [INFO] [stderr] Compiling wsforge v0.1.1 (/opt/rustwide/workdir) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.60s [INFO] running `Command { std: "docker" "inspect" "7c728b268ef4b697e9d4e25c6f2d7462cc0945fbe7ae64e3e35b403b2bff69fd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7c728b268ef4b697e9d4e25c6f2d7462cc0945fbe7ae64e3e35b403b2bff69fd", kill_on_drop: false }` [INFO] [stdout] 7c728b268ef4b697e9d4e25c6f2d7462cc0945fbe7ae64e3e35b403b2bff69fd [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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=warn" "-e" "RUSTDOCFLAGS=--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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2025-10-28" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] b2fc00eee188ec45fd2ebd538f1992666754bc5987ee329b4a9bfabf7ea19642 [INFO] running `Command { std: "docker" "start" "-a" "b2fc00eee188ec45fd2ebd538f1992666754bc5987ee329b4a9bfabf7ea19642", kill_on_drop: false }` [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.13s [INFO] [stdout] [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/wsforge-e31d1fccadc12720) [INFO] [stdout] running 0 tests [INFO] [stderr] Doc-tests wsforge [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] [stdout] [INFO] [stdout] running 12 tests [INFO] [stdout] test src/lib.rs - (line 32) ... FAILED [INFO] [stdout] test src/lib.rs - (line 336) ... FAILED [INFO] [stdout] test src/lib.rs - (line 66) ... FAILED [INFO] [stdout] test src/lib.rs - prelude (line 421) ... FAILED [INFO] [stdout] test src/lib.rs - (line 44) ... FAILED [INFO] [stdout] test src/lib.rs - (line 241) ... FAILED [INFO] [stdout] test src/lib.rs - (line 279) ... FAILED [INFO] [stdout] test src/lib.rs - (line 111) ... FAILED [INFO] [stdout] test src/lib.rs - (line 206) ... FAILED [INFO] [stdout] test src/lib.rs - (line 317) ... ok [INFO] [stdout] test src/lib.rs - (line 142) ... ok [INFO] [stdout] test src/lib.rs - (line 179) ... ok [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - (line 32) stdout ---- [INFO] [stdout] error: expected item, found `[` [INFO] [stdout] --> src/lib.rs:33:1 [INFO] [stdout] | [INFO] [stdout] 1 | [dependencies] [INFO] [stdout] | ^ expected item [INFO] [stdout] | [INFO] [stdout] = note: for a full list of items that can appear in modules, see [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 336) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `tokio` [INFO] [stdout] --> src/lib.rs:339:5 [INFO] [stdout] | [INFO] [stdout] 5 | use tokio::signal; [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `tokio` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `tokio`, use `cargo add tokio` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tokio` [INFO] [stdout] --> src/lib.rs:341:3 [INFO] [stdout] | [INFO] [stdout] 7 | #[tokio::main] [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `tokio` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tokio` [INFO] [stdout] --> src/lib.rs:345:5 [INFO] [stdout] | [INFO] [stdout] 11 | tokio::select! { [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `tokio` [INFO] [stdout] [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/lib.rs:342:1 [INFO] [stdout] | [INFO] [stdout] 8 | async fn main() -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0433, E0752. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 66) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `serde` [INFO] [stdout] --> src/lib.rs:70:5 [INFO] [stdout] | [INFO] [stdout] 6 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `serde` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `serde`, use `cargo add serde` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tokio` [INFO] [stdout] --> src/lib.rs:92:3 [INFO] [stdout] | [INFO] [stdout] 28 | #[tokio::main] [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `tokio` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `serde_json` [INFO] [stdout] --> src/lib.rs:86:20 [INFO] [stdout] | [INFO] [stdout] 22 | let response = serde_json::to_string(&msg)?; [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `serde_json` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `serde_json`, use `cargo add serde_json` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `fn(Json, ..., ...) -> ... {chat_handler}: IntoHandler<_>` is not satisfied [INFO] [stdout] --> src/lib.rs:95:34 [INFO] [stdout] | [INFO] [stdout] 31 | .default_handler(handler(chat_handler)) [INFO] [stdout] | ------- ^^^^^^^^^^^^ the trait `IntoHandler<_>` is not implemented for fn item `fn(Json, Connection, State<...>) -> ... {chat_handler}` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `wsforge::handler` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/wsforge-core-0.1.1/src/handler.rs:643:8 [INFO] [stdout] | [INFO] [stdout] 641 | pub fn handler(f: F) -> Arc [INFO] [stdout] | ------- required by a bound in this function [INFO] [stdout] 642 | where [INFO] [stdout] 643 | F: IntoHandler, [INFO] [stdout] | ^^^^^^^^^^^^^^ required by this bound in `handler` [INFO] [stdout] = note: the full name for the type has been written to '/tmp/rustdoctestZEMd5o/rust_out.long-type-3963034711026315143.txt' [INFO] [stdout] = note: consider using `--verbose` to print the full type name to the console [INFO] [stdout] [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/lib.rs:93:1 [INFO] [stdout] | [INFO] [stdout] 29 | async fn main() -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0432, E0433, E0752. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - prelude (line 421) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tokio` [INFO] [stdout] --> src/lib.rs:429:3 [INFO] [stdout] | [INFO] [stdout] 10 | #[tokio::main] [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `tokio` [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:432:34 [INFO] [stdout] | [INFO] [stdout] 13 | .default_handler(handler(handler)); [INFO] [stdout] | ------- ^^^^^^^ expected `Message`, found fn item [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected struct `wsforge::Message` [INFO] [stdout] found fn item `fn(wsforge::Message) -> impl Future> {handler}` [INFO] [stdout] note: function defined here [INFO] [stdout] --> src/lib.rs:425:10 [INFO] [stdout] | [INFO] [stdout] 6 | async fn handler(msg: Message) -> Result { [INFO] [stdout] | ^^^^^^^ ------------ [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:432:26 [INFO] [stdout] | [INFO] [stdout] 13 | .default_handler(handler(handler)); [INFO] [stdout] | --------------- ^^^^^^^^^^^^^^^^ expected `Arc`, found future [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/wsforge-core-0.1.1/src/router.rs:676:12 [INFO] [stdout] | [INFO] [stdout] 676 | pub fn default_handler(mut self, handler: Arc) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/lib.rs:430:1 [INFO] [stdout] | [INFO] [stdout] 11 | async fn main() -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0433, E0752. [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 44) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tokio` [INFO] [stdout] --> src/lib.rs:52:3 [INFO] [stdout] | [INFO] [stdout] 10 | #[tokio::main] [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `tokio` [INFO] [stdout] [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/lib.rs:53:1 [INFO] [stdout] | [INFO] [stdout] 11 | async fn main() -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 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 - (line 241) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `serde` [INFO] [stdout] --> src/lib.rs:245:5 [INFO] [stdout] | [INFO] [stdout] 6 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `serde` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `serde`, use `cargo add serde` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tokio` [INFO] [stdout] --> src/lib.rs:265:3 [INFO] [stdout] | [INFO] [stdout] 26 | #[tokio::main] [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `tokio` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `serde_json` [INFO] [stdout] --> src/lib.rs:260:16 [INFO] [stdout] | [INFO] [stdout] 21 | let json = serde_json::to_string(&game_move)?; [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `serde_json` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `serde_json`, use `cargo add serde_json` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `fn(Json, ..., ...) -> ... {game_handler}: IntoHandler<_>` is not satisfied [INFO] [stdout] --> src/lib.rs:268:34 [INFO] [stdout] | [INFO] [stdout] 29 | .default_handler(handler(game_handler)) [INFO] [stdout] | ------- ^^^^^^^^^^^^ the trait `IntoHandler<_>` is not implemented for fn item `fn(Json, Connection, State>) -> ... {game_handler}` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `wsforge::handler` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/wsforge-core-0.1.1/src/handler.rs:643:8 [INFO] [stdout] | [INFO] [stdout] 641 | pub fn handler(f: F) -> Arc [INFO] [stdout] | ------- required by a bound in this function [INFO] [stdout] 642 | where [INFO] [stdout] 643 | F: IntoHandler, [INFO] [stdout] | ^^^^^^^^^^^^^^ required by this bound in `handler` [INFO] [stdout] = note: the full name for the type has been written to '/tmp/rustdoctestXVMgEC/rust_out.long-type-12344526529762555993.txt' [INFO] [stdout] = note: consider using `--verbose` to print the full type name to the console [INFO] [stdout] [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/lib.rs:266:1 [INFO] [stdout] | [INFO] [stdout] 27 | async fn main() -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0432, E0433, E0752. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 279) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tokio` [INFO] [stdout] --> src/lib.rs:284:5 [INFO] [stdout] | [INFO] [stdout] 8 | use tokio::sync::RwLock; [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `tokio` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `tokio`, use `cargo add tokio` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `serde` [INFO] [stdout] --> src/lib.rs:285:5 [INFO] [stdout] | [INFO] [stdout] 9 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `serde` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `serde`, use `cargo add serde` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/lib.rs:305:9 [INFO] [stdout] | [INFO] [stdout] 29 | let rooms = room_mgr.rooms.read().await; [INFO] [stdout] | ^^^^^ [INFO] [stdout] 30 | if let Some(members) = rooms.get(&msg.room) { [INFO] [stdout] | ----- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `rooms` an explicit type [INFO] [stdout] | [INFO] [stdout] 29 | let rooms: /* Type */ = room_mgr.rooms.read().await; [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `serde_json` [INFO] [stdout] --> src/lib.rs:307:20 [INFO] [stdout] | [INFO] [stdout] 31 | let json = serde_json::to_string(&msg)?; [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `serde_json` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `serde_json`, use `cargo add serde_json` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0282, E0432, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0282`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 111) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tokio` [INFO] [stdout] --> src/lib.rs:124:3 [INFO] [stdout] | [INFO] [stdout] 15 | #[tokio::main] [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `tokio` [INFO] [stdout] [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/lib.rs:125:1 [INFO] [stdout] | [INFO] [stdout] 16 | async fn main() -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 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 - (line 206) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tokio` [INFO] [stdout] --> src/lib.rs:226:3 [INFO] [stdout] | [INFO] [stdout] 22 | #[tokio::main] [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `tokio` [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 2 arguments but 1 argument was supplied [INFO] [stdout] --> src/lib.rs:231:26 [INFO] [stdout] | [INFO] [stdout] 27 | .default_handler(handler(handler)); [INFO] [stdout] | ^^^^^^^--------- argument #2 of type `wsforge::State>` is missing [INFO] [stdout] | [INFO] [stdout] note: expected `State>`, found fn item [INFO] [stdout] --> src/lib.rs:231:34 [INFO] [stdout] | [INFO] [stdout] 27 | .default_handler(handler(handler)); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] = note: expected struct `wsforge::State>` [INFO] [stdout] found fn item `fn(wsforge::State>, wsforge::State>) -> impl Future> {handler}` [INFO] [stdout] note: function defined here [INFO] [stdout] --> src/lib.rs:219:10 [INFO] [stdout] | [INFO] [stdout] 15 | async fn handler( [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 16 | State(db): State>, [INFO] [stdout] | ------------------------------- [INFO] [stdout] 17 | State(config): State>, [INFO] [stdout] | --------------------------------- [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 27 - .default_handler(handler(handler)); [INFO] [stdout] 27 + .default_handler(handler(/* wsforge::State> */, /* wsforge::State> */)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:231:26 [INFO] [stdout] | [INFO] [stdout] 27 | .default_handler(handler(handler)); [INFO] [stdout] | --------------- ^^^^^^^^^^^^^^^^ expected `Arc`, found future [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/wsforge-core-0.1.1/src/router.rs:676:12 [INFO] [stdout] | [INFO] [stdout] 676 | pub fn default_handler(mut self, handler: Arc) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/lib.rs:227:1 [INFO] [stdout] | [INFO] [stdout] 23 | async fn main() -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0308, E0433, E0752. [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/lib.rs - (line 111) [INFO] [stdout] src/lib.rs - (line 206) [INFO] [stdout] src/lib.rs - (line 241) [INFO] [stdout] src/lib.rs - (line 279) [INFO] [stdout] src/lib.rs - (line 32) [INFO] [stdout] src/lib.rs - (line 336) [INFO] [stdout] src/lib.rs - (line 44) [INFO] [stdout] src/lib.rs - (line 66) [INFO] [stdout] src/lib.rs - prelude (line 421) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 3 passed; 9 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.68s [INFO] [stdout] [INFO] [stdout] all doctests ran in 1.08s; merged doctests compilation took 0.39s [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "b2fc00eee188ec45fd2ebd538f1992666754bc5987ee329b4a9bfabf7ea19642", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b2fc00eee188ec45fd2ebd538f1992666754bc5987ee329b4a9bfabf7ea19642", kill_on_drop: false }` [INFO] [stdout] b2fc00eee188ec45fd2ebd538f1992666754bc5987ee329b4a9bfabf7ea19642