Replies: 1 comment 1 reply
-
No, this is not possible with the state abstraction as-is. I think it would be possible to build something like that (using a type list), but I think it might require removing substates altogether, and also it would just be incredibly complex and possibly hurt compile times and inference. I don't think it's something that makes sense for axum. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi
When creating a handler, we can use different
State
selectors.But when creating the routes, we need to encapsulate them into a single structure.
Would it be possible/desirable to just support using
.with_state(kv_store).with_state(actions)
instead of creating a new struct ?If possible and desirable I would like to contribute this to the project.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions