Skip to content

feat: warn when dsl incompatible functions are skipped#38

Open
spiral-ladder wants to merge 1 commit into
mainfrom
bing/warn-dsl
Open

feat: warn when dsl incompatible functions are skipped#38
spiral-ladder wants to merge 1 commit into
mainfrom
bing/warn-dsl

Conversation

@spiral-ladder
Copy link
Copy Markdown
Contributor

Zig functions are skipped if they:

  1. are not pub fn,
  2. do not use DSL-compatible types from the js module

We can't error since we want flexibility to define and use other functions in the same file, so we just
add a simple warning to warn the user about this at comptime.

This is to avoid future situations encountered here: ChainSafe/lodestar-z#371

Zig functions are skipped if they:

1) are not `pub fn`,
2) do not use DSL-compatible types from the `js` module

We can't error since we want flexibility to define and use other
functions in the same file, so we just
add a simple warning to warn the user about this at comptime.

This is to avoid future situations encountered here: ChainSafe/lodestar-z#371
@spiral-ladder spiral-ladder self-assigned this May 22, 2026
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