fix: compile wasm vs native features with custom cfg to prevent dupe features#4982
Conversation
|
Warning This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
This stack of pull requests is managed by Graphite. Learn more about stacking. |
PR Review: fix: compile wasm vs native features with custom cfg to prevent dupe featuresOverviewThis PR solves a real Cargo feature-unification problem: when The approach is sound and idiomatic for this class of problem. Correctness
This is correct.
Edge case: if only
The mutual-exclusion guard now only fires on wasm32 when both features are active. On native, both can coexist (native wins via Potential Issues1. No guard for In 2. It was previously a 3. New crates under Good Patterns
SummaryThe core approach is correct and well-executed. Items to address before landing:
No blocking issues. The custom-cfg strategy is the right tool for this problem. |
60c508f to
a2e5a93
Compare
aa74c90 to
b9eff14
Compare

Description
Please include a summary of the changes and the related issue. Please also include relevant motivation and context.
Type of change
How Has This Been Tested?
Please describe the tests that you ran to verify your changes.
Checklist: