From c3bb858bb54dc8c64bbd48054c2c58dc0073f09c Mon Sep 17 00:00:00 2001 From: natrixaeria Date: Sun, 19 May 2019 17:39:50 +0200 Subject: Remove build script MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Copilation works now as usual with ´cargo run´ / ´cargo build´ --- game_server/build.sh | 21 --------------- game_server/err | 73 --------------------------------------------------- game_server/rbuild.sh | 2 -- 3 files changed, 96 deletions(-) delete mode 100755 game_server/build.sh delete mode 100644 game_server/err delete mode 100644 game_server/rbuild.sh (limited to 'game_server') diff --git a/game_server/build.sh b/game_server/build.sh deleted file mode 100755 index 1eb61a1..0000000 --- a/game_server/build.sh +++ /dev/null @@ -1,21 +0,0 @@ -#!/usr/bin/env sh - -case $1 in - ("") - if rustup run stable cargo --color always build; then - echo build success! - RUST_LOG=debug target/debug/game-server - else - echo build failed! - fi - ;; - -r) - sh build.sh &> err && cat err | tac - ;; - -c) - rustup run stable cargo clean - ;; - *) - echo invalid argument - ;; -esac diff --git a/game_server/err b/game_server/err deleted file mode 100644 index 6ca8a6f..0000000 --- a/game_server/err +++ /dev/null @@ -1,73 +0,0 @@ - Compiling game-server v0.1.0 (/home/jan/projects/DiscoBot/game_server) -error[E0277]: the trait bound `(): futures::future::Future` is not satisfied - --> src/backend_connection.rs:32:24 - | -32 |  hyper::rt::run(hyper::rt::lazy(|| { - |  ^^^^^^^^^^^^^^^ the trait `futures::future::Future` is not implemented for `()` - | - = note: required because of the requirements on the impl of `futures::future::IntoFuture` for `()` - = note: required by `futures::future::lazy::lazy` - -error[E0599]: no method named `wait` found for type `std::result::Result, [closure@src/backend_connection.rs:55:38: 55:73]>, http::uri::InvalidUri>` in the current scope - --> src/backend_connection.rs:56:24 - | -56 |  }).wait(); - |  ^^^^ - | - = note: the method `wait` exists but the following trait bounds were not satisfied: - `&mut std::result::Result, [closure@src/backend_connection.rs:55:38: 55:73]>, http::uri::InvalidUri> : futures::future::Future` - -error[E0308]: mismatched types - --> src/backend_connection.rs:58:17 - | -58 |  res - |  ^^^ expected (), found enum `std::result::Result` - | - = note: expected type `()` - found type `std::result::Result, http::uri::InvalidUri>` - -error[E0277]: the trait bound `(): futures::future::Future` is not satisfied - --> src/backend_connection.rs:32:24 - | -32 |   hyper::rt::run(hyper::rt::lazy(|| { - |  ________________________^ -33 | |  let client = hyper::Client::builder() -34 | |  .build::<_, hyper::Body>( -35 | |  HttpsConnector::new(4).unwrap() -... | -59 | |  } -60 | |  })); - | |__________^ the trait `futures::future::Future` is not implemented for `()` - | - = note: required because of the requirements on the impl of `futures::future::IntoFuture` for `()` - = note: required by `futures::future::lazy::Lazy` - -error[E0277]: the trait bound `(): futures::future::Future` is not satisfied - --> src/backend_connection.rs:32:9 - | -32 |  hyper::rt::run(hyper::rt::lazy(|| { - |  ^^^^^^^^^^^^^^ the trait `futures::future::Future` is not implemented for `()` - | - = note: required because of the requirements on the impl of `futures::future::IntoFuture` for `()` - = note: required by `hyper::rt::run` - -error[E0063]: missing field `res_receiver` in initializer of `backend_connection::BackendConnection` - --> src/backend_connection.rs:62:9 - | -62 |  BackendConnection { - |  ^^^^^^^^^^^^^^^^^ missing `res_receiver` - -error[E0609]: no field `request_sender` on type `&backend_connection::BackendConnection` - --> src/backend_connection.rs:69:14 - | -69 |  self.request_sender.send( - |  ^^^^^^^^^^^^^^ - -error: aborting due to 7 previous errors - -Some errors have detailed explanations: E0063, E0277, E0308, E0599, E0609. -For more information about an error, try `rustc --explain E0063`. -error: Could not compile `game-server`. - -To learn more, run the command again with --verbose. -build failed! diff --git a/game_server/rbuild.sh b/game_server/rbuild.sh deleted file mode 100644 index 22b10b5..0000000 --- a/game_server/rbuild.sh +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/bash -sh build.sh &> err && cat err | tac -- cgit v1.2.3-70-g09d2