diff --git a/actix_admin/Cargo.toml b/actix_admin/Cargo.toml index 871069e..02fff0e 100644 --- a/actix_admin/Cargo.toml +++ b/actix_admin/Cargo.toml @@ -5,20 +5,11 @@ edition = "2021" [dependencies] actix-web = "4.0.1" -actix-rt = "2.7.0" -actix-session = "0.6.2" -tera = "1.15.0" +tera = "1.16.0" actix_admin_macros = { path = "actix_admin_macros" } -oauth2 = "4.1" -base64 = "0.13.0" 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" -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 } \ No newline at end of file +sea-orm = { version = "^0", features = [], default-features = false } \ No newline at end of file diff --git a/actix_admin/actix_admin_macros/Cargo.toml b/actix_admin/actix_admin_macros/Cargo.toml index d9adc22..589476d 100644 --- a/actix_admin/actix_admin_macros/Cargo.toml +++ b/actix_admin/actix_admin_macros/Cargo.toml @@ -7,24 +7,7 @@ edition = "2021" proc-macro = true [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" quote = "1.0" syn = { version = "1.0", features = ["full", "extra-traits"] } -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 } \ No newline at end of file +proc-macro2 = { version = "1.0.36", default-features = false } \ No newline at end of file diff --git a/actix_admin/actix_admin_macros/src/struct_fields.rs b/actix_admin/actix_admin_macros/src/struct_fields.rs index 46205b8..e95d6f8 100644 --- a/actix_admin/actix_admin_macros/src/struct_fields.rs +++ b/actix_admin/actix_admin_macros/src/struct_fields.rs @@ -1,4 +1,4 @@ -use proc_macro2::{Span, Ident, TokenStream}; +use proc_macro2::{TokenStream}; use syn::{ 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 { 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 fields = filter_fields(match ast.data {