Skip to content

Introduce hermes-prelude as a proxy crate for cgp::prelude #600

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

Merged
merged 3 commits into from
Apr 28, 2025

Conversation

soareschen
Copy link
Contributor

@soareschen soareschen commented Apr 28, 2025

Summary

This PR introduces a new hermes-prelude crate that acts as a proxy and re-exports cgp::prelude.

This is mainly in anticipation of potential breaking changes in cgp when return type notation is getting stabilized in rust-lang/rust#138424. When that happens, there would be no longer need for cgp to export the Async and #[async_trait] helpers to define async types and methods in CGP.

To help the migration, the hermes-prelude crate would continue to export Async and #[async_trait], even after they are removed from cgp. This will help ensure that most of the Hermes code base will remain working without requiring significant breaking changes.

@soareschen soareschen requested review from ljoss17 and rnbguy April 28, 2025 13:16
@soareschen soareschen merged commit 2933437 into main Apr 28, 2025
10 checks passed
@soareschen soareschen deleted the soares/hermes-prelude branch April 28, 2025 13:17
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.

1 participant