remove not required packages

This commit is contained in:
Manuel Gugger 2022-07-25 16:57:42 +02:00
parent e0da08ef73
commit 76809ddc46
3 changed files with 5 additions and 31 deletions

View File

@ -5,20 +5,11 @@ edition = "2021"
[dependencies] [dependencies]
actix-web = "4.0.1" actix-web = "4.0.1"
actix-rt = "2.7.0" tera = "1.16.0"
actix-session = "0.6.2"
tera = "1.15.0"
actix_admin_macros = { path = "actix_admin_macros" } actix_admin_macros = { path = "actix_admin_macros" }
oauth2 = "4.1"
base64 = "0.13.0"
async-trait = "0.1.53" async-trait = "0.1.53"
rand = "0.8.5"
url = "2.2.2"
http = "0.2.6"
dotenv = "0.15"
lazy_static = "1.4.0" lazy_static = "1.4.0"
futures = "0.3.21"
serde = "1.0.136" serde = "1.0.136"
serde_json = "1.0.79" serde_json = "1.0.79"
serde_derive = "1.0.136" serde_derive = "1.0.136"
sea-orm = { version = "0.8.0", features = [ "sqlx-sqlite", "runtime-actix-native-tls", "macros" ], default-features = false } sea-orm = { version = "^0", features = [], default-features = false }

View File

@ -7,24 +7,7 @@ edition = "2021"
proc-macro = true proc-macro = true
[dependencies] [dependencies]
actix-web = "4.0.1"
actix-rt = "2.7.0"
actix-session = "0.6.2"
tera = "1.15.0"
oauth2 = "4.1"
base64 = "0.13.0"
bae = "0.1.7" bae = "0.1.7"
quote = "1.0" quote = "1.0"
syn = { version = "1.0", features = ["full", "extra-traits"] } syn = { version = "1.0", features = ["full", "extra-traits"] }
proc-macro2 = { version = "1.0.36", default-features = false } proc-macro2 = { version = "1.0.36", default-features = false }
rand = "0.8.5"
url = "2.2.2"
http = "0.2.6"
dotenv = "0.15"
futures = "0.3.21"
serde = "1.0.136"
serde_json = "1.0.79"
serde_derive = "1.0.136"
sea-orm = { version = "0.8.0", features = [ "sqlx-sqlite", "runtime-actix-native-tls", "macros" ], default-features = false }

View File

@ -1,4 +1,4 @@
use proc_macro2::{Span, Ident, TokenStream}; use proc_macro2::{TokenStream};
use syn::{ use syn::{
Fields, DeriveInput, LitStr Fields, DeriveInput, LitStr
}; };
@ -8,7 +8,7 @@ use crate::model_fields::{ ModelField };
pub fn get_fields_for_tokenstream(input: proc_macro::TokenStream) -> std::vec::Vec<ModelField> { pub fn get_fields_for_tokenstream(input: proc_macro::TokenStream) -> std::vec::Vec<ModelField> {
let ast: DeriveInput = syn::parse(input).unwrap(); let ast: DeriveInput = syn::parse(input).unwrap();
let (_vis, ty, _generics) = (&ast.vis, &ast.ident, &ast.generics); //let (_vis, _ty, _generics) = (&ast.vis, &ast.ident, &ast.generics);
//let _names_struct_ident = Ident::new(&(ty.to_string() + "FieldStaticStr"), Span::call_site()); //let _names_struct_ident = Ident::new(&(ty.to_string() + "FieldStaticStr"), Span::call_site());
let fields = filter_fields(match ast.data { let fields = filter_fields(match ast.data {