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
structlcb_create_st {
/** Indicates which field in the @ref lcb_CRST_u union should be used. Set this to `3` */int version;
/**This union contains the set of current and historical options. The * The #v3 field should be used. */union lcb_CRST_u {
structlcb_create_st0 v0;
structlcb_create_st1 v1;
structlcb_create_st2 v2;
structlcb_create_st3 v3; /**< Use this field */
} v;
LCB_DEPR_CTORS_CRST
};
Bindgen Invokation
let _ = bindgen::builder().header("headers.h").clang_arg("-I").clang_arg(bindgen_path).no_unstable_rust().generate_comments(false).generate().unwrap().write_to_file(Path::new(out_dir).join("bindings.rs"));
Actual Results
error[E0412]: cannot find type `lcb_create_st_lcb_CRST_u` in this scope
--> /Users/daschl/code/rust/couchbase-rs/target/debug/build/couchbase-sys-4dafd1d829eed0ef/out/bindings.rs:3635:12
|
3635 | pub v: lcb_create_st_lcb_CRST_u,
| ^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
error[E0204]: the trait `Copy` may not be implemented for this type
--> /Users/daschl/code/rust/couchbase-rs/target/debug/build/couchbase-sys-4dafd1d829eed0ef/out/bindings.rs:3632:17
|
3632 | #[derive(Debug, Copy)]
| ^^^^
...
3635 | pub v: lcb_create_st_lcb_CRST_u,
| ------------------------------- this field does not implement `Copy`
error: aborting due to previous error
I think the problem is that lcb_create_st expects lcb_create_st_lcb_CRST_u but its not created. I've been upgrading from 0.21 which used to work, but its broken since 0.22 I think (and is broken right now I tried 0.23.1).
The text was updated successfully, but these errors were encountered:
Input C/C++ Header
https://github.com/couchbase/libcouchbase/blob/master/include/libcouchbase/couchbase.h#L275
Bindgen Invokation
Actual Results
Expected Results
I think the problem is that
lcb_create_st
expectslcb_create_st_lcb_CRST_u
but its not created. I've been upgrading from 0.21 which used to work, but its broken since 0.22 I think (and is broken right now I tried 0.23.1).The text was updated successfully, but these errors were encountered: