web-service-rs-template
web-service-rs-template copied to clipboard
Setting axum Router state not early
https://docs.rs/axum/latest/axum/struct.Router.html#returning-routers-with-states-from-functions suggests setting the state outside of the router-creation-function.
Though I guess the last thing about performance makes me think it might actually be fine the way you did it..