[INFO] fetching crate topgg 1.4.2... [INFO] testing topgg-1.4.2 against master#cdb45c87e2cd43495379f7e867e3cc15dcee9f93 for pr-145838-1 [INFO] extracting crate topgg 1.4.2 into /workspace/builds/worker-0-tc1/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-0-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate topgg 1.4.2 on toolchain cdb45c87e2cd43495379f7e867e3cc15dcee9f93 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "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" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 377 packages to latest compatible versions [INFO] [stderr] Adding axum v0.7.9 (available: v0.8.4) [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" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded typesize-derive v0.1.11 [INFO] [stderr] Downloaded devise_codegen v0.4.2 [INFO] [stderr] Downloaded serde_cow v0.1.2 [INFO] [stderr] Downloaded binascii v0.1.4 [INFO] [stderr] Downloaded devise v0.4.2 [INFO] [stderr] Downloaded typesize v0.1.14 [INFO] [stderr] Downloaded stable-pattern v0.1.0 [INFO] [stderr] Downloaded atomic v0.5.3 [INFO] [stderr] Downloaded state v0.6.0 [INFO] [stderr] Downloaded twilight-cache-inmemory v0.15.4 [INFO] [stderr] Downloaded mini-moka v0.10.3 [INFO] [stderr] Downloaded rocket_http v0.5.1 [INFO] [stderr] Downloaded tokio-tungstenite v0.21.0 [INFO] [stderr] Downloaded rocket_codegen v0.5.1 [INFO] [stderr] Downloaded pulldown-cmark v0.9.6 [INFO] [stderr] Downloaded twilight-model v0.15.4 [INFO] [stderr] Downloaded devise_core v0.4.2 [INFO] [stderr] Downloaded ubyte v0.10.4 [INFO] [stderr] Downloaded warp v0.3.7 [INFO] [stderr] Downloaded command_attr v0.5.3 [INFO] [stderr] Downloaded skeptic v0.13.7 [INFO] [stderr] Downloaded tagptr v0.2.0 [INFO] [stderr] Downloaded uwl v0.6.0 [INFO] [stderr] Downloaded rocket v0.5.1 [INFO] [stderr] Downloaded levenshtein v1.0.5 [INFO] [stderr] Downloaded typemap_rev v0.3.0 [INFO] [stderr] Downloaded serenity v0.12.4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 7d1803c25968898606e9160f572ce9ad258c1274505e074af720e4ea2d93942c [INFO] running `Command { std: "docker" "start" "-a" "7d1803c25968898606e9160f572ce9ad258c1274505e074af720e4ea2d93942c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "7d1803c25968898606e9160f572ce9ad258c1274505e074af720e4ea2d93942c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7d1803c25968898606e9160f572ce9ad258c1274505e074af720e4ea2d93942c", kill_on_drop: false }` [INFO] [stdout] 7d1803c25968898606e9160f572ce9ad258c1274505e074af720e4ea2d93942c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a62b8953655d6ee41623acf822c1ded57b9317d6b4bff5738afac9b02604d350 [INFO] running `Command { std: "docker" "start" "-a" "a62b8953655d6ee41623acf822c1ded57b9317d6b4bff5738afac9b02604d350", kill_on_drop: false }` [INFO] [stderr] Compiling tokio v1.47.1 [INFO] [stderr] Compiling futures-task v0.3.31 [INFO] [stderr] Compiling icu_normalizer v2.0.0 [INFO] [stderr] Compiling chrono v0.4.41 [INFO] [stderr] Compiling futures-util v0.3.31 [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 tokio-util v0.7.16 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling tower v0.5.2 [INFO] [stderr] Compiling h2 v0.4.12 [INFO] [stderr] Compiling tower-http v0.6.6 [INFO] [stderr] Compiling hyper v1.7.0 [INFO] [stderr] Compiling hyper-util v0.1.16 [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 18.09s [INFO] running `Command { std: "docker" "inspect" "a62b8953655d6ee41623acf822c1ded57b9317d6b4bff5738afac9b02604d350", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a62b8953655d6ee41623acf822c1ded57b9317d6b4bff5738afac9b02604d350", kill_on_drop: false }` [INFO] [stdout] a62b8953655d6ee41623acf822c1ded57b9317d6b4bff5738afac9b02604d350 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] bcfc5152f740119dbd4e59e44add46590c68a0bc864189ea0e80506ffe2066de [INFO] running `Command { std: "docker" "start" "-a" "bcfc5152f740119dbd4e59e44add46590c68a0bc864189ea0e80506ffe2066de", 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.26s [INFO] running `Command { std: "docker" "inspect" "bcfc5152f740119dbd4e59e44add46590c68a0bc864189ea0e80506ffe2066de", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bcfc5152f740119dbd4e59e44add46590c68a0bc864189ea0e80506ffe2066de", kill_on_drop: false }` [INFO] [stdout] bcfc5152f740119dbd4e59e44add46590c68a0bc864189ea0e80506ffe2066de [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 4ffb39c5b7d7c68eafab37668dceda16c9c8624fd5aa94aa6ec7ed790091c315 [INFO] running `Command { std: "docker" "start" "-a" "4ffb39c5b7d7c68eafab37668dceda16c9c8624fd5aa94aa6ec7ed790091c315", kill_on_drop: false }` [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.20s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/topgg-0f0edc6887c16cf6) [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 topgg [INFO] [stdout] [INFO] [stdout] running 13 tests [INFO] [stdout] test src/lib.rs - (line 101) - compile ... FAILED [INFO] [stdout] test src/lib.rs - (line 210) - compile ... FAILED [INFO] [stdout] test src/lib.rs - (line 56) - compile ... FAILED [INFO] [stdout] test src/bot.rs - bot::Stats (line 176) - 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/bot.rs - bot::Stats::from_shards (line 280) - compile ... ok [INFO] [stdout] test src/lib.rs - (line 158) - compile ... FAILED [INFO] [stdout] test src/bot.rs - bot::Stats (line 168) - compile ... ok [INFO] [stdout] test src/lib.rs - (line 39) - compile ... FAILED [INFO] [stdout] test src/lib.rs - (line 347) - compile ... FAILED [INFO] [stdout] test src/lib.rs - (line 255) - compile ... FAILED [INFO] [stdout] test src/lib.rs - (line 302) - compile ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [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 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 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 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 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 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 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] [stderr] error: doctest failed, to rerun pass `--doc` [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] ---- 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 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] [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.42s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "4ffb39c5b7d7c68eafab37668dceda16c9c8624fd5aa94aa6ec7ed790091c315", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4ffb39c5b7d7c68eafab37668dceda16c9c8624fd5aa94aa6ec7ed790091c315", kill_on_drop: false }` [INFO] [stdout] 4ffb39c5b7d7c68eafab37668dceda16c9c8624fd5aa94aa6ec7ed790091c315