[INFO] fetching crate rsession 0.2.1... [INFO] testing rsession-0.2.1 against try#b83b707f97d809763b7861afa7638871f3339a33 for pr-145838-1 [INFO] extracting crate rsession 0.2.1 into /workspace/builds/worker-4-tc2/source [INFO] started tweaking crates.io crate rsession 0.2.1 [INFO] removed 0 missing examples [INFO] finished tweaking crates.io crate rsession 0.2.1 [INFO] tweaked toml for crates.io crate rsession 0.2.1 written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate rsession 0.2.1 on toolchain b83b707f97d809763b7861afa7638871f3339a33 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate rsession 0.2.1 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" "+b83b707f97d809763b7861afa7638871f3339a33" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 676964abb7aac375aede5dadb28a2bf5342b547bf25914d5fa156339c91858dc [INFO] running `Command { std: "docker" "start" "-a" "676964abb7aac375aede5dadb28a2bf5342b547bf25914d5fa156339c91858dc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "676964abb7aac375aede5dadb28a2bf5342b547bf25914d5fa156339c91858dc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "676964abb7aac375aede5dadb28a2bf5342b547bf25914d5fa156339c91858dc", kill_on_drop: false }` [INFO] [stdout] 676964abb7aac375aede5dadb28a2bf5342b547bf25914d5fa156339c91858dc [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 5e413209010c660c03c1bdc9531f17402090c82aa93cc65729558953a7b01448 [INFO] running `Command { std: "docker" "start" "-a" "5e413209010c660c03c1bdc9531f17402090c82aa93cc65729558953a7b01448", kill_on_drop: false }` [INFO] [stderr] Compiling getrandom v0.3.3 [INFO] [stderr] Compiling syn v2.0.103 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling parking_lot_core v0.9.11 [INFO] [stderr] Compiling time-macros v0.2.22 [INFO] [stderr] Compiling rand_core v0.9.3 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling sha2 v0.10.9 [INFO] [stderr] Compiling rand_chacha v0.9.0 [INFO] [stderr] Compiling parking_lot v0.12.4 [INFO] [stderr] Compiling rand v0.9.1 [INFO] [stderr] Compiling time v0.3.41 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling async-trait v0.1.88 [INFO] [stderr] Compiling cookie v0.18.1 [INFO] [stderr] Compiling tokio v1.45.1 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling futures-executor v0.3.31 [INFO] [stderr] Compiling futures v0.3.31 [INFO] [stderr] Compiling serde_json v1.0.140 [INFO] [stderr] Compiling uuid v1.17.0 [INFO] [stderr] Compiling sha256 v1.6.0 [INFO] [stderr] Compiling rsession v0.2.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/inner/builder.rs:250:18 [INFO] [stdout] | [INFO] [stdout] 250 | pub fn build(&self, id: String) -> Cookie { [INFO] [stdout] | ^^^^^ ^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 250 | pub fn build(&self, id: String) -> Cookie<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 32.45s [INFO] running `Command { std: "docker" "inspect" "5e413209010c660c03c1bdc9531f17402090c82aa93cc65729558953a7b01448", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5e413209010c660c03c1bdc9531f17402090c82aa93cc65729558953a7b01448", kill_on_drop: false }` [INFO] [stdout] 5e413209010c660c03c1bdc9531f17402090c82aa93cc65729558953a7b01448 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 11116c4b7a0a8c60c269e106055245319394dc67a38e9b39508d67ce124f25ea [INFO] running `Command { std: "docker" "start" "-a" "11116c4b7a0a8c60c269e106055245319394dc67a38e9b39508d67ce124f25ea", kill_on_drop: false }` [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/inner/builder.rs:250:18 [INFO] [stdout] | [INFO] [stdout] 250 | pub fn build(&self, id: String) -> Cookie { [INFO] [stdout] | ^^^^^ ^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 250 | pub fn build(&self, id: String) -> Cookie<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling rsession v0.2.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/inner/builder.rs:250:18 [INFO] [stdout] | [INFO] [stdout] 250 | pub fn build(&self, id: String) -> Cookie { [INFO] [stdout] | ^^^^^ ^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 250 | pub fn build(&self, id: String) -> Cookie<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.78s [INFO] running `Command { std: "docker" "inspect" "11116c4b7a0a8c60c269e106055245319394dc67a38e9b39508d67ce124f25ea", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "11116c4b7a0a8c60c269e106055245319394dc67a38e9b39508d67ce124f25ea", kill_on_drop: false }` [INFO] [stdout] 11116c4b7a0a8c60c269e106055245319394dc67a38e9b39508d67ce124f25ea [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] aeec043b0529d57ef1f807c5d68444f2a9af34e072422dcac22a935f0fc034f8 [INFO] running `Command { std: "docker" "start" "-a" "aeec043b0529d57ef1f807c5d68444f2a9af34e072422dcac22a935f0fc034f8", kill_on_drop: false }` [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/inner/builder.rs:250:18 [INFO] [stderr] | [INFO] [stderr] 250 | pub fn build(&self, id: String) -> Cookie { [INFO] [stderr] | ^^^^^ ^^^^^^ the same lifetime is hidden here [INFO] [stderr] | | [INFO] [stderr] | the lifetime is elided here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stderr] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 250 | pub fn build(&self, id: String) -> Cookie<'_> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: `rsession` (lib) generated 1 warning (run `cargo fix --lib -p rsession` to apply 1 suggestion) [INFO] [stderr] warning: `rsession` (lib test) generated 1 warning (1 duplicate) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.22s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/rsession-b6d7907d2e7432a8) [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 rsession [INFO] [stdout] [INFO] [stdout] running 7 tests [INFO] [stdout] test src/lib.rs - (line 189) ... FAILED [INFO] [stdout] test src/lib.rs - (line 46) ... FAILED [INFO] [stdout] test src/lib.rs - (line 91) ... FAILED [INFO] [stdout] test src/lib.rs - (line 170) ... FAILED [INFO] [stdout] test src/lib.rs - (line 153) ... FAILED [INFO] [stdout] test src/lib.rs - (line 121) ... FAILED [INFO] [stdout] test src/lib.rs - (line 181) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - (line 189) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `deadpool_redis` [INFO] [stdout] --> src/lib.rs:190:14 [INFO] [stdout] | [INFO] [stdout] 3 | let config = deadpool_redis::sentinel::Config::new( [INFO] [stdout] | ^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `deadpool_redis` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `deadpool_redis`, use `cargo add deadpool_redis` to add it to your `Cargo.toml` [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use time::format_description::well_known::iso8601::Config; [INFO] [stdout] | [INFO] [stdout] help: if you import `Config`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 3 - let config = deadpool_redis::sentinel::Config::new( [INFO] [stdout] 3 + let config = Config::new( [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `deadpool_redis` [INFO] [stdout] --> src/lib.rs:194:36 [INFO] [stdout] | [INFO] [stdout] 7 | let pool = config.create_pool(Some(deadpool_redis::Runtime::Tokio1)).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `deadpool_redis` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `deadpool_redis`, use `cargo add deadpool_redis` to add it to your `Cargo.toml` [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use tokio::runtime::Runtime; [INFO] [stdout] | [INFO] [stdout] help: if you import `Runtime`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 7 - let pool = config.create_pool(Some(deadpool_redis::Runtime::Tokio1)).unwrap(); [INFO] [stdout] 7 + let pool = config.create_pool(Some(Runtime::Tokio1)).unwrap(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `RandKey` [INFO] [stdout] --> src/lib.rs:195:52 [INFO] [stdout] | [INFO] [stdout] 8 | let store = RedisSentinelSessionStorage::new(pool, RandKey::UuidV7); [INFO] [stdout] | ^^^^^^^ use of undeclared type `RandKey` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use rsession::RandKey; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `RedisSentinelSessionStorage` [INFO] [stdout] --> src/lib.rs:195:13 [INFO] [stdout] | [INFO] [stdout] 8 | let store = RedisSentinelSessionStorage::new(pool, RandKey::UuidV7); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ use of undeclared type `RedisSentinelSessionStorage` [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 46) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `rsession::framework::axum` [INFO] [stdout] --> src/lib.rs:50:26 [INFO] [stdout] | [INFO] [stdout] 6 | use rsession::framework::axum::AxumSessionMiddlewareLayer; [INFO] [stdout] | ^^^^ could not find `axum` in `framework` [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /opt/rustwide/workdir/src/framework/mod.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 4 | #[cfg(feature = "tower")] [INFO] [stdout] | ----------------- the item is gated behind the `tower` feature [INFO] [stdout] 5 | pub mod axum; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `axum` [INFO] [stdout] --> src/lib.rs:48:5 [INFO] [stdout] | [INFO] [stdout] 4 | use axum::routing::get; [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 `rsession::redis` [INFO] [stdout] --> src/lib.rs:51:15 [INFO] [stdout] | [INFO] [stdout] 7 | use rsession::redis::RedisSessionStorage; [INFO] [stdout] | ^^^^^ could not find `redis` in `rsession` [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `axum` [INFO] [stdout] --> src/lib.rs:49:5 [INFO] [stdout] | [INFO] [stdout] 5 | use axum::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[E0433]: failed to resolve: use of unresolved module or unlinked crate `deadpool_redis` [INFO] [stdout] --> src/lib.rs:58:17 [INFO] [stdout] | [INFO] [stdout] 14 | let redis = deadpool_redis::Config::from_url("redis://localhost:6379") [INFO] [stdout] | ^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `deadpool_redis` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `deadpool_redis`, use `cargo add deadpool_redis` to add it to your `Cargo.toml` [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 4 + use time::format_description::well_known::iso8601::Config; [INFO] [stdout] | [INFO] [stdout] help: if you import `Config`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 14 - let redis = deadpool_redis::Config::from_url("redis://localhost:6379") [INFO] [stdout] 14 + let redis = Config::from_url("redis://localhost:6379") [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `deadpool_redis` [INFO] [stdout] --> src/lib.rs:59:27 [INFO] [stdout] | [INFO] [stdout] 15 | .create_pool(Some(deadpool_redis::Runtime::Tokio1)) [INFO] [stdout] | ^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `deadpool_redis` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `deadpool_redis`, use `cargo add deadpool_redis` to add it to your `Cargo.toml` [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 4 + use tokio::runtime::Runtime; [INFO] [stdout] | [INFO] [stdout] help: if you import `Runtime`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 15 - .create_pool(Some(deadpool_redis::Runtime::Tokio1)) [INFO] [stdout] 15 + .create_pool(Some(Runtime::Tokio1)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `axum` [INFO] [stdout] --> src/lib.rs:76:5 [INFO] [stdout] | [INFO] [stdout] 32 | axum::serve(listener, app).await.unwrap(); [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: 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 91) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `rsession::framework::actix` [INFO] [stdout] --> src/lib.rs:94:26 [INFO] [stdout] | [INFO] [stdout] 5 | use rsession::framework::actix::ActixSessionMiddleware; [INFO] [stdout] | ^^^^^ could not find `actix` in `framework` [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /opt/rustwide/workdir/src/framework/mod.rs:2:9 [INFO] [stdout] | [INFO] [stdout] 1 | #[cfg(feature = "actix-web")] [INFO] [stdout] | --------------------- the item is gated behind the `actix-web` feature [INFO] [stdout] 2 | pub mod actix; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `rsession::redis` [INFO] [stdout] --> src/lib.rs:95:15 [INFO] [stdout] | [INFO] [stdout] 6 | use rsession::redis::RedisSessionStorage; [INFO] [stdout] | ^^^^^ could not find `redis` in `rsession` [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `actix_web` [INFO] [stdout] --> src/lib.rs:93:5 [INFO] [stdout] | [INFO] [stdout] 4 | use actix_web::{App, HttpServer, get}; [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[E0425]: cannot find value `session_builder` in this scope [INFO] [stdout] --> src/lib.rs:111:47 [INFO] [stdout] | [INFO] [stdout] 22 | .wrap(ActixSessionMiddleware::new(session_builder, store)) [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `store` in this scope [INFO] [stdout] --> src/lib.rs:111:64 [INFO] [stdout] | [INFO] [stdout] 22 | .wrap(ActixSessionMiddleware::new(session_builder, store)) [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:99:44 [INFO] [stdout] | [INFO] [stdout] 10 | async fn index(session: Session) -> String { [INFO] [stdout] | ____________________________________________^ [INFO] [stdout] ... | [INFO] [stdout] 13 | | } [INFO] [stdout] | |_^ expected `String`, found `()` [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0425, E0432. [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 170) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `deadpool_redis` [INFO] [stdout] --> src/lib.rs:172:13 [INFO] [stdout] | [INFO] [stdout] 5 | let redis = deadpool_redis::Config::from_url("redis://localhost:6379") [INFO] [stdout] | ^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `deadpool_redis` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `deadpool_redis`, use `cargo add deadpool_redis` to add it to your `Cargo.toml` [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use time::format_description::well_known::iso8601::Config; [INFO] [stdout] | [INFO] [stdout] help: if you import `Config`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 5 - let redis = deadpool_redis::Config::from_url("redis://localhost:6379") [INFO] [stdout] 5 + let redis = Config::from_url("redis://localhost:6379") [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `deadpool_redis` [INFO] [stdout] --> src/lib.rs:173:23 [INFO] [stdout] | [INFO] [stdout] 6 | .create_pool(Some(deadpool_redis::Runtime::Tokio1)) [INFO] [stdout] | ^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `deadpool_redis` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `deadpool_redis`, use `cargo add deadpool_redis` to add it to your `Cargo.toml` [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use tokio::runtime::Runtime; [INFO] [stdout] | [INFO] [stdout] help: if you import `Runtime`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 6 - .create_pool(Some(deadpool_redis::Runtime::Tokio1)) [INFO] [stdout] 6 + .create_pool(Some(Runtime::Tokio1)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `RandKey` [INFO] [stdout] --> src/lib.rs:176:49 [INFO] [stdout] | [INFO] [stdout] 9 | let mut store = RedisSessionStorage::new(redis, RandKey::UuidV7); [INFO] [stdout] | ^^^^^^^ use of undeclared type `RandKey` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use rsession::RandKey; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `RedisSessionStorage` [INFO] [stdout] --> src/lib.rs:176:17 [INFO] [stdout] | [INFO] [stdout] 9 | let mut store = RedisSessionStorage::new(redis, RandKey::UuidV7); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ use of undeclared type `RedisSessionStorage` [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 153) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `RandKey` [INFO] [stdout] --> src/lib.rs:163:15 [INFO] [stdout] | [INFO] [stdout] 13 | .rand_key(RandKey::UuidV7) // Session ID generation method [INFO] [stdout] | ^^^^^^^ use of undeclared type `RandKey` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use rsession::RandKey; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `RefreshStrategy` [INFO] [stdout] --> src/lib.rs:164:23 [INFO] [stdout] | [INFO] [stdout] 14 | .refresh_strategy(RefreshStrategy::PersistentStorage(time::Duration::days(7))); [INFO] [stdout] | ^^^^^^^^^^^^^^^ use of undeclared type `RefreshStrategy` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use rsession::RefreshStrategy; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 121) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `rsession::framework::salvo` [INFO] [stdout] --> src/lib.rs:124:26 [INFO] [stdout] | [INFO] [stdout] 5 | use rsession::framework::salvo::{SalvoSessionMiddleware, SessionDepotExt}; [INFO] [stdout] | ^^^^^ could not find `salvo` in `framework` [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /opt/rustwide/workdir/src/framework/mod.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 7 | #[cfg(feature = "salvo")] [INFO] [stdout] | ----------------- the item is gated behind the `salvo` feature [INFO] [stdout] 8 | pub mod salvo; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `salvo` [INFO] [stdout] --> src/lib.rs:123:5 [INFO] [stdout] | [INFO] [stdout] 4 | use salvo::prelude::*; [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `salvo` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `salvo`, use `cargo add salvo` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `rsession::redis` [INFO] [stdout] --> src/lib.rs:125:15 [INFO] [stdout] | [INFO] [stdout] 6 | use rsession::redis::RedisSessionStorage; [INFO] [stdout] | ^^^^^ could not find `redis` in `rsession` [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `handler` in this scope [INFO] [stdout] --> src/lib.rs:128:3 [INFO] [stdout] | [INFO] [stdout] 9 | #[handler] [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Depot` in this scope [INFO] [stdout] --> src/lib.rs:129:28 [INFO] [stdout] | [INFO] [stdout] 10 | async fn index(depot: &mut Depot) -> String { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `session_builder` in this scope [INFO] [stdout] --> src/lib.rs:141:43 [INFO] [stdout] | [INFO] [stdout] 22 | .hoop(SalvoSessionMiddleware::new(session_builder, store)) [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `store` in this scope [INFO] [stdout] --> src/lib.rs:141:60 [INFO] [stdout] | [INFO] [stdout] 22 | .hoop(SalvoSessionMiddleware::new(session_builder, store)) [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TcpListener` [INFO] [stdout] --> src/lib.rs:144:17 [INFO] [stdout] | [INFO] [stdout] 25 | Server::new(TcpListener::bind("0.0.0.0:8080").bind().await) [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `TcpListener` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 4 + use std::net::TcpListener; [INFO] [stdout] | [INFO] [stdout] 4 + use tokio::net::TcpListener; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:129:45 [INFO] [stdout] | [INFO] [stdout] 10 | async fn index(depot: &mut Depot) -> String { [INFO] [stdout] | _____________________________________________^ [INFO] [stdout] 11 | | let session = depot.inner_session().unwrap(); [INFO] [stdout] ... | [INFO] [stdout] 14 | | } [INFO] [stdout] | |_^ expected `String`, found `()` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Router` [INFO] [stdout] --> src/lib.rs:140:18 [INFO] [stdout] | [INFO] [stdout] 21 | let router = Router::new() [INFO] [stdout] | ^^^^^^ use of undeclared type `Router` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Server` [INFO] [stdout] --> src/lib.rs:144:5 [INFO] [stdout] | [INFO] [stdout] 25 | Server::new(TcpListener::bind("0.0.0.0:8080").bind().await) [INFO] [stdout] | ^^^^^^ use of undeclared type `Server` [INFO] [stdout] [INFO] [stdout] error: aborting due to 11 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0412, E0425, E0432, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 181) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `deadpool_redis` [INFO] [stdout] --> src/lib.rs:182:14 [INFO] [stdout] | [INFO] [stdout] 3 | let config = deadpool_redis::cluster::Config::from_urls(&["redis://node1:6379", "redis://node2:6379"]); [INFO] [stdout] | ^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `deadpool_redis` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `deadpool_redis`, use `cargo add deadpool_redis` to add it to your `Cargo.toml` [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use time::format_description::well_known::iso8601::Config; [INFO] [stdout] | [INFO] [stdout] help: if you import `Config`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 3 - let config = deadpool_redis::cluster::Config::from_urls(&["redis://node1:6379", "redis://node2:6379"]); [INFO] [stdout] 3 + let config = Config::from_urls(&["redis://node1:6379", "redis://node2:6379"]); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `deadpool_redis` [INFO] [stdout] --> src/lib.rs:183:36 [INFO] [stdout] | [INFO] [stdout] 4 | let pool = config.create_pool(Some(deadpool_redis::Runtime::Tokio1)).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `deadpool_redis` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `deadpool_redis`, use `cargo add deadpool_redis` to add it to your `Cargo.toml` [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use tokio::runtime::Runtime; [INFO] [stdout] | [INFO] [stdout] help: if you import `Runtime`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 4 - let pool = config.create_pool(Some(deadpool_redis::Runtime::Tokio1)).unwrap(); [INFO] [stdout] 4 + let pool = config.create_pool(Some(Runtime::Tokio1)).unwrap(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `RandKey` [INFO] [stdout] --> src/lib.rs:184:51 [INFO] [stdout] | [INFO] [stdout] 5 | let store = RedisClusterSessionStorage::new(pool, RandKey::UuidV7); [INFO] [stdout] | ^^^^^^^ use of undeclared type `RandKey` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use rsession::RandKey; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `RedisClusterSessionStorage` [INFO] [stdout] --> src/lib.rs:184:13 [INFO] [stdout] | [INFO] [stdout] 5 | let store = RedisClusterSessionStorage::new(pool, RandKey::UuidV7); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ use of undeclared type `RedisClusterSessionStorage` [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/lib.rs - (line 121) [INFO] [stdout] src/lib.rs - (line 153) [INFO] [stdout] src/lib.rs - (line 170) [INFO] [stdout] src/lib.rs - (line 181) [INFO] [stdout] src/lib.rs - (line 189) [INFO] [stdout] src/lib.rs - (line 46) [INFO] [stdout] src/lib.rs - (line 91) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 7 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.54s [INFO] [stdout] [INFO] [stdout] all doctests ran in 0.77s; merged doctests compilation took 0.23s [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "aeec043b0529d57ef1f807c5d68444f2a9af34e072422dcac22a935f0fc034f8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "aeec043b0529d57ef1f807c5d68444f2a9af34e072422dcac22a935f0fc034f8", kill_on_drop: false }` [INFO] [stdout] aeec043b0529d57ef1f807c5d68444f2a9af34e072422dcac22a935f0fc034f8