Open kiokuless opened 2 years ago
no. the proc macro lack generics handling and it completely ignore syn::FnDecl
type. To fix it somebody have to add more code to actix-web-codegen to collect and paste Syn::Generics
.
tbh if you can do without proc macro easily it's always a good choice. simple route macro is never a good choice it was just popular at one time and overtime it shows it's limitation.
Has this issue been resolved ?
Expected Behavior
Pass type checking
Current Behavior
Possible Solution
Use
.route("/", web::get().to(index::<T>)
instead ofservice(index::<T>)
andget
method macro, but is there any good way to keep usingget
macro?Steps to Reproduce (for bugs)
Context
Your Environment