1
0
mirror of https://github.com/actix/examples synced 2025-06-28 18:00:37 +02:00
Roman Frołow
2020-01-12 14:04:02 +01:00
parent 9c34ded6fd
commit e89687e712
28 changed files with 32 additions and 42 deletions

View File

@ -8,8 +8,7 @@ edition = "2018"
actix-rt = "1.0.0"
actix-web = "2.0.0"
actix-cors = "0.2.0"
serde = "1.0"
serde_derive = "1.0"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
dotenv = "0.10"
env_logger = "0.6"

View File

@ -1,6 +1,3 @@
#[macro_use]
extern crate serde_derive;
use actix_cors::Cors;
use actix_web::{http::header, middleware::Logger, web, App, HttpServer};

View File

@ -1,4 +1,5 @@
use actix_web::web;
use serde::{Deserialize, Serialize};
#[derive(Deserialize, Serialize, Debug)]
pub struct Info {