-
Notifications
You must be signed in to change notification settings - Fork 106
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
Feature: detect mismatched route parameters at compile time #214
Comments
The panicking shouldn't happen. |
Are you using string-style invocation? The docs state:
If not, could you provide a minimal example? |
Sorry yes I should have made that clear. This feature request is to check that at compile time, which is definitely possible given the stabilisation of procedural macros and other meta-programming features. |
At the moment, the route handler will panic if it can't find a matching name for a route parameter, with the error
Unable to match url parameter name ...
.It would be an improvement if the router macro caught this at compile time.
The text was updated successfully, but these errors were encountered: