[INFO] cloning repository https://github.com/lpotthast/tonic-keycloak-auth [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/lpotthast/tonic-keycloak-auth" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flpotthast%2Ftonic-keycloak-auth", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flpotthast%2Ftonic-keycloak-auth'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 32e4edc6a0724018994dfdfaec2c7bd6812b2723 [INFO] testing lpotthast/tonic-keycloak-auth against try#0936b3db0ae648ba2d5b60eb08cf4faf2ddab0c6 for pr-137122-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flpotthast%2Ftonic-keycloak-auth" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/lpotthast/tonic-keycloak-auth [INFO] finished tweaking git repo https://github.com/lpotthast/tonic-keycloak-auth [INFO] tweaked toml for git repo https://github.com/lpotthast/tonic-keycloak-auth written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/lpotthast/tonic-keycloak-auth on toolchain 0936b3db0ae648ba2d5b60eb08cf4faf2ddab0c6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+0936b3db0ae648ba2d5b60eb08cf4faf2ddab0c6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/lpotthast/tonic-keycloak-auth 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" "+0936b3db0ae648ba2d5b60eb08cf4faf2ddab0c6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded typed-builder v0.21.0 [INFO] [stderr] Downloaded nonempty v0.11.0 [INFO] [stderr] Downloaded try-again v0.2.2 [INFO] [stderr] Downloaded atomic-time v0.1.5 [INFO] [stderr] Downloaded assertr v0.3.1 [INFO] [stderr] Downloaded tonic-middleware v0.3.0 [INFO] [stderr] Downloaded typed-builder-macro v0.21.0 [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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+0936b3db0ae648ba2d5b60eb08cf4faf2ddab0c6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 542f6296005cba76495891ca0740c539a6775d0556f404e99e58a8fd614098e4 [INFO] running `Command { std: "docker" "start" "-a" "542f6296005cba76495891ca0740c539a6775d0556f404e99e58a8fd614098e4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "542f6296005cba76495891ca0740c539a6775d0556f404e99e58a8fd614098e4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "542f6296005cba76495891ca0740c539a6775d0556f404e99e58a8fd614098e4", kill_on_drop: false }` [INFO] [stdout] 542f6296005cba76495891ca0740c539a6775d0556f404e99e58a8fd614098e4 [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=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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+0936b3db0ae648ba2d5b60eb08cf4faf2ddab0c6" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a57cee1103ab8d6f1b99a95405a94b257141ab39e3537f3f1b02a945b8adf942 [INFO] running `Command { std: "docker" "start" "-a" "a57cee1103ab8d6f1b99a95405a94b257141ab39e3537f3f1b02a945b8adf942", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.95 [INFO] [stderr] Compiling unicode-ident v1.0.18 [INFO] [stderr] Compiling libc v0.2.174 [INFO] [stderr] Compiling pin-project-lite v0.2.16 [INFO] [stderr] Compiling bytes v1.10.1 [INFO] [stderr] Compiling futures-core v0.3.31 [INFO] [stderr] Compiling itoa v1.0.15 [INFO] [stderr] Compiling once_cell v1.21.3 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling log v0.4.27 [INFO] [stderr] Compiling futures-sink v0.3.31 [INFO] [stderr] Compiling memchr v2.7.5 [INFO] [stderr] Compiling shlex v1.3.0 [INFO] [stderr] Compiling slab v0.4.10 [INFO] [stderr] Compiling stable_deref_trait v1.2.0 [INFO] [stderr] Compiling futures-io v0.3.31 [INFO] [stderr] Compiling futures-task v0.3.31 [INFO] [stderr] Compiling pin-utils v0.1.0 [INFO] [stderr] Compiling equivalent v1.0.2 [INFO] [stderr] Compiling hashbrown v0.15.4 [INFO] [stderr] Compiling smallvec v1.15.1 [INFO] [stderr] Compiling futures-channel v0.3.31 [INFO] [stderr] Compiling tower-service v0.3.3 [INFO] [stderr] Compiling cfg-if v1.0.1 [INFO] [stderr] Compiling pkg-config v0.3.32 [INFO] [stderr] Compiling cc v1.2.27 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling percent-encoding v2.3.1 [INFO] [stderr] Compiling vcpkg v0.2.15 [INFO] [stderr] Compiling httparse v1.10.1 [INFO] [stderr] Compiling tower-layer v0.3.3 [INFO] [stderr] Compiling tracing-core v0.1.34 [INFO] [stderr] Compiling litemap v0.8.0 [INFO] [stderr] Compiling try-lock v0.2.5 [INFO] [stderr] Compiling atomic-waker v1.1.2 [INFO] [stderr] Compiling base64 v0.22.1 [INFO] [stderr] Compiling writeable v0.6.1 [INFO] [stderr] Compiling want v0.3.1 [INFO] [stderr] Compiling sync_wrapper v1.0.2 [INFO] [stderr] Compiling icu_normalizer_data v2.0.0 [INFO] [stderr] Compiling httpdate v1.0.3 [INFO] [stderr] Compiling autocfg v1.5.0 [INFO] [stderr] Compiling icu_properties_data v2.0.1 [INFO] [stderr] Compiling foreign-types-shared v0.1.1 [INFO] [stderr] Compiling bitflags v2.9.1 [INFO] [stderr] Compiling rustversion v1.0.21 [INFO] [stderr] Compiling ipnet v2.11.0 [INFO] [stderr] Compiling openssl v0.10.73 [INFO] [stderr] Compiling foreign-types v0.3.2 [INFO] [stderr] Compiling http v1.3.1 [INFO] [stderr] Compiling strsim v0.11.1 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Compiling ident_case v1.0.1 [INFO] [stderr] Compiling mime v0.3.17 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Compiling indexmap v2.9.0 [INFO] [stderr] Compiling openssl-probe v0.1.6 [INFO] [stderr] Compiling serde_json v1.0.140 [INFO] [stderr] Compiling powerfmt v0.2.0 [INFO] [stderr] Compiling time-core v0.1.4 [INFO] [stderr] Compiling thiserror v2.0.12 [INFO] [stderr] Compiling ryu v1.0.20 [INFO] [stderr] Compiling num-conv v0.1.0 [INFO] [stderr] Compiling form_urlencoded v1.2.1 [INFO] [stderr] Compiling portable-atomic v1.11.1 [INFO] [stderr] Compiling utf8_iter v1.0.4 [INFO] [stderr] Compiling syn v2.0.103 [INFO] [stderr] Compiling deranged v0.4.0 [INFO] [stderr] Compiling getrandom v0.3.3 [INFO] [stderr] Compiling matchit v0.8.4 [INFO] [stderr] Compiling prost v0.13.5 [INFO] [stderr] Compiling time-macros v0.2.22 [INFO] [stderr] Compiling zeroize v1.8.1 [INFO] [stderr] Compiling untrusted v0.9.0 [INFO] [stderr] Compiling mio v1.0.4 [INFO] [stderr] Compiling socket2 v0.5.10 [INFO] [stderr] Compiling getrandom v0.2.16 [INFO] [stderr] Compiling iri-string v0.7.8 [INFO] [stderr] Compiling http-body v1.0.1 [INFO] [stderr] Compiling rustls-pki-types v1.12.0 [INFO] [stderr] Compiling http-body-util v0.1.3 [INFO] [stderr] Compiling pem v3.0.5 [INFO] [stderr] Compiling encoding_rs v0.8.35 [INFO] [stderr] Compiling uuid v1.17.0 [INFO] [stderr] Compiling axum-core v0.5.2 [INFO] [stderr] Compiling nonempty v0.11.0 [INFO] [stderr] Compiling openssl-sys v0.9.109 [INFO] [stderr] Compiling ring v0.17.14 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Compiling num-bigint v0.4.6 [INFO] [stderr] Compiling time v0.3.41 [INFO] [stderr] Compiling atomic-time v0.1.5 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling darling_core v0.20.11 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling tracing-attributes v0.1.30 [INFO] [stderr] Compiling yoke-derive v0.8.0 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling zerovec-derive v0.11.1 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling pin-project-internal v1.1.10 [INFO] [stderr] Compiling thiserror-impl v2.0.12 [INFO] [stderr] Compiling async-trait v0.1.88 [INFO] [stderr] Compiling enum-ordinalize-derive v4.3.1 [INFO] [stderr] Compiling snafu-derive v0.8.6 [INFO] [stderr] Compiling typed-builder-macro v0.21.0 [INFO] [stderr] Compiling tokio v1.45.1 [INFO] [stderr] Compiling enum-ordinalize v4.3.0 [INFO] [stderr] Compiling educe v0.6.0 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling pin-project v1.1.10 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling yoke v0.8.0 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling zerovec v0.11.2 [INFO] [stderr] Compiling zerotrie v0.2.2 [INFO] [stderr] Compiling simple_asn1 v0.6.3 [INFO] [stderr] Compiling typed-builder v0.21.0 [INFO] [stderr] Compiling tower v0.4.13 [INFO] [stderr] Compiling darling_macro v0.20.11 [INFO] [stderr] Compiling snafu v0.8.6 [INFO] [stderr] Compiling darling v0.20.11 [INFO] [stderr] Compiling serde_with_macros v3.13.0 [INFO] [stderr] Compiling tinystr v0.8.1 [INFO] [stderr] Compiling potential_utf v0.1.2 [INFO] [stderr] Compiling futures-executor v0.3.31 [INFO] [stderr] Compiling icu_collections v2.0.0 [INFO] [stderr] Compiling icu_locale_core v2.0.0 [INFO] [stderr] Compiling futures v0.3.31 [INFO] [stderr] Compiling icu_provider v2.0.0 [INFO] [stderr] Compiling icu_normalizer v2.0.0 [INFO] [stderr] Compiling icu_properties v2.0.1 [INFO] [stderr] Compiling idna_adapter v1.2.1 [INFO] [stderr] Compiling idna v1.0.3 [INFO] [stderr] Compiling tokio-util v0.7.15 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling tokio-stream v0.1.17 [INFO] [stderr] Compiling try-again v0.2.2 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling serde_with v3.13.0 [INFO] [stderr] Compiling url v2.5.4 [INFO] [stderr] Compiling h2 v0.4.10 [INFO] [stderr] Compiling tower v0.5.2 [INFO] [stderr] Compiling jsonwebtoken v9.3.1 [INFO] [stderr] Compiling axum v0.8.4 [INFO] [stderr] Compiling tower-http v0.6.6 [INFO] [stderr] Compiling hyper v1.6.0 [INFO] [stderr] Compiling hyper-util v0.1.14 [INFO] [stderr] Compiling hyper-timeout v0.5.2 [INFO] [stderr] Compiling hyper-tls v0.6.0 [INFO] [stderr] Compiling reqwest v0.12.20 [INFO] [stderr] Compiling tonic v0.13.1 [INFO] [stderr] Compiling tonic-middleware v0.3.0 [INFO] [stderr] Compiling tonic-keycloak-auth v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 58.29s [INFO] running `Command { std: "docker" "inspect" "a57cee1103ab8d6f1b99a95405a94b257141ab39e3537f3f1b02a945b8adf942", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a57cee1103ab8d6f1b99a95405a94b257141ab39e3537f3f1b02a945b8adf942", kill_on_drop: false }` [INFO] [stdout] a57cee1103ab8d6f1b99a95405a94b257141ab39e3537f3f1b02a945b8adf942 [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=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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+0936b3db0ae648ba2d5b60eb08cf4faf2ddab0c6" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] aeac0bd8d24b7872e65e99e4da326451b177d7fa0994c5260cac019cd64e2b25 [INFO] running `Command { std: "docker" "start" "-a" "aeac0bd8d24b7872e65e99e4da326451b177d7fa0994c5260cac019cd64e2b25", kill_on_drop: false }` [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling uuid v1.17.0 [INFO] [stderr] Compiling indoc v2.0.6 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Compiling num-complex v0.4.6 [INFO] [stderr] Compiling num-bigint v0.4.6 [INFO] [stderr] Compiling num-iter v0.1.45 [INFO] [stderr] Compiling num-rational v0.4.2 [INFO] [stderr] Compiling simple_asn1 v0.6.3 [INFO] [stderr] Compiling jsonwebtoken v9.3.1 [INFO] [stderr] Compiling num v0.4.3 [INFO] [stderr] Compiling assertr v0.3.1 [INFO] [stderr] Compiling tonic-keycloak-auth v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 4.48s [INFO] running `Command { std: "docker" "inspect" "aeac0bd8d24b7872e65e99e4da326451b177d7fa0994c5260cac019cd64e2b25", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "aeac0bd8d24b7872e65e99e4da326451b177d7fa0994c5260cac019cd64e2b25", kill_on_drop: false }` [INFO] [stdout] aeac0bd8d24b7872e65e99e4da326451b177d7fa0994c5260cac019cd64e2b25 [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=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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+0936b3db0ae648ba2d5b60eb08cf4faf2ddab0c6" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] d78187172e5f465648f463e83468a1a9c7038550b278babcb3869f071f4c82fb [INFO] running `Command { std: "docker" "start" "-a" "d78187172e5f465648f463e83468a1a9c7038550b278babcb3869f071f4c82fb", kill_on_drop: false }` [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.14s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/tonic_keycloak_auth-b50b81fed7dad4ba) [INFO] [stdout] [INFO] [stdout] running 3 tests [INFO] [stdout] test interceptor::test::build_basic_layer ... ok [INFO] [stdout] test interceptor::test::build_full_layer ... ok [INFO] [stdout] test action::test::test_action_dispatch ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 3 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Doc-tests tonic_keycloak_auth [INFO] [stdout] [INFO] [stdout] running 3 tests [INFO] [stdout] test src/lib.rs - (line 181) - compile ... FAILED [INFO] [stdout] test src/lib.rs - (line 126) ... FAILED [INFO] [stdout] test src/lib.rs - (line 19) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - (line 181) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `tonic_keycloak_auth::extract::QueryParamTokenExtractor` [INFO] [stdout] --> src/lib.rs:188:41 [INFO] [stdout] | [INFO] [stdout] 10 | extract::{AuthHeaderTokenExtractor, QueryParamTokenExtractor, TokenExtractor} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | no `QueryParamTokenExtractor` in `extract` [INFO] [stdout] | help: a similar name exists in the module: `AuthHeaderTokenExtractor` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 126) stdout ---- [INFO] [stdout] error[E0432]: unresolved imports `tonic::http`, `tonic::response::IntoResponse`, `tonic::Extension` [INFO] [stdout] --> src/lib.rs:156:13 [INFO] [stdout] | [INFO] [stdout] 33 | use tonic::{http::StatusCode, response::{Response, IntoResponse}, Extension}; [INFO] [stdout] | ^^^^ ^^^^^^^^^^^^ ^^^^^^^^^ no `Extension` in the root [INFO] [stdout] | | | [INFO] [stdout] | could not find `http` in `tonic` no `IntoResponse` in `response` [INFO] [stdout] | [INFO] [stdout] help: a similar name exists in the module [INFO] [stdout] | [INFO] [stdout] 33 - use tonic::{http::StatusCode, response::{Response, IntoResponse}, Extension}; [INFO] [stdout] 33 + use tonic::{http::StatusCode, response::{Response, Response}, Extension}; [INFO] [stdout] | [INFO] [stdout] help: a similar name exists in the module [INFO] [stdout] | [INFO] [stdout] 33 | use tonic::{http::StatusCode, response::{Response, IntoResponse}, Extensions}; [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `IntoResponse` in `response` [INFO] [stdout] --> src/lib.rs:160:5 [INFO] [stdout] | [INFO] [stdout] 37 | expect_role!(&token, Role::Administrator); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ could not find `IntoResponse` in `response` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `expect_role` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] error[E0603]: module `response` is private [INFO] [stdout] --> src/lib.rs:156:31 [INFO] [stdout] | [INFO] [stdout] 33 | use tonic::{http::StatusCode, response::{Response, IntoResponse}, Extension}; [INFO] [stdout] | ^^^^^^^^ private module [INFO] [stdout] | [INFO] [stdout] note: the module `response` is defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tonic-0.13.1/src/lib.rs:111:1 [INFO] [stdout] | [INFO] [stdout] 111 | mod response; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0603]: module `response` is private [INFO] [stdout] --> /opt/rustwide/workdir/src/role.rs:96:27 [INFO] [stdout] | [INFO] [stdout] 96 | return tonic::response::IntoResponse::into_response(err); [INFO] [stdout] | ^^^^^^^^ private module [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:160:5 [INFO] [stdout] | [INFO] [stdout] 37 | expect_role!(&token, Role::Administrator); [INFO] [stdout] | ----------------------------------------- module `response` is not publicly re-exported [INFO] [stdout] | [INFO] [stdout] note: the module `response` is defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tonic-0.13.1/src/lib.rs:111:1 [INFO] [stdout] | [INFO] [stdout] 111 | mod response; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0433, E0603. [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 19) stdout ---- [INFO] [stdout] error: The default runtime flavor is `multi_thread`, but the `rt-multi-thread` feature is disabled. [INFO] [stdout] --> src/lib.rs:100:1 [INFO] [stdout] | [INFO] [stdout] 83 | #[tokio::main] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the attribute macro `tokio::main` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `IntoResponse` in `response` [INFO] [stdout] --> src/lib.rs:80:5 [INFO] [stdout] | [INFO] [stdout] 63 | expect_role!(&token, "administrator"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ could not find `IntoResponse` in `response` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `expect_role` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Router` in this scope [INFO] [stdout] --> src/lib.rs:24:27 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn public_router() -> Router { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 4 + use tonic::transport::server::Router; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Router` [INFO] [stdout] --> src/lib.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 8 | Router::new() [INFO] [stdout] | ^^^^^^ use of undeclared type `Router` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 4 + use tonic::transport::server::Router; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `get` in this scope [INFO] [stdout] --> src/lib.rs:26:27 [INFO] [stdout] | [INFO] [stdout] 9 | .route("/health", get(health)) [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 4 + use reqwest::get; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Router` in this scope [INFO] [stdout] --> src/lib.rs:29:60 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn protected_router(instance: KeycloakAuthInstance) -> Router { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 4 + use tonic::transport::server::Router; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Router` [INFO] [stdout] --> src/lib.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 13 | Router::new() [INFO] [stdout] | ^^^^^^ use of undeclared type `Router` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 4 + use tonic::transport::server::Router; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `get` in this scope [INFO] [stdout] --> src/lib.rs:31:30 [INFO] [stdout] | [INFO] [stdout] 14 | .route("/protected", get(protected)) [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 4 + use reqwest::get; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Router` in this scope [INFO] [stdout] --> src/lib.rs:51:23 [INFO] [stdout] | [INFO] [stdout] 34 | pub fn protect(router:Router, instance: Arc) -> Router { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 4 + use tonic::transport::server::Router; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Router` in this scope [INFO] [stdout] --> src/lib.rs:51:71 [INFO] [stdout] | [INFO] [stdout] 34 | pub fn protect(router:Router, instance: Arc) -> Router { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 4 + use tonic::transport::server::Router; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0405]: cannot find trait `IntoResponse` in this scope [INFO] [stdout] --> src/lib.rs:75:31 [INFO] [stdout] | [INFO] [stdout] 58 | pub async fn health() -> impl IntoResponse { [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `StatusCode` [INFO] [stdout] --> src/lib.rs:76:5 [INFO] [stdout] | [INFO] [stdout] 59 | StatusCode::OK [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `StatusCode` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 4 + use http::StatusCode; [INFO] [stdout] | [INFO] [stdout] 4 + use reqwest::StatusCode; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0531]: cannot find tuple struct or tuple variant `Extension` in this scope [INFO] [stdout] --> src/lib.rs:79:24 [INFO] [stdout] | [INFO] [stdout] 62 | pub async fn protected(Extension(token): Extension>) -> Response { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Extension` in this scope [INFO] [stdout] --> src/lib.rs:79:42 [INFO] [stdout] | [INFO] [stdout] 62 | pub async fn protected(Extension(token): Extension>) -> Response { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Response` in this scope [INFO] [stdout] --> src/lib.rs:79:79 [INFO] [stdout] | [INFO] [stdout] 62 | pub async fn protected(Extension(token): Extension>) -> Response { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 4 + use http::Response; [INFO] [stdout] | [INFO] [stdout] 4 + use reqwest::Response; [INFO] [stdout] | [INFO] [stdout] 4 + use tonic::Response; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `StatusCode` [INFO] [stdout] --> src/lib.rs:85:9 [INFO] [stdout] | [INFO] [stdout] 68 | StatusCode::OK, [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `StatusCode` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 4 + use http::StatusCode; [INFO] [stdout] | [INFO] [stdout] 4 + use reqwest::StatusCode; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0603]: module `response` is private [INFO] [stdout] --> /opt/rustwide/workdir/src/role.rs:96:27 [INFO] [stdout] | [INFO] [stdout] 96 | return tonic::response::IntoResponse::into_response(err); [INFO] [stdout] | ^^^^^^^^ private module [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:80:5 [INFO] [stdout] | [INFO] [stdout] 63 | expect_role!(&token, "administrator"); [INFO] [stdout] | ------------------------------------- module `response` is not publicly re-exported [INFO] [stdout] | [INFO] [stdout] note: the module `response` is defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tonic-0.13.1/src/lib.rs:111:1 [INFO] [stdout] | [INFO] [stdout] 111 | mod response; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error: aborting due to 17 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0405, E0412, E0425, E0433, E0531, E0603. [INFO] [stdout] For more information about an error, try `rustc --explain E0405`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/lib.rs - (line 126) [INFO] [stdout] src/lib.rs - (line 181) [INFO] [stdout] src/lib.rs - (line 19) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 3 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.12s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "d78187172e5f465648f463e83468a1a9c7038550b278babcb3869f071f4c82fb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d78187172e5f465648f463e83468a1a9c7038550b278babcb3869f071f4c82fb", kill_on_drop: false }` [INFO] [stdout] d78187172e5f465648f463e83468a1a9c7038550b278babcb3869f071f4c82fb