Unable to compile beta code with unresolved import
actix_utils::timeout` error
#2138
Answered
by
JohnTitor
brochington
asked this question in
Q&A
-
I'm attempting to get actix-web 4.0.0-beta.4 up and compiling, but I'm running into a couple errors regarding some apis that have been removed from actix-utils recently. here are my dependencies: [dependencies]
json_payload_derive = { path = "./proc_macros/json_payload_derive" }
actix-web = "4.0.0-beta.4"
actix-web-codegen = "0.5.0-beta.1"
actix-cors = "0.5.4"
actix-utils = "3.0.0-beta.4"
# diesel = { version = "1.4.3", features = ["postgres", "r2d2", "chrono", "uuidv07", "serde_json"] }
dotenv = "0.14.1"
serde = "1.0.104"
serde_derive = "1.0.104"
serde_json = "1.0.44"
listenfd = "0.3.3"
futures = "0.3.1"
uuid = { version = "0.7.4", features = ["serde", "v4"] }
jsonwebtoken = "7.2.0"
reqwest = "0.11.2"
url = "2.1.0"
percent-encoding = "2.1.0"
chrono = { version = "0.4.9", features = ["serde"] }
serde_qs = "0.5"
log = "0.4.8"
env_logger = "0.7.1"
rusoto_core = "0.44.0"
rusoto_ses = { version = "0.44.0", features = ["serialize_structs"] }
time = "0.2.26"
juniper = { git = "https://github.com/graphql-rust/juniper" }
juniper_actix = "0.2.3"
sqlx = { version = "0.5.1", features = ["postgres", "uuid", "json", "runtime-actix-native-tls"] } and here are the errors I'm seeing: error[E0432]: unresolved import `actix_utils::timeout`
--> /Users/<redacted>/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-http-3.0.0-beta.4/src/client/connector.rs:17:18
|
17 | use actix_utils::timeout::{TimeoutError, TimeoutService};
| ^^^^^^^ could not find `timeout` in `actix_utils`
error[E0432]: unresolved import `actix_utils::dispatcher`
--> /Users/<redacted>/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-http-3.0.0-beta.4/src/error.rs:10:18
|
10 | use actix_utils::dispatcher::DispatcherError as FramedDispatcherError;
| ^^^^^^^^^^ could not find `dispatcher` in `actix_utils`
error[E0432]: unresolved import `actix_utils::timeout`
--> /Users/<redacted>/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-http-3.0.0-beta.4/src/error.rs:11:18
|
11 | use actix_utils::timeout::TimeoutError;
| ^^^^^^^ could not find `timeout` in `actix_utils`
error[E0432]: unresolved import `actix_utils::dispatcher`
--> /Users/<redacted>/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-http-3.0.0-beta.4/src/ws/dispatcher.rs:7:18
|
7 | use actix_utils::dispatcher::{Dispatcher as InnerDispatcher, DispatcherError};
| ^^^^^^^^^^ could not find `dispatcher` in `actix_utils`
Compiling actix-connect v2.0.0
Compiling actix v0.10.0
error[E0392]: parameter `S` is never used
--> /Users/<redacted>/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-http-3.0.0-beta.4/src/ws/dispatcher.rs:12:23
|
12 | pub struct Dispatcher<S, T>
| ^ unused parameter
|
= help: consider removing `S`, referring to it in a field, or using a marker such as `PhantomData`
error[E0392]: parameter `T` is never used
--> /Users/<redacted>/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-http-3.0.0-beta.4/src/ws/dispatcher.rs:12:26
|
12 | pub struct Dispatcher<S, T>
| ^ unused parameter
|
= help: consider removing `T`, referring to it in a field, or using a marker such as `PhantomData` Anyone have any suggestions? Any help would be most appreciated |
Beta Was this translation helpful? Give feedback.
Answered by
JohnTitor
Apr 2, 2021
Replies: 1 comment 1 reply
-
At least actix-cors should be |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
brochington
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
At least actix-cors should be
0.6.0-beta.1
and make sure you're using the latest betas (runcargo update
).