Skip to content

fix #3367: Consolidate extern fn block for fn and static symbols#3371

Open
alejnp wants to merge 1 commit into
rust-lang:mainfrom
alejnp:feature/consolidate-extern-fn-block-attrs
Open

fix #3367: Consolidate extern fn block for fn and static symbols#3371
alejnp wants to merge 1 commit into
rust-lang:mainfrom
alejnp:feature/consolidate-extern-fn-block-attrs

Conversation

@alejnp
Copy link
Copy Markdown

@alejnp alejnp commented May 11, 2026

This PR attempts at consolidating the previously available annotation mechanism, extern-fn-attrs, to also affect static variable symbols. See #3367 for more context.

As part of the PR, I've:

  • Added logic to push attributes to static variables, in an approach similar to feat: Implement support for link type 'raw-dylib' on Windows #3257.
  • Added tests or refactored existing tests for this functionality.
  • Renamed the flag in both the internal structure (BindgenFlags) as well as in the CLI mapping.
  • Renamed the files of the tests affected by these changes.

Please, let me know if I've missed something and I'll be making the changes.

@alejnp
Copy link
Copy Markdown
Author

alejnp commented May 11, 2026

r? @emilio @pvdrz

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.

2 participants