Replies: 1 comment
-
That's the way to do it. This is covered in the docs. It is not possible import and then use it directly due to limitations in rust's proc macro infrastructure. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
when i import the endpoint handler i can assign it in
routes!
, but it doesn't work in theuri!
macroi also could not get it to work by adding
#[macro_use]
it does work when using a module path in the name like routes::deeper::hello, but im trying to understand why and if it is possible to just import the name, like we can for assigning the routes.
edit: i do see the
rocket_uri_macro_hello
but I didn't see this naming anywhere in docs so i feel like there is something else i am missingBeta Was this translation helpful? Give feedback.
All reactions