[INFO] fetching crate trillium-websockets 0.6.6... [INFO] testing trillium-websockets-0.6.6 against try#b83b707f97d809763b7861afa7638871f3339a33 for pr-145838-1 [INFO] extracting crate trillium-websockets 0.6.6 into /workspace/builds/worker-2-tc2/source [INFO] started tweaking crates.io crate trillium-websockets 0.6.6 [INFO] finished tweaking crates.io crate trillium-websockets 0.6.6 [INFO] tweaked toml for crates.io crate trillium-websockets 0.6.6 written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate trillium-websockets 0.6.6 on toolchain b83b707f97d809763b7861afa7638871f3339a33 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate trillium-websockets 0.6.6 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" "+b83b707f97d809763b7861afa7638871f3339a33" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 8a0b5c31102ce441bc4752072fae1efef817b56c856f7e80ff5023344d74b6d2 [INFO] running `Command { std: "docker" "start" "-a" "8a0b5c31102ce441bc4752072fae1efef817b56c856f7e80ff5023344d74b6d2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "8a0b5c31102ce441bc4752072fae1efef817b56c856f7e80ff5023344d74b6d2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8a0b5c31102ce441bc4752072fae1efef817b56c856f7e80ff5023344d74b6d2", kill_on_drop: false }` [INFO] [stdout] 8a0b5c31102ce441bc4752072fae1efef817b56c856f7e80ff5023344d74b6d2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] fba78afce5a96d391921b00d3391a89ac3278abf87d15787bbeb3b19ba6484b6 [INFO] running `Command { std: "docker" "start" "-a" "fba78afce5a96d391921b00d3391a89ac3278abf87d15787bbeb3b19ba6484b6", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.84 [INFO] [stderr] Compiling libc v0.2.155 [INFO] [stderr] Compiling crossbeam-utils v0.8.20 [INFO] [stderr] Compiling thiserror v1.0.61 [INFO] [stderr] Compiling futures-core v0.3.30 [INFO] [stderr] Compiling ahash v0.8.11 [INFO] [stderr] Compiling parking v2.2.0 [INFO] [stderr] Compiling zerocopy v0.7.34 [INFO] [stderr] Compiling log v0.4.21 [INFO] [stderr] Compiling smartstring v1.0.1 [INFO] [stderr] Compiling fastrand v2.1.0 [INFO] [stderr] Compiling once_cell v1.19.0 [INFO] [stderr] Compiling allocator-api2 v0.2.18 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling encoding_rs v0.8.34 [INFO] [stderr] Compiling futures-sink v0.3.30 [INFO] [stderr] Compiling bytes v1.6.0 [INFO] [stderr] Compiling memchr v2.7.2 [INFO] [stderr] Compiling cpufeatures v0.2.12 [INFO] [stderr] Compiling futures-lite v2.3.0 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Compiling concurrent-queue v2.5.0 [INFO] [stderr] Compiling syn v2.0.66 [INFO] [stderr] Compiling smartcow v0.2.1 [INFO] [stderr] Compiling hashbrown v0.14.5 [INFO] [stderr] Compiling event-listener v5.3.1 [INFO] [stderr] Compiling getrandom v0.2.15 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling stopper v0.2.7 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling sha-1 v0.10.1 [INFO] [stderr] Compiling thiserror-impl v1.0.61 [INFO] [stderr] Compiling futures-macro v0.3.30 [INFO] [stderr] Compiling trillium-macros v0.0.6 [INFO] [stderr] Compiling async-trait v0.1.80 [INFO] [stderr] Compiling futures-util v0.3.30 [INFO] [stderr] Compiling tungstenite v0.21.0 [INFO] [stderr] Compiling trillium-http v0.3.17 [INFO] [stderr] Compiling trillium v0.2.20 [INFO] [stderr] Compiling async-tungstenite v0.25.1 [INFO] [stderr] Compiling trillium-websockets v0.6.6 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 11.51s [INFO] running `Command { std: "docker" "inspect" "fba78afce5a96d391921b00d3391a89ac3278abf87d15787bbeb3b19ba6484b6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fba78afce5a96d391921b00d3391a89ac3278abf87d15787bbeb3b19ba6484b6", kill_on_drop: false }` [INFO] [stdout] fba78afce5a96d391921b00d3391a89ac3278abf87d15787bbeb3b19ba6484b6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 10be9ae78605b55c305184b28675bc0fec06cc53a7e39ae8a8342ff92bc4c437 [INFO] running `Command { std: "docker" "start" "-a" "10be9ae78605b55c305184b28675bc0fec06cc53a7e39ae8a8342ff92bc4c437", kill_on_drop: false }` [INFO] [stderr] Compiling log v0.4.21 [INFO] [stderr] Compiling futures-lite v2.3.0 [INFO] [stderr] Compiling unicode-bidi v0.3.15 [INFO] [stderr] Compiling concurrent-queue v2.5.0 [INFO] [stderr] Compiling getrandom v0.2.15 [INFO] [stderr] Compiling unicode-normalization v0.1.23 [INFO] [stderr] Compiling rustix v0.38.34 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling linux-raw-sys v0.4.14 [INFO] [stderr] Compiling regex-syntax v0.8.3 [INFO] [stderr] Compiling tracing-core v0.1.32 [INFO] [stderr] Compiling itoa v1.0.11 [INFO] [stderr] Compiling bitflags v2.5.0 [INFO] [stderr] Compiling sha1 v0.10.6 [INFO] [stderr] Compiling futures-util v0.3.30 [INFO] [stderr] Compiling utf8parse v0.2.1 [INFO] [stderr] Compiling http v1.1.0 [INFO] [stderr] Compiling data-encoding v2.6.0 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling parking_lot_core v0.7.3 [INFO] [stderr] Compiling piper v0.2.2 [INFO] [stderr] Compiling event-listener v5.3.1 [INFO] [stderr] Compiling event-listener v4.0.3 [INFO] [stderr] Compiling tracing v0.1.40 [INFO] [stderr] Compiling idna v0.5.0 [INFO] [stderr] Compiling event-listener-strategy v0.5.2 [INFO] [stderr] Compiling anstyle-parse v0.2.4 [INFO] [stderr] Compiling event-listener-strategy v0.4.0 [INFO] [stderr] Compiling colorchoice v1.0.1 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling async-channel v2.3.1 [INFO] [stderr] Compiling async-lock v3.3.0 [INFO] [stderr] Compiling anstyle v1.0.7 [INFO] [stderr] Compiling serde v1.0.203 [INFO] [stderr] Compiling is_terminal_polyfill v1.70.0 [INFO] [stderr] Compiling anstyle-query v1.0.3 [INFO] [stderr] Compiling parking_lot v0.10.2 [INFO] [stderr] Compiling serde_derive v1.0.203 [INFO] [stderr] Compiling futures-channel v0.3.30 [INFO] [stderr] Compiling stopper v0.2.7 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling anstream v0.6.14 [INFO] [stderr] Compiling trillium-http v0.3.17 [INFO] [stderr] Compiling url v2.5.0 [INFO] [stderr] Compiling blocking v1.6.1 [INFO] [stderr] Compiling regex-automata v0.4.6 [INFO] [stderr] Compiling trillium v0.2.20 [INFO] [stderr] Compiling tungstenite v0.21.0 [INFO] [stderr] Compiling broadcaster v1.0.0 [INFO] [stderr] Compiling async-tungstenite v0.25.1 [INFO] [stderr] Compiling trillium-websockets v0.6.6 (/opt/rustwide/workdir) [INFO] [stderr] Compiling regex v1.10.4 [INFO] [stderr] Compiling env_filter v0.1.0 [INFO] [stderr] Compiling env_logger v0.11.3 [INFO] [stderr] Compiling polling v3.7.0 [INFO] [stderr] Compiling async-io v2.3.2 [INFO] [stderr] Compiling async-net v2.0.0 [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `trillium_testing` [INFO] [stdout] --> src/tests.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use trillium_testing::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `trillium_testing` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `trillium_testing`, use `cargo add trillium_testing` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved imports `trillium_websockets::json_websocket`, `trillium_websockets::JsonWebSocketHandler` [INFO] [stdout] --> examples/json_websocket.rs:4:18 [INFO] [stdout] | [INFO] [stdout] 4 | async_trait, json_websocket, JsonWebSocketHandler, Result, WebSocketConn, [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | | [INFO] [stdout] | | no `JsonWebSocketHandler` in the root [INFO] [stdout] | | help: a similar name exists in the module: `WebSocketHandler` [INFO] [stdout] | no `json_websocket` in the root [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /opt/rustwide/workdir/src/lib.rs:113:16 [INFO] [stdout] | [INFO] [stdout] 112 | #[cfg(feature = "json")] [INFO] [stdout] | ---------------- the item is gated behind the `json` feature [INFO] [stdout] 113 | pub use json::{json_websocket, JsonHandler, JsonWebSocketHandler}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /opt/rustwide/workdir/src/lib.rs:113:45 [INFO] [stdout] | [INFO] [stdout] 112 | #[cfg(feature = "json")] [INFO] [stdout] | ---------------- the item is gated behind the `json` feature [INFO] [stdout] 113 | pub use json::{json_websocket, JsonHandler, JsonWebSocketHandler}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `trillium_logger` [INFO] [stdout] --> examples/websockets.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use trillium_logger::logger; [INFO] [stdout] | ^^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `trillium_logger` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `trillium_logger`, use `cargo add trillium_logger` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `trillium_websockets::JsonWebSocketHandler` [INFO] [stdout] --> tests/json.rs:8:27 [INFO] [stdout] | [INFO] [stdout] 8 | use trillium_websockets::{JsonWebSocketHandler, Message, Result, WebSocket, WebSocketConn}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | no `JsonWebSocketHandler` in the root [INFO] [stdout] | help: a similar name exists in the module: `WebSocketHandler` [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /opt/rustwide/workdir/src/lib.rs:113:45 [INFO] [stdout] | [INFO] [stdout] 112 | #[cfg(feature = "json")] [INFO] [stdout] | ---------------- the item is gated behind the `json` feature [INFO] [stdout] 113 | pub use json::{json_websocket, JsonHandler, JsonWebSocketHandler}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `trillium_smol` [INFO] [stdout] --> examples/websockets.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | trillium_smol::run((logger(), websocket(websocket_handler))); [INFO] [stdout] | ^^^^^^^^^^^^^ use of unresolved module or unlinked crate `trillium_smol` [INFO] [stdout] | [INFO] [stdout] help: there is a crate or module with a similar name [INFO] [stdout] | [INFO] [stdout] 20 - trillium_smol::run((logger(), websocket(websocket_handler))); [INFO] [stdout] 20 + trillium_http::run((logger(), websocket(websocket_handler))); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0223]: ambiguous associated type [INFO] [stdout] --> examples/json_websocket.rs:26:58 [INFO] [stdout] | [INFO] [stdout] 26 | async fn connect(&self, conn: &mut WebSocketConn) -> Self::StreamType { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if there were a trait named `Example` with associated type `StreamType` implemented for `SomeJsonChannel`, you could use the fully-qualified path [INFO] [stdout] | [INFO] [stdout] 26 - async fn connect(&self, conn: &mut WebSocketConn) -> Self::StreamType { [INFO] [stdout] 26 + async fn connect(&self, conn: &mut WebSocketConn) -> ::StreamType { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0223]: ambiguous associated type [INFO] [stdout] --> examples/json_websocket.rs:34:33 [INFO] [stdout] | [INFO] [stdout] 34 | inbound_message: Result, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if there were a trait named `Example` with associated type `InboundMessage` implemented for `SomeJsonChannel`, you could use the fully-qualified path [INFO] [stdout] | [INFO] [stdout] 34 - inbound_message: Result, [INFO] [stdout] 34 + inbound_message: Result<::InboundMessage>, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `trillium_smol` [INFO] [stdout] --> examples/json_broadcast_websocket.rs:38:5 [INFO] [stdout] | [INFO] [stdout] 38 | trillium_smol::run(( [INFO] [stdout] | ^^^^^^^^^^^^^ use of unresolved module or unlinked crate `trillium_smol` [INFO] [stdout] | [INFO] [stdout] help: there is a crate or module with a similar name [INFO] [stdout] | [INFO] [stdout] 38 - trillium_smol::run(( [INFO] [stdout] 38 + trillium_http::run(( [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `trillium_logger` [INFO] [stdout] --> examples/json_broadcast_websocket.rs:39:9 [INFO] [stdout] | [INFO] [stdout] 39 | trillium_logger::logger(), [INFO] [stdout] | ^^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `trillium_logger` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `trillium_logger`, use `cargo add trillium_logger` to add it to your `Cargo.toml` [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] [stderr] error: could not compile `trillium-websockets` (example "websockets") due to 2 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] [INFO] [stdout] error[E0223]: ambiguous associated type [INFO] [stdout] --> tests/json.rs:35:58 [INFO] [stdout] | [INFO] [stdout] 35 | async fn connect(&self, conn: &mut WebSocketConn) -> Self::StreamType { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if there were a trait named `Example` with associated type `StreamType` implemented for `SomeJsonChannel`, you could use the fully-qualified path [INFO] [stdout] | [INFO] [stdout] 35 - async fn connect(&self, conn: &mut WebSocketConn) -> Self::StreamType { [INFO] [stdout] 35 + async fn connect(&self, conn: &mut WebSocketConn) -> ::StreamType { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0223]: ambiguous associated type [INFO] [stdout] --> tests/json.rs:43:33 [INFO] [stdout] | [INFO] [stdout] 43 | inbound_message: Result, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if there were a trait named `Example` with associated type `InboundMessage` implemented for `SomeJsonChannel`, you could use the fully-qualified path [INFO] [stdout] | [INFO] [stdout] 43 - inbound_message: Result, [INFO] [stdout] 43 + inbound_message: Result<::InboundMessage>, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `trillium_smol` [INFO] [stdout] --> examples/json_websocket.rs:54:5 [INFO] [stdout] | [INFO] [stdout] 54 | trillium_smol::run(json_websocket(SomeJsonChannel)); [INFO] [stdout] | ^^^^^^^^^^^^^ use of unresolved module or unlinked crate `trillium_smol` [INFO] [stdout] | [INFO] [stdout] help: there is a crate or module with a similar name [INFO] [stdout] | [INFO] [stdout] 54 - trillium_smol::run(json_websocket(SomeJsonChannel)); [INFO] [stdout] 54 + trillium_http::run(json_websocket(SomeJsonChannel)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0223, E0432, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0223`. [INFO] [stdout] [INFO] [stderr] error: could not compile `trillium-websockets` (example "json_broadcast_websocket") due to 2 previous errors [INFO] [stderr] error: could not compile `trillium-websockets` (example "json_websocket") due to 4 previous errors [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `serde_json` [INFO] [stdout] --> tests/json.rs:62:29 [INFO] [stdout] | [INFO] [stdout] 62 | .send(Message::text(serde_json::to_string(&message).unwrap())) [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] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `serde_json` [INFO] [stdout] --> tests/json.rs:66:5 [INFO] [stdout] | [INFO] [stdout] 66 | serde_json::from_str(&client.next().await.unwrap().unwrap().into_text().unwrap()).unwrap() [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] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `trillium_testing` [INFO] [stdout] --> tests/json.rs:71:5 [INFO] [stdout] | [INFO] [stdout] 71 | trillium_testing::with_transport( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `trillium_testing` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `trillium_testing`, use `cargo add trillium_testing` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0223, E0432, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0223`. [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `trillium_testing` [INFO] [stdout] --> tests/test.rs:137:5 [INFO] [stdout] | [INFO] [stdout] 137 | trillium_testing::with_transport(handler, |transport| async move { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `trillium_testing` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `trillium_testing`, use `cargo add trillium_testing` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `trillium-websockets` (test "json") due to 6 previous errors [INFO] [stdout] error[E0425]: cannot find function `get` in this scope [INFO] [stdout] --> src/tests.rs:6:20 [INFO] [stdout] | [INFO] [stdout] 6 | let mut conn = get("/").on(&()).into(); [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: use the `.` operator to call the method `get` on `&str` [INFO] [stdout] | [INFO] [stdout] 6 - let mut conn = get("/").on(&()).into(); [INFO] [stdout] 6 + let mut conn = "/".get().on(&()).into(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] [INFO] [stderr] error: could not compile `trillium-websockets` (test "test") due to 1 previous error [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] [stderr] error: could not compile `trillium-websockets` (lib test) due to 2 previous errors [INFO] running `Command { std: "docker" "inspect" "10be9ae78605b55c305184b28675bc0fec06cc53a7e39ae8a8342ff92bc4c437", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "10be9ae78605b55c305184b28675bc0fec06cc53a7e39ae8a8342ff92bc4c437", kill_on_drop: false }` [INFO] [stdout] 10be9ae78605b55c305184b28675bc0fec06cc53a7e39ae8a8342ff92bc4c437