[INFO] fetching crate resend_email_rs 0.1.0... [INFO] testing resend_email_rs-0.1.0 against master#caccb4d0368bd918ef6668af8e13834d07040417 for pr-146098-1 [INFO] extracting crate resend_email_rs 0.1.0 into /workspace/builds/worker-4-tc1/source [INFO] started tweaking crates.io crate resend_email_rs 0.1.0 [INFO] finished tweaking crates.io crate resend_email_rs 0.1.0 [INFO] tweaked toml for crates.io crate resend_email_rs 0.1.0 written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate resend_email_rs 0.1.0 on toolchain caccb4d0368bd918ef6668af8e13834d07040417 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate resend_email_rs 0.1.0 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" "+caccb4d0368bd918ef6668af8e13834d07040417" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded winreg v0.52.0 [INFO] [stderr] Downloaded socket2 v0.5.6 [INFO] [stderr] Downloaded h2 v0.4.4 [INFO] [stderr] Downloaded serde_json v1.0.116 [INFO] [stderr] Downloaded http-body-util v0.1.1 [INFO] [stderr] Downloaded security-framework-sys v2.10.0 [INFO] [stderr] Downloaded fastrand v2.0.2 [INFO] [stderr] Downloaded security-framework v2.10.0 [INFO] [stderr] Downloaded autocfg v1.2.0 [INFO] [stderr] Downloaded reqwest v0.12.4 [INFO] [stderr] Downloaded thiserror v1.0.59 [INFO] [stderr] Downloaded proc-macro2 v1.0.81 [INFO] [stderr] Downloaded thiserror-impl v1.0.59 [INFO] [stderr] Downloaded rustls-pki-types v1.5.0 [INFO] [stderr] Downloaded hyper v1.3.1 [INFO] [stderr] Downloaded base64 v0.22.0 [INFO] [stderr] Downloaded cc v1.0.95 [INFO] [stderr] Downloaded tokio v1.37.0 [INFO] [stderr] Downloaded serde v1.0.198 [INFO] [stderr] Downloaded miniz_oxide v0.7.2 [INFO] [stderr] Downloaded syn v2.0.60 [INFO] [stderr] Downloaded hyper-util v0.1.3 [INFO] [stderr] Downloaded serde_derive v1.0.198 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 2ddfed9e56cdeaf15a5feeaff56eeada7a07217a43cbf752b1437056be766e56 [INFO] running `Command { std: "docker" "start" "-a" "2ddfed9e56cdeaf15a5feeaff56eeada7a07217a43cbf752b1437056be766e56", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2ddfed9e56cdeaf15a5feeaff56eeada7a07217a43cbf752b1437056be766e56", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2ddfed9e56cdeaf15a5feeaff56eeada7a07217a43cbf752b1437056be766e56", kill_on_drop: false }` [INFO] [stdout] 2ddfed9e56cdeaf15a5feeaff56eeada7a07217a43cbf752b1437056be766e56 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d30f11972dba90428c1c31b61c27a69357331b5e4e06eb49c88ddc308fdc818a [INFO] running `Command { std: "docker" "start" "-a" "d30f11972dba90428c1c31b61c27a69357331b5e4e06eb49c88ddc308fdc818a", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.81 [INFO] [stderr] Compiling libc v0.2.153 [INFO] [stderr] Compiling bytes v1.6.0 [INFO] [stderr] Compiling cc v1.0.95 [INFO] [stderr] Compiling futures-core v0.3.30 [INFO] [stderr] Compiling autocfg v1.2.0 [INFO] [stderr] Compiling futures-task v0.3.30 [INFO] [stderr] Compiling tracing-core v0.1.32 [INFO] [stderr] Compiling equivalent v1.0.1 [INFO] [stderr] Compiling openssl v0.10.64 [INFO] [stderr] Compiling hashbrown v0.14.3 [INFO] [stderr] Compiling futures-sink v0.3.30 [INFO] [stderr] Compiling httparse v1.8.0 [INFO] [stderr] Compiling bitflags v2.5.0 [INFO] [stderr] Compiling native-tls v0.2.11 [INFO] [stderr] Compiling serde v1.0.198 [INFO] [stderr] Compiling tinyvec v1.6.0 [INFO] [stderr] Compiling smallvec v1.13.2 [INFO] [stderr] Compiling tower-service v0.3.2 [INFO] [stderr] Compiling tower-layer v0.3.2 [INFO] [stderr] Compiling openssl-probe v0.1.5 [INFO] [stderr] Compiling futures-util v0.3.30 [INFO] [stderr] Compiling futures-channel v0.3.30 [INFO] [stderr] Compiling ryu v1.0.17 [INFO] [stderr] Compiling serde_json v1.0.116 [INFO] [stderr] Compiling unicode-bidi v0.3.15 [INFO] [stderr] Compiling http v1.1.0 [INFO] [stderr] Compiling thiserror v1.0.59 [INFO] [stderr] Compiling base64 v0.22.0 [INFO] [stderr] Compiling rustls-pki-types v1.5.0 [INFO] [stderr] Compiling encoding_rs v0.8.34 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling sync_wrapper v0.1.2 [INFO] [stderr] Compiling ipnet v2.9.0 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Compiling socket2 v0.5.6 [INFO] [stderr] Compiling mio v0.8.11 [INFO] [stderr] Compiling syn v2.0.60 [INFO] [stderr] Compiling indexmap v2.2.6 [INFO] [stderr] Compiling unicode-normalization v0.1.23 [INFO] [stderr] Compiling openssl-sys v0.9.102 [INFO] [stderr] Compiling tracing v0.1.40 [INFO] [stderr] Compiling rustls-pemfile v2.1.2 [INFO] [stderr] Compiling idna v0.5.0 [INFO] [stderr] Compiling tokio v1.37.0 [INFO] [stderr] Compiling http-body v1.0.0 [INFO] [stderr] Compiling http-body-util v0.1.1 [INFO] [stderr] Compiling url v2.5.0 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling pin-project-internal v1.1.5 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling thiserror-impl v1.0.59 [INFO] [stderr] Compiling serde_derive v1.0.198 [INFO] [stderr] Compiling pin-project v1.1.5 [INFO] [stderr] Compiling tokio-util v0.7.10 [INFO] [stderr] Compiling tower v0.4.13 [INFO] [stderr] Compiling h2 v0.4.4 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling hyper v1.3.1 [INFO] [stderr] Compiling hyper-util v0.1.3 [INFO] [stderr] Compiling hyper-tls v0.6.0 [INFO] [stderr] Compiling reqwest v0.12.4 [INFO] [stderr] Compiling resend_email_rs v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 27.81s [INFO] running `Command { std: "docker" "inspect" "d30f11972dba90428c1c31b61c27a69357331b5e4e06eb49c88ddc308fdc818a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d30f11972dba90428c1c31b61c27a69357331b5e4e06eb49c88ddc308fdc818a", kill_on_drop: false }` [INFO] [stdout] d30f11972dba90428c1c31b61c27a69357331b5e4e06eb49c88ddc308fdc818a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 41330cf048722522fd131d2c9dc3afccda8543c8929bbbfba1fad1a6fa226f43 [INFO] running `Command { std: "docker" "start" "-a" "41330cf048722522fd131d2c9dc3afccda8543c8929bbbfba1fad1a6fa226f43", kill_on_drop: false }` [INFO] [stderr] Compiling resend_email_rs v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.44s [INFO] running `Command { std: "docker" "inspect" "41330cf048722522fd131d2c9dc3afccda8543c8929bbbfba1fad1a6fa226f43", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "41330cf048722522fd131d2c9dc3afccda8543c8929bbbfba1fad1a6fa226f43", kill_on_drop: false }` [INFO] [stdout] 41330cf048722522fd131d2c9dc3afccda8543c8929bbbfba1fad1a6fa226f43 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] fc65a65431f31de481d65fc2eef33b86a1f17f4738789982b49703b22767ffdb [INFO] running `Command { std: "docker" "start" "-a" "fc65a65431f31de481d65fc2eef33b86a1f17f4738789982b49703b22767ffdb", kill_on_drop: false }` [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.12s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/resend_email_rs-86820d84918d5e1e) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/resend_email_rs-fece20d07f760f11) [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] running 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 resend_email_rs [INFO] [stdout] [INFO] [stdout] running 13 tests [INFO] [stdout] test src/lib.rs - (line 28) ... FAILED [INFO] [stdout] test src/lib.rs - ResendClient (line 136) ... FAILED [INFO] [stdout] test src/client.rs - client (line 31) ... FAILED [INFO] [stdout] test src/success.rs - success (line 19) ... FAILED [INFO] [stdout] test src/lib.rs - Email (line 118) ... FAILED [INFO] [stdout] test src/lib.rs - (line 71) ... FAILED [INFO] [stdout] test src/lib.rs - MailText (line 180) ... FAILED [INFO] [stdout] test src/error.rs - error (line 17) ... FAILED [INFO] [stdout] test src/client.rs - client (line 36) ... FAILED [INFO] [stdout] test src/lib.rs - MailHtml (line 213) ... FAILED [INFO] [stdout] test src/lib.rs - (line 55) ... FAILED [INFO] [stdout] test src/lib.rs - (line 38) ... FAILED [INFO] [stdout] test src/lib.rs - Attachment (line 154) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - (line 28) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `resend_rs` [INFO] [stdout] --> src/lib.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 3 | use resend_rs::ResendClient; [INFO] [stdout] | ^^^^^^^^^ use of unresolved module or unlinked crate `resend_rs` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `resend_rs`, use `cargo add resend_rs` 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 - ResendClient (line 136) stdout ---- [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `ResendClient` in this scope [INFO] [stdout] --> src/lib.rs:137:14 [INFO] [stdout] | [INFO] [stdout] 3 | let client = ResendClient { [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use resend_email_rs::ResendClient; [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 E0422`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/client.rs - client (line 31) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ResendClient` [INFO] [stdout] --> src/client.rs:32:14 [INFO] [stdout] | [INFO] [stdout] 3 | let client = ResendClient::new("your_auth_token".to_string()); [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `ResendClient` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use resend_email_rs::ResendClient; [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/success.rs - success (line 19) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `resend_client` in this scope [INFO] [stdout] --> src/success.rs:20:7 [INFO] [stdout] | [INFO] [stdout] 3 | match resend_client.send(&email).await { [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `email` in this scope [INFO] [stdout] --> src/success.rs:20:27 [INFO] [stdout] | [INFO] [stdout] 3 | match resend_client.send(&email).await { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Success` [INFO] [stdout] --> src/success.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 5 | Success::EmailSent => println!("Email was successfully sent."), [INFO] [stdout] | ^^^^^^^ use of undeclared type `Success` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use resend_email_rs::success::Success; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/success.rs:20:34 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_success_rs_19_0() { [INFO] [stdout] | -------------------------------------- this is not `async` [INFO] [stdout] 3 | match resend_client.send(&email).await { [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - Email (line 118) stdout ---- [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Email` in this scope [INFO] [stdout] --> src/lib.rs:119:13 [INFO] [stdout] | [INFO] [stdout] 3 | let email = Email { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use resend_email_rs::Email; [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 E0422`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 71) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `resend_rs` [INFO] [stdout] --> src/lib.rs:72:5 [INFO] [stdout] | [INFO] [stdout] 3 | use resend_rs::{ResendClient, MailText, Attachment}; [INFO] [stdout] | ^^^^^^^^^ use of unresolved module or unlinked crate `resend_rs` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `resend_rs`, use `cargo add resend_rs` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Email` in this scope [INFO] [stdout] --> src/lib.rs:86:24 [INFO] [stdout] | [INFO] [stdout] 17 | let email_sent_status: Email = client.send(&mail).await.unwrap(); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use resend_email_rs::Email; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/lib.rs:86:51 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_71_0() { [INFO] [stdout] | ---------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 17 | let email_sent_status: Email = client.send(&mail).await.unwrap(); [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0432, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - MailText (line 180) stdout ---- [INFO] [stdout] error: expected one of `,`, `.`, `?`, `}`, or an operator, found `subject` [INFO] [stdout] --> src/lib.rs:184:5 [INFO] [stdout] | [INFO] [stdout] 3 | let mail = MailText { [INFO] [stdout] | -------- while parsing this struct [INFO] [stdout] 4 | from: "floris@xylex.ai", [INFO] [stdout] 5 | to: vec!["person@example.com"] [INFO] [stdout] | - [INFO] [stdout] | | [INFO] [stdout] | expected one of `,`, `.`, `?`, `}`, or an operator [INFO] [stdout] | help: try adding a comma: `,` [INFO] [stdout] 6 | subject: "Test Email", [INFO] [stdout] | ^^^^^^^ unexpected token [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `MailText` in this scope [INFO] [stdout] --> src/lib.rs:181:12 [INFO] [stdout] | [INFO] [stdout] 3 | let mail = MailText { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use resend_email_rs::MailText; [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 E0422`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/error.rs - error (line 17) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `resend_rs` [INFO] [stdout] --> src/error.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 3 | use resend_rs::Error; [INFO] [stdout] | ^^^^^^^^^ use of unresolved module or unlinked crate `resend_rs` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `resend_rs`, use `cargo add resend_rs` 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/client.rs - client (line 36) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `client` in this scope [INFO] [stdout] --> src/client.rs:37:13 [INFO] [stdout] | [INFO] [stdout] 3 | let email = client.send(&mail).await?; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `mail` in this scope [INFO] [stdout] --> src/client.rs:37:26 [INFO] [stdout] | [INFO] [stdout] 3 | let email = client.send(&mail).await?; [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/client.rs:37:32 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_client_rs_36_0() { [INFO] [stdout] | ------------------------------------- this is not `async` [INFO] [stdout] 3 | let email = client.send(&mail).await?; [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - MailHtml (line 213) stdout ---- [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `MailHtml` in this scope [INFO] [stdout] --> src/lib.rs:214:12 [INFO] [stdout] | [INFO] [stdout] 3 | let mail = MailHtml { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use resend_email_rs::MailHtml; [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 E0422`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 55) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `resend_rs` [INFO] [stdout] --> src/lib.rs:56:5 [INFO] [stdout] | [INFO] [stdout] 3 | use resend_rs::{ResendClient, MailHtml}; [INFO] [stdout] | ^^^^^^^^^ use of unresolved module or unlinked crate `resend_rs` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `resend_rs`, use `cargo add resend_rs` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Email` in this scope [INFO] [stdout] --> src/lib.rs:66:24 [INFO] [stdout] | [INFO] [stdout] 13 | let email_sent_status: Email = client.send(&mail).await.unwrap(); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use resend_email_rs::Email; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/lib.rs:66:51 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_55_0() { [INFO] [stdout] | ---------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 13 | let email_sent_status: Email = client.send(&mail).await.unwrap(); [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0432, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 38) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `resend_rs` [INFO] [stdout] --> src/lib.rs:39:5 [INFO] [stdout] | [INFO] [stdout] 3 | use resend_rs::{ResendClient, MailText}; [INFO] [stdout] | ^^^^^^^^^ use of unresolved module or unlinked crate `resend_rs` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `resend_rs`, use `cargo add resend_rs` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Email` in this scope [INFO] [stdout] --> src/lib.rs:50:24 [INFO] [stdout] | [INFO] [stdout] 14 | let email_sent_status: Email = client.send(&mail).await.unwrap(); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use resend_email_rs::Email; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/lib.rs:50:51 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_38_0() { [INFO] [stdout] | ---------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 14 | let email_sent_status: Email = client.send(&mail).await.unwrap(); [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0432, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - Attachment (line 154) stdout ---- [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Attachment` in this scope [INFO] [stdout] --> src/lib.rs:155:18 [INFO] [stdout] | [INFO] [stdout] 3 | let attachment = Attachment { [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use resend_email_rs::Attachment; [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 E0422`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/client.rs - client (line 31) [INFO] [stdout] src/client.rs - client (line 36) [INFO] [stdout] src/error.rs - error (line 17) [INFO] [stdout] src/lib.rs - (line 28) [INFO] [stdout] src/lib.rs - (line 38) [INFO] [stdout] src/lib.rs - (line 55) [INFO] [stdout] src/lib.rs - (line 71) [INFO] [stdout] src/lib.rs - Attachment (line 154) [INFO] [stdout] src/lib.rs - Email (line 118) [INFO] [stdout] src/lib.rs - MailHtml (line 213) [INFO] [stdout] src/lib.rs - MailText (line 180) [INFO] [stdout] src/lib.rs - ResendClient (line 136) [INFO] [stdout] src/success.rs - success (line 19) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 13 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.27s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "fc65a65431f31de481d65fc2eef33b86a1f17f4738789982b49703b22767ffdb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fc65a65431f31de481d65fc2eef33b86a1f17f4738789982b49703b22767ffdb", kill_on_drop: false }` [INFO] [stdout] fc65a65431f31de481d65fc2eef33b86a1f17f4738789982b49703b22767ffdb