rust-bindgen icon indicating copy to clipboard operation
rust-bindgen copied to clipboard

Add a `Builder::headers` helper

Open kupiakos opened this issue 1 year ago • 1 comments

Much like clang_args, a helper for adding multiple headers in a chained builder expression. The signature should be:

pub fn headers<I: IntoIterator>(self, headers: I) -> Self where I::Item: Into<String>

kupiakos avatar Jan 27 '24 00:01 kupiakos

I'm learning Rust and took a crack at this!

christianheussy avatar Feb 02 '24 04:02 christianheussy

should this be closed

tshepang avatar Mar 26 '24 08:03 tshepang

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.

pvdrz avatar Mar 26 '24 14:03 pvdrz

They did, thanks for closing!

christianheussy avatar Mar 26 '24 15:03 christianheussy