-
Notifications
You must be signed in to change notification settings - Fork 670
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a Builder::headers
helper
#2738
Labels
Comments
christianheussy
added a commit
to christianheussy/rust-bindgen
that referenced
this issue
Feb 2, 2024
Problem: It's cumbersome to define multiple input headers using the existing `header` API. It's difficult for the user to configure the `Builder` with a list of input headers. Solution: Add `headers` method that permits adding multiple headers via an iterable of Strings. Testing: Added `test_headers_call_in_builder`. Ran `cargo test` in `bindgen-tests/tests/expectations`. Issue: rust-lang#2738
I'm learning Rust and took a crack at this! |
christianheussy
added a commit
to christianheussy/rust-bindgen
that referenced
this issue
Feb 5, 2024
Problem: It's cumbersome to define multiple input headers using the existing `header` API. It's difficult for the user to configure the `Builder` with a list of input headers. Solution: Add `headers` method that permits adding multiple headers via an iterable of Strings. Testing: Added `test_headers_call_in_builder`. Ran `cargo test` in `bindgen-tests/tests/expectations`. Issue: rust-lang#2738
emilio
pushed a commit
that referenced
this issue
Feb 7, 2024
Problem: It's cumbersome to define multiple input headers using the existing `header` API. It's difficult for the user to configure the `Builder` with a list of input headers. Solution: Add `headers` method that permits adding multiple headers via an iterable of Strings. Testing: Added `test_headers_call_in_builder`. Ran `cargo test` in `bindgen-tests/tests/expectations`. Issue: #2738
should this be closed |
I think so, there's a commit on main with the change. @christianheussy feel free to reopen this if your changes didn't made it to main for some reason. |
They did, thanks for closing! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Much like
clang_args
, a helper for adding multiple headers in a chained builder expression. The signature should be:The text was updated successfully, but these errors were encountered: