Skip to content

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

Merged
soareschen merged 3 commits into
mainfrom
soares/hermes-prelude
Apr 28, 2025
Merged

Introduce hermes-prelude as a proxy crate for cgp::prelude#600
soareschen merged 3 commits into
mainfrom
soares/hermes-prelude

Conversation

@soareschen

@soareschen soareschen commented Apr 28, 2025

Copy link
Copy Markdown
Contributor

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.

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