mirror of
https://github.com/actix/actix-website
synced 2024-11-27 18:12:57 +01:00
Moves everything into the cargo workspace.
This commit is contained in:
parent
0601997b41
commit
4833874c5d
@ -19,12 +19,12 @@ members = [
|
|||||||
"middleware",
|
"middleware",
|
||||||
"static-files",
|
"static-files",
|
||||||
"http2",
|
"http2",
|
||||||
]
|
|
||||||
exclude = [
|
|
||||||
"testing",
|
"testing",
|
||||||
"async-handlers",
|
"async-handlers",
|
||||||
"websockets",
|
"websockets",
|
||||||
"request-handlers",
|
"request-handlers",
|
||||||
|
]
|
||||||
|
exclude = [
|
||||||
"og_databases",
|
"og_databases",
|
||||||
"sentry",
|
"sentry",
|
||||||
]
|
]
|
||||||
|
@ -22,12 +22,11 @@ fn index(_req: HttpRequest) -> Result<&'static str, MyError> {
|
|||||||
// </response-error>
|
// </response-error>
|
||||||
|
|
||||||
pub fn main() {
|
pub fn main() {
|
||||||
// use actix_web::{web, App, HttpServer};
|
use actix_web::{web, App, HttpServer};
|
||||||
|
|
||||||
// HttpServer::new(|| App::new().route("/", web::get().to(index)))
|
HttpServer::new(|| App::new().route("/", web::get().to(index)))
|
||||||
// .bind("127.0.0.1:8088")
|
.bind("127.0.0.1:8088")
|
||||||
// .unwrap()
|
.unwrap()
|
||||||
// .run()
|
.run()
|
||||||
// .unwrap();
|
.unwrap();
|
||||||
recommend_two::main();
|
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
// <compress>
|
// <compress>
|
||||||
use actix_web::{http::ContentEncoding, middleware, HttpResponse};
|
use actix_web::{middleware, HttpResponse};
|
||||||
|
|
||||||
fn index_br() -> HttpResponse {
|
fn index_br() -> HttpResponse {
|
||||||
HttpResponse::Ok().body("data")
|
HttpResponse::Ok().body("data")
|
||||||
|
Loading…
Reference in New Issue
Block a user