-
Notifications
You must be signed in to change notification settings - Fork 11
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
Make fairing asynchronous #4
Conversation
Updates the requirements on [prometheus](https://github.com/tikv/rust-prometheus) to permit the latest version. - [Release notes](https://github.com/tikv/rust-prometheus/releases) - [Changelog](https://github.com/tikv/rust-prometheus/blob/master/CHANGELOG.md) - [Commits](tikv/rust-prometheus@v0.11.0...v0.12.0) Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
RawStr no longer implements FromParam since commit 63a14525d86595a8033715e3bdcd2bf2581eecb1 of Rocket; &str should be used in its place.
The vast majority of requests will have a 'valid' status code and so we can use the http crate's `StatusCode` struct to represent them, which provides a non-allocating `as_str()` method to get the status code label used for built-in metrics. In other cases, fall back to converting the status code to a string, with an allocation.
This uses the new `RouteUri` struct of Rocket.
Could you rebase this and update it for current Rocket master? I'd like to give it a test drive. :) |
@svenstaro This should already support the latest Rocket master as of 64f3ff7 - I made the changes a couple of days ago! Are you having issues getting it to compile? |
Oh, nevermind then. I just thought it was weird that you conflict with your target branch currently. I'll just use your branch directly for the time being but I think it'd be great if you could fix the conflicts, too. :) |
@svenstaro I've merged |
Super noice! Will check it out. |
Includes fix for issue #14.
Make the fairing compatible with the asynchronous version of Rocket. This won't be merged until async Rocket is released.