copy all comments as doc Rust comments

In principle it would be better to write the comments intented
for documentation as `///` (or `/** */` for multi-line), but
this way it works mostly, without having to change them all.

There are two comments that are not valid Rust doc-comments,
and arerendered badly: The are the ones in:
`ncmultiselector_options` and `ncselector_item`.
pull/873/head
joseLuís 4 years ago
parent de643589b1
commit 84c637d3e8

@ -25,6 +25,10 @@ fn main() {
// The input header we would like to generate
// builder for.
.header("wrapper.h")
// generate comments, also from headers and not just doc comments (///)
.generate_comments(true)
.clang_arg("-fretain-comments-from-system-headers")
.clang_arg("-fparse-all-comments")
// Remove warnings about improper_ctypes
.blacklist_function("strtold")
.blacklist_function("wcstold")

Loading…
Cancel
Save