Skip to content

Exclude non-BoringSSL items from bindings - #520

Open
kornelski wants to merge 3 commits into
masterfrom
stdlib-dupes
Open

Exclude non-BoringSSL items from bindings#520
kornelski wants to merge 3 commits into
masterfrom
stdlib-dupes

Conversation

@kornelski

Copy link
Copy Markdown
Collaborator

Rust started warning about incompatible redefinitions of malloc.

Boring headers pull in C stdlib, and bindgen isn't very good at filtering out its unused/irrelevant symbols.

This change excludes about 3000 lines of boilerplate from the bindings. I couldn't simply exclude __.*, because macOS uses a pattern of time_t = __darwin_time_t, and bindgen would naively leave it broken instead of following the aliases.

@kornelski
kornelski force-pushed the stdlib-dupes branch 3 times, most recently from b0277e2 to 03672fc Compare August 14, 2026 16:35
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.

3 participants