Skip to content
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

Merged
merged 33 commits into from
Feb 10, 2022
Merged

Make fairing asynchronous #4

merged 33 commits into from
Feb 10, 2022

Conversation

sd2k
Copy link
Owner

@sd2k sd2k commented Apr 21, 2020

Make the fairing compatible with the asynchronous version of Rocket. This won't be merged until async Rocket is released.

@sd2k sd2k marked this pull request as draft April 21, 2020 11:42
@genofire genofire mentioned this pull request Oct 12, 2020
sd2k and others added 13 commits November 1, 2020 14:56
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.
@svenstaro
Copy link

Could you rebase this and update it for current Rocket master? I'd like to give it a test drive. :)

@sd2k
Copy link
Owner Author

sd2k commented Apr 16, 2021

@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?

@svenstaro
Copy link

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. :)

@sd2k
Copy link
Owner Author

sd2k commented Apr 16, 2021

@svenstaro I've merged master into this branch now so the conflicts should be sorted 👍

@svenstaro
Copy link

Super noice! Will check it out.

@henrikhorluck henrikhorluck mentioned this pull request Jul 9, 2021
3 tasks
@sd2k sd2k marked this pull request as ready for review February 10, 2022 09:48
@sd2k sd2k merged commit 802394f into main Feb 10, 2022
@sd2k sd2k deleted the async branch February 10, 2022 09:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants