[INFO] fetching crate sunweb 0.2.1... [INFO] testing sunweb-0.2.1 against try#c2e32f1c9652b13ed99608599c1e855462f421f3 for pr-146098-8 [INFO] extracting crate sunweb 0.2.1 into /workspace/builds/worker-1-tc2/source [INFO] started tweaking crates.io crate sunweb 0.2.1 [INFO] finished tweaking crates.io crate sunweb 0.2.1 [INFO] tweaked toml for crates.io crate sunweb 0.2.1 written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate sunweb 0.2.1 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] crate crates.io crate sunweb 0.2.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" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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] 10286717eaa9bbd12c60a4ebe4be9ded569accf3e263afd34c7fa7c9d03a2348 [INFO] running `Command { std: "docker" "start" "-a" "10286717eaa9bbd12c60a4ebe4be9ded569accf3e263afd34c7fa7c9d03a2348", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "10286717eaa9bbd12c60a4ebe4be9ded569accf3e263afd34c7fa7c9d03a2348", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "10286717eaa9bbd12c60a4ebe4be9ded569accf3e263afd34c7fa7c9d03a2348", kill_on_drop: false }` [INFO] [stdout] 10286717eaa9bbd12c60a4ebe4be9ded569accf3e263afd34c7fa7c9d03a2348 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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] 2509149c03b4ebaca84c230746054d2ddfa2141e09f33b68da64a53a2a21a95c [INFO] running `Command { std: "docker" "start" "-a" "2509149c03b4ebaca84c230746054d2ddfa2141e09f33b68da64a53a2a21a95c", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.176 [INFO] [stderr] Compiling find-msvc-tools v0.1.2 [INFO] [stderr] Compiling cfg-if v1.0.3 [INFO] [stderr] Compiling fs_extra v1.3.0 [INFO] [stderr] Compiling dunce v1.0.5 [INFO] [stderr] Compiling aws-lc-rs v1.14.1 [INFO] [stderr] Compiling serde_core v1.0.228 [INFO] [stderr] Compiling rustls v0.23.32 [INFO] [stderr] Compiling rustls-pki-types v1.12.0 [INFO] [stderr] Compiling chrono v0.4.42 [INFO] [stderr] Compiling libloading v0.8.8 [INFO] [stderr] Compiling rustls-native-certs v0.8.1 [INFO] [stderr] Compiling jobserver v0.1.34 [INFO] [stderr] Compiling cc v1.2.39 [INFO] [stderr] Compiling cmake v0.1.54 [INFO] [stderr] Compiling serde_json v1.0.145 [INFO] [stderr] Compiling aws-lc-sys v0.32.2 [INFO] [stderr] Compiling rustls-webpki v0.103.7 [INFO] [stderr] Compiling sunweb v0.2.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: methods `set_cookie`, `expire_cookie`, and `set_last_modified` are never used [INFO] [stdout] --> src/webserver/http_packet/header/mod.rs:91:19 [INFO] [stdout] | [INFO] [stdout] 26 | impl HTTPHeader { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 91 | pub(crate) fn set_cookie(&mut self, cookie: Cookie) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 109 | pub(crate) fn expire_cookie(&mut self, mut cookie: Cookie) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 253 | pub(crate) fn set_last_modified(&mut self, datetime: DateTime) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `CacheControl` is never used [INFO] [stdout] --> src/webserver/http_packet/header/headers/cache_control.rs:3:10 [INFO] [stdout] | [INFO] [stdout] 3 | pub enum CacheControl { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `as_str` is never used [INFO] [stdout] --> src/webserver/http_packet/header/headers/cache_control.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 24 | impl CacheControl { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] 25 | pub fn as_str(&self) -> String { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `ContentEncoding` is never used [INFO] [stdout] --> src/webserver/http_packet/header/headers/content_encoding.rs:3:10 [INFO] [stdout] | [INFO] [stdout] 3 | pub enum ContentEncoding { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `as_str` is never used [INFO] [stdout] --> src/webserver/http_packet/header/headers/content_encoding.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 16 | impl ContentEncoding { [INFO] [stdout] | -------------------- method in this implementation [INFO] [stdout] 17 | pub fn as_str(&self) -> String { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `CspDirective` is never used [INFO] [stdout] --> src/webserver/http_packet/header/headers/content_security_policy.rs:3:10 [INFO] [stdout] | [INFO] [stdout] 3 | pub enum CspDirective { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `as_str` is never used [INFO] [stdout] --> src/webserver/http_packet/header/headers/content_security_policy.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 26 | impl CspDirective { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] 27 | pub fn as_str(&self) -> String { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CspBuilder` is never constructed [INFO] [stdout] --> src/webserver/http_packet/header/headers/content_security_policy.rs:44:12 [INFO] [stdout] | [INFO] [stdout] 44 | pub struct CspBuilder { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `directive`, and `build` are never used [INFO] [stdout] --> src/webserver/http_packet/header/headers/content_security_policy.rs:49:12 [INFO] [stdout] | [INFO] [stdout] 48 | impl CspBuilder { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 49 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 55 | pub fn directive(mut self, directive: CspDirective) -> Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 60 | pub fn build(&self) -> String { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `ReferrerPolicy` is never used [INFO] [stdout] --> src/webserver/http_packet/header/headers/referer_policy.rs:3:10 [INFO] [stdout] | [INFO] [stdout] 3 | pub enum ReferrerPolicy { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `as_str` is never used [INFO] [stdout] --> src/webserver/http_packet/header/headers/referer_policy.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 22 | impl ReferrerPolicy { [INFO] [stdout] | ------------------- method in this implementation [INFO] [stdout] 23 | pub fn as_str(&self) -> &str { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `TransferEncoding` is never used [INFO] [stdout] --> src/webserver/http_packet/header/headers/transfer_encoding.rs:3:10 [INFO] [stdout] | [INFO] [stdout] 3 | pub enum TransferEncoding { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `as_str` is never used [INFO] [stdout] --> src/webserver/http_packet/header/headers/transfer_encoding.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 16 | impl TransferEncoding { [INFO] [stdout] | --------------------- method in this implementation [INFO] [stdout] 17 | pub fn as_str(&self) -> String { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `BothHTTPResponse` and `Both` are never constructed [INFO] [stdout] --> src/webserver/middleware/mod.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 27 | pub enum MiddlewareFn { [INFO] [stdout] | ------------ variants in this enum [INFO] [stdout] ... [INFO] [stdout] 36 | BothHTTPResponse(fn(&mut HTTPRequest, HTTPResponse) -> HTTPResponse), [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 39 | Both( [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `new_both` and `new_response_both` are never used [INFO] [stdout] --> src/webserver/middleware/mod.rs:195:12 [INFO] [stdout] | [INFO] [stdout] 59 | impl Middleware { [INFO] [stdout] | --------------- associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 195 | pub fn new_both( [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 245 | pub fn new_response_both( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 32.65s [INFO] running `Command { std: "docker" "inspect" "2509149c03b4ebaca84c230746054d2ddfa2141e09f33b68da64a53a2a21a95c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2509149c03b4ebaca84c230746054d2ddfa2141e09f33b68da64a53a2a21a95c", kill_on_drop: false }` [INFO] [stdout] 2509149c03b4ebaca84c230746054d2ddfa2141e09f33b68da64a53a2a21a95c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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] cae0484c8608d69facc9c95ffc87ade9299528621885b3a2d40982a479524f6d [INFO] running `Command { std: "docker" "start" "-a" "cae0484c8608d69facc9c95ffc87ade9299528621885b3a2d40982a479524f6d", kill_on_drop: false }` [INFO] [stderr] Compiling libloading v0.8.8 [INFO] [stderr] Compiling libc v0.2.176 [INFO] [stderr] Compiling rustix v1.1.2 [INFO] [stderr] Compiling aws-lc-sys v0.32.2 [INFO] [stderr] Compiling getrandom v0.3.3 [INFO] [stderr] Compiling tempfile v3.23.0 [INFO] [stderr] Compiling aws-lc-rs v1.14.1 [INFO] [stderr] Compiling rustls v0.23.32 [INFO] [stderr] Compiling rustls-webpki v0.103.7 [INFO] [stderr] Compiling sunweb v0.2.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: methods `set_cookie`, `expire_cookie`, and `set_last_modified` are never used [INFO] [stdout] --> src/webserver/http_packet/header/mod.rs:91:19 [INFO] [stdout] | [INFO] [stdout] 26 | impl HTTPHeader { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 91 | pub(crate) fn set_cookie(&mut self, cookie: Cookie) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 109 | pub(crate) fn expire_cookie(&mut self, mut cookie: Cookie) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 253 | pub(crate) fn set_last_modified(&mut self, datetime: DateTime) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `CacheControl` is never used [INFO] [stdout] --> src/webserver/http_packet/header/headers/cache_control.rs:3:10 [INFO] [stdout] | [INFO] [stdout] 3 | pub enum CacheControl { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `as_str` is never used [INFO] [stdout] --> src/webserver/http_packet/header/headers/cache_control.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 24 | impl CacheControl { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] 25 | pub fn as_str(&self) -> String { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `ContentEncoding` is never used [INFO] [stdout] --> src/webserver/http_packet/header/headers/content_encoding.rs:3:10 [INFO] [stdout] | [INFO] [stdout] 3 | pub enum ContentEncoding { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `as_str` is never used [INFO] [stdout] --> src/webserver/http_packet/header/headers/content_encoding.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 16 | impl ContentEncoding { [INFO] [stdout] | -------------------- method in this implementation [INFO] [stdout] 17 | pub fn as_str(&self) -> String { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `CspDirective` is never used [INFO] [stdout] --> src/webserver/http_packet/header/headers/content_security_policy.rs:3:10 [INFO] [stdout] | [INFO] [stdout] 3 | pub enum CspDirective { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `as_str` is never used [INFO] [stdout] --> src/webserver/http_packet/header/headers/content_security_policy.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 26 | impl CspDirective { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] 27 | pub fn as_str(&self) -> String { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CspBuilder` is never constructed [INFO] [stdout] --> src/webserver/http_packet/header/headers/content_security_policy.rs:44:12 [INFO] [stdout] | [INFO] [stdout] 44 | pub struct CspBuilder { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `directive`, and `build` are never used [INFO] [stdout] --> src/webserver/http_packet/header/headers/content_security_policy.rs:49:12 [INFO] [stdout] | [INFO] [stdout] 48 | impl CspBuilder { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 49 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 55 | pub fn directive(mut self, directive: CspDirective) -> Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 60 | pub fn build(&self) -> String { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `ReferrerPolicy` is never used [INFO] [stdout] --> src/webserver/http_packet/header/headers/referer_policy.rs:3:10 [INFO] [stdout] | [INFO] [stdout] 3 | pub enum ReferrerPolicy { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `as_str` is never used [INFO] [stdout] --> src/webserver/http_packet/header/headers/referer_policy.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 22 | impl ReferrerPolicy { [INFO] [stdout] | ------------------- method in this implementation [INFO] [stdout] 23 | pub fn as_str(&self) -> &str { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `TransferEncoding` is never used [INFO] [stdout] --> src/webserver/http_packet/header/headers/transfer_encoding.rs:3:10 [INFO] [stdout] | [INFO] [stdout] 3 | pub enum TransferEncoding { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `as_str` is never used [INFO] [stdout] --> src/webserver/http_packet/header/headers/transfer_encoding.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 16 | impl TransferEncoding { [INFO] [stdout] | --------------------- method in this implementation [INFO] [stdout] 17 | pub fn as_str(&self) -> String { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `BothHTTPResponse` and `Both` are never constructed [INFO] [stdout] --> src/webserver/middleware/mod.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 27 | pub enum MiddlewareFn { [INFO] [stdout] | ------------ variants in this enum [INFO] [stdout] ... [INFO] [stdout] 36 | BothHTTPResponse(fn(&mut HTTPRequest, HTTPResponse) -> HTTPResponse), [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 39 | Both( [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `new_both` and `new_response_both` are never used [INFO] [stdout] --> src/webserver/middleware/mod.rs:195:12 [INFO] [stdout] | [INFO] [stdout] 59 | impl Middleware { [INFO] [stdout] | --------------- associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 195 | pub fn new_both( [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 245 | pub fn new_response_both( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `set_cookie`, `expire_cookie`, and `set_last_modified` are never used [INFO] [stdout] --> src/webserver/http_packet/header/mod.rs:91:19 [INFO] [stdout] | [INFO] [stdout] 26 | impl HTTPHeader { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 91 | pub(crate) fn set_cookie(&mut self, cookie: Cookie) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 109 | pub(crate) fn expire_cookie(&mut self, mut cookie: Cookie) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 253 | pub(crate) fn set_last_modified(&mut self, datetime: DateTime) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `CacheControl` is never used [INFO] [stdout] --> src/webserver/http_packet/header/headers/cache_control.rs:3:10 [INFO] [stdout] | [INFO] [stdout] 3 | pub enum CacheControl { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `as_str` is never used [INFO] [stdout] --> src/webserver/http_packet/header/headers/cache_control.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 24 | impl CacheControl { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] 25 | pub fn as_str(&self) -> String { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `ContentEncoding` is never used [INFO] [stdout] --> src/webserver/http_packet/header/headers/content_encoding.rs:3:10 [INFO] [stdout] | [INFO] [stdout] 3 | pub enum ContentEncoding { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `as_str` is never used [INFO] [stdout] --> src/webserver/http_packet/header/headers/content_encoding.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 16 | impl ContentEncoding { [INFO] [stdout] | -------------------- method in this implementation [INFO] [stdout] 17 | pub fn as_str(&self) -> String { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `CspDirective` is never used [INFO] [stdout] --> src/webserver/http_packet/header/headers/content_security_policy.rs:3:10 [INFO] [stdout] | [INFO] [stdout] 3 | pub enum CspDirective { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `as_str` is never used [INFO] [stdout] --> src/webserver/http_packet/header/headers/content_security_policy.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 26 | impl CspDirective { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] 27 | pub fn as_str(&self) -> String { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CspBuilder` is never constructed [INFO] [stdout] --> src/webserver/http_packet/header/headers/content_security_policy.rs:44:12 [INFO] [stdout] | [INFO] [stdout] 44 | pub struct CspBuilder { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `directive`, and `build` are never used [INFO] [stdout] --> src/webserver/http_packet/header/headers/content_security_policy.rs:49:12 [INFO] [stdout] | [INFO] [stdout] 48 | impl CspBuilder { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 49 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 55 | pub fn directive(mut self, directive: CspDirective) -> Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 60 | pub fn build(&self) -> String { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `ReferrerPolicy` is never used [INFO] [stdout] --> src/webserver/http_packet/header/headers/referer_policy.rs:3:10 [INFO] [stdout] | [INFO] [stdout] 3 | pub enum ReferrerPolicy { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `as_str` is never used [INFO] [stdout] --> src/webserver/http_packet/header/headers/referer_policy.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 22 | impl ReferrerPolicy { [INFO] [stdout] | ------------------- method in this implementation [INFO] [stdout] 23 | pub fn as_str(&self) -> &str { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `TransferEncoding` is never used [INFO] [stdout] --> src/webserver/http_packet/header/headers/transfer_encoding.rs:3:10 [INFO] [stdout] | [INFO] [stdout] 3 | pub enum TransferEncoding { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `as_str` is never used [INFO] [stdout] --> src/webserver/http_packet/header/headers/transfer_encoding.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 16 | impl TransferEncoding { [INFO] [stdout] | --------------------- method in this implementation [INFO] [stdout] 17 | pub fn as_str(&self) -> String { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `BothHTTPResponse` and `Both` are never constructed [INFO] [stdout] --> src/webserver/middleware/mod.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 27 | pub enum MiddlewareFn { [INFO] [stdout] | ------------ variants in this enum [INFO] [stdout] ... [INFO] [stdout] 36 | BothHTTPResponse(fn(&mut HTTPRequest, HTTPResponse) -> HTTPResponse), [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 39 | Both( [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `new_both` and `new_response_both` are never used [INFO] [stdout] --> src/webserver/middleware/mod.rs:195:12 [INFO] [stdout] | [INFO] [stdout] 59 | impl Middleware { [INFO] [stdout] | --------------- associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 195 | pub fn new_both( [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 245 | pub fn new_response_both( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 32.82s [INFO] running `Command { std: "docker" "inspect" "cae0484c8608d69facc9c95ffc87ade9299528621885b3a2d40982a479524f6d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cae0484c8608d69facc9c95ffc87ade9299528621885b3a2d40982a479524f6d", kill_on_drop: false }` [INFO] [stdout] cae0484c8608d69facc9c95ffc87ade9299528621885b3a2d40982a479524f6d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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] ea9a2addef5dc14b96459e73a5e94d0a16a974f34ae341a088d05700e8562d64 [INFO] running `Command { std: "docker" "start" "-a" "ea9a2addef5dc14b96459e73a5e94d0a16a974f34ae341a088d05700e8562d64", kill_on_drop: false }` [INFO] [stderr] warning: methods `set_cookie`, `expire_cookie`, and `set_last_modified` are never used [INFO] [stderr] --> src/webserver/http_packet/header/mod.rs:91:19 [INFO] [stderr] | [INFO] [stderr] 26 | impl HTTPHeader { [INFO] [stderr] | --------------- methods in this implementation [INFO] [stderr] ... [INFO] [stderr] 91 | pub(crate) fn set_cookie(&mut self, cookie: Cookie) { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 109 | pub(crate) fn expire_cookie(&mut self, mut cookie: Cookie) { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 253 | pub(crate) fn set_last_modified(&mut self, datetime: DateTime) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: enum `CacheControl` is never used [INFO] [stderr] --> src/webserver/http_packet/header/headers/cache_control.rs:3:10 [INFO] [stderr] | [INFO] [stderr] 3 | pub enum CacheControl { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method `as_str` is never used [INFO] [stderr] --> src/webserver/http_packet/header/headers/cache_control.rs:25:12 [INFO] [stderr] | [INFO] [stderr] 24 | impl CacheControl { [INFO] [stderr] | ----------------- method in this implementation [INFO] [stderr] 25 | pub fn as_str(&self) -> String { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: enum `ContentEncoding` is never used [INFO] [stderr] --> src/webserver/http_packet/header/headers/content_encoding.rs:3:10 [INFO] [stderr] | [INFO] [stderr] 3 | pub enum ContentEncoding { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method `as_str` is never used [INFO] [stderr] --> src/webserver/http_packet/header/headers/content_encoding.rs:17:12 [INFO] [stderr] | [INFO] [stderr] 16 | impl ContentEncoding { [INFO] [stderr] | -------------------- method in this implementation [INFO] [stderr] 17 | pub fn as_str(&self) -> String { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: enum `CspDirective` is never used [INFO] [stderr] --> src/webserver/http_packet/header/headers/content_security_policy.rs:3:10 [INFO] [stderr] | [INFO] [stderr] 3 | pub enum CspDirective { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method `as_str` is never used [INFO] [stderr] --> src/webserver/http_packet/header/headers/content_security_policy.rs:27:12 [INFO] [stderr] | [INFO] [stderr] 26 | impl CspDirective { [INFO] [stderr] | ----------------- method in this implementation [INFO] [stderr] 27 | pub fn as_str(&self) -> String { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `CspBuilder` is never constructed [INFO] [stderr] --> src/webserver/http_packet/header/headers/content_security_policy.rs:44:12 [INFO] [stderr] | [INFO] [stderr] 44 | pub struct CspBuilder { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated items `new`, `directive`, and `build` are never used [INFO] [stderr] --> src/webserver/http_packet/header/headers/content_security_policy.rs:49:12 [INFO] [stderr] | [INFO] [stderr] 48 | impl CspBuilder { [INFO] [stderr] | --------------- associated items in this implementation [INFO] [stderr] 49 | pub fn new() -> Self { [INFO] [stderr] | ^^^ [INFO] [stderr] ... [INFO] [stderr] 55 | pub fn directive(mut self, directive: CspDirective) -> Self { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 60 | pub fn build(&self) -> String { [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: enum `ReferrerPolicy` is never used [INFO] [stderr] --> src/webserver/http_packet/header/headers/referer_policy.rs:3:10 [INFO] [stderr] | [INFO] [stderr] 3 | pub enum ReferrerPolicy { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method `as_str` is never used [INFO] [stderr] --> src/webserver/http_packet/header/headers/referer_policy.rs:23:12 [INFO] [stderr] | [INFO] [stderr] 22 | impl ReferrerPolicy { [INFO] [stderr] | ------------------- method in this implementation [INFO] [stderr] 23 | pub fn as_str(&self) -> &str { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: enum `TransferEncoding` is never used [INFO] [stderr] --> src/webserver/http_packet/header/headers/transfer_encoding.rs:3:10 [INFO] [stderr] | [INFO] [stderr] 3 | pub enum TransferEncoding { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method `as_str` is never used [INFO] [stderr] --> src/webserver/http_packet/header/headers/transfer_encoding.rs:17:12 [INFO] [stderr] | [INFO] [stderr] 16 | impl TransferEncoding { [INFO] [stderr] | --------------------- method in this implementation [INFO] [stderr] 17 | pub fn as_str(&self) -> String { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variants `BothHTTPResponse` and `Both` are never constructed [INFO] [stderr] --> src/webserver/middleware/mod.rs:36:5 [INFO] [stderr] | [INFO] [stderr] 27 | pub enum MiddlewareFn { [INFO] [stderr] | ------------ variants in this enum [INFO] [stderr] ... [INFO] [stderr] 36 | BothHTTPResponse(fn(&mut HTTPRequest, HTTPResponse) -> HTTPResponse), [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 39 | Both( [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated functions `new_both` and `new_response_both` are never used [INFO] [stderr] --> src/webserver/middleware/mod.rs:195:12 [INFO] [stderr] | [INFO] [stderr] 59 | impl Middleware { [INFO] [stderr] | --------------- associated functions in this implementation [INFO] [stderr] ... [INFO] [stderr] 195 | pub fn new_both( [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 245 | pub fn new_response_both( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `sunweb` (lib) generated 15 warnings [INFO] [stderr] warning: `sunweb` (lib test) generated 15 warnings (15 duplicates) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.13s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/sunweb-b6a5b5ab4e5008ab) [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 sunweb [INFO] [stdout] [INFO] [stdout] running 79 tests [INFO] [stdout] test src/webserver/http_packet/header/content_types/application.rs - webserver::http_packet::header::content_types::application::ApplicationSubType (line 10) ... FAILED [INFO] [stdout] test src/webserver/http_packet/header/content_types/font.rs - webserver::http_packet::header::content_types::font::FontSubType::from_str (line 43) ... FAILED [INFO] [stdout] test src/lib.rs - webserver (line 15) ... FAILED [INFO] [stdout] test src/webserver/files/mod.rs - webserver::files::get_file_content (line 112) ... FAILED [INFO] [stdout] test src/webserver/http_packet/header/content_types/font.rs - webserver::http_packet::header::content_types::font::FontSubType (line 11) ... FAILED [INFO] [stdout] test src/webserver/http_packet/header/headers/cookie.rs - webserver::http_packet::header::headers::cookie::Cookie::new (line 55) ... FAILED [INFO] [stdout] test src/webserver/http_packet/header/content_types/mod.rs - webserver::http_packet::header::content_types (line 14) ... FAILED [INFO] [stdout] test src/webserver/http_packet/header/content_types/video.rs - webserver::http_packet::header::content_types::video::VideoSubType (line 10) ... FAILED [INFO] [stdout] test src/webserver/http_packet/header/connection.rs - webserver::http_packet::header::connection::ConnectionType (line 12) ... FAILED [INFO] [stdout] test src/webserver/http_packet/header/headers/cookie.rs - webserver::http_packet::header::headers::cookie::Cookie::expires (line 136) ... FAILED [INFO] [stdout] test src/webserver/http_packet/header/headers/cookie.rs - webserver::http_packet::header::headers::cookie::Cookie::same_site (line 228) ... FAILED [INFO] [stdout] test src/webserver/http_packet/header/content_types/audio.rs - webserver::http_packet::header::content_types::audio::AudioSubType (line 11) ... FAILED [INFO] [stdout] test src/webserver/client_handling/mod.rs - webserver::client_handling (line 15) - compile ... FAILED [INFO] [stdout] test src/webserver/http_packet/header/content_types/image.rs - webserver::http_packet::header::content_types::image::ImageSubType (line 10) ... FAILED [INFO] [stdout] test src/webserver/http_packet/header/headers/cookie.rs - webserver::http_packet::header::headers::cookie::Cookie::as_string (line 85) ... FAILED [INFO] [stdout] test src/webserver/http_packet/header/headers/cookie.rs - webserver::http_packet::header::headers::cookie::Cookie::path (line 204) ... FAILED [INFO] [stdout] test src/webserver/http_packet/header/content_types/audio.rs - webserver::http_packet::header::content_types::audio::AudioSubType::from_str (line 49) ... FAILED [INFO] [stdout] test src/webserver/http_packet/header/content_types/text.rs - webserver::http_packet::header::content_types::text::TextSubType (line 10) ... FAILED [INFO] [stdout] test src/webserver/http_packet/header/content_types/multipart.rs - webserver::http_packet::header::content_types::multipart::MultipartSubType (line 10) ... FAILED [INFO] [stdout] test src/webserver/http_packet/header/headers/cookie.rs - webserver::http_packet::header::headers::cookie::Cookie::http_only (line 180) ... FAILED [INFO] [stdout] test src/webserver/files/mod.rs - webserver::files::get_static_file_content (line 43) ... FAILED [INFO] [stdout] test src/webserver/http_packet/header/mod.rs - webserver::http_packet::header::HTTPHeader::set_cors_headers (line 463) ... FAILED [INFO] [stdout] test src/webserver/http_packet/header/mod.rs - webserver::http_packet::header::HTTPHeader::set_cors_credentials (line 501) ... FAILED [INFO] [stdout] test src/webserver/http_packet/header/headers/cookie.rs - webserver::http_packet::header::headers::cookie::Cookie::secure (line 158) ... FAILED [INFO] [stdout] test src/webserver/http_packet/header/mod.rs - webserver::http_packet::header::HTTPHeader::apply_cors_permissive (line 519) ... FAILED [INFO] [stdout] test src/webserver/http_packet/header/mod.rs - webserver::http_packet::header::HTTPHeader::set_cors_max_age (line 482) ... FAILED [INFO] [stdout] test src/webserver/http_packet/header/mod.rs - webserver::http_packet::header::HTTPHeader::set_cors_origin (line 425) ... FAILED [INFO] [stdout] test src/webserver/http_packet/header/mod.rs - webserver::http_packet::header::HTTPHeader::set_cookie (line 83) ... FAILED [INFO] [stdout] test src/webserver/http_packet/header/mod.rs - webserver::http_packet::header::HTTPHeader::set_frame_options (line 322) ... FAILED [INFO] [stdout] test src/webserver/http_packet/header/mod.rs - webserver::http_packet::header::HTTPHeader::set_content_encoding (line 268) ... FAILED [INFO] [stdout] test src/webserver/http_packet/header/mod.rs - webserver::http_packet::header::HTTPHeader::expire_cookie (line 101) ... FAILED [INFO] [stdout] test src/webserver/http_packet/header/mod.rs - webserver::http_packet::header::HTTPHeader::set_last_modified (line 245) ... FAILED [INFO] [stdout] test src/webserver/http_packet/header/mod.rs - webserver::http_packet::header::HTTPHeader::set_cors_methods (line 444) ... FAILED [INFO] [stdout] test src/webserver/http_packet/header/mod.rs - webserver::http_packet::header::HTTPHeader::apply_security_headers (line 401) ... FAILED [INFO] [stdout] test src/webserver/http_packet/header/mod.rs - webserver::http_packet::header::HTTPHeader::set_location (line 155) ... FAILED [INFO] [stdout] test src/webserver/http_packet/header/mod.rs - webserver::http_packet::header::HTTPHeader::set_no_cache (line 188) ... FAILED [INFO] [stdout] test src/webserver/http_packet/header/mod.rs - webserver::http_packet::header::HTTPHeader::set_xss_protection (line 384) ... FAILED [INFO] [stdout] test src/webserver/http_packet/header/mod.rs - webserver::http_packet::header::HTTPHeader::set_date_now (line 120) ... FAILED [INFO] [stdout] test src/webserver/http_packet/header/mod.rs - webserver::http_packet::header::HTTPHeader::set_hsts (line 342) ... FAILED [INFO] [stdout] test src/webserver/http_packet/header/mod.rs - webserver::http_packet::header::HTTPHeader::set_csp (line 365) ... FAILED [INFO] [stdout] test src/webserver/logger/mod.rs - webserver::logger::Logger::log_request_end (line 133) ... FAILED [INFO] [stdout] test src/lib.rs - WEB_LOGGER (line 17) ... ok [INFO] [stdout] test src/webserver/middleware/mod.rs - webserver::middleware::Middleware::new_request (line 80) ... FAILED [INFO] [stdout] test src/webserver/http_packet/header/mod.rs - webserver::http_packet::header::HTTPHeader::set_max_age (line 207) ... FAILED [INFO] [stdout] test src/webserver/logger/mod.rs - webserver::logger::Logger::log_request_start (line 98) ... FAILED [INFO] [stdout] test src/webserver/mod.rs - webserver::Domain::new (line 77) ... FAILED [INFO] [stdout] test src/webserver/middleware/mod.rs - webserver::middleware::Middleware::new_response_both (line 229) ... FAILED [INFO] [stdout] test src/webserver/http_packet/header/mod.rs - webserver::http_packet::header::HTTPHeader::set_etag (line 226) ... FAILED [INFO] [stdout] test src/webserver/middleware/mod.rs - webserver::middleware::Middleware::new_response (line 126) ... FAILED [INFO] [stdout] test src/webserver/mod.rs - webserver::WebServer::new (line 121) ... FAILED [INFO] [stdout] test src/webserver/mod.rs - webserver::WebServer::add_subdomain_router (line 212) ... FAILED [INFO] [stdout] test src/webserver/http_packet/header/mod.rs - webserver::http_packet::header::HTTPHeader::set_nosniff (line 305) ... FAILED [INFO] [stdout] test src/webserver/logger/mod.rs - webserver::logger::Logger (line 38) ... FAILED [INFO] [stdout] test src/webserver/mod.rs - webserver::WebServer::add_custom_route (line 321) ... FAILED [INFO] [stdout] test src/webserver/middleware/mod.rs - webserver::middleware::Middleware::new_both (line 173) ... FAILED [INFO] [stdout] test src/webserver/http_packet/header/mod.rs - webserver::http_packet::header::HTTPHeader::set_server (line 138) ... FAILED [INFO] [stdout] test src/webserver/proxy/mod.rs - webserver::proxy::Proxy::parse_http_response_bytes (line 241) ... FAILED [INFO] [stdout] test src/webserver/proxy/mod.rs - webserver::proxy::Proxy::new (line 50) ... FAILED [INFO] [stdout] test src/webserver/middleware/mod.rs - webserver::middleware (line 8) ... FAILED [INFO] [stdout] test src/webserver/http_packet/header/mod.rs - webserver::http_packet::header::HTTPHeader::set_transfer_encoding (line 287) ... FAILED [INFO] [stdout] test src/webserver/responses/mod.rs - webserver::responses::HTTPResponse::redirect (line 85) ... FAILED [INFO] [stdout] test src/webserver/responses/mod.rs - webserver::responses::HTTPResponse::new (line 41) ... FAILED [INFO] [stdout] test src/webserver/requests/mod.rs - webserver::requests::HTTPRequest::get_header (line 142) ... FAILED [INFO] [stdout] test src/webserver/responses/status_code.rs - webserver::responses::status_code (line 16) ... FAILED [INFO] [stdout] test src/webserver/responses/mod.rs - webserver::responses::HTTPResponse::to_bytes (line 326) ... FAILED [INFO] [stdout] test src/webserver/http_packet/header/mod.rs - webserver::http_packet::header::HTTPHeader::set_cache_control (line 172) ... FAILED [INFO] [stdout] test src/webserver/route/http_method.rs - webserver::route::http_method::HTTPMethod::fmt (line 75) ... FAILED [INFO] [stdout] test src/webserver/requests/mod.rs - webserver::requests::HTTPRequest::parse (line 49) ... FAILED [INFO] [stdout] test src/webserver/responses/status_code.rs - webserver::responses::status_code::StatusCode::as_u16 (line 368) ... FAILED [INFO] [stdout] test src/webserver/responses/status_code.rs - webserver::responses::status_code::StatusCode::fmt (line 238) ... FAILED [INFO] [stdout] test src/webserver/proxy/mod.rs - webserver::proxy::Proxy::send_http_request (line 137) ... FAILED [INFO] [stdout] test src/webserver/server_config/mod.rs - webserver::server_config::ServerConfig::ip_as_string (line 145) ... FAILED [INFO] [stdout] test src/webserver/responses/status_code.rs - webserver::responses::status_code::StatusCode (line 85) ... FAILED [INFO] [stdout] test src/webserver/server_config/mod.rs - webserver::server_config::ServerConfig::set_base_domain (line 123) ... FAILED [INFO] [stdout] test src/webserver/route/http_method.rs - webserver::route::http_method::HTTPMethod::from_str (line 45) ... FAILED [INFO] [stdout] test src/webserver/server_config/mod.rs - webserver::server_config::ServerConfig::add_cert (line 80) ... FAILED [INFO] [stdout] test src/webserver/responses/status_code.rs - webserver::responses::status_code::StatusCode::equals (line 343) ... FAILED [INFO] [stdout] test src/webserver/server_config/mod.rs - webserver::server_config::ServerConfig::new (line 44) ... FAILED [INFO] [stdout] test src/webserver/server_config/mod.rs - webserver::server_config::ServerConfig (line 12) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/webserver/http_packet/header/content_types/application.rs - webserver::http_packet::header::content_types::application::ApplicationSubType (line 10) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `http_packet` [INFO] [stdout] --> src/webserver/http_packet/header/content_types/application.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use http_packet::header::content_types::application::ApplicationSubType; [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `http_packet` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `http_packet`, use `cargo add http_packet` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/webserver/http_packet/header/content_types/font.rs - webserver::http_packet::header::content_types::font::FontSubType::from_str (line 43) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `your_crate` [INFO] [stdout] --> src/webserver/http_packet/header/content_types/font.rs:45:5 [INFO] [stdout] | [INFO] [stdout] 45 | use your_crate::FontSubType; [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `your_crate` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `your_crate`, use `cargo add your_crate` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - webserver (line 15) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `webserver` [INFO] [stdout] --> src/lib.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | use webserver::route::HTTPMethod; [INFO] [stdout] | ^^^^^^^^^ use of unresolved module or unlinked crate `webserver` [INFO] [stdout] | [INFO] [stdout] help: to make use of source file src/webserver/mod.rs, use `mod webserver` in this file to declare the module [INFO] [stdout] | [INFO] [stdout] 15 + mod webserver; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `webserver` [INFO] [stdout] --> src/lib.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | use webserver::responses::StatusCode; [INFO] [stdout] | ^^^^^^^^^ use of unresolved module or unlinked crate `webserver` [INFO] [stdout] | [INFO] [stdout] help: to make use of source file src/webserver/mod.rs, use `mod webserver` in this file to declare the module [INFO] [stdout] | [INFO] [stdout] 15 + mod webserver; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `webserver` [INFO] [stdout] --> src/lib.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use webserver::{WebServer, ServerConfig, Domain}; [INFO] [stdout] | ^^^^^^^^^ help: a similar path exists: `sunweb::webserver` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `webserver` [INFO] [stdout] --> src/lib.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 27 | webserver::responses::HTTPResponse::new(200, "Hello API".to_string()) [INFO] [stdout] | ^^^^^^^^^ use of unresolved module or unlinked crate `webserver` [INFO] [stdout] | [INFO] [stdout] help: to make use of source file src/webserver/mod.rs, use `mod webserver` in this file to declare the module [INFO] [stdout] | [INFO] [stdout] 15 + mod webserver; [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 15 + use sunweb::webserver::responses::HTTPResponse; [INFO] [stdout] | [INFO] [stdout] help: if you import `HTTPResponse`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 27 - webserver::responses::HTTPResponse::new(200, "Hello API".to_string()) [INFO] [stdout] 27 + HTTPResponse::new(200, "Hello API".to_string()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/webserver/files/mod.rs - webserver::files::get_file_content (line 112) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: unresolved import [INFO] [stdout] --> src/webserver/files/mod.rs:115:12 [INFO] [stdout] | [INFO] [stdout] 115 | use crate::webserver::files::get_file_content; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | unresolved import [INFO] [stdout] | help: a similar path exists: `sunweb::webserver` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/webserver/http_packet/header/content_types/font.rs - webserver::http_packet::header::content_types::font::FontSubType (line 11) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `FontSubType` [INFO] [stdout] --> src/webserver/http_packet/header/content_types/font.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | let f = FontSubType::from_str("woff2").unwrap(); [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `FontSubType` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 11 + use sunweb::webserver::http_packet::header::content_types::font::FontSubType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `FontSubType` [INFO] [stdout] --> src/webserver/http_packet/header/content_types/font.rs:14:15 [INFO] [stdout] | [INFO] [stdout] 14 | assert_eq!(f, FontSubType::Woff2); [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `FontSubType` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 11 + use sunweb::webserver::http_packet::header::content_types::font::FontSubType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `FontSubType` [INFO] [stdout] --> src/webserver/http_packet/header/content_types/font.rs:16:15 [INFO] [stdout] | [INFO] [stdout] 16 | let unknown = FontSubType::from_str("bitmap").unwrap(); [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `FontSubType` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 11 + use sunweb::webserver::http_packet::header::content_types::font::FontSubType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `FontSubType` [INFO] [stdout] --> src/webserver/http_packet/header/content_types/font.rs:17:21 [INFO] [stdout] | [INFO] [stdout] 17 | assert_eq!(unknown, FontSubType::Other("bitmap".to_string())); [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `FontSubType` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 11 + use sunweb::webserver::http_packet::header::content_types::font::FontSubType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/webserver/http_packet/header/headers/cookie.rs - webserver::http_packet::header::headers::cookie::Cookie::new (line 55) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `webserver` [INFO] [stdout] --> src/webserver/http_packet/header/headers/cookie.rs:57:5 [INFO] [stdout] | [INFO] [stdout] 57 | use webserver::cookie::Cookie; [INFO] [stdout] | ^^^^^^^^^ use of unresolved module or unlinked crate `webserver` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `webserver`, use `cargo add webserver` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `webserver` [INFO] [stdout] --> src/webserver/http_packet/header/headers/cookie.rs:56:5 [INFO] [stdout] | [INFO] [stdout] 56 | use webserver::Domain; [INFO] [stdout] | ^^^^^^^^^ help: a similar path exists: `sunweb::webserver` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/webserver/http_packet/header/content_types/mod.rs - webserver::http_packet::header::content_types (line 14) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `http_packet` [INFO] [stdout] --> src/webserver/http_packet/header/content_types/mod.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use http_packet::header::content_types::{ContentType, text::TextSubType}; [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `http_packet` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `http_packet`, use `cargo add http_packet` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/webserver/http_packet/header/content_types/video.rs - webserver::http_packet::header::content_types::video::VideoSubType (line 10) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `http_packet` [INFO] [stdout] --> src/webserver/http_packet/header/content_types/video.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use http_packet::header::content_types::video::VideoSubType; [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `http_packet` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `http_packet`, use `cargo add http_packet` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/webserver/http_packet/header/connection.rs - webserver::http_packet::header::connection::ConnectionType (line 12) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `http_packet` [INFO] [stdout] --> src/webserver/http_packet/header/connection.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use http_packet::header::connection::ConnectionType; [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `http_packet` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `http_packet`, use `cargo add http_packet` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/webserver/http_packet/header/headers/cookie.rs - webserver::http_packet::header::headers::cookie::Cookie::expires (line 136) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `webserver` [INFO] [stdout] --> src/webserver/http_packet/header/headers/cookie.rs:138:5 [INFO] [stdout] | [INFO] [stdout] 138 | use webserver::cookie::Cookie; [INFO] [stdout] | ^^^^^^^^^ use of unresolved module or unlinked crate `webserver` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `webserver`, use `cargo add webserver` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `webserver` [INFO] [stdout] --> src/webserver/http_packet/header/headers/cookie.rs:137:5 [INFO] [stdout] | [INFO] [stdout] 137 | use webserver::Domain; [INFO] [stdout] | ^^^^^^^^^ help: a similar path exists: `sunweb::webserver` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/webserver/http_packet/header/headers/cookie.rs - webserver::http_packet::header::headers::cookie::Cookie::same_site (line 228) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `webserver` [INFO] [stdout] --> src/webserver/http_packet/header/headers/cookie.rs:230:5 [INFO] [stdout] | [INFO] [stdout] 230 | use webserver::cookie::{Cookie, SameSite}; [INFO] [stdout] | ^^^^^^^^^ use of unresolved module or unlinked crate `webserver` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `webserver`, use `cargo add webserver` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `webserver` [INFO] [stdout] --> src/webserver/http_packet/header/headers/cookie.rs:229:5 [INFO] [stdout] | [INFO] [stdout] 229 | use webserver::Domain; [INFO] [stdout] | ^^^^^^^^^ help: a similar path exists: `sunweb::webserver` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/webserver/http_packet/header/content_types/audio.rs - webserver::http_packet::header::content_types::audio::AudioSubType (line 11) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `AudioSubType` [INFO] [stdout] --> src/webserver/http_packet/header/content_types/audio.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | let a = AudioSubType::from_str("mp3").unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `AudioSubType` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 11 + use sunweb::webserver::http_packet::header::content_types::audio::AudioSubType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `AudioSubType` [INFO] [stdout] --> src/webserver/http_packet/header/content_types/audio.rs:14:15 [INFO] [stdout] | [INFO] [stdout] 14 | assert_eq!(a, AudioSubType::Mpeg); [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `AudioSubType` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 11 + use sunweb::webserver::http_packet::header::content_types::audio::AudioSubType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `AudioSubType` [INFO] [stdout] --> src/webserver/http_packet/header/content_types/audio.rs:16:15 [INFO] [stdout] | [INFO] [stdout] 16 | let unknown = AudioSubType::from_str("opus").unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `AudioSubType` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 11 + use sunweb::webserver::http_packet::header::content_types::audio::AudioSubType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `AudioSubType` [INFO] [stdout] --> src/webserver/http_packet/header/content_types/audio.rs:17:21 [INFO] [stdout] | [INFO] [stdout] 17 | assert_eq!(unknown, AudioSubType::Other("opus".to_string())); [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `AudioSubType` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 11 + use sunweb::webserver::http_packet::header::content_types::audio::AudioSubType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/webserver/client_handling/mod.rs - webserver::client_handling (line 15) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `my_crate` [INFO] [stdout] --> src/webserver/client_handling/mod.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | use my_crate::webserver::{Client, Domain, Route}; [INFO] [stdout] | ^^^^^^^^ use of unresolved module or unlinked crate `my_crate` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `my_crate`, use `cargo add my_crate` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `HashMap` [INFO] [stdout] --> src/webserver/client_handling/mod.rs:20:35 [INFO] [stdout] | [INFO] [stdout] 20 | let domains = Arc::new(Mutex::new(HashMap::new())); [INFO] [stdout] | ^^^^^^^ use of undeclared type `HashMap` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 15 + use std::collections::HashMap; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/webserver/http_packet/header/content_types/image.rs - webserver::http_packet::header::content_types::image::ImageSubType (line 10) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `http_packet` [INFO] [stdout] --> src/webserver/http_packet/header/content_types/image.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use http_packet::header::content_types::image::ImageSubType; [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `http_packet` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `http_packet`, use `cargo add http_packet` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/webserver/http_packet/header/headers/cookie.rs - webserver::http_packet::header::headers::cookie::Cookie::as_string (line 85) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `webserver` [INFO] [stdout] --> src/webserver/http_packet/header/headers/cookie.rs:87:5 [INFO] [stdout] | [INFO] [stdout] 87 | use webserver::cookie::{Cookie, SameSite}; [INFO] [stdout] | ^^^^^^^^^ use of unresolved module or unlinked crate `webserver` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `webserver`, use `cargo add webserver` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `webserver` [INFO] [stdout] --> src/webserver/http_packet/header/headers/cookie.rs:86:5 [INFO] [stdout] | [INFO] [stdout] 86 | use webserver::Domain; [INFO] [stdout] | ^^^^^^^^^ help: a similar path exists: `sunweb::webserver` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/webserver/http_packet/header/headers/cookie.rs - webserver::http_packet::header::headers::cookie::Cookie::path (line 204) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `webserver` [INFO] [stdout] --> src/webserver/http_packet/header/headers/cookie.rs:206:5 [INFO] [stdout] | [INFO] [stdout] 206 | use webserver::cookie::Cookie; [INFO] [stdout] | ^^^^^^^^^ use of unresolved module or unlinked crate `webserver` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `webserver`, use `cargo add webserver` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `webserver` [INFO] [stdout] --> src/webserver/http_packet/header/headers/cookie.rs:205:5 [INFO] [stdout] | [INFO] [stdout] 205 | use webserver::Domain; [INFO] [stdout] | ^^^^^^^^^ help: a similar path exists: `sunweb::webserver` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/webserver/http_packet/header/content_types/audio.rs - webserver::http_packet::header::content_types::audio::AudioSubType::from_str (line 49) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `your_crate` [INFO] [stdout] --> src/webserver/http_packet/header/content_types/audio.rs:51:5 [INFO] [stdout] | [INFO] [stdout] 51 | use your_crate::AudioSubType; [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `your_crate` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `your_crate`, use `cargo add your_crate` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/webserver/http_packet/header/content_types/text.rs - webserver::http_packet::header::content_types::text::TextSubType (line 10) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `http_packet` [INFO] [stdout] --> src/webserver/http_packet/header/content_types/text.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use http_packet::header::content_types::text::TextSubType; [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `http_packet` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `http_packet`, use `cargo add http_packet` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/webserver/http_packet/header/content_types/multipart.rs - webserver::http_packet::header::content_types::multipart::MultipartSubType (line 10) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `http_packet` [INFO] [stdout] --> src/webserver/http_packet/header/content_types/multipart.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use http_packet::header::content_types::multipart::MultipartSubType; [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `http_packet` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `http_packet`, use `cargo add http_packet` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/webserver/http_packet/header/headers/cookie.rs - webserver::http_packet::header::headers::cookie::Cookie::http_only (line 180) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `webserver` [INFO] [stdout] --> src/webserver/http_packet/header/headers/cookie.rs:182:5 [INFO] [stdout] | [INFO] [stdout] 182 | use webserver::cookie::Cookie; [INFO] [stdout] | ^^^^^^^^^ use of unresolved module or unlinked crate `webserver` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `webserver`, use `cargo add webserver` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `webserver` [INFO] [stdout] --> src/webserver/http_packet/header/headers/cookie.rs:181:5 [INFO] [stdout] | [INFO] [stdout] 181 | use webserver::Domain; [INFO] [stdout] | ^^^^^^^^^ help: a similar path exists: `sunweb::webserver` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/webserver/files/mod.rs - webserver::files::get_static_file_content (line 43) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: unresolved import [INFO] [stdout] --> src/webserver/files/mod.rs:47:12 [INFO] [stdout] | [INFO] [stdout] 47 | use crate::webserver::files::get_static_file_content; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | unresolved import [INFO] [stdout] | help: a similar path exists: `sunweb::webserver` [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/webserver/files/mod.rs:57:9 [INFO] [stdout] | [INFO] [stdout] 57 | assert!(content.contains("color: red")); [INFO] [stdout] | ^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0282, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0282`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/webserver/http_packet/header/mod.rs - webserver::http_packet::header::HTTPHeader::set_cors_headers (line 463) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `your_crate` [INFO] [stdout] --> src/webserver/http_packet/header/mod.rs:464:5 [INFO] [stdout] | [INFO] [stdout] 464 | use your_crate::HTTPHeader; [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `your_crate` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `your_crate`, use `cargo add your_crate` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/webserver/http_packet/header/mod.rs - webserver::http_packet::header::HTTPHeader::set_cors_credentials (line 501) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `your_crate` [INFO] [stdout] --> src/webserver/http_packet/header/mod.rs:502:5 [INFO] [stdout] | [INFO] [stdout] 502 | use your_crate::HTTPHeader; [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `your_crate` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `your_crate`, use `cargo add your_crate` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/webserver/http_packet/header/headers/cookie.rs - webserver::http_packet::header::headers::cookie::Cookie::secure (line 158) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `webserver` [INFO] [stdout] --> src/webserver/http_packet/header/headers/cookie.rs:160:5 [INFO] [stdout] | [INFO] [stdout] 160 | use webserver::cookie::Cookie; [INFO] [stdout] | ^^^^^^^^^ use of unresolved module or unlinked crate `webserver` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `webserver`, use `cargo add webserver` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `webserver` [INFO] [stdout] --> src/webserver/http_packet/header/headers/cookie.rs:159:5 [INFO] [stdout] | [INFO] [stdout] 159 | use webserver::Domain; [INFO] [stdout] | ^^^^^^^^^ help: a similar path exists: `sunweb::webserver` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/webserver/http_packet/header/mod.rs - webserver::http_packet::header::HTTPHeader::apply_cors_permissive (line 519) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `your_crate` [INFO] [stdout] --> src/webserver/http_packet/header/mod.rs:520:5 [INFO] [stdout] | [INFO] [stdout] 520 | use your_crate::HTTPHeader; [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `your_crate` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `your_crate`, use `cargo add your_crate` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/webserver/http_packet/header/mod.rs - webserver::http_packet::header::HTTPHeader::set_cors_max_age (line 482) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `your_crate` [INFO] [stdout] --> src/webserver/http_packet/header/mod.rs:483:5 [INFO] [stdout] | [INFO] [stdout] 483 | use your_crate::HTTPHeader; [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `your_crate` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `your_crate`, use `cargo add your_crate` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/webserver/http_packet/header/mod.rs - webserver::http_packet::header::HTTPHeader::set_cors_origin (line 425) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `your_crate` [INFO] [stdout] --> src/webserver/http_packet/header/mod.rs:426:5 [INFO] [stdout] | [INFO] [stdout] 426 | use your_crate::HTTPHeader; [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `your_crate` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `your_crate`, use `cargo add your_crate` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/webserver/http_packet/header/mod.rs - webserver::http_packet::header::HTTPHeader::set_cookie (line 83) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `your_crate` [INFO] [stdout] --> src/webserver/http_packet/header/mod.rs:84:5 [INFO] [stdout] | [INFO] [stdout] 84 | use your_crate::{HTTPHeader, Cookie}; [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `your_crate` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `your_crate`, use `cargo add your_crate` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/webserver/http_packet/header/mod.rs - webserver::http_packet::header::HTTPHeader::set_frame_options (line 322) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `your_crate` [INFO] [stdout] --> src/webserver/http_packet/header/mod.rs:323:5 [INFO] [stdout] | [INFO] [stdout] 323 | use your_crate::{HTTPHeader, FrameOption}; [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `your_crate` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `your_crate`, use `cargo add your_crate` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/webserver/http_packet/header/mod.rs - webserver::http_packet::header::HTTPHeader::set_content_encoding (line 268) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `your_crate` [INFO] [stdout] --> src/webserver/http_packet/header/mod.rs:269:5 [INFO] [stdout] | [INFO] [stdout] 269 | use your_crate::HTTPHeader; [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `your_crate` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `your_crate`, use `cargo add your_crate` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/webserver/http_packet/header/mod.rs - webserver::http_packet::header::HTTPHeader::expire_cookie (line 101) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `your_crate` [INFO] [stdout] --> src/webserver/http_packet/header/mod.rs:102:5 [INFO] [stdout] | [INFO] [stdout] 102 | use your_crate::{HTTPHeader, Cookie}; [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `your_crate` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `your_crate`, use `cargo add your_crate` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/webserver/http_packet/header/mod.rs - webserver::http_packet::header::HTTPHeader::set_last_modified (line 245) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `your_crate` [INFO] [stdout] --> src/webserver/http_packet/header/mod.rs:246:5 [INFO] [stdout] | [INFO] [stdout] 246 | use your_crate::HTTPHeader; [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `your_crate` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `your_crate`, use `cargo add your_crate` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/webserver/http_packet/header/mod.rs - webserver::http_packet::header::HTTPHeader::set_cors_methods (line 444) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `your_crate` [INFO] [stdout] --> src/webserver/http_packet/header/mod.rs:445:5 [INFO] [stdout] | [INFO] [stdout] 445 | use your_crate::HTTPHeader; [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `your_crate` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `your_crate`, use `cargo add your_crate` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/webserver/http_packet/header/mod.rs - webserver::http_packet::header::HTTPHeader::apply_security_headers (line 401) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `your_crate` [INFO] [stdout] --> src/webserver/http_packet/header/mod.rs:402:5 [INFO] [stdout] | [INFO] [stdout] 402 | use your_crate::HTTPHeader; [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `your_crate` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `your_crate`, use `cargo add your_crate` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/webserver/http_packet/header/mod.rs - webserver::http_packet::header::HTTPHeader::set_location (line 155) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `your_crate` [INFO] [stdout] --> src/webserver/http_packet/header/mod.rs:156:5 [INFO] [stdout] | [INFO] [stdout] 156 | use your_crate::HTTPHeader; [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `your_crate` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `your_crate`, use `cargo add your_crate` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/webserver/http_packet/header/mod.rs - webserver::http_packet::header::HTTPHeader::set_no_cache (line 188) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `your_crate` [INFO] [stdout] --> src/webserver/http_packet/header/mod.rs:189:5 [INFO] [stdout] | [INFO] [stdout] 189 | use your_crate::HTTPHeader; [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `your_crate` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `your_crate`, use `cargo add your_crate` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/webserver/http_packet/header/mod.rs - webserver::http_packet::header::HTTPHeader::set_xss_protection (line 384) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `your_crate` [INFO] [stdout] --> src/webserver/http_packet/header/mod.rs:385:5 [INFO] [stdout] | [INFO] [stdout] 385 | use your_crate::HTTPHeader; [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `your_crate` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `your_crate`, use `cargo add your_crate` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/webserver/http_packet/header/mod.rs - webserver::http_packet::header::HTTPHeader::set_date_now (line 120) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `your_crate` [INFO] [stdout] --> src/webserver/http_packet/header/mod.rs:121:5 [INFO] [stdout] | [INFO] [stdout] 121 | use your_crate::HTTPHeader; [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `your_crate` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `your_crate`, use `cargo add your_crate` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/webserver/http_packet/header/mod.rs - webserver::http_packet::header::HTTPHeader::set_hsts (line 342) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `your_crate` [INFO] [stdout] --> src/webserver/http_packet/header/mod.rs:343:5 [INFO] [stdout] | [INFO] [stdout] 343 | use your_crate::HTTPHeader; [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `your_crate` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `your_crate`, use `cargo add your_crate` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/webserver/http_packet/header/mod.rs - webserver::http_packet::header::HTTPHeader::set_csp (line 365) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `your_crate` [INFO] [stdout] --> src/webserver/http_packet/header/mod.rs:366:5 [INFO] [stdout] | [INFO] [stdout] 366 | use your_crate::HTTPHeader; [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `your_crate` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `your_crate`, use `cargo add your_crate` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/webserver/logger/mod.rs - webserver::logger::Logger::log_request_end (line 133) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: unresolved import [INFO] [stdout] --> src/webserver/logger/mod.rs:134:12 [INFO] [stdout] | [INFO] [stdout] 134 | use crate::webserver::logger::Logger; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | unresolved import [INFO] [stdout] | help: a similar path exists: `sunweb::webserver` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: unresolved import [INFO] [stdout] --> src/webserver/logger/mod.rs:135:12 [INFO] [stdout] | [INFO] [stdout] 135 | use crate::webserver::responses::HTTPResponse; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | unresolved import [INFO] [stdout] | help: a similar path exists: `sunweb::webserver` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/webserver/middleware/mod.rs - webserver::middleware::Middleware::new_request (line 80) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `sunweb::webserver::HTTPRequests` [INFO] [stdout] --> src/webserver/middleware/mod.rs:83:24 [INFO] [stdout] | [INFO] [stdout] 83 | use sunweb::webserver::HTTPRequests::HTTPRequest; [INFO] [stdout] | ^^^^^^^^^^^^ could not find `HTTPRequests` in `webserver` [INFO] [stdout] [INFO] [stdout] error[E0603]: struct `Middleware` is private [INFO] [stdout] --> src/webserver/middleware/mod.rs:82:33 [INFO] [stdout] | [INFO] [stdout] 82 | use sunweb::webserver::{Domain, Middleware}; [INFO] [stdout] | ^^^^^^^^^^ private struct [INFO] [stdout] | [INFO] [stdout] note: the struct `Middleware` is defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/webserver/mod.rs:42:5 [INFO] [stdout] | [INFO] [stdout] 42 | use crate::webserver::middleware::Middleware; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: import `Middleware` directly [INFO] [stdout] | [INFO] [stdout] 82 | use sunweb::webserver::{Domain, sunweb::webserver::middleware::Middleware}; [INFO] [stdout] | +++++++++++++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0603. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/webserver/http_packet/header/mod.rs - webserver::http_packet::header::HTTPHeader::set_max_age (line 207) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `your_crate` [INFO] [stdout] --> src/webserver/http_packet/header/mod.rs:208:5 [INFO] [stdout] | [INFO] [stdout] 208 | use your_crate::HTTPHeader; [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `your_crate` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `your_crate`, use `cargo add your_crate` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/webserver/logger/mod.rs - webserver::logger::Logger::log_request_start (line 98) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: unresolved import [INFO] [stdout] --> src/webserver/logger/mod.rs:99:12 [INFO] [stdout] | [INFO] [stdout] 99 | use crate::webserver::logger::Logger; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | unresolved import [INFO] [stdout] | help: a similar path exists: `sunweb::webserver` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: unresolved import [INFO] [stdout] --> src/webserver/logger/mod.rs:100:12 [INFO] [stdout] | [INFO] [stdout] 100 | use crate::webserver::requests::HTTPRequest; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | unresolved import [INFO] [stdout] | help: a similar path exists: `sunweb::webserver` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/webserver/mod.rs - webserver::Domain::new (line 77) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `webserver` [INFO] [stdout] --> src/webserver/mod.rs:78:5 [INFO] [stdout] | [INFO] [stdout] 78 | use webserver::Domain; [INFO] [stdout] | ^^^^^^^^^ help: a similar path exists: `sunweb::webserver` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/webserver/middleware/mod.rs - webserver::middleware::Middleware::new_response_both (line 229) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `sunweb::webserver::HTTPRequests` [INFO] [stdout] --> src/webserver/middleware/mod.rs:232:24 [INFO] [stdout] | [INFO] [stdout] 232 | use sunweb::webserver::HTTPRequests::HTTPRequest; [INFO] [stdout] | ^^^^^^^^^^^^ could not find `HTTPRequests` in `webserver` [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `sunweb::webserver::HTTPResponses` [INFO] [stdout] --> src/webserver/middleware/mod.rs:233:24 [INFO] [stdout] | [INFO] [stdout] 233 | use sunweb::webserver::HTTPResponses::HTTPResponse; [INFO] [stdout] | ^^^^^^^^^^^^^ could not find `HTTPResponses` in `webserver` [INFO] [stdout] [INFO] [stdout] error[E0603]: struct `Middleware` is private [INFO] [stdout] --> src/webserver/middleware/mod.rs:231:33 [INFO] [stdout] | [INFO] [stdout] 231 | use sunweb::webserver::{Domain, Middleware}; [INFO] [stdout] | ^^^^^^^^^^ private struct [INFO] [stdout] | [INFO] [stdout] note: the struct `Middleware` is defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/webserver/mod.rs:42:5 [INFO] [stdout] | [INFO] [stdout] 42 | use crate::webserver::middleware::Middleware; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: import `Middleware` directly [INFO] [stdout] | [INFO] [stdout] 231 | use sunweb::webserver::{Domain, sunweb::webserver::middleware::Middleware}; [INFO] [stdout] | +++++++++++++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0603. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/webserver/http_packet/header/mod.rs - webserver::http_packet::header::HTTPHeader::set_etag (line 226) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `your_crate` [INFO] [stdout] --> src/webserver/http_packet/header/mod.rs:227:5 [INFO] [stdout] | [INFO] [stdout] 227 | use your_crate::HTTPHeader; [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `your_crate` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `your_crate`, use `cargo add your_crate` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/webserver/middleware/mod.rs - webserver::middleware::Middleware::new_response (line 126) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `sunweb::webserver::HTTPResponses` [INFO] [stdout] --> src/webserver/middleware/mod.rs:129:24 [INFO] [stdout] | [INFO] [stdout] 129 | use sunweb::webserver::HTTPResponses::HTTPResponse; [INFO] [stdout] | ^^^^^^^^^^^^^ could not find `HTTPResponses` in `webserver` [INFO] [stdout] [INFO] [stdout] error[E0603]: struct `Middleware` is private [INFO] [stdout] --> src/webserver/middleware/mod.rs:128:33 [INFO] [stdout] | [INFO] [stdout] 128 | use sunweb::webserver::{Domain, Middleware}; [INFO] [stdout] | ^^^^^^^^^^ private struct [INFO] [stdout] | [INFO] [stdout] note: the struct `Middleware` is defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/webserver/mod.rs:42:5 [INFO] [stdout] | [INFO] [stdout] 42 | use crate::webserver::middleware::Middleware; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: import `Middleware` directly [INFO] [stdout] | [INFO] [stdout] 128 | use sunweb::webserver::{Domain, sunweb::webserver::middleware::Middleware}; [INFO] [stdout] | +++++++++++++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0603. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/webserver/mod.rs - webserver::WebServer::new (line 121) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `webserver` [INFO] [stdout] --> src/webserver/mod.rs:122:5 [INFO] [stdout] | [INFO] [stdout] 122 | use webserver::{WebServer, ServerConfig}; [INFO] [stdout] | ^^^^^^^^^ help: a similar path exists: `sunweb::webserver` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/webserver/mod.rs - webserver::WebServer::add_subdomain_router (line 212) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `webserver` [INFO] [stdout] --> src/webserver/mod.rs:213:5 [INFO] [stdout] | [INFO] [stdout] 213 | use webserver::{WebServer, ServerConfig, Domain}; [INFO] [stdout] | ^^^^^^^^^ help: a similar path exists: `sunweb::webserver` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/webserver/http_packet/header/mod.rs - webserver::http_packet::header::HTTPHeader::set_nosniff (line 305) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `your_crate` [INFO] [stdout] --> src/webserver/http_packet/header/mod.rs:306:5 [INFO] [stdout] | [INFO] [stdout] 306 | use your_crate::HTTPHeader; [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `your_crate` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `your_crate`, use `cargo add your_crate` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/webserver/logger/mod.rs - webserver::logger::Logger (line 38) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: unresolved import [INFO] [stdout] --> src/webserver/logger/mod.rs:40:12 [INFO] [stdout] | [INFO] [stdout] 40 | use crate::webserver::logger::Logger; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | unresolved import [INFO] [stdout] | help: a similar path exists: `sunweb::webserver` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/webserver/mod.rs - webserver::WebServer::add_custom_route (line 321) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `webserver` [INFO] [stdout] --> src/webserver/mod.rs:323:5 [INFO] [stdout] | [INFO] [stdout] 323 | use webserver::route::HTTPMethod; [INFO] [stdout] | ^^^^^^^^^ use of unresolved module or unlinked crate `webserver` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `webserver`, use `cargo add webserver` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `webserver` [INFO] [stdout] --> src/webserver/mod.rs:324:5 [INFO] [stdout] | [INFO] [stdout] 324 | use webserver::responses::StatusCode; [INFO] [stdout] | ^^^^^^^^^ use of unresolved module or unlinked crate `webserver` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `webserver`, use `cargo add webserver` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `webserver` [INFO] [stdout] --> src/webserver/mod.rs:322:5 [INFO] [stdout] | [INFO] [stdout] 322 | use webserver::{WebServer, ServerConfig, Domain, HTTPRequest, HTTPResponse}; [INFO] [stdout] | ^^^^^^^^^ help: a similar path exists: `sunweb::webserver` [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/webserver/middleware/mod.rs - webserver::middleware::Middleware::new_both (line 173) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `sunweb::webserver::HTTPRequests` [INFO] [stdout] --> src/webserver/middleware/mod.rs:176:24 [INFO] [stdout] | [INFO] [stdout] 176 | use sunweb::webserver::HTTPRequests::HTTPRequest; [INFO] [stdout] | ^^^^^^^^^^^^ could not find `HTTPRequests` in `webserver` [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `sunweb::webserver::HTTPResponses` [INFO] [stdout] --> src/webserver/middleware/mod.rs:177:24 [INFO] [stdout] | [INFO] [stdout] 177 | use sunweb::webserver::HTTPResponses::HTTPResponse; [INFO] [stdout] | ^^^^^^^^^^^^^ could not find `HTTPResponses` in `webserver` [INFO] [stdout] [INFO] [stdout] error[E0603]: struct `Middleware` is private [INFO] [stdout] --> src/webserver/middleware/mod.rs:175:33 [INFO] [stdout] | [INFO] [stdout] 175 | use sunweb::webserver::{Domain, Middleware}; [INFO] [stdout] | ^^^^^^^^^^ private struct [INFO] [stdout] | [INFO] [stdout] note: the struct `Middleware` is defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/webserver/mod.rs:42:5 [INFO] [stdout] | [INFO] [stdout] 42 | use crate::webserver::middleware::Middleware; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: import `Middleware` directly [INFO] [stdout] | [INFO] [stdout] 175 | use sunweb::webserver::{Domain, sunweb::webserver::middleware::Middleware}; [INFO] [stdout] | +++++++++++++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0603. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/webserver/http_packet/header/mod.rs - webserver::http_packet::header::HTTPHeader::set_server (line 138) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `your_crate` [INFO] [stdout] --> src/webserver/http_packet/header/mod.rs:139:5 [INFO] [stdout] | [INFO] [stdout] 139 | use your_crate::HTTPHeader; [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `your_crate` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `your_crate`, use `cargo add your_crate` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/webserver/proxy/mod.rs - webserver::proxy::Proxy::parse_http_response_bytes (line 241) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `tls_stream` in this scope [INFO] [stdout] --> src/webserver/proxy/mod.rs:242:42 [INFO] [stdout] | [INFO] [stdout] 242 | let raw = Proxy::send_https_request(&mut tls_stream, "/api", "api.example.com")?; [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Proxy` [INFO] [stdout] --> src/webserver/proxy/mod.rs:242:11 [INFO] [stdout] | [INFO] [stdout] 242 | let raw = Proxy::send_https_request(&mut tls_stream, "/api", "api.example.com")?; [INFO] [stdout] | ^^^^^ use of undeclared type `Proxy` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Proxy` [INFO] [stdout] --> src/webserver/proxy/mod.rs:243:21 [INFO] [stdout] | [INFO] [stdout] 243 | let (json, _mime) = Proxy::parse_http_response_bytes(&raw); [INFO] [stdout] | ^^^^^ use of undeclared type `Proxy` [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/webserver/proxy/mod.rs - webserver::proxy::Proxy::new (line 50) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Proxy` [INFO] [stdout] --> src/webserver/proxy/mod.rs:51:13 [INFO] [stdout] | [INFO] [stdout] 51 | let mut p = Proxy::new("https://example.com/api".into()); [INFO] [stdout] | ^^^^^ use of undeclared type `Proxy` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/webserver/middleware/mod.rs - webserver::middleware (line 8) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `webserver` [INFO] [stdout] --> src/webserver/middleware/mod.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use webserver::{Domain, Middleware}; [INFO] [stdout] | ^^^^^^^^^ help: a similar path exists: `sunweb::webserver` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/webserver/http_packet/header/mod.rs - webserver::http_packet::header::HTTPHeader::set_transfer_encoding (line 287) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `your_crate` [INFO] [stdout] --> src/webserver/http_packet/header/mod.rs:288:5 [INFO] [stdout] | [INFO] [stdout] 288 | use your_crate::HTTPHeader; [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `your_crate` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `your_crate`, use `cargo add your_crate` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/webserver/responses/mod.rs - webserver::responses::HTTPResponse::redirect (line 85) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `HTTPResponse` [INFO] [stdout] --> src/webserver/responses/mod.rs:86:9 [INFO] [stdout] | [INFO] [stdout] 86 | let r = HTTPResponse::redirect("/login", /*permanent=*/false); [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `HTTPResponse` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 85 + use sunweb::webserver::responses::HTTPResponse; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `StatusCode` [INFO] [stdout] --> src/webserver/responses/mod.rs:87:27 [INFO] [stdout] | [INFO] [stdout] 87 | assert_eq!(r.status_code, StatusCode::TemporaryRedirect); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `StatusCode` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 85 + use sunweb::webserver::responses::status_code::StatusCode; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/webserver/responses/mod.rs - webserver::responses::HTTPResponse::new (line 41) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `HTTPResponse` [INFO] [stdout] --> src/webserver/responses/mod.rs:42:12 [INFO] [stdout] | [INFO] [stdout] 42 | let resp = HTTPResponse::new(StatusCode::ImATeapot); [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `HTTPResponse` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 41 + use sunweb::webserver::responses::HTTPResponse; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `StatusCode` [INFO] [stdout] --> src/webserver/responses/mod.rs:42:30 [INFO] [stdout] | [INFO] [stdout] 42 | let resp = HTTPResponse::new(StatusCode::ImATeapot); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `StatusCode` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 41 + use sunweb::webserver::responses::status_code::StatusCode; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/webserver/requests/mod.rs - webserver::requests::HTTPRequest::get_header (line 142) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `req` in this scope [INFO] [stdout] --> src/webserver/requests/mod.rs:143:13 [INFO] [stdout] | [INFO] [stdout] 143 | let agent = req.get_header("User-Agent").unwrap_or_default(); [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/webserver/responses/status_code.rs - webserver::responses::status_code (line 16) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `sunweb::StatusCode` [INFO] [stdout] --> src/webserver/responses/status_code.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | use sunweb::StatusCode; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ no `StatusCode` in the root [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum instead [INFO] [stdout] | [INFO] [stdout] 18 | use sunweb::webserver::responses::status_code::StatusCode; [INFO] [stdout] | +++++++++++++++++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/webserver/responses/mod.rs - webserver::responses::HTTPResponse::to_bytes (line 326) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `HTTPResponse` [INFO] [stdout] --> src/webserver/responses/mod.rs:327:13 [INFO] [stdout] | [INFO] [stdout] 327 | let mut r = HTTPResponse::ok(); [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `HTTPResponse` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 326 + use sunweb::webserver::responses::HTTPResponse; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/webserver/http_packet/header/mod.rs - webserver::http_packet::header::HTTPHeader::set_cache_control (line 172) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `your_crate` [INFO] [stdout] --> src/webserver/http_packet/header/mod.rs:173:5 [INFO] [stdout] | [INFO] [stdout] 173 | use your_crate::HTTPHeader; [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `your_crate` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `your_crate`, use `cargo add your_crate` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/webserver/route/http_method.rs - webserver::route::http_method::HTTPMethod::fmt (line 75) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `your_crate` [INFO] [stdout] --> src/webserver/route/http_method.rs:76:5 [INFO] [stdout] | [INFO] [stdout] 76 | use your_crate::webserver::route::HTTPMethod; [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `your_crate` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `your_crate`, use `cargo add your_crate` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/webserver/requests/mod.rs - webserver::requests::HTTPRequest::parse (line 49) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `HTTPRequest` [INFO] [stdout] --> src/webserver/requests/mod.rs:51:11 [INFO] [stdout] | [INFO] [stdout] 51 | let req = HTTPRequest::parse(raw).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `HTTPRequest` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 49 + use sunweb::webserver::requests::HTTPRequest; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/webserver/responses/status_code.rs - webserver::responses::status_code::StatusCode::as_u16 (line 368) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `sunweb::StatusCode` [INFO] [stdout] --> src/webserver/responses/status_code.rs:370:5 [INFO] [stdout] | [INFO] [stdout] 370 | use sunweb::StatusCode; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ no `StatusCode` in the root [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum instead [INFO] [stdout] | [INFO] [stdout] 370 | use sunweb::webserver::responses::status_code::StatusCode; [INFO] [stdout] | +++++++++++++++++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/webserver/responses/status_code.rs - webserver::responses::status_code::StatusCode::fmt (line 238) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `sunweb::StatusCode` [INFO] [stdout] --> src/webserver/responses/status_code.rs:240:5 [INFO] [stdout] | [INFO] [stdout] 240 | use sunweb::StatusCode; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ no `StatusCode` in the root [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum instead [INFO] [stdout] | [INFO] [stdout] 240 | use sunweb::webserver::responses::status_code::StatusCode; [INFO] [stdout] | +++++++++++++++++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/webserver/proxy/mod.rs - webserver::proxy::Proxy::send_http_request (line 137) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Proxy` [INFO] [stdout] --> src/webserver/proxy/mod.rs:138:18 [INFO] [stdout] | [INFO] [stdout] 138 | let mut stream = Proxy::connect_to_server("example.com", 80)?; [INFO] [stdout] | ^^^^^ use of undeclared type `Proxy` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Proxy` [INFO] [stdout] --> src/webserver/proxy/mod.rs:139:11 [INFO] [stdout] | [INFO] [stdout] 139 | let raw = Proxy::send_http_request(&mut stream, "/index.html", "example.com")?; [INFO] [stdout] | ^^^^^ use of undeclared type `Proxy` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Proxy` [INFO] [stdout] --> src/webserver/proxy/mod.rs:140:20 [INFO] [stdout] | [INFO] [stdout] 140 | let (body, mime) = Proxy::parse_http_response_bytes(&raw); [INFO] [stdout] | ^^^^^ use of undeclared type `Proxy` [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/webserver/server_config/mod.rs - webserver::server_config::ServerConfig::ip_as_string (line 145) stdout ---- [INFO] [stdout] error[E0603]: module `server_config` is private [INFO] [stdout] --> src/webserver/server_config/mod.rs:147:24 [INFO] [stdout] | [INFO] [stdout] 147 | use sunweb::webserver::server_config::ServerConfig; [INFO] [stdout] | ^^^^^^^^^^^^^ private module [INFO] [stdout] | [INFO] [stdout] note: the module `server_config` is defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/webserver/mod.rs:38:1 [INFO] [stdout] | [INFO] [stdout] 38 | pub(crate) mod server_config; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0603`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/webserver/responses/status_code.rs - webserver::responses::status_code::StatusCode (line 85) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `sunweb::StatusCode` [INFO] [stdout] --> src/webserver/responses/status_code.rs:87:5 [INFO] [stdout] | [INFO] [stdout] 87 | use sunweb::StatusCode; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ no `StatusCode` in the root [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum instead [INFO] [stdout] | [INFO] [stdout] 87 | use sunweb::webserver::responses::status_code::StatusCode; [INFO] [stdout] | +++++++++++++++++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/webserver/server_config/mod.rs - webserver::server_config::ServerConfig::set_base_domain (line 123) stdout ---- [INFO] [stdout] error[E0603]: module `server_config` is private [INFO] [stdout] --> src/webserver/server_config/mod.rs:125:24 [INFO] [stdout] | [INFO] [stdout] 125 | use sunweb::webserver::server_config::ServerConfig; [INFO] [stdout] | ^^^^^^^^^^^^^ private module [INFO] [stdout] | [INFO] [stdout] note: the module `server_config` is defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/webserver/mod.rs:38:1 [INFO] [stdout] | [INFO] [stdout] 38 | pub(crate) mod server_config; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0603`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/webserver/route/http_method.rs - webserver::route::http_method::HTTPMethod::from_str (line 45) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `your_crate` [INFO] [stdout] --> src/webserver/route/http_method.rs:46:5 [INFO] [stdout] | [INFO] [stdout] 46 | use your_crate::webserver::route::HTTPMethod; [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `your_crate` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `your_crate`, use `cargo add your_crate` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/webserver/server_config/mod.rs - webserver::server_config::ServerConfig::add_cert (line 80) stdout ---- [INFO] [stdout] error[E0603]: module `server_config` is private [INFO] [stdout] --> src/webserver/server_config/mod.rs:82:24 [INFO] [stdout] | [INFO] [stdout] 82 | use sunweb::webserver::server_config::ServerConfig; [INFO] [stdout] | ^^^^^^^^^^^^^ private module [INFO] [stdout] | [INFO] [stdout] note: the module `server_config` is defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/webserver/mod.rs:38:1 [INFO] [stdout] | [INFO] [stdout] 38 | pub(crate) mod server_config; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0603`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/webserver/responses/status_code.rs - webserver::responses::status_code::StatusCode::equals (line 343) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `sunweb::StatusCode` [INFO] [stdout] --> src/webserver/responses/status_code.rs:345:5 [INFO] [stdout] | [INFO] [stdout] 345 | use sunweb::StatusCode; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ no `StatusCode` in the root [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum instead [INFO] [stdout] | [INFO] [stdout] 345 | use sunweb::webserver::responses::status_code::StatusCode; [INFO] [stdout] | +++++++++++++++++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/webserver/server_config/mod.rs - webserver::server_config::ServerConfig::new (line 44) stdout ---- [INFO] [stdout] error[E0603]: module `server_config` is private [INFO] [stdout] --> src/webserver/server_config/mod.rs:46:24 [INFO] [stdout] | [INFO] [stdout] 46 | use sunweb::webserver::server_config::ServerConfig; [INFO] [stdout] | ^^^^^^^^^^^^^ private module [INFO] [stdout] | [INFO] [stdout] note: the module `server_config` is defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/webserver/mod.rs:38:1 [INFO] [stdout] | [INFO] [stdout] 38 | pub(crate) mod server_config; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0603`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/webserver/server_config/mod.rs - webserver::server_config::ServerConfig (line 12) stdout ---- [INFO] [stdout] error[E0603]: module `server_config` is private [INFO] [stdout] --> src/webserver/server_config/mod.rs:14:24 [INFO] [stdout] | [INFO] [stdout] 14 | use sunweb::webserver::server_config::ServerConfig; [INFO] [stdout] | ^^^^^^^^^^^^^ private module [INFO] [stdout] | [INFO] [stdout] note: the module `server_config` is defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/webserver/mod.rs:38:1 [INFO] [stdout] | [INFO] [stdout] 38 | pub(crate) mod server_config; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0603`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/lib.rs - webserver (line 15) [INFO] [stdout] src/webserver/client_handling/mod.rs - webserver::client_handling (line 15) [INFO] [stdout] src/webserver/files/mod.rs - webserver::files::get_file_content (line 112) [INFO] [stdout] src/webserver/files/mod.rs - webserver::files::get_static_file_content (line 43) [INFO] [stdout] src/webserver/http_packet/header/connection.rs - webserver::http_packet::header::connection::ConnectionType (line 12) [INFO] [stdout] src/webserver/http_packet/header/content_types/application.rs - webserver::http_packet::header::content_types::application::ApplicationSubType (line 10) [INFO] [stdout] src/webserver/http_packet/header/content_types/audio.rs - webserver::http_packet::header::content_types::audio::AudioSubType (line 11) [INFO] [stdout] src/webserver/http_packet/header/content_types/audio.rs - webserver::http_packet::header::content_types::audio::AudioSubType::from_str (line 49) [INFO] [stdout] src/webserver/http_packet/header/content_types/font.rs - webserver::http_packet::header::content_types::font::FontSubType (line 11) [INFO] [stdout] src/webserver/http_packet/header/content_types/font.rs - webserver::http_packet::header::content_types::font::FontSubType::from_str (line 43) [INFO] [stdout] src/webserver/http_packet/header/content_types/image.rs - webserver::http_packet::header::content_types::image::ImageSubType (line 10) [INFO] [stdout] src/webserver/http_packet/header/content_types/mod.rs - webserver::http_packet::header::content_types (line 14) [INFO] [stdout] src/webserver/http_packet/header/content_types/multipart.rs - webserver::http_packet::header::content_types::multipart::MultipartSubType (line 10) [INFO] [stdout] src/webserver/http_packet/header/content_types/text.rs - webserver::http_packet::header::content_types::text::TextSubType (line 10) [INFO] [stdout] src/webserver/http_packet/header/content_types/video.rs - webserver::http_packet::header::content_types::video::VideoSubType (line 10) [INFO] [stdout] src/webserver/http_packet/header/headers/cookie.rs - webserver::http_packet::header::headers::cookie::Cookie::as_string (line 85) [INFO] [stdout] src/webserver/http_packet/header/headers/cookie.rs - webserver::http_packet::header::headers::cookie::Cookie::expires (line 136) [INFO] [stdout] src/webserver/http_packet/header/headers/cookie.rs - webserver::http_packet::header::headers::cookie::Cookie::http_only (line 180) [INFO] [stdout] src/webserver/http_packet/header/headers/cookie.rs - webserver::http_packet::header::headers::cookie::Cookie::new (line 55) [INFO] [stdout] src/webserver/http_packet/header/headers/cookie.rs - webserver::http_packet::header::headers::cookie::Cookie::path (line 204) [INFO] [stdout] src/webserver/http_packet/header/headers/cookie.rs - webserver::http_packet::header::headers::cookie::Cookie::same_site (line 228) [INFO] [stdout] src/webserver/http_packet/header/headers/cookie.rs - webserver::http_packet::header::headers::cookie::Cookie::secure (line 158) [INFO] [stdout] src/webserver/http_packet/header/mod.rs - webserver::http_packet::header::HTTPHeader::apply_cors_permissive (line 519) [INFO] [stdout] src/webserver/http_packet/header/mod.rs - webserver::http_packet::header::HTTPHeader::apply_security_headers (line 401) [INFO] [stdout] src/webserver/http_packet/header/mod.rs - webserver::http_packet::header::HTTPHeader::expire_cookie (line 101) [INFO] [stdout] src/webserver/http_packet/header/mod.rs - webserver::http_packet::header::HTTPHeader::set_cache_control (line 172) [INFO] [stdout] src/webserver/http_packet/header/mod.rs - webserver::http_packet::header::HTTPHeader::set_content_encoding (line 268) [INFO] [stdout] src/webserver/http_packet/header/mod.rs - webserver::http_packet::header::HTTPHeader::set_cookie (line 83) [INFO] [stdout] src/webserver/http_packet/header/mod.rs - webserver::http_packet::header::HTTPHeader::set_cors_credentials (line 501) [INFO] [stdout] src/webserver/http_packet/header/mod.rs - webserver::http_packet::header::HTTPHeader::set_cors_headers (line 463) [INFO] [stdout] src/webserver/http_packet/header/mod.rs - webserver::http_packet::header::HTTPHeader::set_cors_max_age (line 482) [INFO] [stdout] src/webserver/http_packet/header/mod.rs - webserver::http_packet::header::HTTPHeader::set_cors_methods (line 444) [INFO] [stdout] src/webserver/http_packet/header/mod.rs - webserver::http_packet::header::HTTPHeader::set_cors_origin (line 425) [INFO] [stdout] src/webserver/http_packet/header/mod.rs - webserver::http_packet::header::HTTPHeader::set_csp (line 365) [INFO] [stdout] src/webserver/http_packet/header/mod.rs - webserver::http_packet::header::HTTPHeader::set_date_now (line 120) [INFO] [stdout] src/webserver/http_packet/header/mod.rs - webserver::http_packet::header::HTTPHeader::set_etag (line 226) [INFO] [stdout] src/webserver/http_packet/header/mod.rs - webserver::http_packet::header::HTTPHeader::set_frame_options (line 322) [INFO] [stdout] src/webserver/http_packet/header/mod.rs - webserver::http_packet::header::HTTPHeader::set_hsts (line 342) [INFO] [stdout] src/webserver/http_packet/header/mod.rs - webserver::http_packet::header::HTTPHeader::set_last_modified (line 245) [INFO] [stdout] src/webserver/http_packet/header/mod.rs - webserver::http_packet::header::HTTPHeader::set_location (line 155) [INFO] [stdout] src/webserver/http_packet/header/mod.rs - webserver::http_packet::header::HTTPHeader::set_max_age (line 207) [INFO] [stdout] src/webserver/http_packet/header/mod.rs - webserver::http_packet::header::HTTPHeader::set_no_cache (line 188) [INFO] [stdout] src/webserver/http_packet/header/mod.rs - webserver::http_packet::header::HTTPHeader::set_nosniff (line 305) [INFO] [stdout] src/webserver/http_packet/header/mod.rs - webserver::http_packet::header::HTTPHeader::set_server (line 138) [INFO] [stdout] src/webserver/http_packet/header/mod.rs - webserver::http_packet::header::HTTPHeader::set_transfer_encoding (line 287) [INFO] [stdout] src/webserver/http_packet/header/mod.rs - webserver::http_packet::header::HTTPHeader::set_xss_protection (line 384) [INFO] [stdout] src/webserver/logger/mod.rs - webserver::logger::Logger (line 38) [INFO] [stdout] src/webserver/logger/mod.rs - webserver::logger::Logger::log_request_end (line 133) [INFO] [stdout] src/webserver/logger/mod.rs - webserver::logger::Logger::log_request_start (line 98) [INFO] [stdout] src/webserver/middleware/mod.rs - webserver::middleware (line 8) [INFO] [stdout] src/webserver/middleware/mod.rs - webserver::middleware::Middleware::new_both (line 173) [INFO] [stdout] src/webserver/middleware/mod.rs - webserver::middleware::Middleware::new_request (line 80) [INFO] [stdout] src/webserver/middleware/mod.rs - webserver::middleware::Middleware::new_response (line 126) [INFO] [stdout] src/webserver/middleware/mod.rs - webserver::middleware::Middleware::new_response_both (line 229) [INFO] [stdout] src/webserver/mod.rs - webserver::Domain::new (line 77) [INFO] [stdout] src/webserver/mod.rs - webserver::WebServer::add_custom_route (line 321) [INFO] [stdout] src/webserver/mod.rs - webserver::WebServer::add_subdomain_router (line 212) [INFO] [stdout] src/webserver/mod.rs - webserver::WebServer::new (line 121) [INFO] [stdout] src/webserver/proxy/mod.rs - webserver::proxy::Proxy::new (line 50) [INFO] [stdout] src/webserver/proxy/mod.rs - webserver::proxy::Proxy::parse_http_response_bytes (line 241) [INFO] [stdout] src/webserver/proxy/mod.rs - webserver::proxy::Proxy::send_http_request (line 137) [INFO] [stdout] src/webserver/requests/mod.rs - webserver::requests::HTTPRequest::get_header (line 142) [INFO] [stdout] src/webserver/requests/mod.rs - webserver::requests::HTTPRequest::parse (line 49) [INFO] [stdout] src/webserver/responses/mod.rs - webserver::responses::HTTPResponse::new (line 41) [INFO] [stdout] src/webserver/responses/mod.rs - webserver::responses::HTTPResponse::redirect (line 85) [INFO] [stdout] src/webserver/responses/mod.rs - webserver::responses::HTTPResponse::to_bytes (line 326) [INFO] [stdout] src/webserver/responses/status_code.rs - webserver::responses::status_code (line 16) [INFO] [stdout] src/webserver/responses/status_code.rs - webserver::responses::status_code::StatusCode (line 85) [INFO] [stdout] src/webserver/responses/status_code.rs - webserver::responses::status_code::StatusCode::as_u16 (line 368) [INFO] [stdout] src/webserver/responses/status_code.rs - webserver::responses::status_code::StatusCode::equals (line 343) [INFO] [stdout] src/webserver/responses/status_code.rs - webserver::responses::status_code::StatusCode::fmt (line 238) [INFO] [stdout] src/webserver/route/http_method.rs - webserver::route::http_method::HTTPMethod::fmt (line 75) [INFO] [stdout] src/webserver/route/http_method.rs - webserver::route::http_method::HTTPMethod::from_str (line 45) [INFO] [stdout] src/webserver/server_config/mod.rs - webserver::server_config::ServerConfig (line 12) [INFO] [stdout] src/webserver/server_config/mod.rs - webserver::server_config::ServerConfig::add_cert (line 80) [INFO] [stdout] src/webserver/server_config/mod.rs - webserver::server_config::ServerConfig::ip_as_string (line 145) [INFO] [stdout] src/webserver/server_config/mod.rs - webserver::server_config::ServerConfig::new (line 44) [INFO] [stdout] src/webserver/server_config/mod.rs - webserver::server_config::ServerConfig::set_base_domain (line 123) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 1 passed; 78 failed; 0 ignored; 0 measured; 0 filtered out; finished in 1.41s [INFO] [stdout] [INFO] [stdout] all doctests ran in 1.69s; merged doctests compilation took 0.26s [INFO] running `Command { std: "docker" "inspect" "ea9a2addef5dc14b96459e73a5e94d0a16a974f34ae341a088d05700e8562d64", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ea9a2addef5dc14b96459e73a5e94d0a16a974f34ae341a088d05700e8562d64", kill_on_drop: false }` [INFO] [stdout] ea9a2addef5dc14b96459e73a5e94d0a16a974f34ae341a088d05700e8562d64