mirror of
https://github.com/actix/examples
synced 2025-06-28 09:50:36 +02:00
Remove serde_derive https://github.com/serde-rs/serde/issues/1441#issuecomment-445481084
This commit is contained in:
@ -13,8 +13,7 @@ dotenv = "0.13.0"
|
||||
env_logger = "0.5.10"
|
||||
futures = "0.3.1"
|
||||
log = "0.4.3"
|
||||
serde = "1.0.69"
|
||||
serde_derive = "1.0.69"
|
||||
serde = { version = "1.0.69", features = ["derive"] }
|
||||
serde_json = "1.0.22"
|
||||
tera = "1.0"
|
||||
|
||||
|
@ -2,6 +2,7 @@ use actix_files::NamedFile;
|
||||
use actix_session::Session;
|
||||
use actix_web::middleware::errhandlers::ErrorHandlerResponse;
|
||||
use actix_web::{dev, error, http, web, Error, HttpResponse, Result};
|
||||
use serde::Deserialize;
|
||||
use tera::{Context, Tera};
|
||||
|
||||
use crate::db;
|
||||
|
@ -2,8 +2,6 @@
|
||||
extern crate diesel;
|
||||
#[macro_use]
|
||||
extern crate log;
|
||||
#[macro_use]
|
||||
extern crate serde_derive;
|
||||
|
||||
use std::{env, io};
|
||||
|
||||
|
@ -1,6 +1,7 @@
|
||||
use diesel;
|
||||
use diesel::pg::PgConnection;
|
||||
use diesel::prelude::*;
|
||||
use serde::Serialize;
|
||||
|
||||
use crate::schema::{
|
||||
tasks,
|
||||
|
@ -1,5 +1,6 @@
|
||||
use actix_session::Session;
|
||||
use actix_web::error::Result;
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
const FLASH_KEY: &str = "flash";
|
||||
|
||||
|
Reference in New Issue
Block a user