exonum / exonum

An extensible open-source framework for creating private/permissioned blockchain applications

Home Page:https://exonum.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

actix-http error

ph1ex0n opened this issue · comments

>multipass info giga
Name: giga
State: Running
IPv4: 10.179.162.188
Release: Ubuntu 20.04.4 LTS
Image hash: 6e3ce31fe3a5 (Ubuntu 20.04 LTS)
Load: 0.22 0.05 0.02
Disk usage: 16.6G out of 48.3G
Memory usage: 164.4M out of 3.8G
Mounts: --

rustc 1.60.0 (7737e0b5c 2022-04-04)
before compiling - https://exonum.com/doc/version/latest/get-started/install/
compiling of example https://github.com/exonum/exonum/tree/master/examples/cryptocurrency

~/exonum/examples/cryptocurrency>cargo run --example demo
Compiling actix-web v4.0.0-beta.20
Compiling actix-http-test v3.0.0-beta.13
error[E0432]: unresolved import actix_http::error::BlockingError
--> /home/ubuntu/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-web-4.0.0-beta.20/src/error/mod.rs:9:5
|
9 | BlockingError, ContentTypeError, DispatchError, HttpError, ParseError, PayloadError,
| ^^^^^^^^^^^^^ no BlockingError in error

error[E0412]: cannot find type BlockingError in module actix_http::error
--> /home/ubuntu/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-web-4.0.0-beta.20/src/error/response_error.rs:110:43
|
110 | impl ResponseError for actix_http::error::BlockingError {}
| ^^^^^^^^^^^^^ not found in actix_http::error

Compiling exonum-cryptocurrency v0.1.0 (/home/ubuntu/exonum/examples/cryptocurrency)
error[E0308]: mismatched types
--> /home/ubuntu/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-web-4.0.0-beta.20/src/app_service.rs:285:52
|
285 | router.rdef(path, service).2 = guards;
| ---------------------------- ^^^^^^ expected &mut _, found enum std::option::Option
| |
| expected due to the type of this binding
|
= note: expected mutable reference &mut _
found enum std::option::Option<Vec<Box<dyn Guard>>>
help: consider dereferencing here to assign to the mutable borrowed piece of memory
|
285 | *router.rdef(path, service).2 = guards;
| +

error[E0308]: mismatched types
--> /home/ubuntu/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-web-4.0.0-beta.20/src/app_service.rs:310:20
|
310 | if let Some(ref guards) = guards {
| ^^^^^^^^^^^^^^^^ ------ this expression has type &Vec<Box<dyn Guard>>
| |
| expected struct Vec, found enum std::option::Option
|
= note: expected struct Vec<Box<dyn Guard>>
found enum std::option::Option<_>

error[E0308]: mismatched types
--> /home/ubuntu/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-web-4.0.0-beta.20/src/scope.rs:487:52
|
487 | router.rdef(path, service).2 = guards;
| ---------------------------- ^^^^^^ expected &mut _, found enum std::option::Option
| |
| expected due to the type of this binding
|
= note: expected mutable reference &mut _
found enum std::option::Option<Vec<Box<dyn Guard>>>
help: consider dereferencing here to assign to the mutable borrowed piece of memory
|
487 | *router.rdef(path, service).2 = guards;
| +

error[E0308]: mismatched types
--> /home/ubuntu/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-web-4.0.0-beta.20/src/scope.rs:511:20
|
511 | if let Some(ref guards) = guards {
| ^^^^^^^^^^^^^^^^ ------ this expression has type &Vec<Box<dyn Guard>>
| |
| expected struct Vec, found enum std::option::Option
|
= note: expected struct Vec<Box<dyn Guard>>
found enum std::option::Option<_>

error[E0308]: mismatched types
--> /home/ubuntu/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-web-4.0.0-beta.20/src/server.rs:91:48
|
91 | keep_alive: KeepAlive::Timeout(5),
| ^ expected struct std::time::Duration, found integer

error[E0308]: mismatched types
--> /home/ubuntu/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-web-4.0.0-beta.20/src/server.rs:294:41
|
294 | .client_timeout(c.client_timeout)
| ^^^^^^^^^^^^^^^^ expected struct std::time::Duration, found u64

error[E0308]: mismatched types
--> /home/ubuntu/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-web-4.0.0-beta.20/src/server.rs:295:44
|
295 | .client_disconnect(c.client_shutdown)
| ^^^^^^^^^^^^^^^^^ expected struct std::time::Duration, found u64

error[E0308]: mismatched types
--> /home/ubuntu/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-web-4.0.0-beta.20/src/server.rs:540:37
|
540 | .client_timeout(c.client_timeout)
| ^^^^^^^^^^^^^^^^ expected struct std::time::Duration, found u64

error[E0308]: mismatched types
--> /home/ubuntu/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-web-4.0.0-beta.20/src/server.rs:541:40
|
541 | .client_disconnect(c.client_shutdown);
| ^^^^^^^^^^^^^^^^^ expected struct std::time::Duration, found u64

error[E0308]: mismatched types
--> /home/ubuntu/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-web-4.0.0-beta.20/src/server.rs:596:41
|
596 | .client_timeout(c.client_timeout)
| ^^^^^^^^^^^^^^^^ expected struct std::time::Duration, found u64

error[E0308]: mismatched types
--> /home/ubuntu/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-web-4.0.0-beta.20/src/server.rs:597:44
|
597 | .client_disconnect(c.client_shutdown)
| ^^^^^^^^^^^^^^^^^ expected struct std::time::Duration, found u64

Some errors have detailed explanations: E0308, E0412, E0432.
For more information about an error, try rustc --explain E0308.
error: could not compile actix-web due to 13 previous errors