You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// test.hpp
#pragma once
/// This is a constant that has a docstring////// And expected be be found in generated bindings code too.constint FOO = 1;
/// This is a constant that has a docstring////// And expected be be found in generated bindings code too.structBar
{
int baz;
};
Bindgen Invocation
// in build.rs let bindings = bindgen::Builder::default().header("test.hpp").layout_tests(false).generate_comments(true).generate().expect("Unable to generate bindings");
bindings
.write_to_file(out_path.join("test.rs")).expect("Couldn't write bindings!");
Actual Results
/* automatically generated by rust-bindgen 0.57.0 */pubconstFOO:::std::os::raw::c_int = 1;#[doc = " This is a constant that has a docstring"]#[doc = ""]#[doc = " And expected be be found in generated bindings code too."]#[repr(C)]#[derive(Debug,Copy,Clone)]pubstructBar{pubbaz:::std::os::raw::c_int,}
Expected Results
Markdown docstring for the const FOO should be present in the output *.rs file as well.
The text was updated successfully, but these errors were encountered:
Input C/C++ Header
Bindgen Invocation
Actual Results
Expected Results
Markdown docstring for the const
FOO
should be present in the output*.rs
file as well.The text was updated successfully, but these errors were encountered: