Skip to content

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.

2 participants