[INFO] fetching crate topgg 1.4.2... [INFO] testing topgg-1.4.2 against try#2440211fe03bc45c89b6dc1a3df18382ce91e32b for pr-146098-1 [INFO] extracting crate topgg 1.4.2 into /workspace/builds/worker-1-tc2/source [INFO] started tweaking crates.io crate topgg 1.4.2 [INFO] finished tweaking crates.io crate topgg 1.4.2 [INFO] tweaked toml for crates.io crate topgg 1.4.2 written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate topgg 1.4.2 on toolchain 2440211fe03bc45c89b6dc1a3df18382ce91e32b [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+2440211fe03bc45c89b6dc1a3df18382ce91e32b" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+2440211fe03bc45c89b6dc1a3df18382ce91e32b" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 372 packages to latest compatible versions [INFO] [stderr] Adding axum v0.7.9 (available: v0.8.6) [INFO] [stderr] Adding twilight-cache-inmemory v0.15.4 (available: v0.16.0) [INFO] [stderr] Adding twilight-model v0.15.4 (available: v0.16.0) [INFO] [stderr] Adding warp v0.3.7 (available: v0.4.2) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+2440211fe03bc45c89b6dc1a3df18382ce91e32b" "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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+2440211fe03bc45c89b6dc1a3df18382ce91e32b" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] e70b8c31f1ff2a545c2358710315fccee2af8f406e1da732f06055d42aa79f20 [INFO] running `Command { std: "docker" "start" "-a" "e70b8c31f1ff2a545c2358710315fccee2af8f406e1da732f06055d42aa79f20", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e70b8c31f1ff2a545c2358710315fccee2af8f406e1da732f06055d42aa79f20", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e70b8c31f1ff2a545c2358710315fccee2af8f406e1da732f06055d42aa79f20", kill_on_drop: false }` [INFO] [stdout] e70b8c31f1ff2a545c2358710315fccee2af8f406e1da732f06055d42aa79f20 [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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+2440211fe03bc45c89b6dc1a3df18382ce91e32b" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6cf377d5c61dfb4e0014d1da7d5978c5e274c75b362f26e7780f43b06258100a [INFO] running `Command { std: "docker" "start" "-a" "6cf377d5c61dfb4e0014d1da7d5978c5e274c75b362f26e7780f43b06258100a", kill_on_drop: false }` [INFO] [stderr] Compiling stable_deref_trait v1.2.0 [INFO] [stderr] Compiling shlex v1.3.0 [INFO] [stderr] Compiling find-msvc-tools v0.1.2 [INFO] [stderr] Compiling pkg-config v0.3.32 [INFO] [stderr] Compiling vcpkg v0.2.15 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling writeable v0.6.1 [INFO] [stderr] Compiling litemap v0.8.0 [INFO] [stderr] Compiling smallvec v1.15.1 [INFO] [stderr] Compiling serde_core v1.0.228 [INFO] [stderr] Compiling icu_normalizer_data v2.0.0 [INFO] [stderr] Compiling icu_properties_data v2.0.1 [INFO] [stderr] Compiling tracing-core v0.1.34 [INFO] [stderr] Compiling futures-task v0.3.31 [INFO] [stderr] Compiling syn v2.0.106 [INFO] [stderr] Compiling mio v1.0.4 [INFO] [stderr] Compiling socket2 v0.6.0 [INFO] [stderr] Compiling http v1.3.1 [INFO] [stderr] Compiling bitflags v2.9.4 [INFO] [stderr] Compiling foreign-types-shared v0.1.1 [INFO] [stderr] Compiling httparse v1.10.1 [INFO] [stderr] Compiling cc v1.2.39 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Compiling hashbrown v0.16.0 [INFO] [stderr] Compiling equivalent v1.0.2 [INFO] [stderr] Compiling openssl v0.10.73 [INFO] [stderr] Compiling futures-sink v0.3.31 [INFO] [stderr] Compiling percent-encoding v2.3.2 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling tokio v1.47.1 [INFO] [stderr] Compiling foreign-types v0.3.2 [INFO] [stderr] Compiling try-lock v0.2.5 [INFO] [stderr] Compiling tower-service v0.3.3 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Compiling want v0.3.1 [INFO] [stderr] Compiling futures-channel v0.3.31 [INFO] [stderr] Compiling openssl-probe v0.1.6 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling form_urlencoded v1.2.2 [INFO] [stderr] Compiling sync_wrapper v1.0.2 [INFO] [stderr] Compiling base64 v0.22.1 [INFO] [stderr] Compiling ipnet v2.11.0 [INFO] [stderr] Compiling utf8_iter v1.0.4 [INFO] [stderr] Compiling tower-layer v0.3.3 [INFO] [stderr] Compiling serde_json v1.0.145 [INFO] [stderr] Compiling zeroize v1.8.2 [INFO] [stderr] Compiling iri-string v0.7.8 [INFO] [stderr] Compiling encoding_rs v0.8.35 [INFO] [stderr] Compiling mime v0.3.17 [INFO] [stderr] Compiling rustls-pki-types v1.12.0 [INFO] [stderr] Compiling http-body v1.0.1 [INFO] [stderr] Compiling indexmap v2.11.4 [INFO] [stderr] Compiling memchr v2.7.6 [INFO] [stderr] Compiling http-body-util v0.1.3 [INFO] [stderr] Compiling openssl-sys v0.9.109 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.0 [INFO] [stderr] Compiling zerovec-derive v0.11.1 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling tokio-util v0.7.16 [INFO] [stderr] Compiling tower v0.5.2 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling tower-http v0.6.6 [INFO] [stderr] Compiling yoke v0.8.0 [INFO] [stderr] Compiling zerotrie v0.2.2 [INFO] [stderr] Compiling h2 v0.4.12 [INFO] [stderr] Compiling zerovec v0.11.4 [INFO] [stderr] Compiling tinystr v0.8.1 [INFO] [stderr] Compiling potential_utf v0.1.3 [INFO] [stderr] Compiling icu_locale_core v2.0.0 [INFO] [stderr] Compiling icu_collections v2.0.0 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling chrono v0.4.42 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling icu_provider v2.0.0 [INFO] [stderr] Compiling icu_properties v2.0.1 [INFO] [stderr] Compiling icu_normalizer v2.0.0 [INFO] [stderr] Compiling hyper v1.7.0 [INFO] [stderr] Compiling idna_adapter v1.2.1 [INFO] [stderr] Compiling idna v1.1.0 [INFO] [stderr] Compiling url v2.5.7 [INFO] [stderr] Compiling hyper-util v0.1.17 [INFO] [stderr] Compiling hyper-tls v0.6.0 [INFO] [stderr] Compiling reqwest v0.12.23 [INFO] [stderr] Compiling topgg v1.4.2 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 40.77s [INFO] running `Command { std: "docker" "inspect" "6cf377d5c61dfb4e0014d1da7d5978c5e274c75b362f26e7780f43b06258100a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6cf377d5c61dfb4e0014d1da7d5978c5e274c75b362f26e7780f43b06258100a", kill_on_drop: false }` [INFO] [stdout] 6cf377d5c61dfb4e0014d1da7d5978c5e274c75b362f26e7780f43b06258100a [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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+2440211fe03bc45c89b6dc1a3df18382ce91e32b" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 021bb0c46753bd151bcc47129d8f4b8d2a441f7e4d5d92a76b43a2bddd4d7610 [INFO] running `Command { std: "docker" "start" "-a" "021bb0c46753bd151bcc47129d8f4b8d2a441f7e4d5d92a76b43a2bddd4d7610", kill_on_drop: false }` [INFO] [stderr] Compiling topgg v1.4.2 (/opt/rustwide/workdir) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.21s [INFO] running `Command { std: "docker" "inspect" "021bb0c46753bd151bcc47129d8f4b8d2a441f7e4d5d92a76b43a2bddd4d7610", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "021bb0c46753bd151bcc47129d8f4b8d2a441f7e4d5d92a76b43a2bddd4d7610", kill_on_drop: false }` [INFO] [stdout] 021bb0c46753bd151bcc47129d8f4b8d2a441f7e4d5d92a76b43a2bddd4d7610 [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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+2440211fe03bc45c89b6dc1a3df18382ce91e32b" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 3cb393f132040132be1832d6be907b3c9f1558c34104547b5a4ba9a184a8bfba [INFO] running `Command { std: "docker" "start" "-a" "3cb393f132040132be1832d6be907b3c9f1558c34104547b5a4ba9a184a8bfba", kill_on_drop: false }` [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.13s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/topgg-11fe8c89f2aefe51) [INFO] [stderr] Doc-tests topgg [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] running 13 tests [INFO] [stdout] test src/bot.rs - bot::Stats (line 168) - compile ... ok [INFO] [stdout] test src/bot.rs - bot::Stats (line 176) - compile ... ok [INFO] [stdout] test src/bot.rs - bot::Stats::from_shards (line 280) - compile ... ok [INFO] [stdout] test src/bot.rs - bot::Stats (line 186) - compile ... ok [INFO] [stdout] test src/lib.rs - (line 73) - compile ... FAILED [INFO] [stdout] test src/lib.rs - (line 56) - compile ... FAILED [INFO] [stdout] test src/lib.rs - (line 39) - compile ... FAILED [INFO] [stdout] test src/lib.rs - (line 158) - compile ... FAILED [INFO] [stdout] test src/lib.rs - (line 302) - compile ... FAILED [INFO] [stdout] test src/lib.rs - (line 210) - compile ... FAILED [INFO] [stdout] test src/lib.rs - (line 101) - compile ... FAILED [INFO] [stdout] test src/lib.rs - (line 255) - compile ... FAILED [INFO] [stdout] test src/lib.rs - (line 347) - compile ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - (line 73) stdout ---- [INFO] [stdout] error: environment variable `TOPGG_TOKEN` not defined at compile time [INFO] [stdout] --> src/lib.rs:79:28 [INFO] [stdout] | [INFO] [stdout] 8 | let client = Client::new(env!("TOPGG_TOKEN").to_string()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: use `std::env::var("TOPGG_TOKEN")` to read the variable at run time [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tokio` [INFO] [stdout] --> src/lib.rs:77:3 [INFO] [stdout] | [INFO] [stdout] 6 | #[tokio::main] [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `tokio` [INFO] [stdout] [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/lib.rs:78:1 [INFO] [stdout] | [INFO] [stdout] 7 | async fn main() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0433, E0752. [INFO] [stdout] For more information about an error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 56) stdout ---- [INFO] [stdout] error: environment variable `TOPGG_TOKEN` not defined at compile time [INFO] [stdout] --> src/lib.rs:62:28 [INFO] [stdout] | [INFO] [stdout] 8 | let client = Client::new(env!("TOPGG_TOKEN").to_string()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: use `std::env::var("TOPGG_TOKEN")` to read the variable at run time [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tokio` [INFO] [stdout] --> src/lib.rs:60:3 [INFO] [stdout] | [INFO] [stdout] 6 | #[tokio::main] [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `tokio` [INFO] [stdout] [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/lib.rs:61:1 [INFO] [stdout] | [INFO] [stdout] 7 | async fn main() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0433, E0752. [INFO] [stdout] For more information about an error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 39) stdout ---- [INFO] [stdout] error: environment variable `TOPGG_TOKEN` not defined at compile time [INFO] [stdout] --> src/lib.rs:45:28 [INFO] [stdout] | [INFO] [stdout] 8 | let client = Client::new(env!("TOPGG_TOKEN").to_string()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: use `std::env::var("TOPGG_TOKEN")` to read the variable at run time [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tokio` [INFO] [stdout] --> src/lib.rs:43:3 [INFO] [stdout] | [INFO] [stdout] 6 | #[tokio::main] [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `tokio` [INFO] [stdout] [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/lib.rs:44:1 [INFO] [stdout] | [INFO] [stdout] 7 | async fn main() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0433, E0752. [INFO] [stdout] For more information about an error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 158) stdout ---- [INFO] [stdout] error: environment variable `TOPGG_TOKEN` not defined at compile time [INFO] [stdout] --> src/lib.rs:166:35 [INFO] [stdout] | [INFO] [stdout] 10 | let client = topgg::Client::new(env!("TOPGG_TOKEN").to_string()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: use `std::env::var("TOPGG_TOKEN")` to read the variable at run time [INFO] [stdout] [INFO] [stdout] error: environment variable `DISCORD_TOKEN` not defined at compile time [INFO] [stdout] --> src/lib.rs:171:5 [INFO] [stdout] | [INFO] [stdout] 15 | env!("DISCORD_TOKEN").to_string(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: use `std::env::var("DISCORD_TOKEN")` to read the variable at run time [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `topgg::Autoposter` [INFO] [stdout] --> src/lib.rs:161:5 [INFO] [stdout] | [INFO] [stdout] 5 | use topgg::Autoposter; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ no `Autoposter` in the root [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `twilight_gateway` [INFO] [stdout] --> src/lib.rs:162:5 [INFO] [stdout] | [INFO] [stdout] 6 | use twilight_gateway::{Event, Intents, Shard, ShardId}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `twilight_gateway` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `twilight_gateway`, use `cargo add twilight_gateway` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tokio` [INFO] [stdout] --> src/lib.rs:164:3 [INFO] [stdout] | [INFO] [stdout] 8 | #[tokio::main] [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `tokio` [INFO] [stdout] [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/lib.rs:165:1 [INFO] [stdout] | [INFO] [stdout] 9 | async fn main() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0433, E0752. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 302) stdout ---- [INFO] [stdout] error: environment variable `TOPGG_WEBHOOK_PASSWORD` not defined at compile time [INFO] [stdout] --> src/lib.rs:317:27 [INFO] [stdout] | [INFO] [stdout] 17 | match vote.authenticate(env!("TOPGG_WEBHOOK_PASSWORD")) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: use `std::env::var("TOPGG_WEBHOOK_PASSWORD")` to read the variable at run time [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `topgg::IncomingVote` [INFO] [stdout] --> src/lib.rs:308:5 [INFO] [stdout] | [INFO] [stdout] 8 | use topgg::IncomingVote; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ no `IncomingVote` in the root [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `rocket` [INFO] [stdout] --> src/lib.rs:307:5 [INFO] [stdout] | [INFO] [stdout] 7 | use rocket::{get, http::Status, post, routes}; [INFO] [stdout] | ^^^^^^ use of unresolved module or unlinked crate `rocket` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rocket`, use `cargo add rocket` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `rocket` [INFO] [stdout] --> src/lib.rs:307:5 [INFO] [stdout] | [INFO] [stdout] 7 | use rocket::{get, http::Status, post, routes}; [INFO] [stdout] | ^^^^^^ use of unresolved module or unlinked crate `rocket` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rocket`, use `cargo add rocket` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `rocket` [INFO] [stdout] --> src/lib.rs:332:3 [INFO] [stdout] | [INFO] [stdout] 32 | rocket::ignite() [INFO] [stdout] | ^^^^^^ use of unresolved module or unlinked crate `rocket` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rocket`, use `cargo add rocket` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 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/lib.rs - (line 210) stdout ---- [INFO] [stdout] error: environment variable `TOPGG_WEBHOOK_PASSWORD` not defined at compile time [INFO] [stdout] --> src/lib.rs:226:27 [INFO] [stdout] | [INFO] [stdout] 18 | match vote.authenticate(env!("TOPGG_WEBHOOK_PASSWORD")) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: use `std::env::var("TOPGG_WEBHOOK_PASSWORD")` to read the variable at run time [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `actix_web` [INFO] [stdout] --> src/lib.rs:212:5 [INFO] [stdout] | [INFO] [stdout] 4 | use actix_web::{ [INFO] [stdout] | ^^^^^^^^^ use of unresolved module or unlinked crate `actix_web` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `actix_web`, use `cargo add actix_web` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `topgg::IncomingVote` [INFO] [stdout] --> src/lib.rs:217:5 [INFO] [stdout] | [INFO] [stdout] 9 | use topgg::IncomingVote; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ no `IncomingVote` in the root [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `actix_web` [INFO] [stdout] --> src/lib.rs:212:5 [INFO] [stdout] | [INFO] [stdout] 4 | use actix_web::{ [INFO] [stdout] | ^^^^^^^^^ use of unresolved module or unlinked crate `actix_web` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `actix_web`, use `cargo add actix_web` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `actix_web` [INFO] [stdout] --> src/lib.rs:236:3 [INFO] [stdout] | [INFO] [stdout] 28 | #[actix_web::main] [INFO] [stdout] | ^^^^^^^^^ use of unresolved module or unlinked crate `actix_web` [INFO] [stdout] [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/lib.rs:237:1 [INFO] [stdout] | [INFO] [stdout] 29 | async fn main() -> io::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0433, E0752. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 101) stdout ---- [INFO] [stdout] error: environment variable `TOPGG_TOKEN` not defined at compile time [INFO] [stdout] --> src/lib.rs:126:41 [INFO] [stdout] | [INFO] [stdout] 27 | let topgg_client = topgg::Client::new(env!("TOPGG_TOKEN").to_string()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: use `std::env::var("TOPGG_TOKEN")` to read the variable at run time [INFO] [stdout] [INFO] [stdout] error: environment variable `DISCORD_TOKEN` not defined at compile time [INFO] [stdout] --> src/lib.rs:129:19 [INFO] [stdout] | [INFO] [stdout] 30 | let bot_token = env!("DISCORD_TOKEN").to_string(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: use `std::env::var("DISCORD_TOKEN")` to read the variable at run time [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `serenity` [INFO] [stdout] --> src/lib.rs:104:5 [INFO] [stdout] | [INFO] [stdout] 5 | use serenity::{client::{Client, Context, EventHandler}, model::{channel::Message, gateway::Ready}}; [INFO] [stdout] | ^^^^^^^^ use of unresolved module or unlinked crate `serenity` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `serenity`, use `cargo add serenity` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `topgg::Autoposter` [INFO] [stdout] --> src/lib.rs:105:5 [INFO] [stdout] | [INFO] [stdout] 6 | use topgg::Autoposter; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ no `Autoposter` in the root [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tokio` [INFO] [stdout] --> src/lib.rs:124:3 [INFO] [stdout] | [INFO] [stdout] 25 | #[tokio::main] [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `tokio` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `serenity` [INFO] [stdout] --> src/lib.rs:109:3 [INFO] [stdout] | [INFO] [stdout] 10 | #[serenity::async_trait] [INFO] [stdout] | ^^^^^^^^ use of unresolved module or unlinked crate `serenity` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `GatewayIntents` [INFO] [stdout] --> src/lib.rs:130:17 [INFO] [stdout] | [INFO] [stdout] 31 | let intents = GatewayIntents::GUILD_MESSAGES | GatewayIntents::GUILDS | GatewayIntents::MESSAGE_CONTENT; [INFO] [stdout] | ^^^^^^^^^^^^^^ use of undeclared type `GatewayIntents` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `GatewayIntents` [INFO] [stdout] --> src/lib.rs:130:50 [INFO] [stdout] | [INFO] [stdout] 31 | let intents = GatewayIntents::GUILD_MESSAGES | GatewayIntents::GUILDS | GatewayIntents::MESSAGE_CONTENT; [INFO] [stdout] | ^^^^^^^^^^^^^^ use of undeclared type `GatewayIntents` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `GatewayIntents` [INFO] [stdout] --> src/lib.rs:130:75 [INFO] [stdout] | [INFO] [stdout] 31 | let intents = GatewayIntents::GUILD_MESSAGES | GatewayIntents::GUILDS | GatewayIntents::MESSAGE_CONTENT; [INFO] [stdout] | ^^^^^^^^^^^^^^ use of undeclared type `GatewayIntents` [INFO] [stdout] [INFO] [stdout] error: aborting due to 9 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/lib.rs - (line 255) stdout ---- [INFO] [stdout] error: environment variable `TOPGG_WEBHOOK_PASSWORD` not defined at compile time [INFO] [stdout] --> src/lib.rs:280:26 [INFO] [stdout] | [INFO] [stdout] 27 | topgg::axum::webhook(env!("TOPGG_WEBHOOK_PASSWORD").to_string(), Arc::clone(&state)), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: use `std::env::var("TOPGG_WEBHOOK_PASSWORD")` to read the variable at run time [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `axum` [INFO] [stdout] --> src/lib.rs:257:5 [INFO] [stdout] | [INFO] [stdout] 4 | use axum::{routing::get, Router, Server}; [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `axum` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `axum`, use `cargo add axum` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved imports `topgg::Vote`, `topgg::VoteHandler` [INFO] [stdout] --> src/lib.rs:259:13 [INFO] [stdout] | [INFO] [stdout] 6 | use topgg::{Vote, VoteHandler}; [INFO] [stdout] | ^^^^ ^^^^^^^^^^^ no `VoteHandler` in the root [INFO] [stdout] | | [INFO] [stdout] | no `Vote` in the root [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `axum` [INFO] [stdout] --> src/lib.rs:257:5 [INFO] [stdout] | [INFO] [stdout] 4 | use axum::{routing::get, Router, Server}; [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `axum` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `axum`, use `cargo add axum` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tokio` [INFO] [stdout] --> src/lib.rs:274:3 [INFO] [stdout] | [INFO] [stdout] 21 | #[tokio::main] [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `tokio` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `axum` [INFO] [stdout] --> src/lib.rs:263:3 [INFO] [stdout] | [INFO] [stdout] 10 | #[axum::async_trait] [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `axum` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `axum` in `topgg` [INFO] [stdout] --> src/lib.rs:280:12 [INFO] [stdout] | [INFO] [stdout] 27 | topgg::axum::webhook(env!("TOPGG_WEBHOOK_PASSWORD").to_string(), Arc::clone(&state)), [INFO] [stdout] | ^^^^ could not find `axum` in `topgg` [INFO] [stdout] [INFO] [stdout] error: aborting due to 7 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/lib.rs - (line 347) stdout ---- [INFO] [stdout] error: environment variable `TOPGG_WEBHOOK_PASSWORD` not defined at compile time [INFO] [stdout] --> src/lib.rs:369:5 [INFO] [stdout] | [INFO] [stdout] 24 | env!("TOPGG_WEBHOOK_PASSWORD").to_string(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: use `std::env::var("TOPGG_WEBHOOK_PASSWORD")` to read the variable at run time [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved imports `topgg::Vote`, `topgg::VoteHandler` [INFO] [stdout] --> src/lib.rs:350:13 [INFO] [stdout] | [INFO] [stdout] 5 | use topgg::{Vote, VoteHandler}; [INFO] [stdout] | ^^^^ ^^^^^^^^^^^ no `VoteHandler` in the root [INFO] [stdout] | | [INFO] [stdout] | no `Vote` in the root [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `warp` [INFO] [stdout] --> src/lib.rs:351:5 [INFO] [stdout] | [INFO] [stdout] 6 | use warp::Filter; [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `warp` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `warp`, use `cargo add warp` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tokio` [INFO] [stdout] --> src/lib.rs:362:3 [INFO] [stdout] | [INFO] [stdout] 17 | #[tokio::main] [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `tokio` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `async_trait` [INFO] [stdout] --> src/lib.rs:355:3 [INFO] [stdout] | [INFO] [stdout] 10 | #[async_trait::async_trait] [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `async_trait` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `warp` in `topgg` [INFO] [stdout] --> src/lib.rs:367:24 [INFO] [stdout] | [INFO] [stdout] 22 | let webhook = topgg::warp::webhook( [INFO] [stdout] | ^^^^ could not find `warp` in `topgg` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `warp` [INFO] [stdout] --> src/lib.rs:373:16 [INFO] [stdout] | [INFO] [stdout] 28 | let routes = warp::get().map(|| "Hello, World!").or(webhook); [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `warp` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `warp`, use `cargo add warp` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `warp` [INFO] [stdout] --> src/lib.rs:377:3 [INFO] [stdout] | [INFO] [stdout] 32 | warp::serve(routes).run(addr).await [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `warp` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `warp`, use `cargo add warp` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 8 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/lib.rs - (line 101) [INFO] [stdout] src/lib.rs - (line 158) [INFO] [stdout] src/lib.rs - (line 210) [INFO] [stdout] src/lib.rs - (line 255) [INFO] [stdout] src/lib.rs - (line 302) [INFO] [stdout] src/lib.rs - (line 347) [INFO] [stdout] src/lib.rs - (line 39) [INFO] [stdout] src/lib.rs - (line 56) [INFO] [stdout] src/lib.rs - (line 73) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 4 passed; 9 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.11s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "3cb393f132040132be1832d6be907b3c9f1558c34104547b5a4ba9a184a8bfba", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3cb393f132040132be1832d6be907b3c9f1558c34104547b5a4ba9a184a8bfba", kill_on_drop: false }` [INFO] [stdout] 3cb393f132040132be1832d6be907b3c9f1558c34104547b5a4ba9a184a8bfba