mozilla / cbindgen

A project for generating C bindings from Rust code
Mozilla Public License 2.0
2.43k stars 315 forks source link

Add support for UnsafeCell and SyncUnsafeCell #1002

Closed alekitto closed 4 weeks ago

alekitto commented 2 months ago

Support for RefCell has been added in #489, but UnsafeCell and SyncUnsafeCell are not supported. Both are substantially equal to a Cell, so it could be implemented in the same way.