Updating submodule
Switched to branch 'master'
Your branch is up to date with 'origin/master'.
Already up to date.
Creating app directory structure
Building and copying main binary
Compiling aria-download-manager v0.1.0 (/Users/kzhang/Documents/workspaces/MyWorkspace/aria-download-manager)
error: future cannot be sent between threads safely
--> src/main.rs:19:18
|
19 | tokio::spawn(server::listen());
| ^^^^^^^^^^^^^^^^ future returned by `listen` is not `Send`
|
= help: within `impl futures::Future<Output = ()>`, the trait `std::marker::Send` is not implemented for `Rc<[Box<(dyn Fn() -> Pin<Box<(dyn futures::Future<Output = Result<Box<(dyn actix_web::data::DataFactory + 'static)>, ()>> + 'static)>> + 'static)>]>`
note: future is not `Send` as this value is used across an await
--> src/server.rs:83:9
|
75 | / HttpServer::new(|| {
76 | | App::new()
77 | | .route("/api", web::post().to(index))
78 | | .route("/state", web::get().to(state))
79 | | .route("/focus", web::get().to(focus))
80 | | .route("/quit", web::get().to(quit_handler))
81 | | })
| |______- has type `HttpServer<[closure@src/server.rs:75:18: 75:20], actix_web::App<actix_web::app_service::AppEntry>, actix_web::app_service::AppInit<actix_web::app_service::AppEntry, BoxBody>, BoxBody>` which is not `Send`
82 | .bind("127.0.0.1:63318").unwrap()
83 | .run().await
| ^^^^^ await occurs here, with the value maybe used later
84 | .unwrap();
| - the value is later dropped here
note: required by a bound in `tokio::spawn`
--> /Users/kzhang/.cargo/registry/src/mirrors.sjtug.sjtu.edu.cn-be2141875385cea5/tokio-1.35.1/src/task/spawn.rs:166:21
|
164 | pub fn spawn<F>(future: F) -> JoinHandle<F::Output>
| ----- required by a bound in this function
165 | where
166 | F: Future + Send + 'static,
| ^^^^ required by this bound in `spawn`
error: future cannot be sent between threads safely
--> src/main.rs:19:18
|
19 | tokio::spawn(server::listen());
| ^^^^^^^^^^^^^^^^ future returned by `listen` is not `Send`
|
= help: within `impl futures::Future<Output = ()>`, the trait `std::marker::Send` is not implemented for `Rc<RefCell<std::vec::Vec<Box<(dyn actix_web::service::AppServiceFactory + 'static)>>>>`
note: future is not `Send` as this value is used across an await
--> src/server.rs:83:9
|
75 | / HttpServer::new(|| {
76 | | App::new()
77 | | .route("/api", web::post().to(index))
78 | | .route("/state", web::get().to(state))
79 | | .route("/focus", web::get().to(focus))
80 | | .route("/quit", web::get().to(quit_handler))
81 | | })
| |______- has type `HttpServer<[closure@src/server.rs:75:18: 75:20], actix_web::App<actix_web::app_service::AppEntry>, actix_web::app_service::AppInit<actix_web::app_service::AppEntry, BoxBody>, BoxBody>` which is not `Send`
82 | .bind("127.0.0.1:63318").unwrap()
83 | .run().await
| ^^^^^ await occurs here, with the value maybe used later
84 | .unwrap();
| - the value is later dropped here
note: required by a bound in `tokio::spawn`
--> /Users/kzhang/.cargo/registry/src/mirrors.sjtug.sjtu.edu.cn-be2141875385cea5/tokio-1.35.1/src/task/spawn.rs:166:21
|
164 | pub fn spawn<F>(future: F) -> JoinHandle<F::Output>
| ----- required by a bound in this function
165 | where
166 | F: Future + Send + 'static,
| ^^^^ required by this bound in `spawn`
error: future cannot be sent between threads safely
--> src/main.rs:19:18
|
19 | tokio::spawn(server::listen());
| ^^^^^^^^^^^^^^^^ future returned by `listen` is not `Send`
|
= help: within `impl futures::Future<Output = ()>`, the trait `std::marker::Send` is not implemented for `Rc<RefCell<std::option::Option<actix_web::app_service::AppRoutingFactory>>>`
note: future is not `Send` as this value is used across an await
--> src/server.rs:83:9
|
75 | / HttpServer::new(|| {
76 | | App::new()
77 | | .route("/api", web::post().to(index))
78 | | .route("/state", web::get().to(state))
79 | | .route("/focus", web::get().to(focus))
80 | | .route("/quit", web::get().to(quit_handler))
81 | | })
| |______- has type `HttpServer<[closure@src/server.rs:75:18: 75:20], actix_web::App<actix_web::app_service::AppEntry>, actix_web::app_service::AppInit<actix_web::app_service::AppEntry, BoxBody>, BoxBody>` which is not `Send`
82 | .bind("127.0.0.1:63318").unwrap()
83 | .run().await
| ^^^^^ await occurs here, with the value maybe used later
84 | .unwrap();
| - the value is later dropped here
note: required by a bound in `tokio::spawn`
--> /Users/kzhang/.cargo/registry/src/mirrors.sjtug.sjtu.edu.cn-be2141875385cea5/tokio-1.35.1/src/task/spawn.rs:166:21
|
164 | pub fn spawn<F>(future: F) -> JoinHandle<F::Output>
| ----- required by a bound in this function
165 | where
166 | F: Future + Send + 'static,
| ^^^^ required by this bound in `spawn`
error: future cannot be sent between threads safely
--> src/main.rs:19:18
|
19 | tokio::spawn(server::listen());
| ^^^^^^^^^^^^^^^^ future returned by `listen` is not `Send`
|
= help: within `impl futures::Future<Output = ()>`, the trait `std::marker::Send` is not implemented for `Rc<actix_service::boxed::BoxServiceFactory<(), ServiceRequest, ServiceResponse, actix_web::Error, ()>>`
note: future is not `Send` as this value is used across an await
--> src/server.rs:83:9
|
75 | / HttpServer::new(|| {
76 | | App::new()
77 | | .route("/api", web::post().to(index))
78 | | .route("/state", web::get().to(state))
79 | | .route("/focus", web::get().to(focus))
80 | | .route("/quit", web::get().to(quit_handler))
81 | | })
| |______- has type `HttpServer<[closure@src/server.rs:75:18: 75:20], actix_web::App<actix_web::app_service::AppEntry>, actix_web::app_service::AppInit<actix_web::app_service::AppEntry, BoxBody>, BoxBody>` which is not `Send`
82 | .bind("127.0.0.1:63318").unwrap()
83 | .run().await
| ^^^^^ await occurs here, with the value maybe used later
84 | .unwrap();
| - the value is later dropped here
note: required by a bound in `tokio::spawn`
--> /Users/kzhang/.cargo/registry/src/mirrors.sjtug.sjtu.edu.cn-be2141875385cea5/tokio-1.35.1/src/task/spawn.rs:166:21
|
164 | pub fn spawn<F>(future: F) -> JoinHandle<F::Output>
| ----- required by a bound in this function
165 | where
166 | F: Future + Send + 'static,
| ^^^^ required by this bound in `spawn`
error: future cannot be sent between threads safely
--> src/main.rs:19:18
|
19 | tokio::spawn(server::listen());
| ^^^^^^^^^^^^^^^^ future returned by `listen` is not `Send`
|
= help: the trait `std::marker::Send` is not implemented for `(dyn MessageBody<Error = Box<(dyn StdError + 'static)>> + 'static)`
note: future is not `Send` as this value is used across an await
--> src/server.rs:83:9
|
75 | / HttpServer::new(|| {
76 | | App::new()
77 | | .route("/api", web::post().to(index))
78 | | .route("/state", web::get().to(state))
79 | | .route("/focus", web::get().to(focus))
80 | | .route("/quit", web::get().to(quit_handler))
81 | | })
| |______- has type `HttpServer<[closure@src/server.rs:75:18: 75:20], actix_web::App<actix_web::app_service::AppEntry>, actix_web::app_service::AppInit<actix_web::app_service::AppEntry, BoxBody>, BoxBody>` which is not `Send`
82 | .bind("127.0.0.1:63318").unwrap()
83 | .run().await
| ^^^^^ await occurs here, with the value maybe used later
84 | .unwrap();
| - the value is later dropped here
note: required by a bound in `tokio::spawn`
--> /Users/kzhang/.cargo/registry/src/mirrors.sjtug.sjtu.edu.cn-be2141875385cea5/tokio-1.35.1/src/task/spawn.rs:166:21
|
164 | pub fn spawn<F>(future: F) -> JoinHandle<F::Output>
| ----- required by a bound in this function
165 | where
166 | F: Future + Send + 'static,
| ^^^^ required by this bound in `spawn`
error: future cannot be sent between threads safely
--> src/main.rs:19:18
|
19 | tokio::spawn(server::listen());
| ^^^^^^^^^^^^^^^^ future returned by `listen` is not `Send`
|
= help: the trait `std::marker::Send` is not implemented for `(dyn std::any::Any + 'static)`
note: future is not `Send` as this value is used across an await
--> src/server.rs:83:9
|
75 | / HttpServer::new(|| {
76 | | App::new()
77 | | .route("/api", web::post().to(index))
78 | | .route("/state", web::get().to(state))
79 | | .route("/focus", web::get().to(focus))
80 | | .route("/quit", web::get().to(quit_handler))
81 | | })
| |______- has type `HttpServer<[closure@src/server.rs:75:18: 75:20], actix_web::App<actix_web::app_service::AppEntry>, actix_web::app_service::AppInit<actix_web::app_service::AppEntry, BoxBody>, BoxBody>` which is not `Send`
82 | .bind("127.0.0.1:63318").unwrap()
83 | .run().await
| ^^^^^ await occurs here, with the value maybe used later
84 | .unwrap();
| - the value is later dropped here
note: required by a bound in `tokio::spawn`
--> /Users/kzhang/.cargo/registry/src/mirrors.sjtug.sjtu.edu.cn-be2141875385cea5/tokio-1.35.1/src/task/spawn.rs:166:21
|
164 | pub fn spawn<F>(future: F) -> JoinHandle<F::Output>
| ----- required by a bound in this function
165 | where
166 | F: Future + Send + 'static,
| ^^^^ required by this bound in `spawn`
error: could not compile `aria-download-manager` (bin "aria-download-manager") due to 6 previous errors