#Generics and DI in appstate

1 messages · Page 1 of 1 (latest)

frank sun
#

Hey I'm trying to create some basic DI in my project following some guides I've seen, but I'm struggling to figure out how to annotate my types in actix routes.

vivid nexus
#

this isn't possible with the routing macros because of the code that's generated

#

for DI what i'd suggest is using Data<dyn Trait> app data