Support unsafe_op_in_unsafe_fn · Issue #2063 · rust-lang/rust-bindgen (original) (raw)

Projects wishing to use unsafe_op_in_unsafe_fn can allow the warning when importing the bindings.

However, it would be ideal if bindgen would offer a way (e.g. command-line flag) to generate bindings with unsafe blocks inside unsafe fns as needed.

That way, projects can forbid it globally, and those that just deny it do not need to write the allow themselves.