There is a current pre-RFC for deprecating static mut in Rust 2024, in favor of better alternatives. I think bindgen should start using some of these alternatives instead of generating code that will become deprecated in the near-term. My understanding of the pre-RFC is that we should be using SyncUnsafeCell in these FFI scenarios instead of static mut
There is a current pre-RFC for deprecating
static mut
in Rust 2024, in favor of better alternatives. I think bindgen should start using some of these alternatives instead of generating code that will become deprecated in the near-term. My understanding of the pre-RFC is that we should be usingSyncUnsafeCell
in these FFI scenarios instead ofstatic mut
Input C/C++ Header
Bindgen Invocation
Actual Results
Expected Results