Skip to content

Tower trait configurable #300

Tower trait configurable

Tower trait configurable #300

Triggered via pull request August 27, 2023 17:00
Status Failure
Total duration 2m 31s
Artifacts

CI.yml

on: pull_request
Matrix: check
Matrix: test
Fit to window
Zoom out
Zoom in

Annotations

14 errors and 15 warnings
failed to resolve: use of undeclared type `Cache`: examples/examples/actix_web.rs#L54
error[E0433]: failed to resolve: use of undeclared type `Cache` --> examples/examples/actix_web.rs:54:17 | 54 | let cache = Cache::new().await.unwrap().start(); | ^^^^^ use of undeclared type `Cache` | help: consider importing this struct | 1 + use hitbox_tower::Cache; |
cannot find type `Cache` in this scope: examples/examples/actix_web.rs#L38
error[E0412]: cannot find type `Cache` in this scope --> examples/examples/actix_web.rs:38:27 | 38 | cache: web::Data<Addr<Cache>>, | ^^^^^ not found in this scope | help: consider importing this struct | 1 + use hitbox_tower::Cache; |
unresolved import `actix_web`: examples/examples/actix_web.rs#L3
error[E0432]: unresolved import `actix_web` --> examples/examples/actix_web.rs:3:5 | 3 | use actix_web::{web, App, HttpResponse, HttpServer, Responder}; | ^^^^^^^^^ use of undeclared crate or module `actix_web` | help: there is a crate or module with a similar name | 3 | use actix_rt::{web, App, HttpResponse, HttpServer, Responder}; | ~~~~~~~~
unresolved import `actix_derive`: examples/examples/actix_web.rs#L2
error[E0432]: unresolved import `actix_derive` --> examples/examples/actix_web.rs:2:5 | 2 | use actix_derive::Message; | ^^^^^^^^^^^^ use of undeclared crate or module `actix_derive`
no method named `into_cache` found for struct `Ping` in the current scope: examples/examples/metrics.rs#L60
error[E0599]: no method named `into_cache` found for struct `Ping` in the current scope --> examples/examples/metrics.rs:60:28 | 16 | struct Ping { | ----------- method `into_cache` not found for this struct ... 60 | .send(Ping::new(1).into_cache(&upstream)) | ^^^^^^^^^^ method not found in `Ping`
no method named `into_cache` found for struct `Ping` in the current scope: examples/examples/metrics.rs#L54
error[E0599]: no method named `into_cache` found for struct `Ping` in the current scope --> examples/examples/metrics.rs:54:28 | 16 | struct Ping { | ----------- method `into_cache` not found for this struct ... 54 | .send(Ping::new(0).into_cache(&upstream)) | ^^^^^^^^^^ method not found in `Ping`
no method named `into_cache` found for struct `Ping` in the current scope: examples/examples/metrics.rs#L48
error[E0599]: no method named `into_cache` found for struct `Ping` in the current scope --> examples/examples/metrics.rs:48:28 | 16 | struct Ping { | ----------- method `into_cache` not found for this struct ... 48 | .send(Ping::new(0).into_cache(&upstream)) | ^^^^^^^^^^ method not found in `Ping`
unused import: `CachePolicy`: examples/examples/metrics.rs#L3
error: unused import: `CachePolicy` --> examples/examples/metrics.rs:3:33 | 3 | use hitbox::{hitbox_serializer, CachePolicy, Cacheable, CacheableResponse}; | ^^^^^^^^^^^ | = note: `-D unused-imports` implied by `-D warnings`
unresolved import `metrics_exporter_prometheus`: examples/examples/metrics.rs#L5
error[E0432]: unresolved import `metrics_exporter_prometheus` --> examples/examples/metrics.rs:5:5 | 5 | use metrics_exporter_prometheus::PrometheusBuilder; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ use of undeclared crate or module `metrics_exporter_prometheus`
unresolved import `hitbox_actix`: examples/examples/metrics.rs#L4
error[E0432]: unresolved import `hitbox_actix` --> examples/examples/metrics.rs:4:5 | 4 | use hitbox_actix::{Cache, CacheError, IntoCache}; | ^^^^^^^^^^^^ use of undeclared crate or module `hitbox_actix` | help: there is a crate or module with a similar name | 4 | use hitbox_redis::{Cache, CacheError, IntoCache}; | ~~~~~~~~~~~~
unresolved import `actix_derive`: examples/examples/metrics.rs#L2
error[E0432]: unresolved import `actix_derive` --> examples/examples/metrics.rs:2:5 | 2 | use actix_derive::MessageResponse; | ^^^^^^^^^^^^ use of undeclared crate or module `actix_derive`
unresolved imports `hitbox::hitbox_serializer`, `hitbox::Cacheable`: examples/examples/metrics.rs#L3
error[E0432]: unresolved imports `hitbox::hitbox_serializer`, `hitbox::Cacheable` --> examples/examples/metrics.rs:3:14 | 3 | use hitbox::{hitbox_serializer, CachePolicy, Cacheable, CacheableResponse}; | ^^^^^^^^^^^^^^^^^ ^^^^^^^^^ no `Cacheable` in the root | | | no `hitbox_serializer` in the root | = help: consider importing one of these items instead: crate::CachePolicy::Cacheable hitbox::CachePolicy::Cacheable hitbox::predicate::PredicateResult::Cacheable
clippy
Clippy had exited with the 101 exit code
check (1.60.0)
The process '/home/runner/.cargo/bin/cargo' failed with exit code 101
check (stable)
The following actions uses node12 which is deprecated and will be forced to run on node16: actions-rs/toolchain@v1, actions-rs/cargo@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
check (stable)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
check (stable)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
check (stable)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
check (stable)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
clippy
The following actions uses node12 which is deprecated and will be forced to run on node16: actions-rs/toolchain@v1, actions-rs/clippy-check@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
clippy
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
clippy
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
clippy
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
clippy
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
check (1.60.0)
The following actions uses node12 which is deprecated and will be forced to run on node16: actions-rs/toolchain@v1, actions-rs/cargo@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
check (1.60.0)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
check (1.60.0)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
check (1.60.0)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
check (1.60.0)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/