-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix WebAssembly serialization for
comments
field in CDDL AST
The `comments` field in the `CDDL` struct was skipped during serialization when compiling for WebAssembly. This was caused by the incorrect use of `#[cfg_attr(target_arch = "wasm32", serde(skip))]`. Instead of skipping the field, we now rely on the `ast-comments` feature flag to control whether the `comments` field is included. If the feature is disabled, the field will be excluded entirely.
- Loading branch information
Showing
1 changed file
with
0 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters