Skip to content

Conversation

devsnek
Copy link
Member

@devsnek devsnek commented Apr 29, 2025

we need to be able to set the feature checker after creating the runtime to support lazy init

@devsnek devsnek requested a review from bartlomieju April 29, 2025 11:28
@devsnek devsnek force-pushed the x/feature-checker branch from 91c7c1a to 73e3230 Compare April 29, 2025 11:29
@devsnek devsnek changed the title use new feature checker feat: use new feature checker Apr 29, 2025
@devsnek devsnek force-pushed the x/feature-checker branch 2 times, most recently from b5b2b15 to 75e4bd5 Compare April 29, 2025 11:50
@devsnek devsnek force-pushed the x/feature-checker branch from 75e4bd5 to 3e84889 Compare April 29, 2025 11:51

/// Helper for checking unstable features. Used for sync ops.
pub fn check_unstable(state: &OpState, feature: &str, api_name: &str) {
state.feature_checker.check_or_exit(feature, api_name);
state
.borrow::<Arc<FeatureChecker>>()
Copy link
Member

Choose a reason for hiding this comment

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

I'm wondering if we should bury Arc inside FeatureChecker. Seems like an implementation detail. Feel free to do it in a follow up

@devsnek devsnek merged commit 25b9abc into main Apr 29, 2025
18 checks passed
@devsnek devsnek deleted the x/feature-checker branch April 29, 2025 15:18
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