[INFO] fetching crate rsession 0.2.1... [INFO] testing rsession-0.2.1 against try#dec9417b8611e34e787a3e4c37686b5131f9e5c5 for pr-154210-2 [INFO] extracting crate rsession 0.2.1 into /workspace/builds/worker-6-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-6-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate rsession 0.2.1 on toolchain dec9417b8611e34e787a3e4c37686b5131f9e5c5 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "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" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] cb73ef6105c93dbeb296817dcfcb599b30a898490d6aaea2c6c36a3d2c402175 [INFO] running `Command { std: "docker" "start" "-a" "cb73ef6105c93dbeb296817dcfcb599b30a898490d6aaea2c6c36a3d2c402175", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "cb73ef6105c93dbeb296817dcfcb599b30a898490d6aaea2c6c36a3d2c402175", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cb73ef6105c93dbeb296817dcfcb599b30a898490d6aaea2c6c36a3d2c402175", kill_on_drop: false }` [INFO] [stdout] cb73ef6105c93dbeb296817dcfcb599b30a898490d6aaea2c6c36a3d2c402175 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 05cde02672b661937db86a330523884f02ecf7c6409f4fe4ab0d4ed055a0df24 [INFO] running `Command { std: "docker" "start" "-a" "05cde02672b661937db86a330523884f02ecf7c6409f4fe4ab0d4ed055a0df24", kill_on_drop: false }` [INFO] [stderr] Compiling syn v2.0.103 [INFO] [stderr] Compiling getrandom v0.3.3 [INFO] [stderr] Compiling parking_lot_core v0.9.11 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling futures-sink v0.3.31 [INFO] [stderr] Compiling futures-core v0.3.31 [INFO] [stderr] Compiling memchr v2.7.5 [INFO] [stderr] Compiling lock_api v0.4.13 [INFO] [stderr] Compiling time-core v0.1.4 [INFO] [stderr] Compiling bytes v1.10.1 [INFO] [stderr] Compiling slab v0.4.10 [INFO] [stderr] Compiling deranged v0.4.0 [INFO] [stderr] Compiling cookie v0.18.1 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling mio v1.0.4 [INFO] [stderr] Compiling signal-hook-registry v1.4.5 [INFO] [stderr] Compiling futures-channel v0.3.31 [INFO] [stderr] Compiling time-macros v0.2.22 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling socket2 v0.5.10 [INFO] [stderr] Compiling overload v0.1.1 [INFO] [stderr] Compiling sha2 v0.10.9 [INFO] [stderr] Compiling nu-ansi-term v0.46.0 [INFO] [stderr] Compiling tracing-log v0.2.0 [INFO] [stderr] Compiling rand_core v0.9.3 [INFO] [stderr] Compiling parking_lot v0.12.4 [INFO] [stderr] Compiling thread_local v1.1.9 [INFO] [stderr] Compiling rand_chacha v0.9.0 [INFO] [stderr] Compiling tracing-subscriber v0.3.19 [INFO] [stderr] Compiling http v1.3.1 [INFO] [stderr] Compiling rand v0.9.1 [INFO] [stderr] Compiling time v0.3.41 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling async-trait v0.1.88 [INFO] [stderr] Compiling tokio v1.45.1 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling futures-executor v0.3.31 [INFO] [stderr] Compiling futures v0.3.31 [INFO] [stderr] Compiling uuid v1.17.0 [INFO] [stderr] Compiling serde_json v1.0.140 [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 18.83s [INFO] running `Command { std: "docker" "inspect" "05cde02672b661937db86a330523884f02ecf7c6409f4fe4ab0d4ed055a0df24", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "05cde02672b661937db86a330523884f02ecf7c6409f4fe4ab0d4ed055a0df24", kill_on_drop: false }` [INFO] [stdout] 05cde02672b661937db86a330523884f02ecf7c6409f4fe4ab0d4ed055a0df24 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] eb3881126935f5af9e5de8480b5765687a1ef7018614e9f6405dd2515ad3e9ab [INFO] running `Command { std: "docker" "start" "-a" "eb3881126935f5af9e5de8480b5765687a1ef7018614e9f6405dd2515ad3e9ab", 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.66s [INFO] running `Command { std: "docker" "inspect" "eb3881126935f5af9e5de8480b5765687a1ef7018614e9f6405dd2515ad3e9ab", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "eb3881126935f5af9e5de8480b5765687a1ef7018614e9f6405dd2515ad3e9ab", kill_on_drop: false }` [INFO] [stdout] eb3881126935f5af9e5de8480b5765687a1ef7018614e9f6405dd2515ad3e9ab [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 98728cc7986d84a6cee653f9cc14e76d6ca90823f5ee6e873d8be9d61879ccce [INFO] running `Command { std: "docker" "start" "-a" "98728cc7986d84a6cee653f9cc14e76d6ca90823f5ee6e873d8be9d61879ccce", 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.23s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/rsession-111599b3ae3402ce) [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 46) ... FAILED [INFO] [stdout] test src/lib.rs - (line 91) ... 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 189) ... FAILED [INFO] [stdout] test src/lib.rs - (line 170) ... FAILED [INFO] [stdout] test src/lib.rs - (line 181) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [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] 50 | 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] --> 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]: cannot find module or crate `axum` in this scope [INFO] [stdout] --> src/lib.rs:48:5 [INFO] [stdout] | [INFO] [stdout] 48 | 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] 51 | 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] 49 | 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]: cannot find module or crate `deadpool_redis` in this scope [INFO] [stdout] --> src/lib.rs:58:17 [INFO] [stdout] | [INFO] [stdout] 58 | 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] 48 + 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] 58 - let redis = deadpool_redis::Config::from_url("redis://localhost:6379") [INFO] [stdout] 58 + let redis = Config::from_url("redis://localhost:6379") [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find module or crate `deadpool_redis` in this scope [INFO] [stdout] --> src/lib.rs:59:27 [INFO] [stdout] | [INFO] [stdout] 59 | .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] 48 + use tokio::runtime::Runtime; [INFO] [stdout] | [INFO] [stdout] help: if you import `Runtime`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 59 - .create_pool(Some(deadpool_redis::Runtime::Tokio1)) [INFO] [stdout] 59 + .create_pool(Some(Runtime::Tokio1)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find module or crate `axum` in this scope [INFO] [stdout] --> src/lib.rs:76:5 [INFO] [stdout] | [INFO] [stdout] 76 | 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] 94 | 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] --> 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] 95 | 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] 93 | 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] 111 | .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] 111 | .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] 99 | async fn index(session: Session) -> String { [INFO] [stdout] | ____________________________________________^ [INFO] [stdout] ... | [INFO] [stdout] 102 | | } [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 153) stdout ---- [INFO] [stdout] error[E0433]: cannot find type `RandKey` in this scope [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] [stdout] --> src/lib.rs:163:15 [INFO] [stdout] | [INFO] [stdout] 163 | .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] 152 + use rsession::RandKey; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find type `RefreshStrategy` in this scope [INFO] [stdout] --> src/lib.rs:164:23 [INFO] [stdout] | [INFO] [stdout] 164 | .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] 152 + 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] 124 | 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] --> 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]: cannot find module or crate `salvo` in this scope [INFO] [stdout] --> src/lib.rs:123:5 [INFO] [stdout] | [INFO] [stdout] 123 | 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] 125 | 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] 128 | #[handler] [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `Depot` in this scope [INFO] [stdout] --> src/lib.rs:129:28 [INFO] [stdout] | [INFO] [stdout] 129 | 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] 141 | .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] 141 | .hoop(SalvoSessionMiddleware::new(session_builder, store)) [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find type `TcpListener` in this scope [INFO] [stdout] --> src/lib.rs:144:17 [INFO] [stdout] | [INFO] [stdout] 144 | 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] 123 + use std::net::TcpListener; [INFO] [stdout] | [INFO] [stdout] 123 + 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] 129 | async fn index(depot: &mut Depot) -> String { [INFO] [stdout] | _____________________________________________^ [INFO] [stdout] 130 | | let session = depot.inner_session().unwrap(); [INFO] [stdout] ... | [INFO] [stdout] 133 | | } [INFO] [stdout] | |_^ expected `String`, found `()` [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find type `Router` in this scope [INFO] [stdout] --> src/lib.rs:140:18 [INFO] [stdout] | [INFO] [stdout] 140 | let router = Router::new() [INFO] [stdout] | ^^^^^^ use of undeclared type `Router` [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find type `Server` in this scope [INFO] [stdout] --> src/lib.rs:144:5 [INFO] [stdout] | [INFO] [stdout] 144 | 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, 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 189) stdout ---- [INFO] [stdout] error[E0433]: cannot find module or crate `deadpool_redis` in this scope [INFO] [stdout] --> src/lib.rs:190:14 [INFO] [stdout] | [INFO] [stdout] 190 | 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] 189 + 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] 190 - let config = deadpool_redis::sentinel::Config::new( [INFO] [stdout] 190 + let config = Config::new( [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find module or crate `deadpool_redis` in this scope [INFO] [stdout] --> src/lib.rs:194:36 [INFO] [stdout] | [INFO] [stdout] 194 | 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] 189 + use tokio::runtime::Runtime; [INFO] [stdout] | [INFO] [stdout] help: if you import `Runtime`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 194 - let pool = config.create_pool(Some(deadpool_redis::Runtime::Tokio1)).unwrap(); [INFO] [stdout] 194 + let pool = config.create_pool(Some(Runtime::Tokio1)).unwrap(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find type `RandKey` in this scope [INFO] [stdout] --> src/lib.rs:195:52 [INFO] [stdout] | [INFO] [stdout] 195 | 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] 189 + use rsession::RandKey; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find type `RedisSentinelSessionStorage` in this scope [INFO] [stdout] --> src/lib.rs:195:13 [INFO] [stdout] | [INFO] [stdout] 195 | 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 170) stdout ---- [INFO] [stdout] error[E0433]: cannot find module or crate `deadpool_redis` in this scope [INFO] [stdout] --> src/lib.rs:172:13 [INFO] [stdout] | [INFO] [stdout] 172 | 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] 169 + 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] 172 - let redis = deadpool_redis::Config::from_url("redis://localhost:6379") [INFO] [stdout] 172 + let redis = Config::from_url("redis://localhost:6379") [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find module or crate `deadpool_redis` in this scope [INFO] [stdout] --> src/lib.rs:173:23 [INFO] [stdout] | [INFO] [stdout] 173 | .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] 169 + use tokio::runtime::Runtime; [INFO] [stdout] | [INFO] [stdout] help: if you import `Runtime`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 173 - .create_pool(Some(deadpool_redis::Runtime::Tokio1)) [INFO] [stdout] 173 + .create_pool(Some(Runtime::Tokio1)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find type `RandKey` in this scope [INFO] [stdout] --> src/lib.rs:176:49 [INFO] [stdout] | [INFO] [stdout] 176 | 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] 169 + use rsession::RandKey; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find type `RedisSessionStorage` in this scope [INFO] [stdout] --> src/lib.rs:176:17 [INFO] [stdout] | [INFO] [stdout] 176 | 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 181) stdout ---- [INFO] [stdout] error[E0433]: cannot find module or crate `deadpool_redis` in this scope [INFO] [stdout] --> src/lib.rs:182:14 [INFO] [stdout] | [INFO] [stdout] 182 | 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] 181 + 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] 182 - let config = deadpool_redis::cluster::Config::from_urls(&["redis://node1:6379", "redis://node2:6379"]); [INFO] [stdout] 182 + let config = Config::from_urls(&["redis://node1:6379", "redis://node2:6379"]); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find module or crate `deadpool_redis` in this scope [INFO] [stdout] --> src/lib.rs:183:36 [INFO] [stdout] | [INFO] [stdout] 183 | 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] 181 + use tokio::runtime::Runtime; [INFO] [stdout] | [INFO] [stdout] help: if you import `Runtime`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 183 - let pool = config.create_pool(Some(deadpool_redis::Runtime::Tokio1)).unwrap(); [INFO] [stdout] 183 + let pool = config.create_pool(Some(Runtime::Tokio1)).unwrap(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find type `RandKey` in this scope [INFO] [stdout] --> src/lib.rs:184:51 [INFO] [stdout] | [INFO] [stdout] 184 | 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] 181 + use rsession::RandKey; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find type `RedisClusterSessionStorage` in this scope [INFO] [stdout] --> src/lib.rs:184:13 [INFO] [stdout] | [INFO] [stdout] 184 | 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.38s [INFO] [stdout] [INFO] [stdout] all doctests ran in 0.63s; merged doctests compilation took 0.25s [INFO] running `Command { std: "docker" "inspect" "98728cc7986d84a6cee653f9cc14e76d6ca90823f5ee6e873d8be9d61879ccce", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "98728cc7986d84a6cee653f9cc14e76d6ca90823f5ee6e873d8be9d61879ccce", kill_on_drop: false }` [INFO] [stdout] 98728cc7986d84a6cee653f9cc14e76d6ca90823f5ee6e873d8be9d61879ccce