However I wasn't able to figure out how to accept lifetimes AND/OR types, which means that generic types require an alias. This doesn't work (because we try and interpret the stuff between <> as lifetimes):
This is not good UX, and should be fixed. I am open to improvements of the macro syntax to re-allow this, it will likely require some kind of fancier tt-muncher or something to separately collect the types and generics.
In v0.10, I made it so that endpoints and topics could accept types with lifetimes, e.g.:
However I wasn't able to figure out how to accept lifetimes AND/OR types, which means that generic types require an alias. This doesn't work (because we try and interpret the stuff between
<>
as lifetimes):But this does:
This is not good UX, and should be fixed. I am open to improvements of the macro syntax to re-allow this, it will likely require some kind of fancier tt-muncher or something to separately collect the types and generics.