1
0
mirror of https://github.com/actix/actix-website synced 2024-11-27 10:02:57 +01:00

Moves everything into the cargo workspace.

This commit is contained in:
Cameron Dershem 2019-06-26 19:18:43 -04:00
parent 0601997b41
commit 4833874c5d
3 changed files with 9 additions and 10 deletions

View File

@ -19,12 +19,12 @@ members = [
"middleware",
"static-files",
"http2",
]
exclude = [
"testing",
"async-handlers",
"websockets",
"request-handlers",
]
exclude = [
"og_databases",
"sentry",
]

View File

@ -22,12 +22,11 @@ fn index(_req: HttpRequest) -> Result<&'static str, MyError> {
// </response-error>
pub fn main() {
// use actix_web::{web, App, HttpServer};
use actix_web::{web, App, HttpServer};
// HttpServer::new(|| App::new().route("/", web::get().to(index)))
// .bind("127.0.0.1:8088")
// .unwrap()
// .run()
// .unwrap();
recommend_two::main();
HttpServer::new(|| App::new().route("/", web::get().to(index)))
.bind("127.0.0.1:8088")
.unwrap()
.run()
.unwrap();
}

View File

@ -1,5 +1,5 @@
// <compress>
use actix_web::{http::ContentEncoding, middleware, HttpResponse};
use actix_web::{middleware, HttpResponse};
fn index_br() -> HttpResponse {
HttpResponse::Ok().body("data")