Skip to content

Conversation

@surajk-m
Copy link

Closes #54

This PR updates the TwirpRouter::route and GrpcRouter::route* methods to use AsyncFn simplifying the type constraints.

@vsiles
Copy link
Contributor

vsiles commented May 21, 2025

Hi ! Thanks for the PR. I'll try to get a review today or tomorrow.
Sorry for the delay

html_logo_url = "https://raw.githubusercontent.com/helsing-ai/twurst/main/docs/img/twurst.png"
)]
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
#![feature(async_fn_traits)]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Tpt do we want to wait until these features are stablized ? IIUC they are still considered unstable

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes! Please, no unstable feature

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the update, @vsiles @Tpt . We'll stick to stable features for now until that trait becomes available in a stable release. Let me know if there's anything else you would like me to adjust in this PR.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

besides the unstable feature, the MR looks good ! Feel free to rebase it now, or wait until we can merge it. I'll leave the choice up to you.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the review @vsiles, I'll go ahead and rebase it now.

@Tpt Tpt mentioned this pull request Jul 29, 2025
@surajk-m surajk-m force-pushed the asyncfn-trait-rust185 branch from 628aa67 to 74b1871 Compare August 1, 2025 14:09
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.

Use AsyncFn when targetting Rust 1.85+

3 participants