[INFO] fetching crate tower-otel-http-metrics 0.16.0... [INFO] testing tower-otel-http-metrics-0.16.0 against beta-2025-09-21 for beta-1.91-3 [INFO] extracting crate tower-otel-http-metrics 0.16.0 into /workspace/builds/worker-5-tc2/source [INFO] started tweaking crates.io crate tower-otel-http-metrics 0.16.0 [INFO] finished tweaking crates.io crate tower-otel-http-metrics 0.16.0 [INFO] tweaked toml for crates.io crate tower-otel-http-metrics 0.16.0 written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate tower-otel-http-metrics 0.16.0 on toolchain beta-2025-09-21 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+beta-2025-09-21" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate tower-otel-http-metrics 0.16.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" "+beta-2025-09-21" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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" "+beta-2025-09-21" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 21ae8733221ad7d8c644efd534015f618120b3402b39a91be60fc5c658447e39 [INFO] running `Command { std: "docker" "start" "-a" "21ae8733221ad7d8c644efd534015f618120b3402b39a91be60fc5c658447e39", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "21ae8733221ad7d8c644efd534015f618120b3402b39a91be60fc5c658447e39", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "21ae8733221ad7d8c644efd534015f618120b3402b39a91be60fc5c658447e39", kill_on_drop: false }` [INFO] [stdout] 21ae8733221ad7d8c644efd534015f618120b3402b39a91be60fc5c658447e39 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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" "+beta-2025-09-21" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ced394ebfd18715dfdf816d7274d23036658d9de05899f1452cc3195595fcf6f [INFO] running `Command { std: "docker" "start" "-a" "ced394ebfd18715dfdf816d7274d23036658d9de05899f1452cc3195595fcf6f", kill_on_drop: false }` [INFO] [stderr] Compiling opentelemetry v0.30.0 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling tower-otel-http-metrics v0.16.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.19s [INFO] running `Command { std: "docker" "inspect" "ced394ebfd18715dfdf816d7274d23036658d9de05899f1452cc3195595fcf6f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ced394ebfd18715dfdf816d7274d23036658d9de05899f1452cc3195595fcf6f", kill_on_drop: false }` [INFO] [stdout] ced394ebfd18715dfdf816d7274d23036658d9de05899f1452cc3195595fcf6f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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" "+beta-2025-09-21" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0a119acb21ba6668a0b6e3dd12d137ecd9c8e225af92a9b0459e15fced1e7488 [INFO] running `Command { std: "docker" "start" "-a" "0a119acb21ba6668a0b6e3dd12d137ecd9c8e225af92a9b0459e15fced1e7488", kill_on_drop: false }` [INFO] [stderr] Compiling tower-otel-http-metrics v0.16.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.44s [INFO] running `Command { std: "docker" "inspect" "0a119acb21ba6668a0b6e3dd12d137ecd9c8e225af92a9b0459e15fced1e7488", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0a119acb21ba6668a0b6e3dd12d137ecd9c8e225af92a9b0459e15fced1e7488", kill_on_drop: false }` [INFO] [stdout] 0a119acb21ba6668a0b6e3dd12d137ecd9c8e225af92a9b0459e15fced1e7488 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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" "+beta-2025-09-21" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 3c618f670dbe6677da94cb1a71ced96ee7fde8e85d4c4e70fa82a753dc755d2c [INFO] running `Command { std: "docker" "start" "-a" "3c618f670dbe6677da94cb1a71ced96ee7fde8e85d4c4e70fa82a753dc755d2c", kill_on_drop: false }` [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.05s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/tower_otel_http_metrics-5d9fa34283b1d6d3) [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 tower_otel_http_metrics [INFO] [stdout] [INFO] [stdout] running 2 tests [INFO] [stdout] test src/lib.rs - (line 107) ... FAILED [INFO] [stdout] test src/lib.rs - (line 18) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - (line 107) stdout ---- [INFO] [stdout] error[E0254]: the name `tower_otel_http_metrics` is defined multiple times [INFO] [stdout] --> src/lib.rs:123:5 [INFO] [stdout] | [INFO] [stdout] 3 | extern crate r#tower_otel_http_metrics; [INFO] [stdout] | --------------------------------------- previous import of the extern crate `tower_otel_http_metrics` here [INFO] [stdout] ... [INFO] [stdout] 18 | use tower_otel_http_metrics; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ `tower_otel_http_metrics` reimported here [INFO] [stdout] | [INFO] [stdout] = note: `tower_otel_http_metrics` must be defined only once in the type namespace of this module [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `hyper` [INFO] [stdout] --> src/lib.rs:110:5 [INFO] [stdout] | [INFO] [stdout] 5 | use hyper::body::Bytes; [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `hyper` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `hyper`, use `cargo add hyper` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `http_body_util` [INFO] [stdout] --> src/lib.rs:109:5 [INFO] [stdout] | [INFO] [stdout] 4 | use http_body_util::Full; [INFO] [stdout] | ^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `http_body_util` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `http_body_util`, use `cargo add http_body_util` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `hyper` [INFO] [stdout] --> src/lib.rs:111:5 [INFO] [stdout] | [INFO] [stdout] 6 | use hyper::{Request, Response}; [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `hyper` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `hyper`, use `cargo add hyper` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `opentelemetry_sdk` [INFO] [stdout] --> src/lib.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 11 | use opentelemetry_sdk::metrics::PeriodicReader; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `opentelemetry_sdk` [INFO] [stdout] | [INFO] [stdout] help: there is a crate or module with a similar name [INFO] [stdout] | [INFO] [stdout] 11 - use opentelemetry_sdk::metrics::PeriodicReader; [INFO] [stdout] 11 + use opentelemetry::metrics::PeriodicReader; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved imports `opentelemetry_otlp`, `opentelemetry_otlp` [INFO] [stdout] --> src/lib.rs:113:5 [INFO] [stdout] | [INFO] [stdout] 8 | use opentelemetry_otlp::{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `opentelemetry_otlp` [INFO] [stdout] 9 | WithExportConfig, {self}, [INFO] [stdout] | ^^^^ no external crate `opentelemetry_otlp` [INFO] [stdout] | [INFO] [stdout] help: there is a crate or module with a similar name [INFO] [stdout] | [INFO] [stdout] 8 - use opentelemetry_otlp::{ [INFO] [stdout] 8 + use opentelemetry::{ [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tokio` [INFO] [stdout] --> src/lib.rs:121:5 [INFO] [stdout] | [INFO] [stdout] 16 | use tokio::net::TcpListener; [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `tokio` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `tokio`, use `cargo add tokio` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `opentelemetry_sdk` [INFO] [stdout] --> src/lib.rs:117:5 [INFO] [stdout] | [INFO] [stdout] 12 | use opentelemetry_sdk::Resource; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `opentelemetry_sdk` [INFO] [stdout] | [INFO] [stdout] help: there is a crate or module with a similar name [INFO] [stdout] | [INFO] [stdout] 12 - use opentelemetry_sdk::Resource; [INFO] [stdout] 12 + use opentelemetry::Resource; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `tower` [INFO] [stdout] --> src/lib.rs:122:5 [INFO] [stdout] | [INFO] [stdout] 17 | use tower::ServiceBuilder; [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `tower` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `tower`, use `cargo add tower` 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:157:3 [INFO] [stdout] | [INFO] [stdout] 52 | #[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 `hyper` [INFO] [stdout] --> src/lib.rs:147:31 [INFO] [stdout] | [INFO] [stdout] 42 | async fn handle(_req: Request) -> Result>, Infallible> { [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `hyper` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `hyper`, use `cargo add hyper` 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:150:9 [INFO] [stdout] | [INFO] [stdout] 45 | tokio::time::sleep(Duration::from_secs(slow_request_secs)).await; [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `tokio` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `tokio`, use `cargo add tokio` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `opentelemetry_sdk` [INFO] [stdout] --> src/lib.rs:169:26 [INFO] [stdout] | [INFO] [stdout] 64 | let meter_provider = opentelemetry_sdk::metrics::SdkMeterProvider::builder() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `opentelemetry_sdk` [INFO] [stdout] | [INFO] [stdout] help: there is a crate or module with a similar name [INFO] [stdout] | [INFO] [stdout] 64 - let meter_provider = opentelemetry_sdk::metrics::SdkMeterProvider::builder() [INFO] [stdout] 64 + let meter_provider = opentelemetry::metrics::SdkMeterProvider::builder() [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `hyper_util` [INFO] [stdout] --> src/lib.rs:185:25 [INFO] [stdout] | [INFO] [stdout] 80 | let hyper_service = hyper_util::service::TowerToHyperService::new(tower_service); [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `hyper_util` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `hyper_util`, use `cargo add hyper_util` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `hyper_util` [INFO] [stdout] --> src/lib.rs:193:18 [INFO] [stdout] | [INFO] [stdout] 88 | let io = hyper_util::rt::TokioIo::new(stream); [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `hyper_util` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `hyper_util`, use `cargo add hyper_util` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `hyper_util` [INFO] [stdout] --> src/lib.rs:198:62 [INFO] [stdout] | [INFO] [stdout] 93 | hyper_util::server::conn::auto::Builder::new(hyper_util::rt::TokioExecutor::new()) [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `hyper_util` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `hyper_util`, use `cargo add hyper_util` 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:196:9 [INFO] [stdout] | [INFO] [stdout] 91 | tokio::task::spawn(async move { [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `tokio` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `tokio`, use `cargo add tokio` to add it to your `Cargo.toml` [INFO] [stdout] help: consider importing this module [INFO] [stdout] | [INFO] [stdout] 4 + use futures_util::task; [INFO] [stdout] | [INFO] [stdout] help: if you import `task`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 91 - tokio::task::spawn(async move { [INFO] [stdout] 91 + task::spawn(async move { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `hyper_util` [INFO] [stdout] --> src/lib.rs:198:17 [INFO] [stdout] | [INFO] [stdout] 93 | hyper_util::server::conn::auto::Builder::new(hyper_util::rt::TokioExecutor::new()) [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `hyper_util` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `hyper_util`, use `cargo add hyper_util` to add it to your `Cargo.toml` [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 4 + use std::thread::Builder; [INFO] [stdout] | [INFO] [stdout] 4 + use http::request::Builder; [INFO] [stdout] | [INFO] [stdout] 4 + use http::response::Builder; [INFO] [stdout] | [INFO] [stdout] 4 + use http::uri::Builder; [INFO] [stdout] | [INFO] [stdout] help: if you import `Builder`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 93 - hyper_util::server::conn::auto::Builder::new(hyper_util::rt::TokioExecutor::new()) [INFO] [stdout] 93 + Builder::new(hyper_util::rt::TokioExecutor::new()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `rand_09` [INFO] [stdout] --> src/lib.rs:148:8 [INFO] [stdout] | [INFO] [stdout] 43 | if rand_09::random_range(0..100) < PCT_SLOW_REQUESTS { [INFO] [stdout] | ^^^^^^^ use of unresolved module or unlinked crate `rand_09` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rand_09`, use `cargo add rand_09` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `rand_09` [INFO] [stdout] --> src/lib.rs:149:33 [INFO] [stdout] | [INFO] [stdout] 44 | let slow_request_secs = rand_09::random_range(0..=MAX_SLOW_REQUEST_SEC); [INFO] [stdout] | ^^^^^^^ use of unresolved module or unlinked crate `rand_09` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rand_09`, use `cargo add rand_09` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `rand_09` [INFO] [stdout] --> src/lib.rs:152:30 [INFO] [stdout] | [INFO] [stdout] 47 | let body_size_multiple = rand_09::random_range(0..=MAX_BODY_SIZE_MULTIPLE); [INFO] [stdout] | ^^^^^^^ use of unresolved module or unlinked crate `rand_09` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rand_09`, use `cargo add rand_09` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/lib.rs:158:1 [INFO] [stdout] | [INFO] [stdout] 53 | async fn main() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 22 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0254, E0432, E0433, E0752. [INFO] [stdout] For more information about an error, try `rustc --explain E0254`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 18) stdout ---- [INFO] [stdout] error[E0254]: the name `tower_otel_http_metrics` is defined multiple times [INFO] [stdout] --> src/lib.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 3 | extern crate r#tower_otel_http_metrics; [INFO] [stdout] | --------------------------------------- previous import of the extern crate `tower_otel_http_metrics` here [INFO] [stdout] ... [INFO] [stdout] 13 | use tower_otel_http_metrics; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ `tower_otel_http_metrics` reimported here [INFO] [stdout] | [INFO] [stdout] = note: `tower_otel_http_metrics` must be defined only once in the type namespace of this module [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `axum` [INFO] [stdout] --> src/lib.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 4 | use axum::routing::{get, post, put, Router}; [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 import `bytes` [INFO] [stdout] --> src/lib.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 5 | use bytes::Bytes; [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `bytes` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `bytes`, use `cargo add bytes` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `opentelemetry_sdk` [INFO] [stdout] --> src/lib.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 10 | use opentelemetry_sdk::metrics::PeriodicReader; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `opentelemetry_sdk` [INFO] [stdout] | [INFO] [stdout] help: there is a crate or module with a similar name [INFO] [stdout] | [INFO] [stdout] 10 - use opentelemetry_sdk::metrics::PeriodicReader; [INFO] [stdout] 10 + use opentelemetry::metrics::PeriodicReader; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved imports `opentelemetry_otlp`, `opentelemetry_otlp` [INFO] [stdout] --> src/lib.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 7 | use opentelemetry_otlp::{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `opentelemetry_otlp` [INFO] [stdout] 8 | WithExportConfig, {self}, [INFO] [stdout] | ^^^^ no external crate `opentelemetry_otlp` [INFO] [stdout] | [INFO] [stdout] help: there is a crate or module with a similar name [INFO] [stdout] | [INFO] [stdout] 7 - use opentelemetry_otlp::{ [INFO] [stdout] 7 + use opentelemetry::{ [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `opentelemetry_sdk` [INFO] [stdout] --> src/lib.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 11 | use opentelemetry_sdk::Resource; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `opentelemetry_sdk` [INFO] [stdout] | [INFO] [stdout] help: there is a crate or module with a similar name [INFO] [stdout] | [INFO] [stdout] 11 - use opentelemetry_sdk::Resource; [INFO] [stdout] 11 + use opentelemetry::Resource; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tokio` [INFO] [stdout] --> src/lib.rs:63:3 [INFO] [stdout] | [INFO] [stdout] 47 | #[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:53:3 [INFO] [stdout] | [INFO] [stdout] 37 | #[axum::debug_handler] [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `axum` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tokio` [INFO] [stdout] --> src/lib.rs:57:9 [INFO] [stdout] | [INFO] [stdout] 41 | tokio::time::sleep(Duration::from_secs(slow_request_secs)).await; [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `tokio` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `tokio`, use `cargo add tokio` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `opentelemetry_sdk` [INFO] [stdout] --> src/lib.rs:75:26 [INFO] [stdout] | [INFO] [stdout] 59 | let meter_provider = opentelemetry_sdk::metrics::SdkMeterProvider::builder() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `opentelemetry_sdk` [INFO] [stdout] | [INFO] [stdout] help: there is a crate or module with a similar name [INFO] [stdout] | [INFO] [stdout] 59 - let meter_provider = opentelemetry_sdk::metrics::SdkMeterProvider::builder() [INFO] [stdout] 59 + let meter_provider = opentelemetry::metrics::SdkMeterProvider::builder() [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tokio` [INFO] [stdout] --> src/lib.rs:94:20 [INFO] [stdout] | [INFO] [stdout] 78 | let listener = tokio::net::TcpListener::bind("0.0.0.0:5000").await.unwrap(); [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `tokio` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `tokio`, use `cargo add tokio` to add it to your `Cargo.toml` [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 4 + use std::net::TcpListener; [INFO] [stdout] | [INFO] [stdout] help: if you import `TcpListener`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 78 - let listener = tokio::net::TcpListener::bind("0.0.0.0:5000").await.unwrap(); [INFO] [stdout] 78 + let listener = TcpListener::bind("0.0.0.0:5000").await.unwrap(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `rand_09` [INFO] [stdout] --> src/lib.rs:55:8 [INFO] [stdout] | [INFO] [stdout] 39 | if rand_09::random_range(0..100) < PCT_SLOW_REQUESTS { [INFO] [stdout] | ^^^^^^^ use of unresolved module or unlinked crate `rand_09` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rand_09`, use `cargo add rand_09` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `rand_09` [INFO] [stdout] --> src/lib.rs:56:33 [INFO] [stdout] | [INFO] [stdout] 40 | let slow_request_secs = rand_09::random_range(0..=MAX_SLOW_REQUEST_SEC); [INFO] [stdout] | ^^^^^^^ use of unresolved module or unlinked crate `rand_09` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rand_09`, use `cargo add rand_09` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `rand_09` [INFO] [stdout] --> src/lib.rs:59:30 [INFO] [stdout] | [INFO] [stdout] 43 | let body_size_multiple = rand_09::random_range(0..=MAX_BODY_SIZE_MULTIPLE); [INFO] [stdout] | ^^^^^^^ use of unresolved module or unlinked crate `rand_09` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rand_09`, use `cargo add rand_09` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `axum` [INFO] [stdout] --> src/lib.rs:95:18 [INFO] [stdout] | [INFO] [stdout] 79 | let server = axum::serve(listener, app); [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[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/lib.rs:64:1 [INFO] [stdout] | [INFO] [stdout] 48 | async fn main() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 16 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0254, E0432, E0433, E0752. [INFO] [stdout] For more information about an error, try `rustc --explain E0254`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/lib.rs - (line 107) [INFO] [stdout] src/lib.rs - (line 18) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 2 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.28s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "3c618f670dbe6677da94cb1a71ced96ee7fde8e85d4c4e70fa82a753dc755d2c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3c618f670dbe6677da94cb1a71ced96ee7fde8e85d4c4e70fa82a753dc755d2c", kill_on_drop: false }` [INFO] [stdout] 3c618f670dbe6677da94cb1a71ced96ee7fde8e85d4c4e70fa82a753dc755d2c