Skip to content

Permanently enable provider supertrait#73

Merged
soareschen merged 1 commit intomainfrom
enable-provider-supertrait
Feb 22, 2025
Merged

Permanently enable provider supertrait#73
soareschen merged 1 commit intomainfrom
enable-provider-supertrait

Conversation

@soareschen
Copy link
Collaborator

@soareschen soareschen commented Feb 22, 2025

Summary

This PR permanently enables the provider-supertrait feature and remove the feature flag. With this, the IsProviderFor trait introduced in #63 is always included as a supertrait of provider traits derived from #[cgp_component].

Moving onwards, this would require #[cgp_provider] to be used on all provider implementations to derive the IsProviderFor implementation for the providers. The main advantage introduced is that Rust now produces much more informative error messages, which allows the user to properly identify the root cause of why certain CGP trait is not implemented.

@soareschen soareschen merged commit 07924ab into main Feb 22, 2025
5 checks passed
@soareschen soareschen deleted the enable-provider-supertrait branch February 22, 2025 21:11
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