[INFO] fetching crate worker-macros 0.6.1... [INFO] testing worker-macros-0.6.1 against try#b83b707f97d809763b7861afa7638871f3339a33 for pr-145838-1 [INFO] extracting crate worker-macros 0.6.1 into /workspace/builds/worker-0-tc2/source [INFO] started tweaking crates.io crate worker-macros 0.6.1 [INFO] finished tweaking crates.io crate worker-macros 0.6.1 [INFO] tweaked toml for crates.io crate worker-macros 0.6.1 written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate worker-macros 0.6.1 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 worker-macros 0.6.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" "+b83b707f97d809763b7861afa7638871f3339a33" "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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 1a77fa78f463c0bd5341dd4a5ed71aa29889fd4e5b1869a428335f007745edca [INFO] running `Command { std: "docker" "start" "-a" "1a77fa78f463c0bd5341dd4a5ed71aa29889fd4e5b1869a428335f007745edca", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "1a77fa78f463c0bd5341dd4a5ed71aa29889fd4e5b1869a428335f007745edca", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1a77fa78f463c0bd5341dd4a5ed71aa29889fd4e5b1869a428335f007745edca", kill_on_drop: false }` [INFO] [stdout] 1a77fa78f463c0bd5341dd4a5ed71aa29889fd4e5b1869a428335f007745edca [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=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] 22cd9003a7a6c5b50d27bd617bca1262ef4469ea5db27f7410521281254b95e3 [INFO] running `Command { std: "docker" "start" "-a" "22cd9003a7a6c5b50d27bd617bca1262ef4469ea5db27f7410521281254b95e3", kill_on_drop: false }` [INFO] [stderr] Compiling log v0.4.27 [INFO] [stderr] Compiling once_cell v1.21.3 [INFO] [stderr] Compiling cfg-if v1.0.1 [INFO] [stderr] Compiling wasm-bindgen v0.2.100 [INFO] [stderr] Compiling syn v2.0.104 [INFO] [stderr] Compiling wasm-bindgen-backend v0.2.100 [INFO] [stderr] Compiling async-trait v0.1.88 [INFO] [stderr] Compiling wasm-bindgen-macro-support v0.2.100 [INFO] [stderr] Compiling wasm-bindgen-macro v0.2.100 [INFO] [stderr] Compiling js-sys v0.3.77 [INFO] [stderr] Compiling web-sys v0.3.77 [INFO] [stderr] Compiling wasm-bindgen-futures v0.4.50 [INFO] [stderr] Compiling worker-sys v0.6.1 [INFO] [stderr] Compiling worker-macros v0.6.1 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 18.68s [INFO] running `Command { std: "docker" "inspect" "22cd9003a7a6c5b50d27bd617bca1262ef4469ea5db27f7410521281254b95e3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "22cd9003a7a6c5b50d27bd617bca1262ef4469ea5db27f7410521281254b95e3", kill_on_drop: false }` [INFO] [stdout] 22cd9003a7a6c5b50d27bd617bca1262ef4469ea5db27f7410521281254b95e3 [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=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] 1551ed2c0ea606057aa6511cf057b54b891a6bfc9c77b5e3ea377f996b06bb72 [INFO] running `Command { std: "docker" "start" "-a" "1551ed2c0ea606057aa6511cf057b54b891a6bfc9c77b5e3ea377f996b06bb72", kill_on_drop: false }` [INFO] [stderr] Compiling worker-macros v0.6.1 (/opt/rustwide/workdir) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.49s [INFO] running `Command { std: "docker" "inspect" "1551ed2c0ea606057aa6511cf057b54b891a6bfc9c77b5e3ea377f996b06bb72", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1551ed2c0ea606057aa6511cf057b54b891a6bfc9c77b5e3ea377f996b06bb72", kill_on_drop: false }` [INFO] [stdout] 1551ed2c0ea606057aa6511cf057b54b891a6bfc9c77b5e3ea377f996b06bb72 [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=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", kill_on_drop: false }` [INFO] [stdout] 1219364a42ff50cbc6054092d3a77201e91493033b8cd567df2f8d2849e942c5 [INFO] running `Command { std: "docker" "start" "-a" "1219364a42ff50cbc6054092d3a77201e91493033b8cd567df2f8d2849e942c5", kill_on_drop: false }` [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.06s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/worker_macros-3d1fa36bbb068bf7) [INFO] [stderr] Doc-tests worker_macros [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] [stdout] [INFO] [stdout] running 7 tests [INFO] [stdout] test src/lib.rs - send (line 127) ... FAILED [INFO] [stdout] test src/lib.rs - durable_object (line 12) ... FAILED [INFO] [stdout] test src/lib.rs - event (line 110) ... FAILED [INFO] [stdout] test src/lib.rs - event (line 101) ... FAILED [INFO] [stdout] test src/lib.rs - durable_object (line 47) ... FAILED [INFO] [stdout] test src/lib.rs - event (line 92) ... FAILED [INFO] [stdout] test src/lib.rs - event (line 80) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - send (line 127) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `worker` [INFO] [stdout] --> src/lib.rs:128:3 [INFO] [stdout] | [INFO] [stdout] 3 | #[worker::send] [INFO] [stdout] | ^^^^^^ use of unresolved module or unlinked crate `worker` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `JsFuture` [INFO] [stdout] --> src/lib.rs:131:15 [INFO] [stdout] | [INFO] [stdout] 6 | let fut = JsFuture::from(promise); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `JsFuture` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use wasm_bindgen_futures::JsFuture; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `promise` in this scope [INFO] [stdout] --> src/lib.rs:131:30 [INFO] [stdout] | [INFO] [stdout] 6 | let fut = JsFuture::from(promise); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - durable_object (line 12) stdout ---- [INFO] [stdout] error: cannot find attribute `durable_object` in this scope [INFO] [stdout] --> src/lib.rs:13:3 [INFO] [stdout] | [INFO] [stdout] 3 | #[durable_object] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this attribute macro [INFO] [stdout] | [INFO] [stdout] 2 + use worker_macros::durable_object; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `User` in this scope [INFO] [stdout] --> src/lib.rs:15:16 [INFO] [stdout] | [INFO] [stdout] 5 | users: Vec, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Chatroom { [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Message` in this scope [INFO] [stdout] --> src/lib.rs:16:19 [INFO] [stdout] | [INFO] [stdout] 6 | messages: Vec, [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use worker_sys::Message; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `State` in this scope [INFO] [stdout] --> src/lib.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 7 | state: State, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Env` in this scope [INFO] [stdout] --> src/lib.rs:18:10 [INFO] [stdout] | [INFO] [stdout] 8 | env: Env, // access `Env` across requests, use inside `fetch` [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0405]: cannot find trait `DurableObject` in this scope [INFO] [stdout] --> src/lib.rs:21:6 [INFO] [stdout] | [INFO] [stdout] 11 | impl DurableObject for Chatroom { [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `State` in this scope [INFO] [stdout] --> src/lib.rs:22:19 [INFO] [stdout] | [INFO] [stdout] 12 | fn new(state: State, env: Env) -> Self { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Env` in this scope [INFO] [stdout] --> src/lib.rs:22:31 [INFO] [stdout] | [INFO] [stdout] 12 | fn new(state: State, env: Env) -> Self { [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Request` in this scope [INFO] [stdout] --> src/lib.rs:31:33 [INFO] [stdout] | [INFO] [stdout] 21 | async fn fetch(&self, _req: Request) -> Result { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use std::error::Request; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Response` in this scope [INFO] [stdout] --> src/lib.rs:31:52 [INFO] [stdout] | [INFO] [stdout] 21 | async fn fetch(&self, _req: Request) -> Result { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 11 | impl DurableObject for Chatroom { [INFO] [stdout] | ++++++++++ [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Response` [INFO] [stdout] --> src/lib.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 23 | Response::ok(&format!("{} active users.", self.users.len())) [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Response` [INFO] [stdout] [INFO] [stdout] error: aborting due to 11 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0405, E0412, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0405`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - event (line 110) stdout ---- [INFO] [stdout] error: cannot find attribute `event` in this scope [INFO] [stdout] --> src/lib.rs:111:3 [INFO] [stdout] | [INFO] [stdout] 3 | #[event(fetch)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this attribute macro [INFO] [stdout] | [INFO] [stdout] 2 + use worker_macros::event; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `axum` [INFO] [stdout] --> src/lib.rs:112:83 [INFO] [stdout] | [INFO] [stdout] 4 | async fn fetch(req: HttpRequest, env: Env, ctx: Context) -> Result> { [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `axum` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `axum`, use `cargo add axum` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HttpRequest` in this scope [INFO] [stdout] --> src/lib.rs:112:21 [INFO] [stdout] | [INFO] [stdout] 4 | async fn fetch(req: HttpRequest, env: Env, ctx: Context) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Env` in this scope [INFO] [stdout] --> src/lib.rs:112:39 [INFO] [stdout] | [INFO] [stdout] 4 | async fn fetch(req: HttpRequest, env: Env, ctx: Context) -> Result> { [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Context` in this scope [INFO] [stdout] --> src/lib.rs:112:49 [INFO] [stdout] | [INFO] [stdout] 4 | async fn fetch(req: HttpRequest, env: Env, ctx: Context) -> Result> { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 2 + use std::task::Context; [INFO] [stdout] | [INFO] [stdout] 2 + use worker_sys::Context; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0107]: enum takes 2 generic arguments but 1 generic argument was supplied [INFO] [stdout] --> src/lib.rs:112:61 [INFO] [stdout] | [INFO] [stdout] 4 | async fn fetch(req: HttpRequest, env: Env, ctx: Context) -> Result> { [INFO] [stdout] | ^^^^^^ -------------------------------- supplied 1 generic argument [INFO] [stdout] | | [INFO] [stdout] | expected 2 generic arguments [INFO] [stdout] | [INFO] [stdout] help: add missing generic argument [INFO] [stdout] | [INFO] [stdout] 4 | async fn fetch(req: HttpRequest, env: Env, ctx: Context) -> Result, E> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `router` in this scope [INFO] [stdout] --> src/lib.rs:113:6 [INFO] [stdout] | [INFO] [stdout] 5 | Ok(router().call(req).await?) [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `http` [INFO] [stdout] --> src/lib.rs:112:68 [INFO] [stdout] | [INFO] [stdout] 4 | async fn fetch(req: HttpRequest, env: Env, ctx: Context) -> Result> { [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `http` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `http`, use `cargo add http` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 8 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0107, E0412, E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0107`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - event (line 101) stdout ---- [INFO] [stdout] error: cannot find attribute `event` in this scope [INFO] [stdout] --> src/lib.rs:102:3 [INFO] [stdout] | [INFO] [stdout] 2 | #[event(fetch, respond_with_errors)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this attribute macro [INFO] [stdout] | [INFO] [stdout] 2 + use worker_macros::event; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `web_sys` [INFO] [stdout] --> src/lib.rs:104:6 [INFO] [stdout] | [INFO] [stdout] 4 | Ok(web_sys::Response::new_with_opt_str(Some("Hello World (native type)".into())).unwrap()) [INFO] [stdout] | ^^^^^^^ use of unresolved module or unlinked crate `web_sys` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `web_sys`, use `cargo add web_sys` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `web_sys` [INFO] [stdout] --> src/lib.rs:103:20 [INFO] [stdout] | [INFO] [stdout] 3 | async fn main(req: web_sys::Request, env: Env, ctx: Context) -> Result { [INFO] [stdout] | ^^^^^^^ use of unresolved module or unlinked crate `web_sys` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `web_sys`, use `cargo add web_sys` to add it to your `Cargo.toml` [INFO] [stdout] help: consider importing this crate [INFO] [stdout] | [INFO] [stdout] 2 + use worker_sys::web_sys; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Env` in this scope [INFO] [stdout] --> src/lib.rs:103:43 [INFO] [stdout] | [INFO] [stdout] 3 | async fn main(req: web_sys::Request, env: Env, ctx: Context) -> Result { [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Context` in this scope [INFO] [stdout] --> src/lib.rs:103:53 [INFO] [stdout] | [INFO] [stdout] 3 | async fn main(req: web_sys::Request, env: Env, ctx: Context) -> Result { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 2 + use std::task::Context; [INFO] [stdout] | [INFO] [stdout] 2 + use worker_sys::Context; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `web_sys` [INFO] [stdout] --> src/lib.rs:103:72 [INFO] [stdout] | [INFO] [stdout] 3 | async fn main(req: web_sys::Request, env: Env, ctx: Context) -> Result { [INFO] [stdout] | ^^^^^^^ use of unresolved module or unlinked crate `web_sys` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `web_sys`, use `cargo add web_sys` to add it to your `Cargo.toml` [INFO] [stdout] help: consider importing this crate [INFO] [stdout] | [INFO] [stdout] 2 + use worker_sys::web_sys; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0107]: enum takes 2 generic arguments but 1 generic argument was supplied [INFO] [stdout] --> src/lib.rs:103:65 [INFO] [stdout] | [INFO] [stdout] 3 | async fn main(req: web_sys::Request, env: Env, ctx: Context) -> Result { [INFO] [stdout] | ^^^^^^ ----------------- supplied 1 generic argument [INFO] [stdout] | | [INFO] [stdout] | expected 2 generic arguments [INFO] [stdout] | [INFO] [stdout] help: add missing generic argument [INFO] [stdout] | [INFO] [stdout] 3 | async fn main(req: web_sys::Request, env: Env, ctx: Context) -> Result { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/lib.rs:103:1 [INFO] [stdout] | [INFO] [stdout] 3 | async fn main(req: web_sys::Request, env: Env, ctx: Context) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 8 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0107, E0412, E0433, E0752. [INFO] [stdout] For more information about an error, try `rustc --explain E0107`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - durable_object (line 47) stdout ---- [INFO] [stdout] error: cannot find attribute `durable_object` in this scope [INFO] [stdout] --> src/lib.rs:48:3 [INFO] [stdout] | [INFO] [stdout] 3 | #[durable_object(fetch)] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this attribute macro [INFO] [stdout] | [INFO] [stdout] 2 + use worker_macros::durable_object; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `User` in this scope [INFO] [stdout] --> src/lib.rs:50:16 [INFO] [stdout] | [INFO] [stdout] 5 | users: Vec, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Chatroom { [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Message` in this scope [INFO] [stdout] --> src/lib.rs:51:19 [INFO] [stdout] | [INFO] [stdout] 6 | messages: Vec, [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use worker_sys::Message; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `State` in this scope [INFO] [stdout] --> src/lib.rs:52:12 [INFO] [stdout] | [INFO] [stdout] 7 | state: State, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Env` in this scope [INFO] [stdout] --> src/lib.rs:53:10 [INFO] [stdout] | [INFO] [stdout] 8 | env: Env, // access `Env` across requests, use inside `fetch` [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - event (line 92) stdout ---- [INFO] [stdout] error: cannot find attribute `event` in this scope [INFO] [stdout] --> src/lib.rs:93:3 [INFO] [stdout] | [INFO] [stdout] 2 | #[event(fetch, respond_with_errors)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this attribute macro [INFO] [stdout] | [INFO] [stdout] 2 + use worker_macros::event; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `worker` [INFO] [stdout] --> src/lib.rs:95:3 [INFO] [stdout] | [INFO] [stdout] 4 | worker::Response::ok("Hello World (worker type)") [INFO] [stdout] | ^^^^^^ use of unresolved module or unlinked crate `worker` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `worker`, use `cargo add worker` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Env` in this scope [INFO] [stdout] --> src/lib.rs:94:42 [INFO] [stdout] | [INFO] [stdout] 3 | async fn main(req: worker::Request, env: Env, ctx: Context) -> Result { [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Context` in this scope [INFO] [stdout] --> src/lib.rs:94:52 [INFO] [stdout] | [INFO] [stdout] 3 | async fn main(req: worker::Request, env: Env, ctx: Context) -> Result { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 2 + use std::task::Context; [INFO] [stdout] | [INFO] [stdout] 2 + use worker_sys::Context; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0107]: enum takes 2 generic arguments but 1 generic argument was supplied [INFO] [stdout] --> src/lib.rs:94:64 [INFO] [stdout] | [INFO] [stdout] 3 | async fn main(req: worker::Request, env: Env, ctx: Context) -> Result { [INFO] [stdout] | ^^^^^^ ---------------- supplied 1 generic argument [INFO] [stdout] | | [INFO] [stdout] | expected 2 generic arguments [INFO] [stdout] | [INFO] [stdout] help: add missing generic argument [INFO] [stdout] | [INFO] [stdout] 3 | async fn main(req: worker::Request, env: Env, ctx: Context) -> Result { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/lib.rs:94:1 [INFO] [stdout] | [INFO] [stdout] 3 | async fn main(req: worker::Request, env: Env, ctx: Context) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `worker` [INFO] [stdout] --> src/lib.rs:94:20 [INFO] [stdout] | [INFO] [stdout] 3 | async fn main(req: worker::Request, env: Env, ctx: Context) -> Result { [INFO] [stdout] | ^^^^^^ use of unresolved module or unlinked crate `worker` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `worker`, use `cargo add worker` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `worker` [INFO] [stdout] --> src/lib.rs:94:71 [INFO] [stdout] | [INFO] [stdout] 3 | async fn main(req: worker::Request, env: Env, ctx: Context) -> Result { [INFO] [stdout] | ^^^^^^ use of unresolved module or unlinked crate `worker` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `worker`, use `cargo add worker` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 8 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0107, E0412, E0433, E0752. [INFO] [stdout] For more information about an error, try `rustc --explain E0107`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - event (line 80) stdout ---- [INFO] [stdout] error: expected one of `!`, `+`, `::`, `where`, or `{`, found `}` [INFO] [stdout] --> src/lib.rs:82:1 [INFO] [stdout] | [INFO] [stdout] 3 | async fn fetch(req: impl From, env: Env, ctx: Context) -> Result, impl Into>> [INFO] [stdout] | ----- while parsing this `fn` - expected one of `!`, `+`, `::`, `where`, or `{` [INFO] [stdout] 4 | } _doctest_main_src_lib_rs_80_0() } [INFO] [stdout] | ^ unexpected token [INFO] [stdout] [INFO] [stdout] error: free function without a body [INFO] [stdout] --> src/lib.rs:81:1 [INFO] [stdout] | [INFO] [stdout] 3 | async fn fetch(req: impl From, env: Env, ctx: Context) -> Result, impl Into>> [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^- help: provide a definition for the function: `{ }` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `web_sys` [INFO] [stdout] --> src/lib.rs:81:31 [INFO] [stdout] | [INFO] [stdout] 3 | async fn fetch(req: impl From, env: Env, ctx: Context) -> Result, impl Into>> [INFO] [stdout] | ^^^^^^^ use of unresolved module or unlinked crate `web_sys` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `web_sys`, use `cargo add web_sys` to add it to your `Cargo.toml` [INFO] [stdout] help: consider importing this crate [INFO] [stdout] | [INFO] [stdout] 2 + use worker_sys::web_sys; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Env` in this scope [INFO] [stdout] --> src/lib.rs:81:55 [INFO] [stdout] | [INFO] [stdout] 3 | async fn fetch(req: impl From, env: Env, ctx: Context) -> Result, impl Into>> [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Context` in this scope [INFO] [stdout] --> src/lib.rs:81:65 [INFO] [stdout] | [INFO] [stdout] 3 | async fn fetch(req: impl From, env: Env, ctx: Context) -> Result, impl Into>> [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 2 + use std::task::Context; [INFO] [stdout] | [INFO] [stdout] 2 + use worker_sys::Context; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `web_sys` [INFO] [stdout] --> src/lib.rs:81:94 [INFO] [stdout] | [INFO] [stdout] 3 | async fn fetch(req: impl From, env: Env, ctx: Context) -> Result, impl Into>> [INFO] [stdout] | ^^^^^^^ use of unresolved module or unlinked crate `web_sys` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `web_sys`, use `cargo add web_sys` to add it to your `Cargo.toml` [INFO] [stdout] help: consider importing this crate [INFO] [stdout] | [INFO] [stdout] 2 + use worker_sys::web_sys; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0405]: cannot find trait `Error` in this scope [INFO] [stdout] --> src/lib.rs:81:132 [INFO] [stdout] | [INFO] [stdout] 3 | async fn fetch(req: impl From, env: Env, ctx: Context) -> Result, impl Into>> [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this trait [INFO] [stdout] | [INFO] [stdout] 2 + use std::error::Error; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 7 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0405, E0412, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0405`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/lib.rs - durable_object (line 12) [INFO] [stdout] src/lib.rs - durable_object (line 47) [INFO] [stdout] src/lib.rs - event (line 101) [INFO] [stdout] src/lib.rs - event (line 110) [INFO] [stdout] src/lib.rs - event (line 80) [INFO] [stdout] src/lib.rs - event (line 92) [INFO] [stdout] src/lib.rs - send (line 127) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 7 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.57s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "1219364a42ff50cbc6054092d3a77201e91493033b8cd567df2f8d2849e942c5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1219364a42ff50cbc6054092d3a77201e91493033b8cd567df2f8d2849e942c5", kill_on_drop: false }` [INFO] [stdout] 1219364a42ff50cbc6054092d3a77201e91493033b8cd567df2f8d2849e942c5