Skip to content

fix: P3 cfg-based dual async/sync compilation#426

Merged
avrabe merged 1 commit intomainfrom
fix/p3-dual-compile
Mar 28, 2026
Merged

fix: P3 cfg-based dual async/sync compilation#426
avrabe merged 1 commit intomainfrom
fix/p3-dual-compile

Conversation

@avrabe
Copy link
Copy Markdown
Contributor

@avrabe avrabe commented Mar 28, 2026

P3 sources need cfg(target_arch) to handle async (WASM) vs sync (host) trait methods.

P3 components generate async trait on WASM and sync on host.
Use #[cfg(target_arch = "wasm32")] to provide both implementations
in the same source file.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@avrabe avrabe merged commit bdc674d into main Mar 28, 2026
17 checks passed
@avrabe avrabe deleted the fix/p3-dual-compile branch March 28, 2026 16:46
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