Skip to content
This repository was archived by the owner on Nov 10, 2026. It is now read-only.

feat: write polyfilled feature switch attributes in the public API - #58

Merged
vbreuss merged 1 commit into
mainfrom
feat/public-api-feature-switch-attributes
Oct 18, 2026
Merged

vbreuss merged 1 commit into
mainfrom
feat/public-api-feature-switch-attributes

Conversation

@vbreuss

@vbreuss vbreuss commented Oct 18, 2026

Copy link
Copy Markdown
Member

Trim and AOT analyzers in consumer code read FeatureGuardAttribute and FeatureSwitchDefinitionAttribute by their name, and libraries targeting older frameworks declare them as internal polyfills, so they are added to the attributes that are written even when they are not visible to consumers.

Trim and AOT analyzers in consumer code read `FeatureGuardAttribute` and `FeatureSwitchDefinitionAttribute` by their name, and libraries targeting older frameworks declare them as internal polyfills, so they are added to the attributes that are written even when they are not visible to consumers.
@vbreuss vbreuss self-assigned this Oct 18, 2026
@vbreuss
vbreuss merged commit 18113d0 into main Oct 18, 2026
11 checks passed
@vbreuss
vbreuss deleted the feat/public-api-feature-switch-attributes branch October 18, 2026 10:45
@sonarqubecloud

Copy link
Copy Markdown

@github-actions

Copy link
Copy Markdown

🚀 Benchmark Results

Details

BenchmarkDotNet v0.15.8, Linux Ubuntu 24.04.5 LTS (Noble Numbat)
AMD EPYC 7763 2.45GHz, 1 CPU, 4 logical and 2 physical cores
.NET SDK 10.0.303
[Host] : .NET 8.0.32 (8.0.32, 8.0.3226.50405), X64 RyuJIT x86-64-v3
DefaultJob : .NET 8.0.32 (8.0.32, 8.0.3226.50405), X64 RyuJIT x86-64-v3

Method Mean Error StdDev Gen0 Allocated
Dummy_aweXpect 123.3 ns 2.40 ns 2.77 ns 0.0229 384 B

@github-actions

Copy link
Copy Markdown

This is addressed in release v0.5.0.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant