-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for generic functions to #[debug_handler]
#1253
Comments
For anybody who wants to work on this, here's some tips:
|
@jplatte I am interested in taking a crack at this. thanks for the extensive write-up! |
#[debug_handler]
Is it still open for taking. I am new here, was looking for some simple issue to work on. |
No, this is mostly done in #1265. |
Hi, Is there any simple task I can take up. |
any updates here? |
@0xdeepmehta No. I still have to review the PR. |
As per latest comments in the PR, I'll close this since it's probably not worth the maintenance burden to support. |
I've had an idea for a while that would make generic handlers pretty much fully checkable, that is:
could make
debug_handler
addFromRequest
assertions forPath<String>
,Path<u64>
,Json<i8>
,Json<i16>
andFoo<0>
while also addingSend
assertions for the futures returned byhandler::<String, i8, 0>
handler::<String, i16, 0>
handler::<u64, i8, 0>
handler::<u64, i16, 0>
If we were to do that, we could just require users to add this
with()
annotation before any parameters are checked on a generic function (even ones that don't mention the generic types) as it should be easy enough.Originally posted in #1251 (comment)
The text was updated successfully, but these errors were encountered: