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
Expected to be able to exclude an enum value that is defined, but not part of the external API.
Suspect this may be intentional for the same reason the docs mention this issue.
Input C/C++ Header
typedefenum {
NNG_PIPE_EV_ADD_PRE, // Called just before pipe added to socket
NNG_PIPE_EV_ADD_POST, // Called just after pipe added to socket
NNG_PIPE_EV_REM_POST, // Called just after pipe removed from socket
NNG_PIPE_EV_NUM, // Used internally, must be last.
} nng_pipe_ev;
Bindgen Invocation
letmut builder = bindgen::Builder::default().header("src/wrapper.h").blacklist_item("NNG_PIPE_EV_NUM")// Only used to bounds-check nng_pipe_ev.blacklist_item("nng_pipe_ev_NNG_PIPE_EV_NUM");let out_path = PathBuf::from(env::var("OUT_DIR").unwrap());
builder
.generate().expect("Unable to generate bindings").write_to_file(out_path.join("bindings.rs")).expect("Couldn't write bindings");
Expected to be able to exclude an enum value that is defined, but not part of the external API.
Suspect this may be intentional for the same reason the docs mention this issue.
Input C/C++ Header
Bindgen Invocation
Tried several variants with/without:
Actual Results
Expected Results
The text was updated successfully, but these errors were encountered: