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.
Projects wishing to use
unsafe_op_in_unsafe_fncanallowthe warning when importing the bindings.However, it would be ideal if
bindgenwould offer a way (e.g. command-line flag) to generate bindings withunsafeblocks insideunsafe fns as needed.That way, projects can
forbidit globally, and those that justdenyit do not need to write theallowthemselves.