[INFO] fetching crate ssr 0.0.6... [INFO] testing ssr-0.0.6 against try#c2e32f1c9652b13ed99608599c1e855462f421f3 for pr-146098-8 [INFO] extracting crate ssr 0.0.6 into /workspace/builds/worker-4-tc2/source [INFO] started tweaking crates.io crate ssr 0.0.6 [INFO] finished tweaking crates.io crate ssr 0.0.6 [INFO] tweaked toml for crates.io crate ssr 0.0.6 written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate ssr 0.0.6 on toolchain c2e32f1c9652b13ed99608599c1e855462f421f3 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 44 packages to latest compatible versions [INFO] [stderr] Adding http v0.2.12 (available: v1.3.1) [INFO] [stderr] Adding tokio v0.2.25 (available: v1.48.0) [INFO] [stderr] Adding uuid v0.8.2 (available: v1.18.1) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 3c45f623502d98a940aee6d0cfa54daf595ff520cbe408c477da40fe5ba1af3c [INFO] running `Command { std: "docker" "start" "-a" "3c45f623502d98a940aee6d0cfa54daf595ff520cbe408c477da40fe5ba1af3c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3c45f623502d98a940aee6d0cfa54daf595ff520cbe408c477da40fe5ba1af3c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3c45f623502d98a940aee6d0cfa54daf595ff520cbe408c477da40fe5ba1af3c", kill_on_drop: false }` [INFO] [stdout] 3c45f623502d98a940aee6d0cfa54daf595ff520cbe408c477da40fe5ba1af3c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] de17c89d03fa560efcd4470dced8a3b4237e5ea3d043933c83cabdc698d9c449 [INFO] running `Command { std: "docker" "start" "-a" "de17c89d03fa560efcd4470dced8a3b4237e5ea3d043933c83cabdc698d9c449", kill_on_drop: false }` [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Compiling bytes v0.5.6 [INFO] [stderr] Compiling pin-project-lite v0.1.12 [INFO] [stderr] Compiling net2 v0.2.39 [INFO] [stderr] Compiling iovec v0.1.4 [INFO] [stderr] Compiling getrandom v0.2.16 [INFO] [stderr] Compiling serde_json v1.0.145 [INFO] [stderr] Compiling http v0.2.12 [INFO] [stderr] Compiling mio v0.6.23 [INFO] [stderr] Compiling mio-uds v0.6.8 [INFO] [stderr] Compiling uuid v0.8.2 [INFO] [stderr] Compiling tokio v0.2.25 [INFO] [stderr] Compiling ssr v0.0.6 (/opt/rustwide/workdir) [INFO] [stdout] warning: field `js_worker` is never read [INFO] [stdout] --> src/ssr.rs:67:5 [INFO] [stdout] | [INFO] [stdout] 65 | pub struct Ssr { [INFO] [stdout] | --- field in this struct [INFO] [stdout] 66 | worker: Arc, [INFO] [stdout] 67 | js_worker: PathBuf, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Ssr` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 9.26s [INFO] running `Command { std: "docker" "inspect" "de17c89d03fa560efcd4470dced8a3b4237e5ea3d043933c83cabdc698d9c449", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "de17c89d03fa560efcd4470dced8a3b4237e5ea3d043933c83cabdc698d9c449", kill_on_drop: false }` [INFO] [stdout] de17c89d03fa560efcd4470dced8a3b4237e5ea3d043933c83cabdc698d9c449 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 5c37ebbc15e872c10676ce02b8a12f0ced6c66bf74bede44476ea222cd5f9f44 [INFO] running `Command { std: "docker" "start" "-a" "5c37ebbc15e872c10676ce02b8a12f0ced6c66bf74bede44476ea222cd5f9f44", kill_on_drop: false }` [INFO] [stdout] warning: field `js_worker` is never read [INFO] [stdout] --> src/ssr.rs:67:5 [INFO] [stdout] | [INFO] [stdout] 65 | pub struct Ssr { [INFO] [stdout] | --- field in this struct [INFO] [stdout] 66 | worker: Arc, [INFO] [stdout] 67 | js_worker: PathBuf, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Ssr` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling ssr v0.0.6 (/opt/rustwide/workdir) [INFO] [stdout] warning: field `js_worker` is never read [INFO] [stdout] --> src/ssr.rs:67:5 [INFO] [stdout] | [INFO] [stdout] 65 | pub struct Ssr { [INFO] [stdout] | --- field in this struct [INFO] [stdout] 66 | worker: Arc, [INFO] [stdout] 67 | js_worker: PathBuf, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Ssr` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.60s [INFO] running `Command { std: "docker" "inspect" "5c37ebbc15e872c10676ce02b8a12f0ced6c66bf74bede44476ea222cd5f9f44", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5c37ebbc15e872c10676ce02b8a12f0ced6c66bf74bede44476ea222cd5f9f44", kill_on_drop: false }` [INFO] [stdout] 5c37ebbc15e872c10676ce02b8a12f0ced6c66bf74bede44476ea222cd5f9f44 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] be73a29dac4c69eac022893665c253a0a8dcd4def7a37d16645059b0be178ebe [INFO] running `Command { std: "docker" "start" "-a" "be73a29dac4c69eac022893665c253a0a8dcd4def7a37d16645059b0be178ebe", kill_on_drop: false }` [INFO] [stderr] warning: field `js_worker` is never read [INFO] [stderr] --> src/ssr.rs:67:5 [INFO] [stderr] | [INFO] [stderr] 65 | pub struct Ssr { [INFO] [stderr] | --- field in this struct [INFO] [stderr] 66 | worker: Arc, [INFO] [stderr] 67 | js_worker: PathBuf, [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `Ssr` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: `ssr` (lib) generated 1 warning [INFO] [stderr] warning: `ssr` (lib test) generated 1 warning (1 duplicate) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.10s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/ssr-31c7ce9577561244) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Doc-tests ssr [INFO] [stdout] [INFO] [stdout] running 4 tests [INFO] [stdout] test src/ssr.rs - ssr::Ssr::new (line 76) ... FAILED [INFO] [stdout] test src/lib.rs - (line 71) ... FAILED [INFO] [stdout] test src/ssr.rs - ssr::Ssr::render (line 113) ... FAILED [INFO] [stdout] test src/lib.rs - (line 32) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/ssr.rs - ssr::Ssr::new (line 76) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Ssr` [INFO] [stdout] --> src/ssr.rs:79:3 [INFO] [stdout] | [INFO] [stdout] 79 | Ssr::new( [INFO] [stdout] | ^^^ use of undeclared type `Ssr` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 75 + use ssr::Ssr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `SsrConfig` in this scope [INFO] [stdout] --> src/ssr.rs:80:5 [INFO] [stdout] | [INFO] [stdout] 80 | SsrConfig { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 75 + use ssr::SsrConfig; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PathBuf` [INFO] [stdout] --> src/ssr.rs:82:18 [INFO] [stdout] | [INFO] [stdout] 82 | js_worker: PathBuf::from("./node_modules/ssr-rs/worker.js"), [INFO] [stdout] | ^^^^^^^ use of undeclared type `PathBuf` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 75 + use std::path::PathBuf; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `JsWorkerLog` [INFO] [stdout] --> src/ssr.rs:83:22 [INFO] [stdout] | [INFO] [stdout] 83 | js_worker_log: JsWorkerLog::Verbose, [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `JsWorkerLog` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 75 + use ssr::JsWorkerLog; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PathBuf` [INFO] [stdout] --> src/ssr.rs:84:32 [INFO] [stdout] | [INFO] [stdout] 84 | global_js_renderer: Some(PathBuf::from("./js/ssr.js")), [INFO] [stdout] | ^^^^^^^ use of undeclared type `PathBuf` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 75 + use std::path::PathBuf; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0422, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0422`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 71) stdout ---- [INFO] [stdout] error: cannot find macro `error` in this scope [INFO] [stdout] --> src/lib.rs:78:9 [INFO] [stdout] | [INFO] [stdout] 78 | error!("Error: {}", error); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 70 + use log::error; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `req` in this scope [INFO] [stdout] --> src/lib.rs:73:11 [INFO] [stdout] | [INFO] [stdout] 73 | let uri = req.uri(); [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0423]: expected value, found crate `ssr` [INFO] [stdout] --> src/lib.rs:75:7 [INFO] [stdout] | [INFO] [stdout] 75 | match ssr.render(uri, &data, JsRenderer::Global).await { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: use the path separator to refer to an item [INFO] [stdout] | [INFO] [stdout] 75 - match ssr.render(uri, &data, JsRenderer::Global).await { [INFO] [stdout] 75 + match ssr::render(uri, &data, JsRenderer::Global).await { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `JsRenderer` [INFO] [stdout] --> src/lib.rs:75:30 [INFO] [stdout] | [INFO] [stdout] 75 | match ssr.render(uri, &data, JsRenderer::Global).await { [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `JsRenderer` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 70 + use ssr::JsRenderer; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/lib.rs:75:50 [INFO] [stdout] | [INFO] [stdout] 72 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_71_0() { [INFO] [stdout] | ---------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 75 | match ssr.render(uri, &data, JsRenderer::Global).await { [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `db` [INFO] [stdout] --> src/lib.rs:74:12 [INFO] [stdout] | [INFO] [stdout] 74 | let data = db::get_data(); [INFO] [stdout] | ^^ use of unresolved module or unlinked crate `db` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `db`, use `cargo add db` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `HttpResponse` [INFO] [stdout] --> src/lib.rs:76:17 [INFO] [stdout] | [INFO] [stdout] 76 | Ok(html) => HttpResponse::Ok().body(html), [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `HttpResponse` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `HttpResponse` [INFO] [stdout] --> src/lib.rs:79:9 [INFO] [stdout] | [INFO] [stdout] 79 | HttpResponse::InternalServerError().finish() [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `HttpResponse` [INFO] [stdout] [INFO] [stdout] error: aborting due to 8 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0423, E0425, E0433, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0423`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/ssr.rs - ssr::Ssr::render (line 113) stdout ---- [INFO] [stdout] error: cannot find macro `error` in this scope [INFO] [stdout] --> src/ssr.rs:120:9 [INFO] [stdout] | [INFO] [stdout] 120 | error!("Error: {}", error); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 112 + use log::error; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `req` in this scope [INFO] [stdout] --> src/ssr.rs:115:11 [INFO] [stdout] | [INFO] [stdout] 115 | let uri = req.uri(); [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0423]: expected value, found crate `ssr` [INFO] [stdout] --> src/ssr.rs:117:7 [INFO] [stdout] | [INFO] [stdout] 117 | match ssr.render(uri, &data, JsRenderer::Global).await { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: use the path separator to refer to an item [INFO] [stdout] | [INFO] [stdout] 117 - match ssr.render(uri, &data, JsRenderer::Global).await { [INFO] [stdout] 117 + match ssr::render(uri, &data, JsRenderer::Global).await { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `JsRenderer` [INFO] [stdout] --> src/ssr.rs:117:30 [INFO] [stdout] | [INFO] [stdout] 117 | match ssr.render(uri, &data, JsRenderer::Global).await { [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `JsRenderer` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 112 + use ssr::JsRenderer; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/ssr.rs:117:50 [INFO] [stdout] | [INFO] [stdout] 114 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_ssr_rs_113_0() { [INFO] [stdout] | ----------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 117 | match ssr.render(uri, &data, JsRenderer::Global).await { [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `db` [INFO] [stdout] --> src/ssr.rs:116:12 [INFO] [stdout] | [INFO] [stdout] 116 | let data = db::get_data(); [INFO] [stdout] | ^^ use of unresolved module or unlinked crate `db` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `db`, use `cargo add db` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `HttpResponse` [INFO] [stdout] --> src/ssr.rs:118:17 [INFO] [stdout] | [INFO] [stdout] 118 | Ok(html) => HttpResponse::Ok().body(html), [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `HttpResponse` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `HttpResponse` [INFO] [stdout] --> src/ssr.rs:121:9 [INFO] [stdout] | [INFO] [stdout] 121 | HttpResponse::InternalServerError().finish() [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `HttpResponse` [INFO] [stdout] [INFO] [stdout] error: aborting due to 8 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0423, E0425, E0433, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0423`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 32) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Ssr` [INFO] [stdout] --> src/lib.rs:35:3 [INFO] [stdout] | [INFO] [stdout] 35 | Ssr::new( [INFO] [stdout] | ^^^ use of undeclared type `Ssr` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 31 + use ssr::Ssr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `SsrConfig` in this scope [INFO] [stdout] --> src/lib.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 36 | SsrConfig { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 31 + use ssr::SsrConfig; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PathBuf` [INFO] [stdout] --> src/lib.rs:38:18 [INFO] [stdout] | [INFO] [stdout] 38 | js_worker: PathBuf::from("./node_modules/ssr-rs/worker.js"), [INFO] [stdout] | ^^^^^^^ use of undeclared type `PathBuf` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 31 + use std::path::PathBuf; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `JsWorkerLog` [INFO] [stdout] --> src/lib.rs:39:22 [INFO] [stdout] | [INFO] [stdout] 39 | js_worker_log: JsWorkerLog::Verbose, [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `JsWorkerLog` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 31 + use ssr::JsWorkerLog; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PathBuf` [INFO] [stdout] --> src/lib.rs:40:32 [INFO] [stdout] | [INFO] [stdout] 40 | global_js_renderer: Some(PathBuf::from("./js/ssr.js")), [INFO] [stdout] | ^^^^^^^ use of undeclared type `PathBuf` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 31 + use std::path::PathBuf; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0422, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0422`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/lib.rs - (line 32) [INFO] [stdout] src/lib.rs - (line 71) [INFO] [stdout] src/ssr.rs - ssr::Ssr::new (line 76) [INFO] [stdout] src/ssr.rs - ssr::Ssr::render (line 113) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 4 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.34s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "be73a29dac4c69eac022893665c253a0a8dcd4def7a37d16645059b0be178ebe", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "be73a29dac4c69eac022893665c253a0a8dcd4def7a37d16645059b0be178ebe", kill_on_drop: false }` [INFO] [stdout] be73a29dac4c69eac022893665c253a0a8dcd4def7a37d16645059b0be178ebe